Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Electric Motors and Controllers
casainho   10 GW

10 GW
Posts: 4343
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Dec 09 2019 4:04am

gatorsean wrote:
Dec 09 2019 1:50am
I am trying to get throttle working on the SW102 and noticed in configscreen.c in the define section for SW102, there is only two options for the ADC (temp sensor or off):
Line 80:
FIELD_EDITABLE_ENUM("Feature", &l3_vars.ui8_temperature_limit_feature_enabled, "disable", "enable"), // FIXME, share one array of disable/enable strings

Is there some reason we cannot have all three options like 850C?
Lin 204:
FIELD_EDITABLE_ENUM("Feature", &l3_vars.ui8_temperature_limit_feature_enabled, "disable", "temperature", "throttle"), // FIXME, share one array of disable/enable strings

Thanks for any tips!
Yes, that is the issue. We need to find a way to use the same code for both displays to avoid this issues.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

Cbisbaf   10 mW

10 mW
Posts: 24
Joined: May 04 2019 3:26pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Cbisbaf » Dec 28 2019 6:45am

some pictures I did with my soldering microscope while I was breaking my sw102 sadly lifted the pad and now it wont do a thing :lol: :lol: odd though as I was only at 270 on my soldering station.might try magnet wire on the trace
Attachments
WIN_20191227_13_15_55_Pro.jpg
WIN_20191227_13_15_55_Pro.jpg (329.8 KiB) Viewed 2896 times
WIN_20191227_13_16_12_Pro.jpg
WIN_20191227_13_16_12_Pro.jpg (300.81 KiB) Viewed 2896 times
WIN_20191227_13_16_17_Pro.jpg
WIN_20191227_13_16_17_Pro.jpg (299.04 KiB) Viewed 2896 times
WIN_20191227_13_16_23_Pro.jpg
WIN_20191227_13_16_23_Pro.jpg (256.07 KiB) Viewed 2896 times
WIN_20191227_13_16_28_Pro.jpg
WIN_20191227_13_16_28_Pro.jpg (279.78 KiB) Viewed 2896 times
WIN_20191227_13_16_34_Pro.jpg
WIN_20191227_13_16_34_Pro.jpg (327.71 KiB) Viewed 2896 times
WIN_20191227_13_16_37_Pro.jpg
WIN_20191227_13_16_37_Pro.jpg (287.39 KiB) Viewed 2896 times
WIN_20191227_13_16_46_Pro.jpg
WIN_20191227_13_16_46_Pro.jpg (259.42 KiB) Viewed 2896 times
WIN_20191227_13_17_08_Pro.jpg
WIN_20191227_13_17_08_Pro.jpg (236.53 KiB) Viewed 2896 times
WIN_20191227_13_17_21_Pro.jpg
WIN_20191227_13_17_21_Pro.jpg (273.84 KiB) Viewed 2896 times
WIN_20191227_13_17_32_Pro.jpg
WIN_20191227_13_17_32_Pro.jpg (287.75 KiB) Viewed 2896 times
WIN_20191227_13_17_38_Pro.jpg
WIN_20191227_13_17_38_Pro.jpg (255.96 KiB) Viewed 2896 times
WIN_20191227_13_17_45_Pro.jpg
WIN_20191227_13_17_45_Pro.jpg (297.49 KiB) Viewed 2896 times
WIN_20191227_13_19_58_Pro.jpg
WIN_20191227_13_19_58_Pro.jpg (257.6 KiB) Viewed 2896 times
WIN_20191227_13_22_51_Pro.jpg
WIN_20191227_13_22_51_Pro.jpg (276.79 KiB) Viewed 2896 times
WIN_20191227_13_22_59_Pro.jpg
WIN_20191227_13_22_59_Pro.jpg (284.2 KiB) Viewed 2896 times
WIN_20191227_13_23_17_Pro.jpg
WIN_20191227_13_23_17_Pro.jpg (320.67 KiB) Viewed 2896 times
WIN_20191227_13_23_23_Pro.jpg
WIN_20191227_13_23_23_Pro.jpg (332.96 KiB) Viewed 2896 times
WIN_20191227_13_23_50_Pro.jpg
WIN_20191227_13_23_50_Pro.jpg (282.61 KiB) Viewed 2896 times
WIN_20191227_13_23_57_Pro.jpg
WIN_20191227_13_23_57_Pro.jpg (302.64 KiB) Viewed 2896 times
WIN_20191227_13_24_05_Pro.jpg
WIN_20191227_13_24_05_Pro.jpg (291.51 KiB) Viewed 2896 times
WIN_20191227_13_24_20_Pro.jpg
WIN_20191227_13_24_20_Pro.jpg (279.56 KiB) Viewed 2896 times
WIN_20191227_13_24_25_Pro.jpg
WIN_20191227_13_24_25_Pro.jpg (318.64 KiB) Viewed 2896 times
WIN_20191227_13_24_30_Pro.jpg
WIN_20191227_13_24_30_Pro.jpg (309.51 KiB) Viewed 2896 times
WIN_20191227_13_24_34_Pro.jpg
WIN_20191227_13_24_34_Pro.jpg (314.91 KiB) Viewed 2896 times
WIN_20191227_13_24_40_Pro.jpg
WIN_20191227_13_24_40_Pro.jpg (315.96 KiB) Viewed 2896 times
WIN_20191227_13_24_49_Pro.jpg
WIN_20191227_13_24_49_Pro.jpg (219.91 KiB) Viewed 2896 times
WIN_20191227_13_24_55_Pro.jpg
WIN_20191227_13_24_55_Pro.jpg (260.48 KiB) Viewed 2896 times
WIN_20191227_13_24_59_Pro.jpg
WIN_20191227_13_24_59_Pro.jpg (232.4 KiB) Viewed 2896 times
WIN_20191227_13_25_04_Pro.jpg
WIN_20191227_13_25_04_Pro.jpg (269.6 KiB) Viewed 2896 times

Cbisbaf   10 mW

10 mW
Posts: 24
Joined: May 04 2019 3:26pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Cbisbaf » Dec 28 2019 6:49am

some more
Attachments
WIN_20191227_13_25_06_Pro.jpg
WIN_20191227_13_25_06_Pro.jpg (275.69 KiB) Viewed 2896 times
WIN_20191227_13_25_08_Pro.jpg
WIN_20191227_13_25_08_Pro.jpg (255.55 KiB) Viewed 2896 times
WIN_20191227_13_25_13_Pro.jpg
WIN_20191227_13_25_13_Pro.jpg (235.05 KiB) Viewed 2896 times
WIN_20191227_13_25_14_Pro.jpg
WIN_20191227_13_25_14_Pro.jpg (234.68 KiB) Viewed 2896 times
WIN_20191227_13_25_20_Pro.jpg
WIN_20191227_13_25_20_Pro.jpg (235.51 KiB) Viewed 2896 times
WIN_20191227_13_25_25_Pro.jpg
WIN_20191227_13_25_25_Pro.jpg (242.71 KiB) Viewed 2896 times
WIN_20191227_13_25_29_Pro.jpg
WIN_20191227_13_25_29_Pro.jpg (280.85 KiB) Viewed 2896 times
WIN_20191227_13_25_32_Pro.jpg
WIN_20191227_13_25_32_Pro.jpg (305.83 KiB) Viewed 2896 times
WIN_20191227_13_25_38_Pro.jpg
WIN_20191227_13_25_38_Pro.jpg (277.06 KiB) Viewed 2896 times
WIN_20191227_13_26_45_Pro.jpg
WIN_20191227_13_26_45_Pro.jpg (300.88 KiB) Viewed 2896 times
WIN_20191227_13_26_54_Pro.jpg
WIN_20191227_13_26_54_Pro.jpg (272.82 KiB) Viewed 2896 times
WIN_20191227_13_27_04_Pro.jpg
WIN_20191227_13_27_04_Pro.jpg (288.25 KiB) Viewed 2896 times
WIN_20191227_13_27_23_Pro.jpg
WIN_20191227_13_27_23_Pro.jpg (287.16 KiB) Viewed 2896 times
WIN_20191227_13_27_31_Pro.jpg
WIN_20191227_13_27_31_Pro.jpg (323.3 KiB) Viewed 2896 times
WIN_20191227_13_27_38_Pro.jpg
WIN_20191227_13_27_38_Pro.jpg (271.75 KiB) Viewed 2896 times
WIN_20191227_13_32_12_Pro.jpg
WIN_20191227_13_32_12_Pro.jpg (322.87 KiB) Viewed 2896 times
WIN_20191227_13_32_17_Pro.jpg
WIN_20191227_13_32_17_Pro.jpg (315.22 KiB) Viewed 2896 times
WIN_20191227_13_32_41_Pro.jpg
WIN_20191227_13_32_41_Pro.jpg (277.71 KiB) Viewed 2896 times
WIN_20191227_13_32_49_Pro.jpg
WIN_20191227_13_32_49_Pro.jpg (280.03 KiB) Viewed 2896 times
WIN_20191227_13_34_00_Pro.jpg
WIN_20191227_13_34_00_Pro.jpg (296.99 KiB) Viewed 2896 times

casainho   10 GW

10 GW
Posts: 4343
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Dec 28 2019 8:02am

Nice details :-)
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

gatorsean   10 mW

10 mW
Posts: 27
Joined: Jun 12 2019 1:28am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by gatorsean » Jan 05 2020 2:06am

Once I have compiled an SW102 FW with some modifications, how do I create the zip file for ota update? I found info on the "nrfutil pkg generate" command, but I am not sure I know how to set the options for this.

Any help documenting this step would be greatly appreciated!

stefkrger   1 mW

1 mW
Posts: 18
Joined: Dec 03 2018 11:49am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by stefkrger » Jan 12 2020 6:31am

I just did some first test rides on my TSDZ2 + SW102. Works great so far. However when I start pedaling from standing still I need around half a crank rotation until motor power kicks in. Is that normal? I thought the TSDZ2 would kick in immediatelly. Is there any setting I can use to influence that behavior?

User avatar
windburner   1 W

1 W
Posts: 53
Joined: Sep 24 2019 3:45pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by windburner » Jan 12 2020 11:56pm

stefkrger wrote:
Jan 12 2020 6:31am
I just did some first test rides on my TSDZ2 + SW102. Works great so far. However when I start pedaling from standing still I need around half a crank rotation until motor power kicks in. Is that normal? I thought the TSDZ2 would kick in immediatelly. Is there any setting I can use to influence that behavior?
Yes, it is normal and it is one of my complaints of the v0.19.0 TSDZ2 firmware, which I understand will be different in the next version which is not yet supported for the SW-102. You can change this by locating and enabling "Motor assist", but, be careful, as with this setting, the weight of the foot on the pedal can/will activate assist. I turned it off after a few minutes, as I am on a recumbent trike and the feet naturally rest on the pedals when idle, and I had a couple of (fortunately safe) surprise activations.
TerraTrike Rover Tandem - TSDZ2 48V 750W - 13AH Batteries - VLCD6-->SW102/v0.6.8 OSF-->VLCD6 -->XH18

stefkrger   1 mW

1 mW
Posts: 18
Joined: Dec 03 2018 11:49am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by stefkrger » Jan 15 2020 2:23am

So is it correct that the development for SW102 support is currently on hold?

Who was the main contributer? geeksvile?
He has not made a commit since early November and not posted here either. Did he mention somewhere that he has left the project?

obcd   100 W

100 W
Posts: 156
Joined: Jul 16 2019 3:45pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by obcd » Jan 15 2020 5:26am

https://github.com/OpenSource-EBike-fir ... -540186577

This might answer some of your questions.

Nfer   10 W

10 W
Posts: 65
Joined: Sep 17 2019 6:51am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Nfer » Jan 16 2020 8:30am

I was waiting for the SW102 flash with the phone update but it seems it is not going to happen soon. So I was thinking on giving a second try to the solderless method with a second display. But I have some questions:

1. Is it the current SW102 firmware stable and usable?
2. Is there anyone using the firmware and display for everyday commuting?
3. Where is the SW102 firmware file located?
4. Right now my motor is flashed with V0.19 using marcoq configurator. Do I have to flash it again with a base V0.19?

Thanks

hefest   100 W

100 W
Posts: 141
Joined: Jan 11 2019 4:55am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by hefest » Jan 16 2020 4:10pm

Second sw102 I ordered after frying the first, finally arrived after.
Successfully flashed as it seems "motor simulator" mode is running.
When I press the M button configuration menu appears but it disappears as soon as I release the M button.
So the configuration menu is visible only while I hold the M button. Is this normal or my unit is faulty?

Nfer   10 W

10 W
Posts: 65
Joined: Sep 17 2019 6:51am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Nfer » Jan 17 2020 3:44pm

bikelpl wrote:
Nov 11 2019 4:02am
Info screen 2 has only once entered the configuration mode for me.
I have the same.

I also noticed that, when You press M button and return to main screen , the assist level digit dissapears.
You have to press ^ or v button to change .

Image
It is an known issue

Nfer   10 W

10 W
Posts: 65
Joined: Sep 17 2019 6:51am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Nfer » Jan 23 2020 10:26am

Finished the SW102 installation with 0.19.17 display firmware and 0.19 motor version. Previously I used the VLCD5 marcoq firmware.

SW102 is nice and small, a little bit hard to read the motor watts. Down button does not work smoothly after cutting the keypad to install the firmware. I have experience all the issues commented here:

-trip distance and odometer do not have the decimal point
-the battery capacity percentage always shows 100%. I changed back to show the battery voltage

But now that the development of the SW102 has stopped I am not sure if all the investment to put this display worth it. I have bought 2 displays and the harness adapter from 8 pins to Bafang system....and at the end I prefer Marcoq firmware with the start ups configuration.
My next step will be buying a VLDC6 display and an adapter to 6 pins to put marcoq or new mbrusa implementation of the 0.20 firmware.

casainho   10 GW

10 GW
Posts: 4343
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Jan 23 2020 12:09pm

Nfer wrote:
Jan 23 2020 10:26am
But now that the development of the SW102 has stopped I am not sure if all the investment to put this display worth it.
I am being working to make it at pair with 850C firmware. I want to do it up to the end of next week.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

Nfer   10 W

10 W
Posts: 65
Joined: Sep 17 2019 6:51am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Nfer » Jan 23 2020 12:57pm

casainho wrote:
Jan 23 2020 12:09pm
Nfer wrote:
Jan 23 2020 10:26am
But now that the development of the SW102 has stopped I am not sure if all the investment to put this display worth it.
I am being working to make it at pair with 850C firmware. I want to do it up to the end of next week.
Oh, i didn't know about it. Thanks for keeping the SW102 alive! You are really pushing this project practically alone. How many hours have your days?

wildekek   1 µW

1 µW
Posts: 3
Joined: Jan 26 2020 4:27pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by wildekek » Jan 30 2020 3:31pm

casainho wrote:
Jan 23 2020 12:09pm
Nfer wrote:
Jan 23 2020 10:26am
But now that the development of the SW102 has stopped I am not sure if all the investment to put this display worth it.
I am being working to make it at pair with 850C firmware. I want to do it up to the end of next week.
I saw your fixes to master and building a release worked fine for me. I'd be happy to help test sw102_v0.6.4 and controller v0.20.0-beta.1 and give some feedback/make a PR if you'd like unless you'd recommend against it.

casainho   10 GW

10 GW
Posts: 4343
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Jan 30 2020 3:39pm

wildekek wrote:
Jan 30 2020 3:31pm
casainho wrote:
Jan 23 2020 12:09pm
Nfer wrote:
Jan 23 2020 10:26am
But now that the development of the SW102 has stopped I am not sure if all the investment to put this display worth it.
I am being working to make it at pair with 850C firmware. I want to do it up to the end of next week.
I saw your fixes to master and building a release worked fine for me. I'd be happy to help test sw102_v0.6.4 and controller v0.20.0-beta.1 and give some feedback/make a PR if you'd like unless you'd recommend against it.
Yes, the firmware now builds for both SW102 and 850C. My plan is to make next release for both simultaneously. And for new features, the assist level factor from 0.001 up to 10.000, in steps of 0.001.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

Nfer   10 W

10 W
Posts: 65
Joined: Sep 17 2019 6:51am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Nfer » Jan 31 2020 8:42am

casainho wrote:
Jan 30 2020 3:39pm
wildekek wrote:
Jan 30 2020 3:31pm
casainho wrote:
Jan 23 2020 12:09pm
Nfer wrote:
Jan 23 2020 10:26am
But now that the development of the SW102 has stopped I am not sure if all the investment to put this display worth it.
I am being working to make it at pair with 850C firmware. I want to do it up to the end of next week.
I saw your fixes to master and building a release worked fine for me. I'd be happy to help test sw102_v0.6.4 and controller v0.20.0-beta.1 and give some feedback/make a PR if you'd like unless you'd recommend against it.
Yes, the firmware now builds for both SW102 and 850C. My plan is to make next release for both simultaneously. And for new features, the assist level factor from 0.001 up to 10.000, in steps of 0.001.
Great news!

casainho   10 GW

10 GW
Posts: 4343
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Jan 31 2020 8:47am

SW102 firmware working

Finally I got the SW102 firmware working for the most recent version of motor controller, the SW102 and 850C uses the same firmware base (thanks to Geeksville developer!!) and so the same motor controller firmware. I hope today to make a new firmware release for both displays, where the assist levels factor can be configured starting from 0.001 and in 0.001 steps.

This means that for instance if I do 200W of pedal human power in average, I will get assistance of motor current of 2 amps if assist level is 0.01 (0.01 * 200 = 2) and I can increment in steps of 0.001, meaning next step can be 0.011, or +10% of previous step - this should give enough granularity for users to be able to adjust for their preferred assistance level factors.

Image

Image

Image
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

casainho   10 GW

10 GW
Posts: 4343
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Jan 31 2020 10:38am

850C and SW102 displays new firmware

850C_SW102_v0.6.5

This version was developed for the TSDZ2 motor controller firmware v0.54.0 (TSDZ2-v0.54.0.hex).

Changelog:
- updated SW102 firmware, which have the same firmware base as 850C
- assist levels now with increasing steps of 0.001
- corrected Startup BOOST level

Download here: https://github.com/OpenSource-EBike-fir ... 102_v0.6.5

Follow the wiki How to install the Flexible OpenSource firmware: https://github.com/OpenSource-EBike-fir ... _wiki/wiki
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

wildekek   1 µW

1 µW
Posts: 3
Joined: Jan 26 2020 4:27pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by wildekek » Jan 31 2020 12:18pm

casainho wrote:
Jan 31 2020 10:38am
850C and SW102 displays new firmware

850C_SW102_v0.6.5

This version was developed for the TSDZ2 motor controller firmware v0.54.0 (TSDZ2-v0.54.0.hex).

Changelog:
- updated SW102 firmware, which have the same firmware base as 850C
- assist levels now with increasing steps of 0.001
- corrected Startup BOOST level

Download here: https://github.com/OpenSource-EBike-fir ... 102_v0.6.5

Follow the wiki How to install the Flexible OpenSource firmware: https://github.com/OpenSource-EBike-fir ... _wiki/wiki
Congrats, this is a huge milestone.

Nfer   10 W

10 W
Posts: 65
Joined: Sep 17 2019 6:51am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by Nfer » Jan 31 2020 12:39pm

casainho wrote:
Jan 31 2020 10:38am
850C and SW102 displays new firmware

850C_SW102_v0.6.5

This version was developed for the TSDZ2 motor controller firmware v0.54.0 (TSDZ2-v0.54.0.hex).

Changelog:
- updated SW102 firmware, which have the same firmware base as 850C
- assist levels now with increasing steps of 0.001
- corrected Startup BOOST level

Download here: https://github.com/OpenSource-EBike-fir ... 102_v0.6.5

Follow the wiki How to install the Flexible OpenSource firmware: https://github.com/OpenSource-EBike-fir ... _wiki/wiki
Great! What are the changes on the startup boost?

casainho   10 GW

10 GW
Posts: 4343
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Jan 31 2020 2:12pm

Nfer wrote:
Jan 31 2020 12:39pm
Great! What are the changes on the startup boost?
Just a correction, previously the BOOST level were a constant value while it should not, when changing the assist level.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

hefest   100 W

100 W
Posts: 141
Joined: Jan 11 2019 4:55am

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by hefest » Feb 01 2020 12:43pm

Not sure if this the correct thread to discuss this, but isn't it a bit difficult to keep track of which display firmware version works with tsdz2 firmware version?
Wouldn't it make more sense to use semantic versioning where major and minor versions are the same across the firmwares if they are compatible with each other?
For example, 1.1.X tsdz2 firmware is compatible with any 1.1.x version display firmware?

Another thing that can be improved is configuration. Instead of maintaining it on wiki which already is hard to find valid info on, keep the CONFIGURATION.md in each git branch/tag that corresponds to that version of the software and just maintain the link on Wiki to the MD file?

casainho   10 GW

10 GW
Posts: 4343
Joined: Feb 14 2011 2:43pm

Re: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

Post by casainho » Feb 01 2020 1:45pm

hefest wrote:
Feb 01 2020 12:43pm
Not sure if this the correct thread to discuss this, but isn't it a bit difficult to keep track of which display firmware version works with tsdz2 firmware version?
Wouldn't it make more sense to use semantic versioning where major and minor versions are the same across the firmwares if they are compatible with each other?
For example, 1.1.X tsdz2 firmware is compatible with any 1.1.x version display firmware?

Another thing that can be improved is configuration. Instead of maintaining it on wiki which already is hard to find valid info on, keep the CONFIGURATION.md in each git branch/tag that corresponds to that version of the software and just maintain the link on Wiki to the MD file?
I think those 2 points are good suggestions.

I think next time I will implement point 1.

Point 2, there is one thing I don't like that makes me not want to do it. As you say, is hard to find the valid info on the wiki and so I try to make the configurations page with a structure and Table of Contents at top of the page - happens that .md files do not support Table of Contents but only the wiki pages when using the Mediawiki style, so, I will keep with that.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

Post Reply