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

Does that mean that the TSDZ2-v20.1C-LCD3 version does the cruise function for you?

Or which version do you use?

Right, it has to be activated several times in the settings, under
Menu 7: Cruise Submenu number 0, and Menu 9: Street Mode Submenu number 5.

Tried everything possible, but nothing worked.
 
No, as I said, I don't know about LCD3. I have the 860C on 20.1C2-860C and cruise works. Just making sure you had all the menus addressed. The other quirk I found is that Street Mode also must be enabled for cruise to work. So all three things must be enabled in the menu to make it work.

coolheizer said:
Does that mean that the TSDZ2-v20.1C-LCD3 version does the cruise function for you?

Or which version do you use?

Right, it has to be activated several times in the settings, under
Menu 7: Cruise Submenu number 0, and Menu 9: Street Mode Submenu number 5.

Tried everything possible, but nothing worked.
 
coolheizer said:
Hello,
I am currently using the TSDZ2-v20.1C-LCD3.
Unfortunately I miss the cruise function here.
I have already tried all the settings, but neither cruise nor target speed work in this version.
Before I had tested the KT-LCD3-v0.20.0-beta.1 and the KT-LCD3-v0.19.0, Cruise ran perfectly with both versions.
Did I make a mistake while flashing?
Has Cruise been removed even though all settings are still available in the menu?
Is Cruise active again in version KT-LCD3-v20.1C.3-LCD3?

Mbrusa you write above that there will be a new version in the near future, should I wait before I flash the KT-LCD3-v20.1C.3-LCD3?
It's always a bummer to drag both bicycles up the stairs to the first floor and then to flasch at the pc.

By the way, I am otherwise very satisfied with the TSDZ2-v20.1C-LCD3, great work that is done here, thanks for that.

greeting
Karsten
Hi Karsten,
Cruise mode is present in both v20.1C and v20.1C.3 versions, it should work as 0.20 beta 1, unfortunately I don't have an LCD3 to test.
I checked, nothing has changed, the code is the same as 0.20 beta 1.
The settings are:
7.0 Enable cruise function, (1) Cruise enabled
7.1 Set speed to maintain
(0) Disabled, maintains current speed
(1) Enabled, set the speed to be maintained in 7.2 or 7.3
9.5 Cruise Enabled, (1) Cruise enabled in Street Mode

The new version will be for stock displays only.
 
Unfortunately, it doesn't work on either bike.
My settings are:
7.0: (1)
7.1: (0)
9.0: (2)
9.5: (1)

I don't know what else to try.
 
Ok so I have just installed the latest version, to my 48v 500w.. now it doesnt run at all :(
I have a display which shows a random speed 62 mph during boot.

no throttle control, and motor doesnt run when I push the peddles. :(

I have tried to reflash the original but getting a program read error. using the stprogrammer "read" I get a failed to read error. I have checked cables, and also tried the software on a different win machine.. please help, how do I unbrick this?
 
Hi all,
so I'm feeling ready to take the plunge with flashing the OSF, but also feeling nervous and apprehensive.
I've read through ALL this thread, but sadly I'm struggling to make sense of the instructions.

I have a TSDZ2 250W 36volt motor.
I have a 48volt battery
I flashed the stock 48volt firmware to the motor - that worked, sort of: the throttle is brilliant, the pedal assist is not. I have been advised to go to OSF.

1) I think I am happy with the process of flashing the motor, once I select the correct firmware file, which is which one exactly?

I have a 850c display. I am getting confused with 850 and 860 displays. They are not the same. Also different versions of the 850c display exist.
On the back of my 850c display its is this:
850c back.png

2) So, where do I find the instructions for making the flashing tool?
3) Where do I find the instructions for flashing the display?
4) Which bin file do I use, exactly?

Sorry I am being ignorant. I'm sure in my trawl I've seen a circuit for the flashing tool and I think I have the parts, but it doesn't seem to exist where I am looking. I also see mention of a Java configurator, but I'm thinking that is not for 850c?

5) Is there a youtube video somewhere of someone doing this process?

I really don't want to brick my display, I think that I need to supply the display with the battery voltage. I imagine putting that on the wrong pin will do some damage.

The pinout from my display is
850c pinout.png

I've already spent more money and time on this project than I care to think about. :roll:

I know all the information is around, but for first timers we need quite a lot of handholding really. Please forgive me in advance


Thanks for your help. :)
 
For the display flash you need a bootloader box and APT Burn Tools software.

For the motor you need a TSDZ2 programming cable (plugs into the motor speed sensor connector) and ST Micro programmer plus ST Visual programmer tools software.

You can get the hardware here and elsewhere. The software is free to download. It's all in the wiki.

The hardware is available here. See the wiki as to where to get the software. A bit of a hassle and learning curve to get started but once you have done this once it takes about 90 seconds to do again.

https://www.electrifybike.com/collections/TSDZ2-OSF-Parts

gfmoore said:
Hi all,
so I'm feeling ready to take the plunge with flashing the OSF, but also feeling nervous and apprehensive.
I've read through ALL this thread, but sadly I'm struggling to make sense of the instructions.

I have a TSDZ2 250W 36volt motor.
I have a 48volt battery
I flashed the stock 48volt firmware to the motor - that worked, sort of: the throttle is brilliant, the pedal assist is not. I have been advised to go to OSF.

1) I think I am happy with the process of flashing the motor, once I select the correct firmware file, which is which one exactly?

I have a 850c display. I am getting confused with 850 and 860 displays. They are not the same. Also different versions of the 850c display exist.
On the back of my 850c display its is this:
850c back.png

2) So, where do I find the instructions for making the flashing tool?
3) Where do I find the instructions for flashing the display?
4) Which bin file do I use, exactly?

Sorry I am being ignorant. I'm sure in my trawl I've seen a circuit for the flashing tool and I think I have the parts, but it doesn't seem to exist where I am looking. I also see mention of a Java configurator, but I'm thinking that is not for 850c?

5) Is there a youtube video somewhere of someone doing this process?

I really don't want to brick my display, I think that I need to supply the display with the battery voltage. I imagine putting that on the wrong pin will do some damage.

The pinout from my display is
850c pinout.png

I've already spent more money and time on this project than I care to think about. :roll:

I know all the information is around, but for first timers we need quite a lot of handholding really. Please forgive me in advance


Thanks for your help. :)
 
Also read this... These guys are also a good reliable vendor for TSDZ2 stuff.

https://www.eco-ebike.com/blogs/eco-cycles-instructionals/tsdz2-motor-firmware-programming
 
mrfunk said:
Ok so I have just installed the latest version, to my 48v 500w.. now it doesnt run at all :(
I have a display which shows a random speed 62 mph during boot....
This topic is for ALL displays, so which version OSF and which display have you flashed and how?
Before flashing have you read the instructions on the wiki and the manuals inside the download?
 
Elinx said:
mrfunk said:
Ok so I have just installed the latest version, to my 48v 500w.. now it doesnt run at all :(
I have a display which shows a random speed 62 mph during boot....
This topic is for ALL displays, so which version OSF and which display have you flashed and how?
Before flashing have you read the instructions on the wiki and the manuals inside the download?
Using a VLCD5 display with v20.c
Now I feel a fool.. turns out it was working, I just needed to press the peddles, as throttle was disabled.. doh

i have it set too startup in street mode AND hybrid mode, I have somehow enabled throttle. i would say that assitance when peddling feels a little flat, and only kicks in when I peddle hard and fast.

Im looking to reflash but noticed STprogrammer cant read , getting read errors is the controller protected once flashed.? or once flashed, you cant use ST programmer to read, and hence can only use the Java?

Im doing my best to understand the manual, but i cant work out how to simple select a different mode.. such as power assist. so wish there was a video.

So many questions ;) any help would be much appreciated.
 
Only way to work with VLCD5 is the Java configurator. That's why 850C or 860C is recommended. Then you flash the motor with ST-Link, the display with the bootloader, then you can make the configuration and mode changes directly through the display menus and not have to re-flash the motor like for the VLCD5.


mrfunk said:
Elinx said:
mrfunk said:
Ok so I have just installed the latest version, to my 48v 500w.. now it doesnt run at all :(
I have a display which shows a random speed 62 mph during boot....
This topic is for ALL displays, so which version OSF and which display have you flashed and how?
Before flashing have you read the instructions on the wiki and the manuals inside the download?
Using a VLCD5 display with v20.c
Now I feel a fool.. turns out it was working, I just needed to press the peddles, as throttle was disabled.. doh

i have it set too startup in street mode AND hybrid mode, I have somehow enabled throttle. i would say that assitance when peddling feels a little flat, and only kicks in when I peddle hard and fast.

Im looking to reflash but noticed STprogrammer cant read , getting read errors is the controller protected once flashed.? or once flashed, you cant use ST programmer to read, and hence can only use the Java?

Im doing my best to understand the manual, but i cant work out how to simple select a different mode.. such as power assist. so wish there was a video.

So many questions ;) any help would be much appreciated.
 
mrfunk said:
.....
Using a VLCD5 display with v20.c
Now I feel a fool.. turns out it was working, I just needed to press the peddles, as throttle was disabled.. doh

i have it set too startup in street mode AND hybrid mode, I have somehow enabled throttle. i would say that assitance when peddling feels a little flat, and only kicks in when I peddle hard and fast.

Im looking to reflash but noticed STprogrammer cant read , getting read errors is the controller protected once flashed.? or once flashed, you cant use ST programmer to read, and hence can only use the Java?

Im doing my best to understand the manual, but i cant work out how to simple select a different mode.. such as power assist. so wish there was a video.
Vlcd5 is clear, FW v0.20.1C .
This means you need some experience to change the modes with the buttons and understand what happens if you push the light button several times. Lots of practice is the only way. till you see it. After this you do it within seconds when biking :)

About the flat assistence it could be you have a bit less sensitive torquesensor.
With a software calibration it is possible to improve this.
But also in that case you must do the light button dance :) with the vlcd5

Light button dance:
-For changing E02 click 2x
-For changing E03 click 2+2 (4x)
-For changing E04 click 2+2+2 (6x)
If flashing of E0x stops, the setting is changed

Examples:
-Streetmode off (or on): Level 1 - E02 Push light 2x wait till E02 stops flashing....done
-Power mode on: Level 2 - E02 Push light 2x wait till E02 stops flashing....done
-Torque calibration (see page 4 of the manual):
Level 1 - E04 = light 2+2+2 wait for flashing, push light again 2x
read zero load (3 digits)
push horizontal pedal with full weight
read max load (3 digits)

Normaly you flash the controller with a script from the java configurator.
You eventual only need STV programmer to check the wire connection before flashing with the configurator.
The script set up al the STVP configurations with cmd.
Be sure you shut down the Windows version before you hit "compile & flash".

Stock FW is flashed with STVP setting STM8S105x4, with the Window version
OSF is flashed with STM8S105x6, with the java configurator
With the wrong setting (windows) or wrong flash sequence of the 3 tabs you got the red errors
(see the link from raylo32 for additional info about flashing)
With the java configurator this is full automated (by cmd script).
 
Elinx said:
mrfunk said:
.....
Using a VLCD5 display with v20.c
Now I feel a fool.. turns out it was working, I just needed to press the peddles, as throttle was disabled.. doh

i have it set too startup in street mode AND hybrid mode, I have somehow enabled throttle. i would say that assitance when peddling feels a little flat, and only kicks in when I peddle hard and fast.

Im looking to reflash but noticed STprogrammer cant read , getting read errors is the controller protected once flashed.? or once flashed, you cant use ST programmer to read, and hence can only use the Java?

Im doing my best to understand the manual, but i cant work out how to simple select a different mode.. such as power assist. so wish there was a video.
Vlcd5 is clear, FW v0.20.1C .
This means you need some experience to change the modes with the buttons and understand what happens if you push the light button several times. Lots of practice is the only way. till you see it. After this you do it within seconds when biking :)

About the flat assistence it could be you have a bit less sensitive torquesensor.
With a software calibration it is possible to improve this.
But also in that case you must do the light button dance :) with the vlcd5

Light button dance:
-For changing E02 click 2x
-For changing E03 click 2+2 (4x)
-For changing E04 click 2+2+2 (6x)
If flashing of E0x stops, the setting is changed

Examples:
-Streetmode off (or on): Level 1 - E02 Push light 2x wait till E02 stops flashing....done
-Power mode on: Level 2 - E02 Push light 2x wait till E02 stops flashing....done
-Torque calibration (see page 4 of the manual):
Level 1 - E04 = light 2+2+2 wait for flashing, push light again 2x
read zero load (3 digits)
push horizontal pedal with full weight
read max load (3 digits)

Normaly you flash the controller with a script from the java configurator.
You eventual only need STV programmer to check the wire connection before flashing with the configurator.
The script set up al the STVP configurations with cmd.
Be sure you shut down the Windows version before you hit "compile & flash".

Stock FW is flashed with STVP setting STM8S105x4, with the Window version
OSF is flashed with STM8S105x6, with the java configurator
With the wrong setting (windows) or wrong flash sequence of the 3 tabs you got the red errors
(see the link from raylo32 for additional info about flashing)
With the java configurator this is full automated (by cmd script).
thank you, awesome answer will have a look in the morning...

So to confirm if I wanted just to read, to confirm cable connection, could I use STM8S105x6 in the STVP?

And when you say shutdown windows version, before compile and flash, what does this mean?
 
gfmoore said:
Hi all,
so I'm feeling ready to take the plunge with flashing the OSF, but also feeling nervous and apprehensive.
I've read through ALL this thread, but sadly I'm struggling to make sense of the instructions.

I have a TSDZ2 250W 36volt motor.
I have a 48volt battery
I flashed the stock 48volt firmware to the motor - that worked, sort of: the throttle is brilliant, the pedal assist is not. I have been advised to go to OSF.

There are a few things going on here... I'll try and lay it out simply. Hopefully this makes sense!

You need to flash both the display and the motor with the open firmware. The latest from Mbrusa is here
https://github.com/emmebrusa/TSDZ2-Smart-EBike-860C/releases/tag/v20.1C.3-860C

It looks like you have the 2021 850C, so use the 850C_2021_v20.1C.2-bootloader.bin file for the display, and TSDZ2-v20.1C.3-860C.hex for the motor. Don't worry about the version differences - quite often the motor firmware can have minor updates and be a minor release version ahead of the display version. There is also the incredible TSDZ2-OSF-V20.1C.3-860C-Display-Configuration-Guide.pdf that several members here have contributed to that lays out all the options available in the firmware. It's very well documented.

So those are the files you need to flash.

Unfortunately you have what seems to be an 850C display that has a different connector what would normally be expected and what will be in the wiki. Normally I think it's assumed an 850C or 860C display is for a Bafang, so has the standard 5-pin Bafang connector. The wiring harness then would convert that, plus brake and throttle, to the TSDZ2 6 or 8-pin motor connector.
https://github.com/OpenSourceEBike/TSDZ2_wiki/wiki/Wire-860C-850C-to-TSDZ2
shows the connections between these.

In your case I think your 850C has been supplied with a connector designed to plug directly into a 6-pin TSDZ2, and I'm guessing you have a cable to connect between it and your 8-pin TSDZ2? If so then should be easy to work out the pinouts on the display from the pictures in that wiki link. You either need to make a bootloader box that includes a power supply for the display, or just use your battery and a USB-UART from a computer. TX / RX / GND from USB-UART, Battery+ and GND from battery - tie the grounds together, so 4 pins connected on the display connector.
https://github.com/OpenSourceEBike/TSDZ2_wiki/wiki/Flash-the-firmware-on-860C-850C-using-bootloader

For flashing the motor this is an easy Youtube link - https://www.youtube.com/watch?v=S2SRKu6-Qyw
And the wiki page https://github.com/OpenSourceEBike/TSDZ2_wiki/wiki/Flash-the-firmware-on-TSDZ2 also has instructions.
But if you have already flashed one of the stock motor firmware's I'm assuming you know this step.
 
mrfunk said:
....
... just to read, to confirm cable connection, could I use STM8S105x6 in the STVP?
... shutdown windows version, before compile and flash, what does this mean?
Please don't quote complete messages, but just a selection before an answer

You must understand that there are two GUI versions of STVP (Windows and Command line) but they use the same sources.
This is why you can only work with one Gui version and have to close the windows Gui

If you only want to confirm cable connection you start up STVP, check/change above for "STM8S105x6"
Choose under the tab you want to see and hit "read current tab" above
If you see a new reading without red signs your connection is OK
If you want to flash with java configurator, shut down STVP
And push "compile & flash" inside th java configurator

For restoring your backup with STVP, you must change to "STM8S105x4"
For the right sequence, read the pages inside the (mentioned before) link of raylo32
 
Blacklite said:
There are a few things going on here... I'll try and lay it out simply. Hopefully this makes sense!
It does, ta!

Unfortunately you have what seems to be an 850C display that has a different connector what would normally be expected and what will be in the wiki. Normally I think it's assumed an 850C or 860C display is for a Bafang, so has the standard 5-pin Bafang connector. The wiring harness then would convert that, plus brake and throttle, to the TSDZ2 6 or 8-pin motor connector.
https://github.com/OpenSourceEBike/TSDZ2_wiki/wiki/Wire-860C-850C-to-TSDZ2
shows the connections between these.

That's the pic I needed. I can now use a breadboard and meter and check what's going on.

In your case I think your 850C has been supplied with a connector designed to plug directly into a 6-pin TSDZ2, and I'm guessing you have a cable to connect between it and your 8-pin TSDZ2? ...

You either need to make a bootloader box that includes a power supply for the display, or just use your battery and a USB-UART from a computer. TX / RX / GND from USB-UART, Battery+ and GND from battery - tie the grounds together, so 4 pins connected on the display connector.

https://github.com/OpenSourceEBike/TSDZ2_wiki/wiki/Flash-the-firmware-on-860C-850C-using-bootloader
Yes that's what I'm going to do. Just trying to decide whether to splice into the existing cable - which I'll need to do for the brake anyway - and make a permanent connection for my homemade bootloader box, as it seems from the thread that the 850c display is still in a state of flux, as is the motor firmware, so it seems that flashing will be done frequently for a little while.

I think trying to find the proper cable would be a good option for the future, so if anyone knows of a UK supplier (or Aliexpress) please let me know. (I'm in UK so shipping costs from US are horrendous).

I'm thinking that since I really want to keep the throttle control that an internal temperature sensor won't work. So I bought a small external digital thermometer. I know it won't be accurate, especially as attached to outside of motor, but at least I can see what is happening. Suggestions as to the best adhesive to use that can be easily cleaned off, or at least scraped off? I have the high temp silicon adhesive, but just wondering what sort of mess it leaves if I want to remove it (especially when baked!!!)

(Re throttle I've made a (2 button) push button version as I couldn't figure out how to mount the supplied controller. (Just a resistor divider network as per https://endless-sphere.com/forums/v...id=ca58524e424972aab6bb7ae767539374#p1368975 ). It's quite cool and (er) can be discreetly hidden under the handlebar :) I measured an output voltage range of 0.82volt to 3.55volt from the sensor, though the input voltage was 4.3volt - I was expecting 5v??)

Do I understand correctly that once the 850c is flashed you can't go back to a stock version?

Thankyou for your explanations and the time you took to write it, and also @raylo32 and everyone else. Hopefully by the end of next week I'll be in business and then I can find out why my assist at the pedals won't assist as much as I had hoped - and that was where I came in.

Gordon
 
Hello everyone, i need your help because im out of ideas :D I bought TSDZ2 with VLCD5 and replaced it with LCD3, first it didnt wanted to work, someone told me its because of old controller in my motor, so i bought another one, on this controller it worked, but i couldnt use up/down arrows to change assist,it turned out that my buttons are wired differently to the microcontroller than they were in the source code, so I changed pins.h and compiled it. Now the buttons work, but after a moment of changing the settings, the up arrow stops working, after restarting the screen looks like it has no connection to the engine. I have no idea what to do now, i tried 0.19 and 0.2, on both i have same issue. Please help :(
 
Must say I’m so impressed with this firmware !

I’m using hybrid mode on boot.

The only I want is a way to lock this down, so I can’t press the wrong button and alter the paremeters when I’m out? As I just did this and got into a real mess 😒
 
mrfunk said:
...
I’m using hybrid mode on boot.....
The only I want is a way to lock this down, .....
If you are satisfied with the settings and you don't want to change anything, you must must setup all the desired settings inside the java configurator, uncheck "set parameters on startup" and flash the controller.
After this, all settings are locked and it is not possible to change the E0x modes.
Personally, I don't find this useful, because switching street mode on/off, for example, is no longer possible.

Imho easier is to setup your ideal settings and if you don't want the risc to change something which you don't like.
You can enter "Level 0-E02" set parameter off (Level 0, 2x wait for flashing E02) to prevent this or ......
As long as you stay away from "Level 0 - E04"
Switch motor off/on and your configurator settings are back.
 
Elinx said:
mrfunk said:
...
I’m using hybrid mode on boot.....
The only I want is a way to lock this down, .....
If
Personally, I don't find this useful, because switching street mode on/off, for example, is no longer possible.

Imho easier is to setup your ideal settings (hybrid) and if you had change something which you don't like.
Switch motor off/on and your first settings are back.

OK so if I enable street mode and hybrid on startup, (and not lock my settings" I assume street mode is basically putting the limits on... If I did this what's the key presses to disable street mode once the unit has booted up, I'm trying not to be thick here, just find the instructions noy intuitive, sorry.
 
mrfunk said:
....
just find the instructions noy intuitive, sorry.
If you start with trying this you are right, but that is the price of using the stock display. If you want a better and maybe easier way, you must replace the display or use mspider65 bluetooth version with smartphone.

If you disable setup "parameters at startup" it is not possible to change anything, but if you enabled this setting.
You can toggle off /on streetmode with level 1 - push light 2x after bootup or while biking.

FYI
I have edited my earlier message with another option (Level 0 - push light 2x) for easier temporary locking the settings
With this option you can change street- and assistmode etc. direct after starting the motor and lock these before biking.
Switch motor off and on and you can change (& lock) again what you want.
 
Hello everybody,
I have released a new version v20.1C.1 for stock display, it is v20.1C with security updates, it is in signature.
I explain the reason for this choice.
After the suspension of the v20.1C.3 version for stock displays, I had identified a potential risk for mosfets in the "save percentage of remaining battery capacity at shutdown".
In motor.c it is the only difference with the versions for 860C and LCD3.
After this change, on the third test run before release, the controller is burned out, there are no obvious burns but one phase is shorted.
I found the brazed fuse holder probably due to bad contact with the fuse, the fuse did not blow. The resulting power surges may have caused the controller to burn out.
I'm sure there's no other reason, however I prefer to release an intermediate version and keep trying v20.1C.3-NEW for a little while longer.
If there is someone brave who wants to participate in the test I can send it in PM.
 
The engine just mounted, on the first lap it stopped working and I was left on foot ...
there are no error codes, the walk assistant works. back home I connected the accelerator and it works. Only the torsiometer does not work anymore .... I know this engine very well because I have 2 others, I opened on the engine side and there is no burn, nothing. Less than 10 km and no longer works ...
It is not the fault of the control unit (accelerator and walk assistant works) and it is not the fault of the engine ... possible that after less than 10 km the torsiometer is broken?
firmware 20 01b and 20 01C 1
 
tr8 said:
I have double leg stands mounted on my bikes. The rear wheel can therefore rotate freely when parked. If you now turn the pedals the support of the motor starts. With the new software, the support no longer stops as long as the pedals remain in rotation due to friction. The rear wheel then rotates continuously at 25 km/h without any torque acting on the pedals.

With the new software (v20.1C.1 safety updates) there is the same behavior (wheel rotates after brief pressure on the pedal permanently with 25 km/h). A test with disabled "Startup assistance without pedaling" led to the same result.
After that I installed the v20.1C again and everything works as expected.
Since no one but me seems to have the same problem, I don't think any troubleshooting is necessary. I just stick with v20.1C and everything is ok.

Best regards
Rainer
 
Back
Top