etransport / PySWIM

STM8 SWIM access library, BMS tester
9 stars 1 forks source link

UART BMS Communication #1

Closed MichaelCastiau closed 4 years ago

MichaelCastiau commented 4 years ago

Hello. First of all thank u for the current publishing of the Ninebot protocol details. I have been trying to create an UART connection with the internal BMS of the included battery (direct connection from USB2Serial board to BMS), without success. Do you know which hex bytes & baudrate I have to send on the UART connection to read/write registers? I have been trying without any success.

Hexs I have tried:

I don't know if I'm supposed to send the 5AA5 bytes with a direct connection to the BMS, really a bit lost here, would you mind helping?

Also some context on why I want to try this: I have bought a Ninebot some 6 months ago and have been disappointed several times by the control board, so much so that I'm working on creating a custom control board, with high quality components. The board of the first scooter burnt out a couple of weeks after purchasing and the second one a couple of months after receiving a new scooter. This board is now cast in silicone, making it impossible to carry out a repair. If I figure out the communication protocol of the included BMS, I could configure a custom control board + interface.

My plan in to replace the interface by a waterproof touchscreen, not only featuring speed & battery status, but also battery health, location services (maybe integrate with Google services?).

flowswitch commented 4 years ago

Hello. Please check this thread: https://github.com/etransport/py9b/issues/4