emmebrusa / TSDZ2-Smart-EBike-1

TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays
GNU General Public License v3.0
133 stars 35 forks source link

Unable to disable street mode on startup #37

Open munterkalmsteiner opened 1 year ago

munterkalmsteiner commented 1 year ago

Hi, I'm running v20.1C.2 update 1. I can compile and flash the firmware (confirmed by changing the number data of displayed at lights on from 3 to 1). However, street mode is always on on startup, even if the option is disabled. I can disable street mode on the display.

Here's my config. config.txt

emmebrusa commented 1 year ago

Are you sure? I also tried your config, it works fine. How do you deduce that Street mode is always active on startup, even when disabled?

munterkalmsteiner commented 1 year ago

After turning on the bike, the motor stops engaging at 25 km/h. When enabling parameter mode (motor support off, light on/off), and then going to eco mode (light on/off to disable street mode), I get motor support above 25 km/h. I also noticed that enabling "Set parameters on startup" does not work either. I have to enable parameter mode manually as described above. Maybe of relevance: I have a TSDZ2B, i.e. the one with the improved clutch design.

dzid26 commented 1 year ago

@munterkalmsteiner, if you happen not to clear the EEPROM when flashing (like I do), the ui8_street_mode_enabled flag and some other options will be loaded from EEPROM, and not the config anymore. So that would match your issue description.

To remember the settings you'd need to write to memory by selecting OFF mode and then 3rd option on the display :

image
munterkalmsteiner commented 11 months ago

@dzid26, I can confirm that your procedure works, i.e. after enabling streetmode and saving it as default on the screen, streetmode is enabled after a restart. If this is the intended behavior, this issue can be closed. I did not see that in the documentation, though...