BBSHD Voltage Problem Firmware Update & Instructions

Discussions related to motors other than hub motors.
This includes R/C motors, botttom bracket, roller and geared drives.
BiggtBiggt   1 µW

1 µW
Posts: 1
Joined: Jul 04 2019 6:13pm

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by BiggtBiggt » Jul 04 2019 6:16pm

Has anybody had success with this on a BBS02? I have a recent build with a BBS02 and the throttle has no response while pedelling. I am hoping this might fix that issue.

User avatar
amberwolf   100 GW

100 GW
Posts: 33658
Joined: Aug 17 2009 6:43am
Location: Phoenix, AZ, USA, Earth, Sol, Local Bubble, Orion Arm, Milky Way, Local Group
Contact:

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by amberwolf » Jul 04 2019 7:55pm

This particular fix is specifically for the "overvoltage" error. It *could* fix other errors on a BBSHD, but I don't know if it will do anything for a BBS01 or BBS02, as those probably use different firmware files.

If you do try it, keep in mind you can make your controller completely inoperable, completely inaccessible, and non-reprogrammable, if anything goes wrong or your hardware is not compatible with the file you use.



The PAS vs throttle issue is a separate thing, and there are some threads for that, like this one:
viewtopic.php?f=28&t=93977
that may have a fix you can use more safely.
If you found this advice helpful, supporting contributions are accepted here.

Beginning of a New Life


Give a listen to my music!
(More here, including experimental).

User avatar
tomjasz   10 GW

10 GW
Posts: 4652
Joined: Mar 29 2014 1:45pm
Location: Out riding, MN USA
Contact:

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by tomjasz » Jul 05 2019 3:22am

BiggtBiggt wrote:
Jul 04 2019 6:16pm
Has anybody had success with this on a BBS02? I have a recent build with a BBS02 and the throttle has no response while pedelling. I am hoping this might fix that issue.
No. You’ll get to buy a new controller.
Thanks Justin_le we're here thanks to you. All the best to the mods for their tireless work keeping it on an even keel.

User avatar
fechter   100 GW

100 GW
Posts: 15748
Joined: Dec 31 2006 3:23pm
Location: California Bay Area, USA

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by fechter » Jul 05 2019 8:54am

BiggtBiggt wrote:
Jul 04 2019 6:16pm
Has anybody had success with this on a BBS02? I have a recent build with a BBS02 and the throttle has no response while pedelling. I am hoping this might fix that issue.
See this thread:
viewtopic.php?f=28&t=93977&hilit=bbshd

You can fix the problem without getting a new controller.
"One test is worth a thousand opinions"

bbshdvegas   1 µW

1 µW
Posts: 2
Joined: Jul 16 2019 2:36pm

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by bbshdvegas » Jul 16 2019 3:38pm

Hi guys, I did the firmware Update thank you! I am still perplexed on how the heck you can get my display to show MAX PAS on my DC-18 display, I want to change my PAS to 9 as well. Any suggestions or help would be greatly appreciated. :thumb:

User avatar
tomjasz   10 GW

10 GW
Posts: 4652
Joined: Mar 29 2014 1:45pm
Location: Out riding, MN USA
Contact:

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by tomjasz » Jul 16 2019 10:57pm

fechter wrote:
Jul 05 2019 8:54am
BiggtBiggt wrote:
Jul 04 2019 6:16pm
Has anybody had success with this on a BBS02? I have a recent build with a BBS02 and the throttle has no response while pedelling. I am hoping this might fix that issue.
See this thread:
viewtopic.php?f=28&t=93977&hilit=bbshd

You can fix the problem without getting a new controller.
I wish things with Bafang were as cut and dried. If I’ve learned anything, it’s there are different firmware or chips used and what works for one controller may not for another. Seems a surprise every few months. New rotor the latest.
Thanks Justin_le we're here thanks to you. All the best to the mods for their tireless work keeping it on an even keel.

User avatar
tomjasz   10 GW

10 GW
Posts: 4652
Joined: Mar 29 2014 1:45pm
Location: Out riding, MN USA
Contact:

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by tomjasz » Jul 20 2019 11:49am

stc-isp-15xx-v6.86E.exe

Anyone use any other stc file? Fellow is getting a message to use newer version.
Thanks Justin_le we're here thanks to you. All the best to the mods for their tireless work keeping it on an even keel.

furcifer   10 kW

10 kW
Posts: 652
Joined: Dec 21 2018 12:36pm

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by furcifer » Aug 04 2019 1:30pm

OK, all done now.

Thanks Amberwolf, everything worked like a charm.

I flashed both the 413 and 418 files to what I would say is probably a "newer" controller made within the last year. Both worked. For some reason my anti-virus didn't have any problem with the 413 flash, but I had to disable McAfee to flash the 418 file. Every time I tried to flash the new code it was booting me out and deleting the program. Considering how big of a no-no turning something off in mid flash is I did not brick the controller. But you may want to turn of your anti-virus preemptively.

I had to find the Luna 52Vlimitless.el file to restore the PAS 0 full throttle settings. I have no clue why this is but I suspect "user error", I think I was hitting "write" instead of "write flash" the first couple times.

I had an extra 48V error 7 controller lying around so I did the shunt mod as well. It seems to pull another 5 or 6mph on flat ground.

casainho   100 GW

100 GW
Posts: 5766
Joined: Feb 14 2011 2:43pm

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by casainho » Aug 31 2019 9:56pm

You may know I started the project for OpenSource firmware to mid drive TSDZ2 motor and our firmware is amazing (feedback from the users) and I wonder how hard would be to make for Bafang BSSHD.

I also started the OpenSource firmware for Bafang 850C color display as also the SW102/EggRider Bluetooth LCD and they work very well pairing with our firmware running on TSDZ2.

Maybe a torque sensor could be added to Bafang BSSHD, that could be strain gauge added to each pedal and communication y Bluetooth to SW102 display that would then send the cadence and torque sensor signal to Bafang BSSHD motor controller running our firmware ---- maybe this is to crazy and complex to do

What is the motor max RPM? On TSDZ2 is 4000 RPMS.

---
BotoXbz wrote:
Aug 31 2019 8:13pm
casainho wrote:
Aug 31 2019 5:07pm
Hi.

Can you guys please tell me what is the microcontroller on the motor controller board?? I saw that there are connections for 3 halls sensors from the motor + the connections of the 3 phases.
The controller on the BBSHD is garbage, it's using a Chinese STC15W4K32S4 series MCU
There is a second MCU, I think that one does the motor control and the STC probably only tells it how much current it wants
Original firmware is here: viewtopic.php?t=100064
A much better idea would be to design a good VESC controller that'd fit into the original enclosure.
And then you could do whatever you want.
Thanks for the information.

That STC15W4K32S4 is from ST, there is an English datasheet available as also a c compiler and some examples projects on github.

The c compiler is SDCC, the same we use for the TSDZ2 motor controller, which is also a microcontroller from ST.

So, even if there is other IC that specifically do the motor controller, than should be easy to understand the schematic of the motor controller and then develop the firmware, probably even more easy than the TSDZ2 or the KT Kunteng motor controllers firmware that we also developed.

Can you please tell me the me reference of the motor controller IC??
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

casainho   100 GW

100 GW
Posts: 5766
Joined: Feb 14 2011 2:43pm

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by casainho » Sep 01 2019 7:02am

I started a thread specifically for firmware development:

Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

Delerius   1 µW

1 µW
Posts: 1
Joined: Sep 04 2019 9:11am

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by Delerius » Sep 04 2019 9:13am

tomjasz wrote:
Jul 20 2019 11:49am
stc-isp-15xx-v6.86E.exe

Anyone use any other stc file? Fellow is getting a message to use newer version.
I have the same issue...

UPDATE: just figured it out... Max baud rate must be set to 57600 otherwise this is the error you get...

You can also get the latest stc @ http://www.stcisp.com/STC-ISP_update_history.html

Code: Select all

  . MCU type: IAP15W4K61S4
  F/W version: 7.2.5T

Adjusting frequency ...
Download failed ! (6.86E)(2019-09-04 09:41:38)
Please using the newest software !

dadbod   1 µW

1 µW
Posts: 1
Joined: Sep 03 2019 9:52am

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by dadbod » Sep 21 2019 12:08am

i have a new bbshd i received in aug 2019. it has 2019 date codes on it so I assume it is the new controller. I have the throttle pedal issue. Will this firmware fix that? Which one should i flash?

thanks

p913   1 µW

1 µW
Posts: 4
Joined: Sep 11 2018 5:10am

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by p913 » Oct 17 2019 3:23am

My motor has 190724.... written on the bottom which I'm guessing means its a version from July 2019.

I tried both the "5228" (52V 28A) and "4830" options (48V 30A). Both programmed successfully

I got over voltage error on 4830.

No over voltage error on 5228. However as noted by other max current is now limited to 28A (which sucks)

This did not fix throttle issues for me. I've disabled PAS by changing config options with programming cable and throttle response is nice. (But no PAS)

User avatar
tomjasz   10 GW

10 GW
Posts: 4652
Joined: Mar 29 2014 1:45pm
Location: Out riding, MN USA
Contact:

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by tomjasz » Oct 18 2019 1:30am

p913 wrote:
Oct 17 2019 3:23am
My motor has 190724.... written on the bottom which I'm guessing means its a version from July 2019.

I tried both the "5228" (52V 28A) and "4830" options (48V 30A). Both programmed successfully

I got over voltage error on 4830.

No over voltage error on 5228. However as noted by other max current is now limited to 28A (which sucks)

This did not fix throttle issues for me. I've disabled PAS by changing config options with programming cable and throttle response is nice. (But no PAS)
Who was the seller?
Thanks Justin_le we're here thanks to you. All the best to the mods for their tireless work keeping it on an even keel.

p913   1 µW

1 µW
Posts: 4
Joined: Sep 11 2018 5:10am

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by p913 » Oct 18 2019 3:14am

tomjasz wrote:
Oct 18 2019 1:30am
p913 wrote:
Oct 17 2019 3:23am
My motor has 190724.... written on the bottom which I'm guessing means its a version from July 2019.

I tried both the "5228" (52V 28A) and "4830" options (48V 30A). Both programmed successfully

I got over voltage error on 4830.

No over voltage error on 5228. However as noted by other max current is now limited to 28A (which sucks)

This did not fix throttle issues for me. I've disabled PAS by changing config options with programming cable and throttle response is nice. (But no PAS)
Who was the seller?
Luna-mate.com in Australia

User avatar
tomjasz   10 GW

10 GW
Posts: 4652
Joined: Mar 29 2014 1:45pm
Location: Out riding, MN USA
Contact:

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by tomjasz » Oct 18 2019 6:15am

No surprise, the self declared largest Bafang BBSxx series super vendor does F all to assist the market and other users. Whining like little bitches that everyone was out to get them...And with zero support changing and improving prices and service...when in fact selfish, self centered, self aggrandizing, greedy curmudgeons doing F all for Bafang BBSxx kit builders.

Sadly the parent company has the best profit margin and the worst open source assistance. Funny how that works.
Thanks Justin_le we're here thanks to you. All the best to the mods for their tireless work keeping it on an even keel.

jwunder   1 mW

1 mW
Posts: 13
Joined: Nov 13 2019 11:56pm

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by jwunder » Nov 14 2019 12:06am

I have a BBSHD with motor number 190823, bought in Oct from Amazon. In the config tool, it has the 28 amp limit and I'm pissed. Hardware v1.5. But if I returned it and got another one from another seller, I'd probably have the same issue. I guess I'll have to live with it or do the shunt mod if I want more amps. Haven't charged my 52v battery up to the max or put the motor on my bike yet. Hope I don't get the 07h error.

User avatar
fechter   100 GW

100 GW
Posts: 15748
Joined: Dec 31 2006 3:23pm
Location: California Bay Area, USA

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by fechter » Nov 14 2019 12:16am

You won't notice much difference between 28A and 30A. Consider yourself lucky if it doesn't have the jerky throttle issue.
"One test is worth a thousand opinions"

User avatar
tomjasz   10 GW

10 GW
Posts: 4652
Joined: Mar 29 2014 1:45pm
Location: Out riding, MN USA
Contact:

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by tomjasz » Nov 14 2019 2:34pm

jwunder wrote:
Nov 14 2019 12:06am
I have a BBSHD with motor number 190823, bought in Oct from Amazon. In the config tool, it has the 28 amp limit and I'm pissed. Hardware v1.5. But if I returned it and got another one from another seller, I'd probably have the same issue. I guess I'll have to live with it or do the shunt mod if I want more amps. Haven't charged my 52v battery up to the max or put the motor on my bike yet. Hope I don't get the 07h error.
Buy from Amazon and get Amazon level support. Probably won't get the 07. I just don't get why buyers don't use the dozen small businesses that offer support beyond having to wait for answers on forums. 28A gets me 33MPH on a 26" flat foot cruiser. Faster than the brakes can handle...
Thanks Justin_le we're here thanks to you. All the best to the mods for their tireless work keeping it on an even keel.

jwunder   1 mW

1 mW
Posts: 13
Joined: Nov 13 2019 11:56pm

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by jwunder » Nov 14 2019 8:13pm

28A gets me 33MPH on a 26" flat foot cruiser. Faster than the brakes can handle...
I have a 29er with hydraulic, so we'll see how it goes. Maybe I should have went with a hub bike, but there are hills where I live. It's just that... you do all this research, finally pull the trigger, and the actual product doesn't match what you read about. Bafang changed the software without notice... and probably will again. Like shooting a moving target.

User avatar
fechter   100 GW

100 GW
Posts: 15748
Joined: Dec 31 2006 3:23pm
Location: California Bay Area, USA

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by fechter » Nov 14 2019 10:07pm

I still really like the BBSHD and use it on a lot of really steep dirt trails. Stuff my old 2kw hub motor would just overheat on. There are hardware hacks for most of the software problems but you wouldn't need to hack anything if they did the software right.
"One test is worth a thousand opinions"

jwunder   1 mW

1 mW
Posts: 13
Joined: Nov 13 2019 11:56pm

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by jwunder » Nov 15 2019 10:22am

Yeah, but I'm seeing 5kw hubs for the price of a BBSHD. I would have gotten a smaller bike for it tho, which I probably wouldn't have liked.

dundundata   1 µW

1 µW
Posts: 1
Joined: Jan 21 2020 7:18pm

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by dundundata » Jan 21 2020 7:22pm

Thanks so much for the excellent writeup, simple and straight-forward. No more error 07! :bigthumb:

Spezialexperte   1 µW

1 µW
Posts: 1
Joined: Jul 06 2020 9:48am

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by Spezialexperte » Jul 06 2020 10:22am

Big thanks to amberwolf!

I got MY BBSHD from ebike-4you.de
the sticker says CRR10E4830E105001.1
another label says CR R10E.1000S.N.U 1.5
Firmware: 1.5
I used amberwolfs CRR10E4830E105001.1_190413-1.bin
after flashing i can still use the config tool @ 30A

I still get the 07H but its above 58.4 V, thats fine for me because i can adjust CV on my charger.

I had one major issue id like to share with you guys:

STC got stuck at flashing each time. I tried 2 Computers WIN7 with several drivers and WIN10 and several STC versions.

The very last thing i tried after hours of failing did finally suceed:
Turn of the firewall.

Any suggestions or ideas about 07H at 58.4 Volts?
Seems like I'm the only one with that kind of limitation after flashing.
Before flashing the limit was at about 57.0 V

Peter

User avatar
amberwolf   100 GW

100 GW
Posts: 33658
Joined: Aug 17 2009 6:43am
Location: Phoenix, AZ, USA, Earth, Sol, Local Bubble, Orion Arm, Milky Way, Local Group
Contact:

Re: BBSHD Voltage Problem Firmware Update & Instructions

Post by amberwolf » Jul 06 2020 11:33am

Spezialexperte wrote:
Jul 06 2020 10:22am

Any suggestions or ideas about 07H at 58.4 Volts?
Seems like I'm the only one with that kind of limitation after flashing.
Before flashing the limit was at about 57.0 V
That probably means this firmware, with your hardware, has it's limit at that 58.4v. Since that's not much below the typical HVC of a 52v pack, the simplest solution is to charge the battery normally, then leave the bike on for a few minutes to a couple of hours, just sittng there, and it should drain it enough to use normally. Alternately you could setup a load like a 100w incandescent light bulb you can plug into the battery output connector for a moment, enough to load it to drop the voltage to where the bike will start.


You could also charge to just below the limit most of the time, only doing a full charge periodically overnight to ensure balancing if necessary. You wouldn't even notice a capacity/range difference with the ~0.5v or so less.



If you really need to defeat that, you could try to compare your original firmware code (if you have a file for it) with the one you've got in there now, and see if there are just a few small bits of code taht is different. Compare the two firmwares in those spots, and see if there is a correlation in value to equate to the voltage difference. Then you can figure out what difference it should be to get teh voltage you want there instead, and alter teh code and reflash.

If there are checksums this won't work, unless you can decompile and recompile it with the new values; I don't have any idea how to do that. :(
If you found this advice helpful, supporting contributions are accepted here.

Beginning of a New Life


Give a listen to my music!
(More here, including experimental).

Post Reply