Skip to main content

BESST Software

BESST is the name for both the official BAFANG diagnostic software and the associated software tool.

Included are Binaries for different BESST versions and the (Javascript) sourcecode residing inside the app.asar electron application (the actuall BESST software sourcecode)

Login Bypass

Included is a special bypass program to login to BESST with every credential you want and get unlimited access to the tools. It requires python3 and the following python (pip) packages: simplejson and socketserver To run the script, edit your system hostfile (C:\windows\system32\drivers\etc\hosts for example) to point api.besst.bafang-service.com to 127.0.0.1

BESST Reverse Engineerd

aka Parameters 6011/6012/6017/6018

This is the procedure to read and write the operating parameters of the controller, for the moment we have not been able to make it work.

Can messages to read the parameters from the controller

05116011
05116012
05116017
05116018

Can messages to write the parameters to the controller

05106011 + Bytes Value
05106012 + Bytes Value
05106017 + Bytes Value
05106018 + Bytes Value

Description of the parameters


BatteryBitLenParamValue allowed
Nominal voltage DCV01601136/43/48
Maximum current limit when the battery is full A116011
Overvoltage DCV216011
undervoltage DCV316011
Dynamic driving undervoltage DCV416011
Undervoltage recovery voltage DCV516011
Battery capacity mAh7-826011
Maximum current limit when battery is low A916011
Battery value threshold when the current begins to decrease %1016011
Percentage coefficient of power when the current begins to decay %1116011
Display of the complete mileage of the battery Km1216011

Pedal sensorBitLenParamValue allowed
Sensor type13160110/1/2
Reverse brake function14160110/1
Speed Code Disc Teeth15160111/2
Number of speed signal channels16160111/2
Anti-heel pair controls the number of teeth1716011

MotorBitLenParamValue allowed
Motor type18160110/1/2
Number of pole pairs1916011
Number of speed magnets2016011
Temperature sensor signal21160110/1/2
Reduction ratio22-2326011
Maximum speed of rail movement RPM24-2526011
Inductance of the D axis uH26-2726011
Inductance of the Q axis uH28-2926011
Phase limit resistance mΩ30-3136011
Rear EMF coefficient 0.001V/RPM32-3336011
Motor derating temperature °C5416012
Motor overheating temperature °C5516012

ThrottleBitLenParamValue allowed
Start voltage 0.1DCV3416011
End voltage 0.1DCV3516011
Speed limited36160110/1

Speed sensorBitLenParamValue allowed
Dinamic current %3716011
Current loading time 100ms3816011
Current load shedding time 100ms3916011

LevelBitLenParamValue allowed
Level 1 - Current Limit %4016011
Level 2 - Current Limit %4116011
Level 3 - Current Limit %4216011
Level 4 - Current Limit %4316011
Level 5 - Current Limit %4416011
Level 6 - Current Limit %4516011
Level 7 - Current Limit %4616011
Level 8 - Current Limit %4716011
Level 9 - Current Limit %4816011
Level 1 - Speed limit %4916011
Level 2 - Speed limit %5016011
Level 3 - Speed limit %5116011
Level 4 - Speed limit %5216011
Level 5 - Speed limit %5316011
Level 6 - Speed limit %5416011
Level 7 - Speed limit %5516011
Level 8 - Speed limit %5616011
Level 9 - Speed limit %5716011

SystemBitLenParamValue allowed
With or without display58160110/1
The headlights are always on59160110/1
Boost speed60-6126011

Torque sensorBitLenParamValue allowed
Starting torque value - 0 Kg016012
Starting torque value - 1 Kg116012
Starting torque value - 2 Kg216012
Starting torque value - 3 Kg316012
Starting torque value - 4 Kg416012
Starting torque value - 5 Kg516012
Torque value at full load - 0 Kg616012
Torque value at full load - 1 Kg716012
Torque value at full load - 2 Kg816012
Torque value at full load - 3 Kg916012
Torque value at full load - 4 Kg1016012
Torque value at full load - 5 Kg1116012
Return torque value - 0 Kg1216012
Return torque value - 1 Kg1316012
Return torque value - 2 Kg1416012
Return torque value - 3 Kg1516012
Return torque value - 4 Kg1616012
Return torque value - 5 Kg1716012
Maximum current - 0 %1816012
Maximum current - 1 %1916012
Maximum current - 2 %2016012
Maximum current - 3 %2116012
Maximum current - 4 %2216012
Maximum current - 5 %2316012
Minimum current - 0 %2416012
Minimum current - 1 %2516012
Minimum current - 2 %2616012
Minimum current - 3 %2716012
Minimum current - 4 %2816012
Minimum current - 5 %2916012
Decay time of the torque - 0 10ms3016012
Decay time of the torque - 1 10ms3116012
Decay time of the torque - 2 10ms3216012
Decay time of the torque - 3 10ms3316012
Decay time of the torque - 4 10ms3416012
Decay time of the torque - 5 10ms3516012
Start pulse number - 03616012
Start pulse number - 13716012
Start pulse number - 23816012
Start pulse number - 33916012
Start pulse number - 44016012
Start pulse number - 54116012
Current decay time - 0 5ms4216012
Current decay time - 1 5ms4316012
Current decay time - 2 5ms4416012
Current decay time - 3 5ms4516012
Current decay time - 4 5ms4616012
Current decay time - 5 5ms4716012
Maximum pulse Width of pedal speed - 0 2ms4816012
Maximum pulse Width of pedal speed - 1 2ms4916012
Maximum Pulse Width of pedal speed - 2 2ms5016012
Maximum pulse width of pedal speed - 3 2ms5116012
Maximum pulse Width of pedal speed - 4 2ms5216012
Maximum pulse Width of pedal speed - 5 2ms5316012

MountainBitLenParamValue allowed
Current loading initial value ms4816017
Relationship between current loading and cadence K1 ms4916017
Relationship between current loading and cadence K2 ms5016017
Relationship between current loading and cadence k3 ms5116017
Relationship between current loading and cadence K4 ms5216017
Constant torque start value mV5316017
Relationship between torque start and cadence K5 mV54-5526017
Minimum torque constant mV56-5726017
Relationship between minimum torque and cadence K6 mV58-5926017
Magnification of the couple60-6126017

Do-it-yourselfBitLenParamValue allowed
Speed limit and current limit 1 Total battery capacity 0.1 Ah0-126018
Speed limit and current limit 2 Total battery capacity 0.1 Ah2-326018
Speed limit 1 0.1Km/h4-526018
Current limit 1 0.1Ah6-726018
Speed limit 2 0.1Km/h8-926018
Current limit 2 0.1Ah10-1126018