BotoX / xiaomi-m365-firmware-patcher

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

[NEW PATCH] 10" tires speed fix #33

Open truesurge opened 5 years ago

truesurge commented 5 years ago

Since 10 inch tires have larger diameter, angular to linear speed ratio is different. M365 @1.4.0 ROM: 0x08006D44 MOVW R1,#345 And then it does two MUL using R1. ES2 does the same, but using constant 390 For 10 inch tires value 315 works just fine, Signature @1.4.0 40 F2 59 11 Fix with 315 const 40 F2 3B 11

BotoX commented 5 years ago

Nice, I'll look into adding this patch later.

noctrex commented 5 years ago

Thanks a lot @truesurge and @BotoX ! This will be a great help for us 10inchers. On a side note, I've logged over 800km with the scooter, but early on, I modded it with 10inch tires. Now the current total is not correct. Is there a way to correct it?

truesurge commented 5 years ago

There is, but it is not that easy.

BotoX commented 5 years ago

Added the patch in 7a3cbe030cf0f72dbc2d073de7b80bc0e4723c85 Give it a try here: https://m365beta.botox.bz/

noctrex commented 5 years ago

OK Thanks, starting trials today to see how it works.

noctrex commented 5 years ago

Tried it out today, flashed the following parameters, with and without the wheel speed multiplier patch, but I didn't notice any difference for the same trip I did 3 times