TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Electric Motors and Controllers
dsjustice   1 mW

1 mW
Posts: 11
Joined: Jun 06 2014 11:58am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by dsjustice » Jan 06 2023 4:33am

mbrusa wrote:
Jan 06 2023 3:36am
Did you perhaps disconnect the battery with the display on? 860C doesn't like this.
...
If it's not there, that's the problem, so either replace the display or put an external switch, to be turned on after the display.
It was a few weeks ago, but it's easy to imagine that I cut power with the battery master switch without shutting down first. It never occurred to me that this would be a problem:-( I'll get it on the bench this weekend and check Vin as you suggest, thanks for the tip!

zachhalley@gmail.com   1 µW

1 µW
Posts: 2
Joined: Jan 08 2023 4:59pm

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by zachhalley@gmail.com » Jan 08 2023 5:09pm

Thanks so much to all contributors for this firmware, I've been running it joyously for a few hundred kms now.

I've got the VLCD6 installed at the moment but have been thinking about upgrading to a more premium display to match the firmware 8)

Does anyone know if the 25km/h speed limit that is pre flashed on the DZ40, DZ41 and SW102 displays sold by Enerprof can be overridden by this OSF? I'm thinking yes, but it would be great if someone who has done it can confirm!

kiwinigma   1 µW

1 µW
Posts: 4
Joined: Dec 27 2022 8:17pm

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by kiwinigma » Jan 08 2023 6:22pm

Elinx wrote:
Jan 05 2023 5:33am
kiwinigma wrote:
Jan 04 2023 6:32pm
...
I've been using tsdz2 with 850c display for a few weeks. I've tried installing OSF but not having any luck installing it on the display ...

I'm wondering - what happens if you install mbrusa's OSF version for "vlcd2-vlcd6-xh18"....
It depends with which firmware the 850C did run before.
There are more versions of the 850C display
- one that runs with stock Tongsheng FW, which isn't flashable
- one that run with stock Bafang FW, which isn't flashable
- one that run with stock Bafang FW, which is flashable

Only the first version can run OSF for stock display Vlcd5, Vlcd6,XH18
The second can only run with Bafang
The third can be flashed for OSF for 850C-860C-SW102, but almost isn't findable anymore

So the question is.... How did run the 850C for a few weeks before?
Have you another display with your tsdz2 and have you flashed the controller already?
Thanks Elinx

If this is true, it seems like this information should be much more front and centre so that new buyers know it may be better to choose a different display when purchasing the system with OSF in mind.

My display came with, and runs with, factory TSDZ2, and has a 6 pin cable. It came from recycle-ebike together with the motor. I could post the serial numbers from the back but not sure if that clarifies things or helps the situation.

I will try the vldc/hx18/newly 850c OSF version and see what happens

Elinx   100 kW

100 kW
Posts: 1150
Joined: Aug 09 2019 6:58am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by Elinx » Jan 08 2023 6:52pm

zachhalley@gmail.com wrote:
Jan 08 2023 5:09pm
....
Does anyone know if the 25km/h speed limit that is pre flashed on the DZ40, DZ41 and SW102 displays sold by Enerprof can be overridden by this OSF? I'm thinking yes, but it would be great if someone who has done it can confirm!
The speedlimit is programmed inside the controller and with stock FW that normally can be changed with the display if the speedlimit setting is there.
Enerprof has a different Tsdz2 controller with a fixed 25km/h limit which can't be flashed with OSF, but the display is useable for all controllers.

If the DZ40, DZ41 or SW102 are specific made for Tsdz2, you can flash OSF for stock display.
With OSF for stock Tsdz2 display you setthe speedlimit with the Java configurator independent of the display settings.

Elinx   100 kW

100 kW
Posts: 1150
Joined: Aug 09 2019 6:58am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by Elinx » Jan 08 2023 7:05pm

kiwinigma wrote:
Jan 08 2023 6:22pm
.... It came from recycle-ebike together with the motor....

I will try the vldc/hx18/newly 850c OSF version and see what happens
If this is the one you have ordered you have indeed stock FW and can flash OSF for stock display to the controller.

zachhalley@gmail.com   1 µW

1 µW
Posts: 2
Joined: Jan 08 2023 4:59pm

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by zachhalley@gmail.com » Jan 09 2023 4:58pm

Elinx wrote:
Jan 08 2023 6:52pm
The speedlimit is programmed inside the controller and with stock FW that normally can be changed with the display if the speedlimit setting is there.
Enerprof has a different Tsdz2 controller with a fixed 25km/h limit which can't be flashed with OSF, but the display is useable for all controllers.

If the DZ40, DZ41 or SW102 are specific made for Tsdz2, you can flash OSF for stock display.
With OSF for stock Tsdz2 display you setthe speedlimit with the Java configurator independent of the display settings.
Thanks for your quick reply Elinx! :bigthumb: I had thought as much, but really appreciate the confirmation before spending the $$$

dsjustice   1 mW

1 mW
Posts: 11
Joined: Jun 06 2014 11:58am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by dsjustice » Jan 09 2023 8:47pm

mbrusa wrote:
Jan 06 2023 3:36am
For flashing it is more difficult to understand what the problem is.
27.5V voltage should be fine, try 30V if you can.
Pressing the button must be very very short, otherwise the display will turn on.
When the flashing fails, you have to try to reverse TX and RX, surely you have already done it, try again.
About the components for the bootloader-box I used these:
https://github.com/OpenSourceEBike/TSDZ ... bootloader
Thanks again, great tips! I used a CP2102 USB-UART like the one you linked, and wired PL directly to the 52V battery instead of using my $.99 boost converter. After those changes, I started to observe an RX packet in the APT-BURN tool every time I clicked the controller button. It took a dozen or so tries, but I did eventually see the progress incrementing, got a good flash, and my controller is now talking successfully to my motor!

To save myself potential grief in the future: is there anything like an APT-READ tool to backup the state of the controller prior to attempting an upgrade? I've searched the thread and haven't found anything... but it's a very long thread. :-)

mbrusa   1 kW

1 kW
Posts: 485
Joined: Dec 11 2019 12:13am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by mbrusa » Jan 11 2023 4:28am

Well, I'm glad you fixed it.

With 860C it is not possible to read and save the configuration.
You need to keep a reminder of the changed parameters.

endlessolli   100 W

100 W
Posts: 134
Joined: Jul 31 2020 11:55am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by endlessolli » Jan 16 2023 8:24am

Hi @mbrusa;
I wanted to ask, if there is a chance that you bring the std. display version up to the level of the versions for the other versions?
(20.1C.2 -> 20.1C.4) Especially interesting would be the further motor optimizations you included in the 3.. and 4.. Versions.
Thanks again for this great firmware!!

mbrusa   1 kW

1 kW
Posts: 485
Joined: Dec 11 2019 12:13am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by mbrusa » Jan 17 2023 4:31am

Hi endlessolli.
I had suspended testing with the new v20.1C.5 releases in May 2022, haven't resumed them yet.
Over the past summer, I've preferred to use proven and safe versions.
This is the situation of the stock display version:
v20.1C.3 (based on mspider v13) released and withdrawn due to mosfet burn reports (I personally had never had any problems).
v20.1C.4 (based on mspider v14) never released because I happened to burn a controller.
v20.1C.5 (based on mspider v15) tested for one year and 1200 km, but I don't trust to release it, because the hidden bug that caused mosfet burning in versions 3 and 4, might still be present.
I plan on resuming testing, but I won't release it without locating the cause of the problem.

pxl666   100 W

100 W
Posts: 222
Joined: Aug 22 2019 2:53pm

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by pxl666 » Jan 17 2023 4:47am

what optimizations you refer to ?

endlessolli   100 W

100 W
Posts: 134
Joined: Jul 31 2020 11:55am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by endlessolli » Jan 17 2023 1:10pm

pxl666 wrote:
Jan 17 2023 4:47am
what optimizations you refer to ?
The optimizations @mbrusa referred to in the above post (derived from mspiders FW Versions)

endlessolli   100 W

100 W
Posts: 134
Joined: Jul 31 2020 11:55am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by endlessolli » Jan 17 2023 1:16pm

mbrusa wrote:
Jan 17 2023 4:31am
Hi endlessolli.
I had suspended testing with the new v20.1C.5 releases in May 2022, haven't resumed them yet.
Over the past summer, I've preferred to use proven and safe versions.
This is the situation of the stock display version:
v20.1C.3 (based on mspider v13) released and withdrawn due to mosfet burn reports (I personally had never had any problems).
v20.1C.4 (based on mspider v14) never released because I happened to burn a controller.
v20.1C.5 (based on mspider v15) tested for one year and 1200 km, but I don't trust to release it, because the hidden bug that caused mosfet burning in versions 3 and 4, might still be present.
I plan on resuming testing, but I won't release it without locating the cause of the problem.
Thanks for the feedback, @mbrusa.
Definetely better to have a working fw with the major improvements included
then one with some additional slight improvements which has the potential to burn the mosfets.
100% agreed

Thanks again for your work here and your save & conservative approach on releasing further iterations to the community.

pxl666   100 W

100 W
Posts: 222
Joined: Aug 22 2019 2:53pm

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by pxl666 » Jan 17 2023 5:46pm

endlessolli wrote:
Jan 17 2023 1:10pm
pxl666 wrote:
Jan 17 2023 4:47am
what optimizations you refer to ?
The optimizations @mbrusa referred to in the above post (derived from mspiders FW Versions)
you mean the post where mbrusa is listing versions? I see no list of optimizations ... could you just briefly say what are they? motor optimizations? better power management?

endlessolli   100 W

100 W
Posts: 134
Joined: Jul 31 2020 11:55am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by endlessolli » Jan 18 2023 2:37am

pxl666 wrote:
Jan 17 2023 5:46pm
endlessolli wrote:
Jan 17 2023 1:10pm
pxl666 wrote:
Jan 17 2023 4:47am
what optimizations you refer to ?
The optimizations @mbrusa referred to in the above post (derived from mspiders FW Versions)
you mean the post where mbrusa is listing versions? I see no list of optimizations ... could you just briefly say what are they? motor optimizations? better power management?
In Mbrusas post there are references to mspiders firmware versions (v13, v14, v15)
The changes behind these versions are described in the release notes of mspiders firmware:
https://github.com/TSDZ2-ESP32/TSDZ2-Sm ... e/releases
So these are further efficiency & robustnesd improvements; plus other stuff like field weakening option.

Yari   1 µW

1 µW
Posts: 1
Joined: Dec 16 2022 7:29am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by Yari » Feb 01 2023 11:38am

Hi all, just flashed with 20.1C.4-860C-update 2 on a TSDZ2B 36V with 860C all worked well but the motor is not turning even with walk mode. I have no error msg, display shows battery voltage and cadence. When I press walk mode, motor engage just a little like 2mm and stops. I have tried the different mode, even the Cadence mode doesnt work... Any thoughts on what could go wrong ?
EDIT : all good, just missed some key configuration like motor voltage. Thanks again Marco
Last edited by Yari on Feb 02 2023 8:36am, edited 1 time in total.

pxl666   100 W

100 W
Posts: 222
Joined: Aug 22 2019 2:53pm

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by pxl666 » Feb 01 2023 3:15pm

is there a simple way to a layman to change code in that way so if there is an error and override - the error goes away after 10 seconds ? now if i tear up speed sensor cable and override error i can ride but everyting is obstructed by error message ...

mbrusa   1 kW

1 kW
Posts: 485
Joined: Dec 11 2019 12:13am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by mbrusa » Feb 02 2023 10:03am

I preferred to display the error code even with "Assist with sensor error" enabled, to remind the user that the error is always present.
With XH18 there is no problem, error code and speed (or data) are in two different fields.
Do you mean that with VLCD5 and VLCD6, in the presence of an error, the data when the lights are switched on are not displayed?

pxl666   100 W

100 W
Posts: 222
Joined: Aug 22 2019 2:53pm

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by pxl666 » Feb 02 2023 11:17am

mbrusa wrote:
Feb 02 2023 10:03am
I preferred to display the error code even with "Assist with sensor error" enabled, to remind the user that the error is always present.
With XH18 there is no problem, error code and speed (or data) are in two different fields.
Do you mean that with VLCD5 and VLCD6, in the presence of an error, the data when the lights are switched on are not displayed?
vlcd6 , i have damaged speed sensor wire and it will take time to fix this . anyway, it's good to see error and then see temperature or speed / distance ... if thats possible ofkoz

nastslay   1 mW

1 mW
Posts: 10
Joined: Nov 01 2022 6:49am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by nastslay » Feb 03 2023 3:21am

Hi, is it possible that I burnt controller while messing up with the pins on st link v2?

pxl666   100 W

100 W
Posts: 222
Joined: Aug 22 2019 2:53pm

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by pxl666 » Feb 03 2023 4:18am

nastslay wrote:
Feb 03 2023 3:21am
Hi, is it possible that I burnt controller while messing up with the pins on st link v2?
you mean that you have sent voltage to different pin ?

nastslay   1 mW

1 mW
Posts: 10
Joined: Nov 01 2022 6:49am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by nastslay » Feb 03 2023 5:09am

pxl666 wrote:
Feb 03 2023 4:18am
nastslay wrote:
Feb 03 2023 3:21am
Hi, is it possible that I burnt controller while messing up with the pins on st link v2?
you mean that you have sent voltage to different pin ?
Yes :/

Jmumf   1 µW

1 µW
Posts: 1
Joined: Mar 15 2018 11:16pm

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by Jmumf » Feb 08 2023 5:52pm

If the system worked and then without changing anything "Wait TSDZ2" appeared, the display probably failed.
Did you perhaps disconnect the battery with the display on? 860C doesn't like this.
How common is this with the 860C.

I’ve had a battery disconnect while riding and it would seem that that would make the 860C fail.

How can you best avoid this problem?

dsjustice   1 mW

1 mW
Posts: 11
Joined: Jun 06 2014 11:58am

Re: TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

Post by dsjustice » Feb 08 2023 6:12pm

Jmumf wrote:
Feb 08 2023 5:52pm
If the system worked and then without changing anything "Wait TSDZ2" appeared, the display probably failed.
Did you perhaps disconnect the battery with the display on? 860C doesn't like this.
How common is this with the 860C.
FWIW, in my case everything was made right by re-flashing -- I did both the display and the motor, but in retrospect I suspect it was just a corrupted bit of flash memory in the display. Very likely caused by power interruption, but still, nice to know it didn't destroy my hardware.

Post Reply