Hi mates. I'm owner of an BBS02B (750W, 48V battery 20ah/h Samsung cells, MCU IAP15F2K61S2). Bought on Amazon it came with original fw 1.7.5 (I think, not really sure so I actually didn't take note about this before flashing this custom FW).
Shift sensor is not working for me in 1.2.0 alike some other people, and investigating in Github link (
GitHub - danielnilsson9/bbs-fw: Open source firmware for Bafang BBSHD/BBS02 electric bike motor controllers.), found out there are some new thinks/changes/fixes in the code in relation of the shift sensor (and other stuff).
I compiled the firmware in development for my BBS02B (1.3.0 is the version number which it's shown in the config tool now), and obviously also compiled the new config tool for 1.3.0.. and yep.. I took the risk and flashed it.
All works great just as the official build 1.2.0, in
150KM nowadays 350KM i've only experienced just once a strange bug that gradually cut off motor power alike thermal throttling, so controller shown 40-42ºC (reached max of 58ºC without cuts, so it wasn't the issue), just restarted system and all went nice (
thermal cutoff was 75ºC in 1.2.0 and earlier, now 85ºC!! -so it can be set editing the source code, there are a ºC variable- , more realistic for Spanish summers and even springs.. I'll test it well on august), there is a new section in config tool about shift sensor, so it's not working again for me.
One new and so useful feature is Variable PAS, a mode where the throttle only works if you are pedaling, perfect for making it "legal" in EU, where actually, the throttle shouldn't be illegal if you use it just for selecting the power that you need while you're spinning, as mode of real-time assist (there are some threads discussing about it, it's seen the European law doesn't forbidden throttles itself, and we hope in a future they change it's direction and allow free throttles and more wattages as some USA states; we aren't contaminating, making noise, or putting another ones in much more risk for having a 750-1500w motor and a throttle unless a 250w motor -pretty insufficient for a 100kg+ person plus the bike, I can confirm it personally-,
there are hooligans riding legal bikes/motorbikes, and good citizens riding illegal ebikes. We don't need more liberticide laws, just education and common sense)
Watching the source code I found that shift sensor input is set on pin 6 (port 3). I'm thinking about the possibility of setting those variables (just trying with different combinations, so i don't know really which port is used, maybe i'll discover when I'd done the first maintenance, or when I finally adapt the motor to a oil-cooled system, which is just in my mind right now), compile and flash it again, this may be the fix for this question.. or maybe not (it seems the last commit was on Feb 1, the project appears to be.. abandoned?)
Some captures in the config tool, marked in red the new/changed options:
***Shift sensor is now present (yep, failed red mark), and more global options for pedal assist, so "no display" checkbox missed out (I supposed it's cause there aren't apps yet for this cfw)***
***In mode 0 (standard, not off-road mode), I set Variable PAS With the max power I defined (50% of 25amps for normal, more likely a bored legal ebike max peaks), Now I can use throttle to choice in real time the power I need with more precision (in some circumstances this is SO BETTER than PAS without torque sensor), and more important, if a cop stops me and ask for the throttle, I can demonstrate it's only functional when I'm spinning, acting as a real time power mode but not as a true throttle, so definitively I'm not worried anymore about it, now i can sleep at night!!! (thanks a lot M.R Nillson)***
You can download my compiled FW for BBS02 and BBSHD (I can't test BBSHD cause haven't one, so it must work as it's little brother, I'm pretty sure), also the new config tool and my own config based on this version (based on Lectric Cycles E-Rad parameters AND SET IT FOR MY BBS02B WITH 48V BATTERY, if you have 52V/36V, you will need to configure different voltages, just search for the table), rename all files without .txt extension and flash/use as normally, and don't forget making backup of you current config -if you want- READING IT FROM THE CONTROLLER (NOT FILE) WITH THE NEW 1.3.0 TOOL!! DON'T USE 1.2.0, OR IT WILL FAIL WHEN READ 1.2.0 CONFIG FILE ON 1.3.0 TOOL!!!
Update: 1.3.0 OFFICIAL is up, download it from github
TO FINISH BUT NOT LESS IMPORTANT, DO IT BY YOUR OWN RISK (and if u're as mad as me or maybe a bit more), IT WORKED FOR ME BUT MAY BRICK OR DAMAGE YOUR MOTOR, OR MAYBE CAUSE A THERMONUCLEAR WAR IN AN EXTREME SCENARIO