Hello Mikko Sir,
As I discussed with you regarding communicating with smart meter via BLE (Bluetooth Low Energy) in this forum: https://gurux.fi/node/34855, you gave a reference for studying : https://gurux.fi/GXDLMSDirector.Media.
As I studied it, I was unable to find any help regarding the android app Gurux.DLMS.Android. I need to implement Bluetooth media in this app.
Is there a way to do so? Please guide.
Thanks,
Kshitiz
Hi, I believe that the…
Hi,
I believe that the easier way to do it is if you use Gurux.Net.Android as a template and replace socket handling with Bluetooth communication.
BR,
Mikko
Hi Mikko Sir, Thanks for…
Hi Mikko Sir,
Thanks for the solution, but I believe using Gurux.Net.Android may cause more complications in my current code and so it might be easier for me to make Bluetooth media class (say GXBluetooth) as a replacement for GXSerial when setting media in GXDevice object : mDevice.setMedia(gxBluetooth);
Please tell if this approach is good to go. Also, I would request Gurux to implement bluetooth media in Gurux.DLMS.Android as it is much needed currently by many users. Also, it seems a bit complicated to implement this by self as I've done POC on this for a week and yet not reached any suitable outcome of development.
I'm not able to send bytes to the meter via bluetooth. I've not found any help regarding this as very few developers might have implemented this for now.
Please guide.
Thanks,
Kshitiz
Hi Kshitiz, You can also use…
Hi Kshitiz,
You can also use GXSerial as a base. Our customers haven't requested Bluetooth media at the moment, so I don't have information when it's added.
Communication with the devices can be very complicated and take a very long time.
So keep on trying. I'll ask the customers if they are interested in the Bluetooth media.
It they are, it's possible to add support to Bluetooth.
BR,
Mikko