BMS App with bluetooth BLE connection

Hi everybody,

currently I am trying to develop a new app for JBD smart BMS devices.

The problem is I need BLE in my app to talk to the device. I searched a lot but only found this: Deprecation notice: bluez, gnutls, qtconnectivity, qtsysteminfo, repomd-pattern-builder

I am trying to use this example, but it fails to compile: GitHub - llewelld/harbour-ble_scanner at qbluetooth-to-bluez

Does anyone have a working BLE app example?

Best regards from germany,
Jens

It’s not an example as such, rather a full app but Amazfit does BLE and IIRC has a c++ wrapper library to make things easier.

2 Likes

Hi, I have created Skruuvi, It uses bleak Python library to communicate with Ruuvi sensors over BLE.

Recently, I also implemented background scanning of BLE advertisements in C++ using BlueZ over D-Bus. It’s still a work in progress (the backend is functional, but the UI is still in development). This feature can currently be found in the background_scanning branch.

If you need help, feel free to drop me a PM—I’m happy to assist!

5 Likes

For what it’s worth I’ve updated the example you linked to, @John944s2, so it now compiles and runs. I’m sure the other examples are better references though.

I can also point you to Contrac, a Sailfish implementation of the Covid contact tracing standard, which uses BLE scanning heavily. For the first implementation I used Amazfit as a reference, so I can recommend that as a good place to learn from.

1 Like

Thanks for all your suggestions guys!

I would look into Skruuvi first, because this seems to be accepted by the Jolla store.

tried JBD DP04 S007 V1.7 (comes with a basengreen 230Ah, only BLE possibel)
for handy use only overkill solar app, that work 100%

but i need a connect for raspi 4, (linux debian , arm 64)
first try was dbus serial batterie,

but that dont work for me.

the only way to connect is to use an openplotter image for raspi4, and thre is an tool named Signal K. in Signal K you kann have some plugs, on plug is named jbd overkill-bms-plugin

i tested the driver some weeks and it work 100%
watch in the different sourcecodes. :wink:

cheers

PS: the rapsi driver only READ values, the dbus serial batterie driver shoud be write too, shoul be used for victron stuff . i used Venus oS on raspy cause i havnt a cerbo GX, but how i said, that not work for me.