Its ok I have it now. I was initially using jbdbms-4-mqtt-test.py and should have used jbdbms-4-socket-2temps.py
All good thanks
All good thanks
There are versions for either output to socket or MQTT. I personally use MQTT so I can pick up data from any device without a secondary program to listen to pipe and distribute data. I then use telegraf to receive this MQTT and output to format to a database (most use influxdb) can use any other program that can read MQTT data.I think this will do what I am looking for, but wanted to ask. I will have 6 48v banks each running the Overkill Solar BMS (JDBMS). I want to be able to run a simple service process on a Raspberry Pi (Zero w, Pi 3 or Pi 4) and output the data to a socket connection UDP broadcast.
I think this will do it using the 'bdbms-16-socket-4temps.py' script.
I'll then write a program to listen for the socket data and pass it along to where i need (RabbitMQ, MQTT, SQL, etc.)
My question is, can I have multiple versions of this script running (different bluetooth addresses)? And when I output them, do they each need there own socket or can they all share the same UDP port (I assume the packets have a unique identifier for each BMS).
I do something similar with my temperature sensors. Each ESP32 just does a UDP broadcast so "anyone" on the network can use the data. I then have a separate Pi that listens for the data and populates a RabbitMQ (which then sends it to Azure for data storage).
Roy
I used to use UDP broadcasts for my old system (in an RV) but switched to MQTT at the source. I have an ESP32 on each BMS and it publishes MQTT which is picked up by a Pi4. I figure the ESP32 is the cheapest way to do a wireless connectionI think this will do what I am looking for, but wanted to ask. I will have 6 48v banks each running the Overkill Solar BMS (JDBMS). I want to be able to run a simple service process on a Raspberry Pi (Zero w, Pi 3 or Pi 4) and output the data to a socket connection UDP broadcast.
I think this will do it using the 'bdbms-16-socket-4temps.py' script.
I'll then write a program to listen for the socket data and pass it along to where i need (RabbitMQ, MQTT, SQL, etc.)
My question is, can I have multiple versions of this script running (different bluetooth addresses)? And when I output them, do they each need there own socket or can they all share the same UDP port (I assume the packets have a unique identifier for each BMS).
I do something similar with my temperature sensors. Each ESP32 just does a UDP broadcast so "anyone" on the network can use the data. I then have a separate Pi that listens for the data and populates a RabbitMQ (which then sends it to Azure for data storage).
Roy
I used to use UDP broadcasts for my old system (in an RV) but switched to MQTT at the source. I have an ESP32 on each BMS and it publishes MQTT which is picked up by a Pi4. I figure the ESP32 is the cheapest way to do a wireless connection
I probably should do MQTT ... Just never got around to switching things over, and linked the idea that any application that wanted to could just start listening without having to have a central system processing things.
I wrote my own.I probably should do MQTT ... Just never got around to switching things over, and linked the idea that any application that wanted to could just start listening without having to have a central system processing things.
What software are you using for the ESP32? Mind sharing? I have tons of ESP32's laying around and could dedicate one to each BMS.
Roy
I wrote my own.
GitHub - playersz28/JBD-ESP32: ESP32 interface for JBD BMS
ESP32 interface for JBD BMS. Contribute to playersz28/JBD-ESP32 development by creating an account on GitHub.github.com
Yes. I built a board for the ESP32 that has a voltage converter for power and then connects to the BMS serial port. Should be pics somewhere on hereOK... Looks straight forward. I see you are reading via a direct serial connection and not bluetooth. Did you just hook up the pins on the ESP32 direct to the BMS pins?
Yes. I built a board for the ESP32 that has a voltage converter for power and then connects to the BMS serial port. Should be pics somewhere on here
found it https://diysolarforum.com/threads/jbd-bms-wi-fi-module.17252/page-9#post-368757
there's a small buck converter under the ESP32