diy solar

diy solar

MODBus Communication to JBD BMS

dhruv_pareek

New Member
Joined
Jun 20, 2024
Messages
5
Location
Los Angeles/SF
Hello, I am trying to use a microcontroller (specifically an Espressif ESP32 with an RS485 MAX module) to communicate over MODBus to my JBD BMS (model name: JBD-AP21S001) but I am having issues getting this to work.

I understand that there is an RS485 Communication Module that JBD sells with the BMS (https://www.aliexpress.com/i/3256804168676247.html?gatewayAdapt=4itemAdapt#nav-specification). Is MODBus communication to the BMS only possible by purchasing this module? Or is this module only necessary if you desire to communicate with the BMS through your laptop?

The RS485 port on the JBD BMS only has two pins built in for A and B, just connecting my RS485 MAX module to the two A and B pins of the RS485 port of the BMS does not work properly. I also tried to solder on wires to what looks like a ground and BAT+ label of the RS485 port, then connect these wires to the GND and 5V of the ESP32, however this does not work properly either.

So do I need the RS485 Communication Module that JBD sells with the BMS (https://www.aliexpress.com/i/3256804168676247.html?gatewayAdapt=4itemAdapt#nav-specification) to communicate over MODBus from my ESP32 with an RS485 Max module?
 

Attachments

  • IMG_2303.JPG
    IMG_2303.JPG
    166 KB · Views: 7
I'm not sure about JBD. With JK they don't use modbus.They use their own built in protocol that is well documented. They have a so called GPS port which I heard makes TTL (3.3V!) UART available using that protocol. And Bluetooth of course.

Perhaps this is similar?
 
Hello, I am trying to use a microcontroller (specifically an Espressif ESP32 with an RS485 MAX module) to communicate over MODBus to my JBD BMS (model name: JBD-AP21S001) but I am having issues getting this to work.

I understand that there is an RS485 Communication Module that JBD sells with the BMS (https://www.aliexpress.com/i/3256804168676247.html?gatewayAdapt=4itemAdapt#nav-specification). Is MODBus communication to the BMS only possible by purchasing this module? Or is this module only necessary if you desire to communicate with the BMS through your laptop?

The RS485 port on the JBD BMS only has two pins built in for A and B, just connecting my RS485 MAX module to the two A and B pins of the RS485 port of the BMS does not work properly. I also tried to solder on wires to what looks like a ground and BAT+ label of the RS485 port, then connect these wires to the GND and 5V of the ESP32, however this does not work properly either.

So do I need the RS485 Communication Module that JBD sells with the BMS (https://www.aliexpress.com/i/3256804168676247.html?gatewayAdapt=4itemAdapt#nav-specification) to communicate over MODBus from my ESP32 with an RS485 Max module?
The max will require a gnd from the BMS you can't connect to the esp gnd (I've learnt the hard way and cooked a few max chips in the past) also make sure the Rx from the Max goes to tx on the esp and vise versa for the other wire. Set up UART debug in your code verbose logging and check what data your getting.
 
On that note, and this is probably a long shot, but I think my rackmount battery has a JBD BMS inside it. No idea what version, but it uses Bluetooth. Is it possible to switch out the BT for RS485 if I crack the case open, or can SolarAssistant talk over BT to the BMS maybe.
 
On that note, and this is probably a long shot, but I think my rackmount battery has a JBD BMS inside it. No idea what version, but it uses Bluetooth. Is it possible to switch out the BT for RS485 if I crack the case open, or can SolarAssistant talk over BT to the BMS maybe.
I think you need this :
 
I think you need this :
The esp will do the same job, likely either he has a gnd missing from the data line or the UART data lines crossed.
 
By "UART data lines crossed" do you mean that my A wire and B wire are crossed when connecting the RS485 port on the BMS to my RS485 MAX module?

Also, do you think connecting the RS485 port of the BMS to this RS485 to usb converter would work? I would like to connect this USB converter to the BMS so that I can use a MODBus simulator software on my computer to communicate with the BMS before I use the ESP32.

Edit: Got this to work using the RS485 to USB converter! I think my issue was with the ground wire. Going to try to make it work with the ESP32 next!
 
Last edited:

diy solar

diy solar
Back
Top