TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

hefest said:
Brlowe said:
Second I have twice had it where I turn the system on and after it is fully on I put my feet on the petals and start to petal and the motor surges the the whole system shuts off. I can repeat this continually. To fix it I have to go back into the settings menu select something then exit and restart it. I do not change anything just have to go into the menu.

Having had the similar sympthoms where my whole drive turned off several times when I start pedaling, and after 4-5 attempts I had a short on my controller power pins resulting in huge spark and melted battery terminals, I would advise you to stop using current firmware and downgrade until we have fix from casainho.

Maybe my issue was due to faulty controller but just to be on the safe side.

Mine has done the same thing, I start to pedal and the motor kicks in with lots of power then shuts off. This will repeat. I can solve it by just going into the settings menu and selecting something then backing out and restarting the system and it works.
Today I had it do a new one, I started to pedal and it went into an uncontrolled full power with out me pedaling. Did it to me twice. I was able to stop by powering down. I’m on v.0.6.8 so I’m either going back to an older version or waiting for a fix. I think the power surges today messed up my blue gear as I can feel something with pedaling now. So ordering some spares.
 
Brlowe said:
Mine has done the same thing, I start to pedal and the motor kicks in with lots of power then shuts off. This will repeat. I can solve it by just going into the settings menu and selecting something then backing out and restarting the system and it works.
Today I had it do a new one, I started to pedal and it went into an uncontrolled full power with out me pedaling. Did it to me twice. I was able to stop by powering down. I’m on v.0.6.8 so I’m either going back to an older version or waiting for a fix. I think the power surges today messed up my blue gear as I can feel something with pedaling now. So ordering some spares.
Please everyone go back to previous version!! I just removed the current firmware version.

I am having the exact same issues but I have a different firmware version because I am developing and I tough this issue was due to the new developments.

I still don't known why this happens... But I am now thinking that the new compiler version, that optimizes a lot the motor controller firmware, causes this issue - at least since I remember, I had this problem only after the last release...
 
I installed v.860C_850C_SW102_v0.6.9 to 850C display and hex 0.55.0 on tsdz2 a couple of days ago. When I turned on the display, it said TSDZ2 firmware error. I tried installing again a few times and the same message came every time.

I had previously used 850C_v0.6.4 and motor v0.53.0. I reinstalled them and everything went well without error messages.
 
Casainho, not to add complexity to your current bug-fix task.. but did you see the overrun fix code by mbrusa? He did release the files modifications few days ago..
 
Rydon said:
If you get this figured out for windows can you please document it? I would like to compile a version with my own defaults. I flash a lot of TSDZ2 motors and configuring them after flashing them is laborious.

Hi. Yes I will certainly try to document a little more on how to compile on windows, however I'm a relative beginner in the firmware, I'm more into electronics.
Not sure if you already look at this great resource
https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Development

I need to rollback version to the stable one that I'm currently using 0.6.7 motor FW 0.54
I only have 850C display so i did not use all the code and I have no means to test other displays
I followed this steps carefully. Once you get the firmware imported in your eclipse - the fun part starts.
First of all you have to install make for windows and tell eclipse about it in a build tools (put a path to the /bin folder where make lives)
Then you have to look carefully through the makefiles and correct some of the hardcoded paths there.
Depending on which version you are using there several makefiles. Make sure you found all of them.
Once your eclipse start to build the code you may find that some include files weren't found. For me it happened because Windows does not understand the syntax -I./ for the current directory I have corrected it to the syntax -I. and it started to build just fine.

I will try to document this once I have a little bit of time and once I have tested everything on my bike

P.S I also had slight trouble installing GNU MCU packs, had to clean the cache of eclipse in order to install the required MCU pack. But I guess it was just my local problem here
 
vshitikov said:
Rydon said:
If you get this figured out for windows can you please document it? I would like to compile a version with my own defaults. I flash a lot of TSDZ2 motors and configuring them after flashing them is laborious.

Hi. Yes I will certainly try to document a little more on how to compile on windows, however I'm a relative beginner in the firmware, I'm more into electronics.
Not sure if you already look at this great resource
https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Development

I need to rollback version to the stable one that I'm currently using 0.6.7 motor FW 0.54
I only have 850C display so i did not use all the code and I have no means to test other displays
I followed this steps carefully. Once you get the firmware imported in your eclipse - the fun part starts.
First of all you have to install make for windows and tell eclipse about it in a build tools (put a path to the /bin folder where make lives)
Then you have to look carefully through the makefiles and correct some of the hardcoded paths there.
Depending on which version you are using there several makefiles. Make sure you found all of them.
Once your eclipse start to build the code you may find that some include files weren't found. For me it happened because Windows does not understand the syntax -I./ for the current directory I have corrected it to the syntax -I. and it started to build just fine.

I will try to document this once I have a little bit of time and once I have tested everything on my bike

P.S I also had slight trouble installing GNU MCU packs, had to clean the cache of eclipse in order to install the required MCU pack. But I guess it was just my local problem here
You don't need Eclipse to build the code. Eclipse is needed only if you want to develop and debug.

For the ones looking to build with specific configurations, just need to edit the eeprom.h file, the default values. Then, to build the code, you just need to call the Makefile and have the GCC (compiler, etc) to build the code.
 
casainho said:
You don't need Eclipse to build the code. Eclipse is needed only if you want to develop and debug.

For the ones looking to build with specific configurations, just need to edit the eeprom.h file, the default values. Then, to build the code, you just need to call the Makefile and have the GCC (compiler, etc) to build the code.

Hi Casainho. Yes, I needed eclipse cause I wanted to get familiar with your code and probably customize it for my own use and maybe even collaborate on improvements. I'm not familiar with eclipse as I was using Keil previously but I'm slowly figuring things out. Currently we are confined in France so instead of riding bike we get to program the firmware :)
 
Hey Casainho

So I have the 0.5.0 beta 7 firmware in combination with the 850c display that was delivered by ecocycles in the us. I am totally loving it. However I don't have the street mode on my display, which I REALLY REALLY REALLY would like to have. Is there any possibility to enable it?

Regards
 
casainho said:
Brlowe said:
Mine has done the same thing, I start to pedal and the motor kicks in with lots of power then shuts off. This will repeat. I can solve it by just going into the settings menu and selecting something then backing out and restarting the system and it works.
Today I had it do a new one, I started to pedal and it went into an uncontrolled full power with out me pedaling. Did it to me twice. I was able to stop by powering down. I’m on v.0.6.8 so I’m either going back to an older version or waiting for a fix. I think the power surges today messed up my blue gear as I can feel something with pedaling now. So ordering some spares.
Please everyone go back to previous version!! I just removed the current firmware version.

I am having the exact same issues but I have a different firmware version because I am developing and I tough this issue was due to the new developments.

I still don't known why this happens... But I am now thinking that the new compiler version, that optimizes a lot the motor controller firmware, causes this issue - at least since I remember, I had this problem only after the last release...

What version should we roll back too?
 
Hi all. I've fried my controller by trying to update to v0.56 TSDZ2 FW.
ETu4coxWsAYV7fV.jpeg
ETu4cowXsAAO8Pf copy.jpg
ETu4cotWAAMmgmt copy.jpg
I have another 2 spare controllers from my old 36V motors (the dead is 48V). I've flashed the same FW and tried to run it on 48V. Everything seemed to be ok, but then the controller stopped working. Somehow it shows short circuit on battery inputs. This is really strange, since
For the TSDZ2 motor versions found on online shops (36V, 48V, 52V, whichever power in watts, with throttle or without) the motor controller electronic board is just the same.
Now I'm wondering whether or not to try my second spare 36V controller to run on 48V or replace the motor to 36V one and the battery as well and order a new 48V controller from Aliexpress. Any suggestions/thoughts?
@casainho
 
r0mko said:
Hi all. I've fried my controller by trying to update to v0.56 TSDZ2 FW.
Maybe it's your motor that has a problem? maybe one of your wadings has a short spire? People did not report here any issues with damaging the controller because of the new firmware. Unless it's your PWM got crazy because of the FW update...
 
r0mko said:
Hi all. I've fried my controller by trying to update to v0.56 TSDZ2 FW.
I removed already that firmware version. I am trying to solve the issues.

It is interesting to see how dangerous the motor control can be!! it is very easy to make a mistake on the firmware and then fire and black smoke!!
 
vshitikov said:
r0mko said:
Hi all. I've fried my controller by trying to update to v0.56 TSDZ2 FW.
Maybe it's your motor that has a problem? maybe one of your wadings has a short spire? People did not report here any issues with damaging the controller because of the new firmware. Unless it's your PWM got crazy because of the FW update...

The motor itself seems to be fine: all the windings seem to have normal resistance about 1,4 Ohms. It also reacts properly on poking with a Li-Ion 3,6V cell (jerks and tries to move). So I assume that the motor is fine.
 
casainho said:
It is interesting to see how dangerous the motor control can be!! it is very easy to make a mistake on the firmware...

It may become even more dangerous in when a bike in your room is surrounded by fragile stuff like windows, furniture and cats. I would better sacrifice a controller than hurt a living being.
 
casainho said:
it is very easy to make a mistake on the firmware and then fire and black smoke!!
The smoke was actually white. Nevertheless, I'm still stuck: should I try to run a 36V controller on 48V? Are you sure that they're all the same?
 
r0mko said:
casainho said:
It is interesting to see how dangerous the motor control can be!! it is very easy to make a mistake on the firmware...

It may become even more dangerous in when a bike in your room is surrounded by fragile stuff like windows, furniture and cats. I would better sacrifice a controller than hurt a living being.
I had already, a few times, to run VERY FAST to outside the place where I develop, because I was afraid the battery could explode. Luckily it was only really bad smell and black smoke...

You should wait for a new firmware version or try an older one, and, use a fuse in series with the battery wire to try avoid the same to happen (I would say a car fuse of 5 amps).
 
casainho said:
You should wait for a new firmware version or try an older one, and, use a fuse in series with the battery wire to try avoid the same to happen (I would say a car fuse of 5 amps).

No problem, I can build whatever firmware and flash it right away. I need my bike back as soon as possible, so I have to decide:
switch to 36V setup with the old motor, controller and battery
or
put a 36V controller with a 48V motor and run in from the 48V battery
 
vshitikov said:
r0mko said:
Hi all. I've fried my controller by trying to update to v0.56 TSDZ2 FW.
Maybe it's your motor that has a problem? maybe one of your wadings has a short spire? People did not report here any issues with damaging the controller because of the new firmware. Unless it's your PWM got crazy because of the FW update...

That's not completely true. I've fried my controller 7 days ago with the 0.55 firmware. Mentioned that few pages back.
 
hefest said:
That's not completely true. I've fried my controller 7 days ago with the 0.55 firmware. Mentioned that few pages back.
I lost track of which firmware version is working correctly. On my 4 ebikes, I have most all of them damaged so the only solution is to find and solve the issue.
 
Another thought. What if we use a 36V motor in a 48V setup? Of course, we need to limit current to, say, 10A in the firmware, but this in theory allows to run the motor at very fast RPM and finally overcome a 90 RPM cadence limitation?
 
casainho said:
hefest said:
That's not completely true. I've fried my controller 7 days ago with the 0.55 firmware. Mentioned that few pages back.
I lost track of which firmware version is working correctly. On my 4 ebikes, I have most all of them damaged so the only solution is to find and solve the issue.

The working firmware is 0.54 I can confirm. since the 0.55 0.6.8 was introduced the various random issues started to appear.
 
vshitikov said:
casainho said:
hefest said:
That's not completely true. I've fried my controller 7 days ago with the 0.55 firmware. Mentioned that few pages back.
I lost track of which firmware version is working correctly. On my 4 ebikes, I have most all of them damaged so the only solution is to find and solve the issue.
The working firmware is 0.54 I can confirm. since the 0.55 0.6.8 was introduced the various random issues started to appear.
Thanks for the feedback. I removed the release of 0.55.
 
casainho said:
vshitikov said:
The working firmware is 0.54 I can confirm. since the 0.55 0.6.8 was introduced the various random issues started to appear.
Thanks for the feedback. I removed the release of 0.55.

There's still a little jerk on 0.54 when I exit settings. Does this depend solely on TSDZ2 FW or the screen FW as well? I've built something which requires 0.54 TSDZ2 FW.
 
casainho said:
vshitikov said:
casainho said:
hefest said:
That's not completely true. I've fried my controller 7 days ago with the 0.55 firmware. Mentioned that few pages back.
I lost track of which firmware version is working correctly. On my 4 ebikes, I have most all of them damaged so the only solution is to find and solve the issue.
The working firmware is 0.54 I can confirm. since the 0.55 0.6.8 was introduced the various random issues started to appear.
Thanks for the feedback. I removed the release of 0.55.

So is the 0.55 first version with new compiler?
 
casainho said:
But I am now thinking that the new compiler version, that optimizes a lot the motor controller firmware, causes this issue - at least since I remember, I had this problem only after the last release...

Hm, an user in the german forum reported a grilled Kunteng-controller a few days ago. He used the latest Linux-SDCC version, too. The recent OSEC-firmware code has not changed since several month.
So this might be the right trace...

The link in the Kunteng Wiki leads directly to the SDCC 4.0.0 Windows version, released on Jan 30th, 2020, and I heard no problems from Windows users so far, so this might be safe?!

I'm still using the windows version 3.8.1 without problems.

regards
stancecoke
 
Back
Top