scooterhacking / scooterhacking-issues-public

GitHub Issues for bug reports and feature requests for Scooterhacking Tools
11 stars 0 forks source link

BUG: System Crash when Driving with Apps connected #97

Closed Z1mmb0 closed 1 week ago

Z1mmb0 commented 3 months ago

Scooterhacking Tool

Firmware (SHFW)

Type of issue

Crash

Severity of issue

high (major functionality broken, no workaround)

SHUT Version

latest with 3.7.2

SHFW Version

3.7.2

Scooter model

Xiaomi Pro, Pro2, 1s, essential, 3

Description of the Bug

Might only happen with Apps connected via BT.

It seems there several grades of severeness. Reproduceability unknown.

Grade1: Scooter has hickups while driving. Means the throttle signal suddenly disappears. Does not happen frequently.

Grade2: System crashes. Dash stays on and switches to Drive Mode. Also battery bar is not visible anymore. Speed shows constant 0 also when in movement. Connecting to SHU, m365 Dash, Scootbatt works, but no readout of any data. no versions, no bms info.

Scooter still can be charged while in error state -> bms still active.

No possibility to shut down scooter via powerbutton.

Healing: Disconnect battery and let ESC fully discharge.

Steps to Reproduce

Precondition:

-Original Dashboard -3rd party replacement ESC "V3.0" (so basically 2.0/2.1 controller?) with STM32 MCU -48V battery with Xiaomi compatible BMS

2 Scenarios:

  1. Connect to SHU
  2. Switch profile (No speed limit + FWk active)
  3. Close SHU
  4. Pair with M365Tools (headlight toggle)
  5. Start recording with m365tools
  6. Drive and wait for hickups. might take 5-10 minutes

Or:

  1. Connect to SHU
  2. Switch Profile
  3. Go to Tools Tab
  4. Open scootbatt through SHU
  5. Scootbatt autoconnects
  6. Drive and have a look on scootbatt dashboard
  7. Sometimes the shown power is stuck. Especially on negative reading, e.g. -83W
  8. After 5-10 minutes System crashes
  9. reconnect battery
  10. system is running again

reproduceability unknown.

Expected vs. Actual Behavior

Expected: Scooter drives just fine when apps are connected.

Actual: -Hickups while driving -Total crash of ESC while driving

Contact Information

discord: zimmbo

Z1mmb0 commented 3 months ago

couldn't reproduce it today when trying with the app 'm365 dashboard' though.

Z1mmb0 commented 3 weeks ago

didnt have any issues since. still using just the app 'm365dashboard' instead as its too scary to try to reproduce with scootbatt.

also with 3.9.1 no problems so far.