Help/Volunteer needed with Bafang Battery / BMS

Get all your technical information about electric bikes here.
Post Reply
BotoXbz   1 W

1 W
Posts: 59
Joined: May 20 2018 7:00am

Help/Volunteer needed with Bafang Battery / BMS

Post by BotoXbz » Mar 14 2019 3:09am

Hi,

I wrote my own open source BMS firmware for the Chinese smart BMS to use it with my Xiaomi M365 electric scooter.
Details here: https://github.com/BotoX/xiaomi-m365-compatible-bms

Now I want to make it work with Bafang systems just like the original Battery/BMS from Bafang does.
In order to implement the BMS protocol from Bafang I obviously need to know what the communication looks like.

This is why I need someone with this battery/BMS to volunteer and connect a logic analyzer or two serial UART dongles (the RX part) to the two serial wires on their battery.
They'd then turn on the bike and go to the detailed battery menu on the display.
This should provide all the communication in the data dump and enable me to reverse engineer it and implement it in my own BMS firmware.

This way custom battery builds with the Chinese smart BMS could work just like original Bafang Batteries and the correct battery info is shown on the bafang display along with the other detailed info.

I believe this is the wiring harness that connects the battery to the bafang motor/display bus:
https://www.bafang-e.com/en/components/ ... xxxxx.html

This would be a cheap logic analyzer:
https://s.click.aliexpress.com/e/bn5Ru00C

Or just use two serial UART USB dongles:
https://www.ebay.com/itm/CP2102-USB-2-0 ... 1374541932

Post Reply