Search found 34 matches

by Zelenaar
Feb 27 2020 12:24pm
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 4978
Views: 349182

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Does anyone know where I can get the init packet file for the SW102 firmware update from? Both nRF Toolbox and nRF Connect (both from the play store) ask for this file now and won't download the .hex file to the SW102 over Bluetooth without it. Unless I missed some updates the OTA initial install i...
by Zelenaar
Feb 27 2020 10:14am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 4978
Views: 349182

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

but it looks like temperature cant be seen at all on 0.6.7 sw102. Or you don't know how to read the instructions on the wiki. I just went through wiki again and can't find anything that points to the way to set sw102 display so I can see current temperature. Am I reading wrong wiki? https://github....
by Zelenaar
Feb 25 2020 3:49am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 4978
Views: 349182

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Hi Guys, I am building my electric mountainbike and really hesitate between an TSDZ2 with cfw or a BBS02. I understand TSDZ2 is maybe a bit less reliable, especially blue gear, and less powerful, but the feeling is better, as the power given by motor is really synchronized with the effort on pedals...
by Zelenaar
Feb 21 2020 11:03am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 4978
Views: 349182

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Dear All, Need some help with the sw102 0.6.7 firmware. ... I don't find the way how to enter the configuration menus :( . ... ON/OFF quick click + long press[/i]" ... But for me this is powering off the sw102. My first 15 tries also turned the power off!!!! After some muscle memory learning I fina...
by Zelenaar
Feb 21 2020 10:44am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 4978
Views: 349182

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

some suggestions on the button usage on the sw102. The extra [M] button ont the sw102 is easier accessible during the riding than the [ON/OFF] button => could we use the shortClick [M] to switch to the second screen (or even next screens) ? + (if a 2e mode would become available) longClick [M] to sw...
by Zelenaar
Feb 21 2020 10:23am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 4978
Views: 349182

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Dear All, Need some help with the sw102 0.6.7 firmware. I was able to install succesfully the sw102-otaupdate-0.6.7.zip & TSDZ2-v0.54.0.hex (long ON/OFF press at startup is showing 0.6.7 + 0.54.0). But I don't find the way how to enter the configuration menus :( . According to the wiki it was change...
by Zelenaar
Feb 19 2020 5:10pm
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 4978
Views: 349182

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

I just released a new firmware version with the solution for saving the settings. See the wiki, I updated with the information on how to change the variables, like showing the motor temperature. [/quote] Casainho, I flashed motor en sw102 with that new firmware. But how to enter the confiuration me...
by Zelenaar
Jan 24 2020 7:16am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 4978
Views: 349182

Re: TSDZ2 mid drive -- Flexible OpenSource firmware (Casainho code only) for TongSheng TSDZ2 mid drive motor

New firmware: Motor max current and Battery max current .... Sorry, this firmware works only for 850C display as currently there is an issue with SW102 display firmware. .... Just for info. Is somebody working on the sw102 display firmware to make it compatible with this new motor firmware ? Ps : I...
by Zelenaar
May 10 2019 11:06am
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

Casainho, Nick, I created a wiki page to describe the L1, L2/L3 data structure https://github.com/OpenSource-EBike-firmware/SW102_LCD_Bluetooth/wiki/DataStructure I tried my best to grep it out of the 850c code (and motor firmware) But can you review and correct if needed. I don't know the meaning o...
by Zelenaar
May 08 2019 2:19am
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

You can find the bootloader repository on my account as a start: https://github.com/lowPerformer/SW102_Bootloader But I'm afraid this is not as simple as flashing a hex. The bootloader needs also the Softdevice S130 v2.0.1 present. Don't know which Softdevice is on the original SW102. If you ask me...
by Zelenaar
May 08 2019 2:11am
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

The device name is "Tophmi_8904". Topology Human Machine Interface, since the company is Topology Tech?? -- I don't see it listed on Bluetooth site..... or maybe I didn't search correctly?? Mine has the device name "TOPHMI_A001" with DFU available. I didn't see neither a characteristic containing t...
by Zelenaar
May 06 2019 12:11pm
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

Nick,
I opened the sw102 already this weekend based on you (previous) guideline and was able to connect the stlinkv2.
Didn't yet flash => maybe I could try the ootb DFU to flash your bootloader & app.
Do you have it in hex format so I can give it a try?
by Zelenaar
May 06 2019 3:16am
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

DFU is working Very nice Nick! Finally I received my sw102. I noticed that out of the box the dfu service is also available. Would this mean that users could flash our firmware (& bootloader) without the need of opening the sw102? (That would a huge advantage). The coming days I will start to exper...
by Zelenaar
May 03 2019 10:16am
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

Does somebody know to which GPIO the buttons are connected in the sw102 ?
by Zelenaar
May 02 2019 4:03pm
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

As I already mentioned, I would keep the software on SW102 simple, stupid. If we need some advanced features this can be done on the Smartphone App which remote controls the SW102 (f.i. heart rate sensor bound to the mobile app which sets assist levels on the SW102). I agree Android App - Display l...
by Zelenaar
May 02 2019 2:47pm
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

Because we already did some steps with the official SDK, advantages are maybe not that huge. On a fresh start, Arduino IDE would have the advantage of easy setup, easy library integration, huge set of libraries (ready to use LCD gfx lib f.i.) and it is also more beginner friendly. But no problem to...
by Zelenaar
May 02 2019 2:35pm
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

Its just the basic BLE feature. Data transmission has yet to be implemented. I don't know how long this will take. Time is the very limiting factor for me :( Nick, I think time is a limiting factor for a lot of us , same for me => it comes as it comes ;-) some post back Casainho suggested that (at ...
by Zelenaar
May 02 2019 3:15am
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

I created a new branch named SDK_12.3.0 with the "new" SW102 example code based on the SDK v12.3.0 and S130 Softdevice. The Eclipse project inludes: New Build Targets among others: flash_softdevice: flash the S130 to the SW102 via openOCD/ST-Link clone, flash_program: flash the example code via ope...
by Zelenaar
Apr 26 2019 3:01am
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

So for all people who are interested, I lost some words about setting up the development environment on Windows: https://github.com/OpenSource-EBike-firmware/SW102_LCD_Bluetooth/wiki/Setup-IDE-(Windows) If something missing, please give us a hint. :thumb: :thumb: Very nice and usefull Nick, Do you ...
by Zelenaar
Apr 25 2019 2:30am
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

Well, I am not sure all that variables represent what the name of structure represent... that was the intention but over time, may have other variables. The best way is to look at the ones that are transmitted on UART and the other ones that are shown on main screen, etc. To me a key succes factor ...
by Zelenaar
Apr 24 2019 3:03pm
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

For next steps, I would make the UART custom profile of Nordic working between the SW102 and Android app. Casainho, I agree and disagree :-) I really think the one is not excluding the other But as you mentioned "think big, start small" The Nordic UART Service (NUS) looks to be ideal for a quick im...
by Zelenaar
Apr 23 2019 6:43pm
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

Casainho, Nick, this is how I see currently the conceptual design for the ble communication & Android app. conceptual.png To facilitate the wish to have heart rate on display we could implement on the nrf51 a GATT client for the HRS profile. To comminicate with android app we could develop a GATT se...
by Zelenaar
Apr 21 2019 7:10am
Forum: Motor Technology
Topic: Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app
Replies: 417
Views: 49447

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

Nick, Casainho This is an android sample from nordic for UART https://github.com/NordicPlayground/Android-nRF-UART. I assume this is the way we need to go, receive the full buffer from the motor (as the other LCD's do). Decompose the buffer and handle the GUI part in the android app. (ps still on ho...
by Zelenaar
Apr 17 2019 2:10am
Forum: Motor Technology
Topic: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
Replies: 4978
Views: 349182

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

BTW, discussing all technical ideas and details in this thread makes it very confusing. Should we move with those details to another solution? Github maybe? Nick, indeed maybe better to create a seperated post for it "TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive mot...