TSDZ8 OSF (open source firmware)

Hi,

I would like to just thank @mstrens for their continued work and support on this. I now have TSDZ8 which works fine, but I would love to be able to change watt/speed limit on the fly and manage torque sensitivity/hybrid mode at high speed.

As far as I've read the software is not yet safe enough for general use, so I will be lurking here for a while. If something needs to be tested I could do that, but I'm a bit wary of frying my motor/controller.
 
Hi,

I would like to just thank @mstrens for their continued work and support on this. I now have TSDZ8 which works fine, but I would love to be able to change watt/speed limit on the fly and manage torque sensitivity/hybrid mode at high speed.

As far as I've read the software is not yet safe enough for general use, so I will be lurking here for a while. If something needs to be tested I could do that, but I'm a bit wary of frying my motor/controller.
I've been riding with 860C display with @mstrens OSF over 1000 km and it has been working fine. My bike is in daily use. I used befoce 860C display VLCD5 while waiting 860C version to come. There was little bit jerking problems, but no controller burning or else damage.
 
I've been riding with 860C display with @mstrens OSF over 1000 km and it has been working fine. My bike is in daily use. I used befoce 860C display VLCD5 while waiting 860C version to come. There was little bit jerking problems, but no controller burning or else damage.
I can confirm that osf 860c works quite well (I set Foc to 23-24), sometimes there is a bit of jerking but it seems to me that turning it on and off again helps.
I also tested Ekd01 recently (Foc23, Dec80, Ace50, 22A 1000W Power Mode, Adc Max Tq 450, Field weakning enable) and now with Ekd01 osf also worked well, I made osf after the last update of the Emmebrusy java configurator and it probably helped because I have no major problems with jerking Tsdz8 with Ekd01.
 
Thanks to all the good work being done: after doing a couple of TSDZ2 conversions I bought a new donor for theTSDZ8 and love it except for the throttle (which I need). I tried shifting and scaling the throttle DC o/p to better fit the controller working range but it made no difference. I've never dabbled with firmware but will if a throttle fix is a practical proposition. Cheers folks!
 
Today I have tried to flash my tsdz8 with osf, but ran into a problem.

I have set up with vlcd5 and throttle. With stock firmware everything is functioning. I have first flashed updated stock firmware form ebikestuff and everything was functioning.

The next step I have flashed osf according the instructions. When I turn on the display, it shows battery only one level. Throttle is not working and when I turn the wheel- speedometer shows "0".

I have flashed back the stock firmware and again everything is functioning. I am not sure what I did wrong. Anyone had similar problem?
 
Today I have tried to flash my tsdz8 with osf, but ran into a problem.

I have set up with vlcd5 and throttle. With stock firmware everything is functioning. I have first flashed updated stock firmware form ebikestuff and everything was functioning.

The next step I have flashed osf according the instructions. When I turn on the display, it shows battery only one level. Throttle is not working and when I turn the wheel- speedometer shows "0".

I have flashed back the stock firmware and again everything is functioning. I am not sure what I did wrong. Anyone had similar problem?
I tried one VLCD5 display on the table and throttle was not working. With other VLCD throttle was working. I don't remember what firmware it was but not the latest. I also had then battery level problems with full battery.
 
I have a question about the TSDZ8 displays that are compatible with osf. I have on my TSDZ2 bike 860c and it works fine, but I had some crash accidents in the past and display is easy to damage if bicycle flips and falls on handlebars.

Therefore for my TSDZ8 build I would like to have something smaller and more discreet - like DZ40, SW102 or EKD01. VLCD6 also does the job, but lets admit it looks outdated.

I can find only on Ebikestuff EKD01 with Tongsheng firmware. Can this Bafang version display be flashed with Tongsheng firmware like we are doing for Bafang 860c displays? Thanks.
 
Hello

I would like to thank @mstrens to porting OSF on TSDZ8, great job
I have a VLCD13 display on TSDZ8, do you think OSF works with that display?
thanks
 
I think only Displays which are supported with java.configurator works with OSF and they are: VLCD5, VLCD6, XH18 and EKD01.

Then 860C display works also but it is not configured by java.configurator. I have been riding with VLCD5 display which was working (not tested throttle because I do not use it). Then @mstrens published 860C version and since I have been riding with that display.

I think @prozyc has been tested earlier VLCD5, XH18, EKD01
 
I was not satisfied to assist and I ended up to change new 860C display because existing display cables had broken insulation. I installed v20.1C.5-860C version to display and just tested it with default settings. Assist was not very good. Then I set torque calbiration enabled and there was default values for Torque adc offset 150 and Torque adc max 300. Assist was still not good. Then I set really measured values Torque adc offset 173 and Torque adc max 420. No good assist. Then I reduced the values gradually ended to Torque adc offset 15 and Torque adc max 30.

Assist get better all the time when reduced values.
No I have very small values at torque mode and assist is very good and flexible.

I wonder why Torque calibration is functioning like that.

Torque_settings.jpgTorque_assist_levels.jpg
 
Last edited:
Today I have tried to flash my tsdz8 with osf, but ran into a problem.

I have set up with vlcd5 and throttle. With stock firmware everything is functioning. I have first flashed updated stock firmware form ebikestuff and everything was functioning.

The next step I have flashed osf according the instructions. When I turn on the display, it shows battery only one level. Throttle is not working and when I turn the wheel- speedometer shows "0".

I have flashed back the stock firmware and again everything is functioning. I am not sure what I did wrong. Anyone had similar problem?
Update on my troubleshooting- I have have flashed the motor with 860c firmware and with 860c display everything works. Still I would to find why I cannot get motor to run with OSF and VLCD5 and VLCD6 displays.

I have done a short ride and I am not satisfied how the motor works. I have set in the settings values mentioned by other member, but jerking is very noticeable doing steeper climbs- it seems that the jerking appears with each pedal turn. My observations are that jerking is strongest when pedling with little force applied to pedals (for example with slowest gear). But if I constantly apply strong force to pedals, motor is seems to run smoothly. The best to see this when climbing the mountain.

Can it be that torque sensor reacting too fast? What setting parameter could somehow "average" the torque value through out the full cycle of pedal rotation?

Also, I could not find where to change FOC parameter mentioned by some forum members.

Thank you in advance for your help.
 
Hello

I would like to try OSF on my TSDZ8. The problem is that a 48V battery fits very right on my bike. I guess the motor is 48V and wouldn't work well with 36V

In any case, I'm not sure if the OSF for VLCD5 works well, without jerks

Thank you for this OSF project and its continuation to mstrens and companyHello

I would like to try OSF on my TSDZ8. The problem is that a 48V battery fits very right on my bike. I guess the motor is 48V and wouldn't work well with 36V.

In any case, I'm not sure if the OSF for VLCD5 works well, without jerks.

Thank you for this OSF project and its continuation to mstrens and company. . . .
I did not replied before because I was on a bike trip for 2 weeks. During this trip, I used a TSDZ8 with OSF 860c and a 36V battery. I expect that I did not got all the power the motor could provide but It was largely enough for my use. About jerking, I expect that it is related to the torque sensor and I will now try to find a solution.
 
I still can't understand why jerking seems to occurs sometime but not always.
It seems that once flashed, the code is not corrupted afterwards.
In 860C version, OSF never update the flash memory in the controller and mbrusa confirmed me that the parameters in 860C display are never updated based on data sent by the controller.

Anyway, during my trip, I also noticed such jerking and I noticed quite abnormal variation of the driven current.
I expect that is related to the variations of the torque during one pedal rotration.

I will try to implement the following logic and see if it help:
- OSF will measure (like now) the torque at a high frequency (19Khz) and smooth it a little. I name this the "actual" torque
- it will now also calculate the maximum of the actual value during the last pedal rotation.
- then when cadence is below some thresehold, the firmware will use only the smooth actual value (like now)
- when the cadence is higher that this thresehold, the firmware will use the maximum between the "actual" torque and the maximum calculated during the previous pedal rotation.
 
Sw102 doesn't working with tsdz8 osf.
Have you tested the C5 firmware with this OSF? We did a quick test, and it seems to be working. Both the throttle and walk assist work correctly, and the configuration menu also works correctly. We haven't tested the assistance because the motor was not installed in a bike frame.
You can see the TSDZ8 motor running with the SW102 display in the video below:

---

Regarding the 860C OSF. As mentioned by others. There are still issues with the torque sensor sensitivity/filtering. We compared TSDZ8 OSF with TSDZ2 OSF directly. The difference is very noticeable. TSDZ2 OSF must be using some filtering because it responds with a small delay to the changes in pressure applied to the pedals. The power delivery is smooth. When you stop pedaling, the motor takes a fraction of a second before responding. TSDZ8 OSF does this almost instantly. That's great, but it also causes the power delivery to be less smooth, because the torque sensor reading varies on every pedal stroke. Especially when the cadence is low.
It also looks like the power delivery is different because the torque sensor range is different. Even the highest level of assist requires more effort to get the same power as on TSDZ2 OSF.
There's also a 1000W limitation in the display. TSDZ8 should be able to reach 1200W. At least 22A. But we've seen readings as high as 24A on BMS.
 
Thanks for the info, I checked it with version 5 but it stopped on the start screen, I will upload the software to sw102 again and check it again, especially since there are 3 versions of the c5 software (c5, c5 beta and c5update 1) maybe the version I uploaded is incompatible with tsdz8. I will test all 3 options now and let you know which one works.
 
Today I have got one more strange issue with 860c OSF.

Before my ride I checked the menu settings and noticed in motor menu that l motor power is set 500w and speed limit at 25km/h. When I try to change motor power, wheel circumference or speed limit- it resets back to these values. On street mode I cannot change speed limit as well. Also I am cannot enable throttle.

But if I set lower speed then 25 or power below 500- then the value stays.

The other values for example in torque menu I was able to change.

Also two times I got the black screen with error on display. Had to turn off battery to restart display.
 

Attachments

  • PXL_20250524_143542197.jpg
    PXL_20250524_143542197.jpg
    1.5 MB · Views: 4
Today I have got one more strange issue with 860c OSF.

Before my ride I checked the menu settings and noticed in motor menu that l motor power is set 500w and speed limit at 25km/h. When I try to change motor power, wheel circumference or speed limit- it resets back to these values. On street mode I cannot change speed limit as well. Also I am cannot enable throttle.

But if I set lower speed then 25 or power below 500- then the value stays.

The other values for example in torque menu I was able to change.

Also two times I got the black screen with error on display. Had to turn off battery to restart display.
I suggest that you report this as an issue on mbrusa web site.
Here the link where you can create an issue.

On display side (860C), I did not make any changes for TSDZ8 OSF.
It seems you issue is related to the display. It should then be analysed by mbrusa.
 
Today I have got one more strange issue with 860c OSF.

Before my ride I checked the menu settings and noticed in motor menu that l motor power is set 500w and speed limit at 25km/h. When I try to change motor power, wheel circumference or speed limit- it resets back to these values. On street mode I cannot change speed limit as well. Also I am cannot enable throttle.

But if I set lower speed then 25 or power below 500- then the value stays.

The other values for example in torque menu I was able to change.

Also two times I got the black screen with error on display. Had to turn off battery to restart display.
You should go to menu then to"bike" => password change to: "no", this is the reason why you coldnt change values, throttle to working should be changed f.e to unconditional in bike menu and in motor temperature=>feature=> throttle. If you do not change the password to "no" then after changing the parameters they are restored to default and the changes are not saved
 
Last edited:
I suggest that you report this as an issue on mbrusa web site.
Here the link where you can create an issue.

On display side (860C), I did not make any changes for TSDZ8 OSF.
It seems you issue is related to the display. It should then be analysed by mbrusa.
Something similar happened, but probably slightly different:
I noticed the motor power of 500W and the speed limit of 25 km/h on the 860C about 3 times.
It happened during the past 2 weeks, so that the display reset to factory settings, 1 time after updating the motor FW without disconnecting the display.
Also, the keyboard shortcut for switching from Street mode does not work in the factory settings.
I had to update all the data again, of course, as Prozyc wrote, you need to set the Password in the Bike menu, or set the Password to no.
I did not see the black screen.
 
Back
Top