new tsdz8 pswpower

I've built the configurator on a Win10 system (find the jar file as zipped attachment). It starts properly by a simple double click, if you have installed a recent JRE (Java runtime environment) There is no need to install the JDK.
I get this output in the cmd window:

Code:
CD src
CALL clean.bat
CALL compile.bat
Copying firmware to release folder.
C:\temp\OSF-main\releases\TSDZ2-20.1C.6-0-PROGRAM.hex
COPY ..\bin\main.hex "C:\temp\OSF-main\releases\TSDZ2-20.1C.6-0.hex"
Press any key to flash... (Ctl+C to stop)

The file TSDZ8_config.hex is updated in the files_to_flash folder.
But of course I can't test, if it works properly, as I have no TSDZ8 ;)

regards
stancecoke
I installed java what you suggested but no luck. When I double click java configurator blue circle is running about half second then nothing. Jar configurator from @mstrens gives fault message.
Java properties.jpgjava don't open.jpg
 
I installed java what you suggested but no luck.
Strange, have you copied it to the main folder of the OSF project?

Which JRE version do you use? Open a CMD window and type java -version

Code:
java version "1.8.0_441"
Java(TM) SE Runtime Environment (build 1.8.0_441-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.441-b07, mixed mode)

edit: I've tested it on three different computers with three different Java versions now, it works on all systems. But you have to start it from the main folder of the OSF project, otherwise the missing folder structure will cause that the GUI doesn't pop up and the process runs in background and you have to kill it manually in the task manager.

I am afraid that some imported fields in the firmware are wrong.
We should switch to a json file for storing different setups. That would be much easier to maintain....
https://howtodoinjava.com/java/library/json-simple-read-write-json-examples/

regards
stancecoke
 
Last edited:
I just put my current meter on my bike and ride up the road. I've still got the upgraded stock firmware on it. At full acceleration the motor is pulling 1100 watts. 23ish amps at Around 50volts.
 
I just put my current meter on my bike and ride up the road. I've still got the upgraded stock firmware on it. At full acceleration the motor is pulling 1100 watts. 23ish amps at Around 50volts.
Thanks for the info. If the stock firmware allows 23 Amp, we could change the OSF TSDZ8 version to accept also 23 Amp.
 
Strange, have you copied it to the main folder of the OSF project?

Which JRE version do you use? Open a CMD window and type java -version

Code:
java version "1.8.0_441"
Java(TM) SE Runtime Environment (build 1.8.0_441-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.441-b07, mixed mode)

edit: I've tested it on three different computers with three different Java versions now, it works on all systems. But you have to start it from the main folder of the OSF project, otherwise the missing folder structure will cause that the GUI doesn't pop up and the process runs in background and you have to kill it manually in the task manager.


We should switch to a json file for storing different setups. That would be much easier to maintain....
https://howtodoinjava.com/java/library/json-simple-read-write-json-examples/

regards
stancecoke
Thank you very much @stancecoke I had your configurator in wrong folder:oop:

Although I have used TSDZ OSF six years I have never needed java configurator, I have used lately 860C display. It is so easy to make configurations straight from display.

java version "1.8.0_441"
Java(TM) SE Runtime Environment (build 1.8.0_441-b07)
Java HotSpot(TM) Client VM (build 25.441-b07, mixed mode, sharing)
 
So I first flash OSF_TSDZ8_V00_01_04.hex with j-link to TSDZ8 controller and let j-link stay connected with controller. Then I make my own configurations with java configurator. When configurations have done I push compile and flash and j-link will flash those configuration to controller. Is this right way to action?

By the way which .hex file is TSDZ8_config.hex which is also in files_to_flash folder.
 
So I first flash OSF_TSDZ8_V00_01_04.hex with j-link to TSDZ8 controller and let j-link stay connected with controller. Then I make my own configurations with java configurator. When configurations have done I push compile and flash and j-link will flash those configuration to controller. Is this right way to action?

By the way which .hex file is TSDZ8_config.hex which is also in files_to_flash folder.
First part is correct, so flash Tsdz8 with OSF_TSDZ8_V00_01_04.hex with j-link, then make your configurations with java, after compile and flash java configurator will change the hex file and match it to your settings from the configurator and save it as TSDZ8_config.hex in folder named Files_to_flash and this hex fike you have also download to tsdz8 with jlink. You dont need to stay connected to jlink after flash because, you have to download second hex file manually.
 
First part is correct, so flash Tsdz8 with OSF_TSDZ8_V00_01_04.hex with j-link, then make your configurations with java, after compile and flash java configurator will change the hex file and match it to your settings from the configurator and save it as TSDZ8_config.hex in folder named Files_to_flash and this hex fike you have also download to tsdz8 with jlink. You dont need to stay connected to jlink after flash because, you have to download second hex file manually.
Thank you, I will try tomorrow. I got segger clone today :)
 
So I first flash OSF_TSDZ8_V00_01_04.hex with j-link to TSDZ8 controller and let j-link stay connected with controller. Then I make my own configurations with java configurator. When configurations have done I push compile and flash and j-link will flash those configuration to controller. Is this right way to action?

By the way which .hex file is TSDZ8_config.hex which is also in files_to_flash folder.
The current version of TSDZ8 java configurator is made to generate a TSDZ8_config.hex file. It is not able to flash this file directly to the controller. At this stage, you have to flash the TSDZ8_config.hex file just in the same way you use for OSF_TSDZ8_V00_01_04.hex so manually with j-flash (just open TSDZ8_config.hex as data file instead of OSF_TSDZ8_V00_01_04.hex).

Later on it should be possible (in therory) to let the java configurator directly flash the configuration but it is not yet the case.

The TSDZ8_config.hex that is present on github is just an example that I generated for my own tests. You should NOT use it. E.g. I use a 36V battery currrently for testing. I activate more or less options depending on the tests I make.
 
Now java configurator does not open which is OSF main folder.
This is the one from @mstrens, this isn't working for me too. The one that I compiled is called Java_Configurator_TSDZ8.jar
But of course it is from the old commit, not from the todays commit.

I get an error compiling the source, but it works, if I ignore it :)
Code:
MESSAGE Error occured while building workspace. Details:
 message: The method isBlank() is undefined for the type String; code: 67108964; resource: C:/temp/OSF-main/tools/Java_Configurator_Source/src/TSDZ2_Configurator.java; line: 5656

Here is the newly built from today:
 

Attachments

  • Java_Configurator_TSDZ8.zip
    104.1 KB · Views: 8
Last edited:
This is the one from @mstrens, this isn't working for me too. The one that I compiled is called Java_Configurator_TSDZ8.jar
But of course it is from the old commit, not from the todays commit.

I get an error compiling the source, but it works, if I ignore it :)
Code:
MESSAGE Error occured while building workspace. Details:
 message: The method isBlank() is undefined for the type String; code: 67108964; resource: C:/temp/OSF-main/tools/Java_Configurator_Source/src/TSDZ2_Configurator.java; line: 5656

Here is the newly built from today:
Thank you @stancecoke your configurator is working.
 
I've checked and its opening without problems (also new today version) so its problem on your laptop.
I think problem is somewhere else, because @stancecoke's java configurator is working.

I don't know anything of java. Can problem be which java version code have been written. Then it works with some java version and not with another java.
 
I think problem is somewhere else, because @stancecoke's java configurator is working.

I don't know anything of java. Can problem be which java version code have been written. Then it works with some java version and not with another java.
I also think that the issue depend of the java version being used.
I just asked mbrusa how he proceed to create the jar.

I expect that mbrusa will soon deliver a configurator version that works for TSDZ2 and for TSDZ8.
It should solve this issue (I hope)
 
@mstrens wrote: When I had installed java 8 I was unable to run the .jar
Now I removed the java 8 installation and I can again run the provided .jar

I expect that you have to install "java sdk 21" and not "java 8".
I see such firmware at
https://www.oracle.com/be/java/technologies/downloads/#jdk21-windows

It exists for Linux and Mac too.

Now I am on different laptop and I installed above @mstrens suggestion of java and OSF main folder java configurator is working.

My anothrer laptop opens java configurator which is made by @stancecoke with below java version,

https://www.java.com/en/download/manual.jsphttps://www.java.com/en/download/manual.jsp


Now I ask @mstrens and @stancecoke have you been written code different java version. Or is it laptop problem?
I can maybe try different java versions with both laptops.
 
@mstrens wrote: When I had installed java 8 I was unable to run the .jar
Now I removed the java 8 installation and I can again run the provided .jar

I expect that you have to install "java sdk 21" and not "java 8".
I see such firmware at
https://www.oracle.com/be/java/technologies/downloads/#jdk21-windows

It exists for Linux and Mac too.

Now I am on different laptop and I installed above @mstrens suggestion of java and OSF main folder java configurator is working.

My anothrer laptop opens java configurator which is made by @stancecoke with below java version,

https://www.java.com/en/download/manual.jsphttps://www.java.com/en/download/manual.jsp


Now I ask @mstrens and @stancecoke have you been written code different java version. Or is it laptop problem?
I can maybe try different java versions with both laptops.
To create TSDZ8 configurator, I started copying the TSDZ2 configurator (.java file).
I just made some changes with a text editor.
Then to create the ;jar file, I installed a VSCode extension. I expect it installed java SDK21.
With this vscode extension I had just to press an icon (looking like |->) and I got a .jar file that I could dubble click to get the GUI.

If I open a cmd window and run java -version, I get the following:
Code:
C:\Users\pc>java -version
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode, sharing)
 
I made changes to java configurator and pushed compile & flash. Terminal opens:

Code:
Copying firmware to release folder.
C:\Users\A\Desktop\TSDZ8\OSF-main\releases\TSDZ2-20.1C.6-0-PROGRAM.hex
COPY ..\bin\main.hex "C:\Users\A\Desktop\TSDZ8\OSF-main\releases\TSDZ2-20.1C.6-0.hex"

But I can't find releases folder and I tried to search entire pc TSDZ2-20.1C.6-0.hex and it is not found.
 
The output in the CMD window is a relict of the TSDZ2 tool. You can ignore it. All you need is in the "files_to_flash" folder!
files to flash folder contains only OSF_TSDZ8_V00_01_04.hex and @mstrens made experimental TSDZ8_config.hex.

Or do I flash now only this ONE hex: OSF_TSDZ8_V00_01_04.hex.

Earlier instructions was to flash two files.
 
Ok, now I think right second file is TSDZ8_config.hex because it was dated to to this day. I will try that.
 
files to flash folder contains only OSF_TSDZ8_V00_01_04.hex and @mstrens made experimental TSDZ8_config.hex.

Or do I flash now only this ONE hex: OSF_TSDZ8_V00_01_04.hex.

Earlier instructions was to flash two files.
After editing the fields in the configurator, when you press compile & flash, the java configurator replaces the file file_to_flash/ TSDZ8_config.hex by a new one having the same name, the same general layout but some differences (based on the parameters you filled in). You should see that it is a new file because the date and time of last modification changed.

If the date and time of last modification did not change, then there is an issue. Do not flash the file I provided but only one that you generated.
 
Did you read the readme section that is on my github site.
It is explained. Perhaps is it not clear enough.
I have read so many instructions that I'm little bit confused. But now I think it's clear.
I flashed two files to controller and VLCD5 display opens. Motor is on the table. I turn the crank but I do not feel response.
I will continue.
 
Back
Top