Programming the Bafang Middrive BBS01+BBS02

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

Programming the Bafang Middrive BBS01+BBS02

Postby crossbreak » Tue Apr 08, 2014 4:22 pm

I'd like to start a new thread about this... I had a hard time to find all of the info i need in the other thread.. so here is a start.

all i know is that: we need':

-A TTL converter (cheap off ebay)
-A special cable
-A computer and a software


any more? hope this is a start..

Don't forget to cross rx and tx such that tx (transmit) of your USB to serial go to rx (receive) on the controller.

programming software from BAFANG http://ulozto.cz/x1zej9PD/software8fun-zipp rename to *.zip

multi language programming software (english , español, french, german, italian, portuguese, swedish, turkish)
https://www.dropbox.com/s/2kloq1693e4n186/Bafang.zip?dl=0


from http://endless-sphere.com/forums/viewto ... 25#p876033
ben--b wrote:I bought a similar USB to serial cheap (1.5$) converter and made my programing cable with a jst-xh 5pin plug.
Image
I had to install a driver for the converter to work properly. You just have to know the chipset ref and it is easy to find online.
Rather than trying to find the same 5pin connector as on bafang wiring harness, I installed another plug (common jst-xh 5pin) in serial between the connector and the display.
Image
I opened the display case (which is welded so the result isn't very clean ...). You can see on the pic the wire's color and function.
Image
You need to connect GND, RX and TX of the controller to the converter (TX display = RX controller = TX converter) AND to connect the red and white wires (named D+ and Ds in the display) together.
D+ is the battery positive, Ds is the wire that awaken the controller when connected to +batt.
This way, the programming software is working fine.
All the controller parameters are not so easy to understand, so the more people will be able to have this software working, the sooner we'll be able to master it for fine tuning of this great litttle product.

Attachments
asfd.jpg
asfd.jpg (53.52 KiB) Viewed 52080 times
Last edited by crossbreak on Thu May 28, 2015 10:17 am, edited 4 times in total. View post history.
User avatar
crossbreak
100 MW
100 MW
 
Posts: 2721
Joined: Tue Aug 02, 2011 11:20 am
Location: Germany

Re: Programming the Bafang Middrive BBS01+BBS02

Postby teslanv » Tue Apr 08, 2014 4:51 pm

Thanks for starting this Crossbreak. It can really use it's own thread.

Here is what I know about the BBS0X programming from lcrewse (http://www.lectriccycles.com):

We now have the software for reprogramming "some of the parameters" of the controller. However, there is also a firmware update for the controller to open up other programming options, which may or may not be needed on your unit, depending on where and when you purchased your BBS0X unit. (I ordered mine through lcrewse, so I would assume mine does have the alternate firmware loaded) I have not seen this file posted yet, nor do I know how to retrieve it from my unit.

There may be another connection point to the controller in the unit, instead of trying to go through the waterproof connector. After cracking open my drive to investigate a noise, I have a better understanding of the wiring and connectors inside the motor assembly. I will post pics tonight of the controller wiring harnesses and connectors.
Last edited by teslanv on Tue Apr 08, 2014 5:17 pm, edited 1 time in total. View post history.
Try our new "Kit Builder" page to order your custom MXUS conversion kit. https://kinayems.com/Store/KitBuilder
"Only those of us riding ebikes really understand how awesome they are. If we want to gain acceptance in the bicycling world we must strive to make other cyclists want to try our ebikes, not to be annoyed by them."
User avatar
teslanv
100 MW
100 MW
 
Posts: 2563
Joined: Sun Nov 03, 2013 8:42 pm
Location: Bellevue, WA

Re: Programming the Bafang Middrive BBS01+BBS02

Postby Tom L » Tue Apr 08, 2014 5:35 pm

Display side pinout (as marked on the C961 PCB): Image

Mirror the pinout for controller side.

P+ is the full battery voltage. PL is connected to P+ inside the display by a MOSFET when the display is turned on.
Last edited by Tom L on Tue Apr 08, 2014 8:06 pm, edited 2 times in total. View post history.
DO NOT ORDER FROM BIOPLANET BIKE (CROATIA) . THEY TOOK MONEY FROM A NUMBER OF MEMBERS LAST YEAR AND STILL HAVE NOT SHIPPED A SINGLE BIKE. MR KRESIMIR BUDINSKI - OWNER OF BIOPLANET BIKE HAS A HISTORY OF FRAUDULENT BUSINESS ENDEAVOURS. More details are here: viewtopic.php?f=3&t=42010&start=100#p737724
User avatar
Tom L
100 W
100 W
 
Posts: 296
Joined: Sun Jan 15, 2012 1:09 pm
Location: Tasmania, Australia

Re: Programming the Bafang Middrive BBS01+BBS02

Postby Tom L » Wed Apr 09, 2014 3:23 am

I tried connecting to my C961 display with the software without success tonight. I didn't really think this would work as while there is a backup battery on the PCB this does not power the whole circuit.

I used a 5V USB-Serial bridge connected as COM8 at 1200 baud. I had TX, RX and GND connected. I tried swapping TX and RX and I tried it both ways with P+ shorted to PL and without this short.

Unfortunately I have a faulty controller serial port and so trying to connect to my controller pointless. This is as far as I can go right now.

Interestingly shorting P+ and PL on the controller side turns the speed sensor LED on, indicating this is how the controller is powered up.

For those of you that are going to try to connect to the controller side of the cable please disconnect the battery first. The whole battery voltage is present on the P+ pin and it is very easy to short this to the other pins (Guess how my controller serial port became faulty!). Also remember that my photo above is of the Display connector. The Controller connector connections are mirrored like this:

Image
Last edited by Tom L on Wed Apr 09, 2014 3:25 am, edited 1 time in total. View post history.
DO NOT ORDER FROM BIOPLANET BIKE (CROATIA) . THEY TOOK MONEY FROM A NUMBER OF MEMBERS LAST YEAR AND STILL HAVE NOT SHIPPED A SINGLE BIKE. MR KRESIMIR BUDINSKI - OWNER OF BIOPLANET BIKE HAS A HISTORY OF FRAUDULENT BUSINESS ENDEAVOURS. More details are here: viewtopic.php?f=3&t=42010&start=100#p737724
User avatar
Tom L
100 W
100 W
 
Posts: 296
Joined: Sun Jan 15, 2012 1:09 pm
Location: Tasmania, Australia

Re: Programming the Bafang Middrive BBS01+BBS02

Postby crossbreak » Wed Apr 09, 2014 5:18 am

from: viewtopic.php?f=28&t=50104&start=2025#p877770
jateureka wrote:
ziltoid81 wrote:Plus, everybody tells another story......cable to display....cable to controller.......3 wires.......5 wires.....with batt....without. :cry:

That may be because there are at least 3 different versions of display, C950, C961, C963, and each is only compatible with a particaular version of firmware that has been installed in the motor controller. If you read the display user manuals you will see that Bafang state what version controller firmware, say V4, that display is compatible with.

So, for those that have the software cable connected and working, could you please state what display you have and what motor BBS01/02 and the first four digits of the motor serial number, which is the year and month of manufacture. Hopefully this will help sort out how the individual units need to be configured.
Last edited by crossbreak on Wed Apr 09, 2014 5:18 am, edited 1 time in total. View post history.
User avatar
crossbreak
100 MW
100 MW
 
Posts: 2721
Joined: Tue Aug 02, 2011 11:20 am
Location: Germany

Re: Programming the Bafang Middrive BBS01+BBS02

Postby teslanv » Wed Apr 09, 2014 9:13 am

Some photos of the BBS02 750W drive unit opened up:

Image
Image
Image
Image
Image
Image

And this nylon gear has 500+ miles on it. Not bad, actually...
Image
Try our new "Kit Builder" page to order your custom MXUS conversion kit. https://kinayems.com/Store/KitBuilder
"Only those of us riding ebikes really understand how awesome they are. If we want to gain acceptance in the bicycling world we must strive to make other cyclists want to try our ebikes, not to be annoyed by them."
User avatar
teslanv
100 MW
100 MW
 
Posts: 2563
Joined: Sun Nov 03, 2013 8:42 pm
Location: Bellevue, WA

Re: Programming the Bafang Middrive BBS01+BBS02

Postby amigafan2003 » Wed Apr 09, 2014 9:55 am

FYI, tried connecting my USB > TTL lead - plugged into the controller lead (green plug) pins first - gnd, tx and rx (and also tried tx and rx reversed) nothing. Press connect and no info returned and the read/write to flash buttons remain greyed out..

However, when I connect to the gnd, tx and rx pins on the display lead, I click connect some info is returned - nominal voltage shows as 24v but the hardware and firmware revision just show a little "v" symbol and all of the other values are zero. This connection "ungreys" the read /write flash buttons - I click "read flash" and it says "read from flash successful" but the values all remain as zero. I've not tried writing to flash for obvious reasons.

Unit is a BBS02 500w with a C961 display. Purchased Feb 2014 and has the new style connectors.
Last edited by amigafan2003 on Wed Apr 09, 2014 9:56 am, edited 1 time in total. View post history.
amigafan2003
1 kW
1 kW
 
Posts: 473
Joined: Thu Jul 14, 2011 10:05 am
Location: UK

Re: Programming the Bafang Middrive BBS01+BBS02

Postby teslanv » Wed Apr 09, 2014 10:44 am

amigafan2003 wrote:Unit is a BBS02 500w with a C961 display. Purchased Feb 2014 and has the new style connectors.


What are the "New Style" connectors? Can you post some pics?
Try our new "Kit Builder" page to order your custom MXUS conversion kit. https://kinayems.com/Store/KitBuilder
"Only those of us riding ebikes really understand how awesome they are. If we want to gain acceptance in the bicycling world we must strive to make other cyclists want to try our ebikes, not to be annoyed by them."
User avatar
teslanv
100 MW
100 MW
 
Posts: 2563
Joined: Sun Nov 03, 2013 8:42 pm
Location: Bellevue, WA

Re: Programming the Bafang Middrive BBS01+BBS02

Postby bgraig » Wed Apr 09, 2014 1:49 pm

hi, I also have a display C961 but with a different connector.
I have 6 holes, anyone know what it is he, where Tx, Rx and GND are, because I have a USB TTL, but how to connect?
C961 b.jpg
bgraig
1 µW
1 µW
 
Posts: 2
Joined: Mon Feb 03, 2014 3:50 am

Re: Programming the Bafang Middrive BBS01+BBS02

Postby simat » Thu Apr 10, 2014 1:07 am

The connectors look like they maybe compatible with one of these http://www.altronics.com.au/index.asp?s ... mit=SEARCH

Hopefully my drive will arrive tomorrow after a six week wait. When it arrives I will drop into Altronics and see if i can get a match. The six pin connectors may fit the five pin ones if the centre pin is removed or a hole is drilled in the 5 pin connector to fit the sixth pin.
Home off-grid solar: 1.2kW solar panels, 360ah Winston LFP battery @24V installed April 2013, homemade MPPT controller
BMS Opensource project here https://github.com/simat/BatteryMonitor
Electric pushbikes: 2 x mountain bikes with Bafang BBS-02 1kW mid mount drives, 10ah LiCo batteries
simat
1 mW
1 mW
 
Posts: 14
Joined: Sun Apr 07, 2013 10:27 am
Location: Harvey, Western Australia

Re: Programming the Bafang Middrive BBS01+BBS02

Postby --freeride-- » Thu Apr 10, 2014 2:54 am

bgraig wrote:hi, I also have a display C961 but with a different connector.
I have 6 holes, anyone know what it is he, where Tx, Rx and GND are, because I have a USB TTL, but how to connect?
C961 b.jpg


One of those 6 pins is dead, I did cut my connector and reconnected it with a standard 5pol. If you dont Want to do that I can post pictures if I find the thime or you better open Your display and peep through the plug to know what is what.

This is not going to work with any USB-TTL I had no sucsess jett.


step by step tutorial:
-disconnect the battery
-disconnect the display and only use the motor side of the plug or cut it and get a standard plug
-connect Batterie P+ to the grey PL (be carfull with that P+ is full battery voltage!)
-connect USB FDTI with the plug--> GND to GND, RX to TX and TX to RX
-connect the batterie
-start up the software(in Windows 7/8 with XP compatibili mode), select the right COM-Port and klick connect
--freeride--
100 W
100 W
 
Posts: 229
Joined: Tue Jul 05, 2011 1:00 pm

Re: Programming the Bafang Middrive BBS01+BBS02

Postby Tom L » Fri Apr 11, 2014 6:09 am

amigafan2003 wrote:FYI, tried connecting my USB > TTL lead - plugged into the controller lead (green plug) pins first - gnd, tx and rx (and also tried tx and rx reversed) nothing. Press connect and no info returned and the read/write to flash buttons remain greyed out..
...

Unit is a BBS02 500w with a C961 display. Purchased Feb 2014 and has the new style connectors.


You need to short the P+ and PL pins together as well. This is how the controller is turned on.
DO NOT ORDER FROM BIOPLANET BIKE (CROATIA) . THEY TOOK MONEY FROM A NUMBER OF MEMBERS LAST YEAR AND STILL HAVE NOT SHIPPED A SINGLE BIKE. MR KRESIMIR BUDINSKI - OWNER OF BIOPLANET BIKE HAS A HISTORY OF FRAUDULENT BUSINESS ENDEAVOURS. More details are here: viewtopic.php?f=3&t=42010&start=100#p737724
User avatar
Tom L
100 W
100 W
 
Posts: 296
Joined: Sun Jan 15, 2012 1:09 pm
Location: Tasmania, Australia

Re: Programming the Bafang Middrive BBS01+BBS02

Postby amigafan2003 » Fri Apr 11, 2014 6:41 am

Tom L wrote:
amigafan2003 wrote:FYI, tried connecting my USB > TTL lead - plugged into the controller lead (green plug) pins first - gnd, tx and rx (and also tried tx and rx reversed) nothing. Press connect and no info returned and the read/write to flash buttons remain greyed out..
...

Unit is a BBS02 500w with a C961 display. Purchased Feb 2014 and has the new style connectors.


You need to short the P+ and PL pins together as well. This is how the controller is turned on.


Ok, this is with the battery connected I presume? Would it be safer to connect all the pins (gnd, rx, tx and short p- + pl) then connect the battery?
amigafan2003
1 kW
1 kW
 
Posts: 473
Joined: Thu Jul 14, 2011 10:05 am
Location: UK

Re: Programming the Bafang Middrive BBS01+BBS02

Postby Tom L » Fri Apr 11, 2014 6:50 am

Yep that's the safest way.

1) disconnect the battery.
2) make your serial connections and short P+ and PL
EDIT: 2a) double check your connections
3) connect the battery
4) try the software.
Last edited by Tom L on Fri Apr 11, 2014 6:50 am, edited 1 time in total. View post history.
DO NOT ORDER FROM BIOPLANET BIKE (CROATIA) . THEY TOOK MONEY FROM A NUMBER OF MEMBERS LAST YEAR AND STILL HAVE NOT SHIPPED A SINGLE BIKE. MR KRESIMIR BUDINSKI - OWNER OF BIOPLANET BIKE HAS A HISTORY OF FRAUDULENT BUSINESS ENDEAVOURS. More details are here: viewtopic.php?f=3&t=42010&start=100#p737724
User avatar
Tom L
100 W
100 W
 
Posts: 296
Joined: Sun Jan 15, 2012 1:09 pm
Location: Tasmania, Australia

Re: Programming the Bafang Middrive BBS01+BBS02

Postby amigafan2003 » Fri Apr 11, 2014 10:17 am

Tom L wrote:Yep that's the safest way.

1) disconnect the battery.
2) make your serial connections and short P+ and PL
EDIT: 2a) double check your connections
3) connect the battery
4) try the software.


Thanks - I'll try that later :-)
amigafan2003
1 kW
1 kW
 
Posts: 473
Joined: Thu Jul 14, 2011 10:05 am
Location: UK

Re: Programming the Bafang Middrive BBS01+BBS02

Postby amigafan2003 » Fri Apr 11, 2014 12:45 pm

teslanv wrote:
amigafan2003 wrote:Unit is a BBS02 500w with a C961 display. Purchased Feb 2014 and has the new style connectors.


What are the "New Style" connectors? Can you post some pics?


Image
amigafan2003
1 kW
1 kW
 
Posts: 473
Joined: Thu Jul 14, 2011 10:05 am
Location: UK

Re: Programming the Bafang Middrive BBS01+BBS02

Postby teslanv » Fri Apr 11, 2014 1:27 pm

Ok. Same connectors I have. So then the old-style connectors have the sixth pin and no Notch in the plastic?
Try our new "Kit Builder" page to order your custom MXUS conversion kit. https://kinayems.com/Store/KitBuilder
"Only those of us riding ebikes really understand how awesome they are. If we want to gain acceptance in the bicycling world we must strive to make other cyclists want to try our ebikes, not to be annoyed by them."
User avatar
teslanv
100 MW
100 MW
 
Posts: 2563
Joined: Sun Nov 03, 2013 8:42 pm
Location: Bellevue, WA

Re: Programming the Bafang Middrive BBS01+BBS02

Postby amigafan2003 » Fri Apr 11, 2014 1:46 pm

I've ordered one of these http://uk.farnell.com/cliff-electronic- ... dp/2353926

Pins and notch looks like it'll line up - the diameter might be off a little but we'll see if it's possible to file the housing down a bit.

I'll report back when it arrives.
amigafan2003
1 kW
1 kW
 
Posts: 473
Joined: Thu Jul 14, 2011 10:05 am
Location: UK

Re: Programming the Bafang Middrive BBS01+BBS02

Postby Zippy Hawaiian » Sat Apr 12, 2014 10:05 pm

Someone posted a link for the controll system software, so I fired and up and thought I'd list out the options I see.
To aid discussion of the settings and provide a template for others to enter what settings their motor shipped with.

controllerst v1.00.01

BASIC

Low Battery Protect(V): [18,19,20,21,22 pulldown; can enter others]
Limited Current(A): [numeric entry field]
A 2 x 10 table of the pedassist settings -- Limit Current% & Limit Spd% for each of Assit0 through Assit9.
Wheel Diameter(Inch) [16-27, 700c, 28, 29]
Speed Meter Model [External Wheel Meter, Internal Motor Meter, by Motor Phase]
SpdMeter SIgnal [numeric]

PEDAL ASSIST

Pedal Type [DoubleSignal24, BB-Sensor-32, DH-Sensor-12, None]
Designated Assist [By Display's command, 0-9]
Speed Limited [By Display's command, 15-40 Km/h]
Start Current(%) [%]
Slow-Start mode(1-8) [1-8]
Startup Dgree(Signal No.) [numeric]
Work Mode (Angular speed of pedal/wheel x 10) [Undetermined, 10-80]
Time of Stop (x10ms) [numeric]
Current Decay(1-8) [1-8]
Stop Decay(x10ms) [numeric]
Keep Current(%) [%]

THROTTLE HANDLE

Start Voltage (x100mV) [numeric]
End Voltage (x100mV) [numeric]
Mode: [Speed, Current]
Designated Assist [By Display's Command, 0-9]
Speed Limited [By Display's Command, 15-40 Km/H]
Start Current(%)[%]

CONTROLLER INFO
Manufacturer:
Model:
Hardware Ver:
Firmware Ver:
Nominal Voltage:
Max. Current:
Zippy Hawaiian
1 mW
1 mW
 
Posts: 10
Joined: Mon Mar 17, 2014 6:32 pm
Location: Hawaii

Re: Programming the Bafang Middrive BBS01+BBS02

Postby tomjasz » Tue Apr 22, 2014 10:07 am

Software? A member responded and said he'd send me a link or copy but NO JOY!
2-BBS01, 1-BBS02, 2-BBSHD, 1-MXUS 1000W DD, 1-MXUS 250GD
22p 11Ah, 2-29e 13.5, PF 20Ah, 26f 20Ah, NCRB 13.5.
2-KHS Smoothies
1-Trek Pure
1-Townie
1- Generic Fatty
1- 1973 Schwinn step through
tomjasz
100 MW
100 MW
 
Posts: 2622
Joined: Sat Mar 29, 2014 1:45 pm
Location: Out riding

Re: Programming the Bafang Middrive BBS01+BBS02

Postby teslanv » Tue Apr 22, 2014 11:00 am

tomjasz wrote:Software? A member responded and said he'd send me a link or copy but NO JOY!


Instructions:

Download link here:

http://1drv.ms/1jvD2Y3

Change file format (rename file) from controllerst.bjh to controllerst.zip

Extract Zip files and install.
Last edited by teslanv on Wed Apr 23, 2014 11:58 am, edited 1 time in total. View post history.
Try our new "Kit Builder" page to order your custom MXUS conversion kit. https://kinayems.com/Store/KitBuilder
"Only those of us riding ebikes really understand how awesome they are. If we want to gain acceptance in the bicycling world we must strive to make other cyclists want to try our ebikes, not to be annoyed by them."
User avatar
teslanv
100 MW
100 MW
 
Posts: 2563
Joined: Sun Nov 03, 2013 8:42 pm
Location: Bellevue, WA

Re: Programming the Bafang Middrive BBS01+BBS02

Postby ziltoid81 » Tue Apr 22, 2014 1:09 pm

Im getting frustrated......always got the same error, either the cables are connected or not, even when the usb interface is NOT plugged in.

'Error opening serial port"

Got this Interface "3V / 5.5V USB to RS232 Serial TTL PL2303 USB UART Board PL-2303HX CP12004 C54"
http://www.ebay.de/itm/281274548169?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

The LED on the interface indicated red all the time, when plugged in the laptop.
When i disconnect the battery from the bbs01, a blue LED will also light up for 2 seconds on the serial interface.......
This didnt happens when i change rx/tx........so something must happen.

Dont know where to start again......maybe its the wrong serial interface.

Need to reprogramm this little sucker to current control. :evil:

At least i didnt blow up my controller so far......

bbs01 350w with 961.
Last edited by ziltoid81 on Tue Apr 22, 2014 1:10 pm, edited 1 time in total. View post history.
User avatar
ziltoid81
100 W
100 W
 
Posts: 239
Joined: Fri Mar 07, 2014 9:35 pm
Location: Germany

Re: Programming the Bafang Middrive BBS01+BBS02

Postby dustyearlobe » Tue Apr 22, 2014 1:13 pm

do like them gears in there
User avatar
dustyearlobe
100 W
100 W
 
Posts: 280
Joined: Tue Feb 28, 2012 4:29 pm

Re: Programming the Bafang Middrive BBS01+BBS02

Postby amigafan2003 » Tue Apr 22, 2014 1:28 pm

ziltoid81 wrote:Im getting frustrated......always got the same error, either the cables are connected or not, even when the usb interface is NOT plugged in.

'Error opening serial port"

Got this Interface "3V / 5.5V USB to RS232 Serial TTL PL2303 USB UART Board PL-2303HX CP12004 C54"
http://www.ebay.de/itm/281274548169?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

The LED on the interface indicated red all the time, when plugged in the laptop.
Wh


Have you checked what port the serial device is using in the device manager? And did you select that port in the Bafang software before trying to connect?
amigafan2003
1 kW
1 kW
 
Posts: 473
Joined: Thu Jul 14, 2011 10:05 am
Location: UK

Re: Programming the Bafang Middrive BBS01+BBS02

Postby ziltoid81 » Tue Apr 22, 2014 1:48 pm

Yes, also got the newest driver for the interface.

It wont connect.

I go straight into the plug of the controller side.....changed rx/tx.....shortened P+ to Pl......always the same error.

Maybe i get another serial interface, theyre cheap but dont know what other i should try.
User avatar
ziltoid81
100 W
100 W
 
Posts: 239
Joined: Fri Mar 07, 2014 9:35 pm
Location: Germany

Next

Return to E-Bike Non-hub Motor Drives

Who is online

Users browsing this forum: Google [Bot] and 9 guests