Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Bluetooth Integration With Android

Bluetooth Integration with Android

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By mshawky, 22 April, 2020
Forums
Gurux DLMS for Android

Hello I saw the video of connecting rasperry pi to dlms through bluetooth but I can't find any way to find the Serial Port after connecting to the DLMS Probe. How can I achieve that?

Profile picture for user Kurumi

Kurumi

5 years 1 month ago

Hi,

Hi,

I believe that you have read this?
http://www.gurux.fi/bluetooth

If you run hcitool can you see your Bluetooth device?
Have you connected your Bluetooth device to serial port using rfcomm?

BR,
Mikko

mshawky

5 years ago

Yes I have read this

Yes I have read this
http://www.gurux.fi/bluetooth

I am not using hcitool.. I connected to my bluetooth device using serial port profile with UUID 00001101-0000-1000-8000-00805F9B34FB and now it is connected but I can't find any com port to connect like the example mentioned

Profile picture for user Kurumi

Kurumi

5 years ago

Hi,

Hi,

For some reason, I didn’t realize you were using Android. Check this:
https://github.com/Gurux/Gurux.DLMS.Android

It uses Gurux serial port for Android:
https://github.com/Gurux/gurux.serial.android

BR,
Mikko

mshawky

5 years ago

Hi

Hi

I did check the gurux dlms android code it is using gurux serial port through usb host It has no code related to bluetooth connection

I actually have two problems
1. What is the use of the Media Interface and what is the use of getSynchronous() function
2. The steps in GXDLMS client are vague I really cannot go through the steps

and Thanks in advance

Profile picture for user Kurumi

Kurumi

5 years ago

Hi,

Hi,

I'm sorry. Too many questions at the same time. You can't use Android serial port with Bluetooth.

You can use what communication channel to send data. getSynchronous is used to indicate that the received data is reply. If it's not received data is sent through OnReceived-method.

If you know what you want to read from the meter you don't need to read the association view. Until that you need to call all the functions. DLMS is not an easy protocol and you need to establish the connection as implemented client example. You can save the association view and you don't need to read al the data if you don't want to.

BR,
Mikko

mshawky

5 years ago

Thanks for your answers

Thanks for your answers
I know the questions are too many but I have been stuck for many days regarding this

So the only way I can use Bluetooth with GXDLMS client is to implement my own GXDLMS client after bluetooth connection right?

do I have to implement IGXMedia in case of using Bluetooth?
If not what are the steps because in the Android DLMS Client there are lots of code which is very confusing for me

Profile picture for user Kurumi

Kurumi

5 years ago

Hi,

Hi,

You don't need to do anything for GXDLMSClient. It just generates and parses the bytes. You need to send generated bytes using Bluetooth connection to the meter. When you receive data from the meter you give it to the GXDLMSClient using GetData -method.

BR,

Mikko

itcoder

4 years 5 months ago

In reply to Thanks for your answers by mshawky

Hi mshawky. I am now trying

Hi mshawky. I am now trying to use Bluetooth with Gurux on a Xamarin Forms C# application. Did you make any progress with this? I am also unsure if I need to implement IGXMedia for Bluetooth, thanks!

Profile picture for user Kurumi

Kurumi

4 years 5 months ago

In reply to Hi mshawky. I am now trying by itcoder

Hi,

Hi,

You need to implement your own media for Bluetooth. We are planning to add support for Bluetooth at some point. The easiest way to go is if you use GXSerial as a template and modify it for your needs.

BR,
Mikko

sandeep007

4 years 2 months ago

In reply to Thanks for your answers by mshawky

Hi mshawky,

Hi mshawky,
Have u implemented the Bluetooth with GXDLMS please let me know and i am facing issue while connecting to BLE module to read & write EnegryMeters.

delanou

1 year ago

Did you have any update?

Did you have any update?

Profile picture for user Kurumi

Kurumi

1 year ago

Hi, At the moment Bluetooth…

Hi,

At the moment Bluetooth is implemented for Xamarin, but not Android Studio.

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 05/20/2025 - 08:40
    gurux.dlms.c 9.0.2505.2001
  • Mon, 05/19/2025 - 10:19
    gurux.net.java 1.0.30
  • Mon, 05/19/2025 - 10:00
    gurux.dlms.c 9.0.2505.1901
  • Thu, 05/15/2025 - 16:26
    gurux.dlms.c 9.0.2505.1501
  • Wed, 05/14/2025 - 08:30
    gurux.dlms.c 9.0.2505.1401

New forum topics

  • HDLC Adress resolver configuration
  • Reading all "Data" object type parameter together
  • com_read getting failed for billing profile and instantaneous profile
  • Simulator connection closed
  • Regarding the dlms android project
More

Who's new

  • peters1
  • Basv@1
  • ferduif
  • ymgr86
  • blazeparker
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin