BotoX / xiaomi-m365-firmware-patcher

Automatize patching of Xiaomi Mijia M365 electric scooter firmware
https://m365.botox.bz
407 stars 108 forks source link

Current minimum value on which to start charging mode #10

Closed allstone closed 5 years ago

allstone commented 6 years ago

Can you find and introduce minimum amperage value (its -0.05A - charging mode, -0.04A - comes out of charging mode) when scooter puts itself into charging mode? I mean if charging is lower than -0.05A (-0.04, -0.03, -0.02 etc) scooter does not go into charging mode and you can ride. But if its more than -0.05A (i.e. -0.05A, -0.06A, -0.1A, etc) then it puts into charging mode and you only can turn it off and on back again to ride. This would be useful to charge scooter from external battery while riding :)

allstone commented 6 years ago

updated the value - its -0.05A when the charging mode is on.

BotoX commented 6 years ago

This is set by the BMS in the BMS struct 16bit value 0x60-0x61: bitflag 0x40 = charging The ESC firmware checks this bitflag and turns on the brake light effect and disables driving, I look into patching the disable driving part. I was talking about this today in my telegram chat: https://t.me/XiaomiM365Hacking

allstone commented 6 years ago

Cool, would be nice to have a flag to disable it ;) I have joined the telegram group as well!