OpenBafangTool - New Open-Source Bafang Configuration Tool

If you want to connect uart motor to can display (or can motor to uart display) its impossible
maybe im confusing things, my bike has a cm5001 motor and a ds103 display with the can connector cables,im trying to get a tool to connect to my motor to change peddle assist etc., but the darn bafang cable they sent me on amazon came as a uart connection.
 
maybe im confusing things, my bike has a cm5001 motor and a ds103 display with the can connector cables,im trying to get a tool to connect to my motor to change peddle assist etc., but the darn bafang cable they sent me on amazon came as a uart connection.
If your motor have CAN connector and made by unknown brand, it may be unreasonable to buy expensive besst tool just to test if its rebranded bafang or not. At least make photo of text on controller to check if it has bafang's model number or no
 
maybe im confusing things, my bike has a cm5001 motor and a ds103 display with the can connector cables,im trying to get a tool to connect to my motor to change peddle assist etc., but the darn bafang cable they sent me on amazon came as a uart connection.
its a 500-750 watt mid drive with 48 volt batt and ds103 display , even kno its called a sun union wuxing cm5001, its believed to be a bafang motor just rebranded. after almost getting sun union to send me ther tool and software,they sent examples of software page and its looks exactly like the bafang programming software . but anyway they declined to send it to me cause the bike is branded, they seem to think i told them it was a Lavelo so now i cant get them to send it
 
If your motor have CAN connector and made by unknown brand, it may be unreasonable to buy expensive besst tool just to test if its rebranded bafang or not. At least make photo of text on controller to check if it has bafang's model number or no
ill take photos of anything you want ? Please tell me what pics you need and give me until this afternoon
 
ill take photos of anything you want ? Please tell me what pics you need and give me until this afternoon
If construction of your device lets remove cover and take photo of serial numbers without voiding warranty, please do it
 
its a 500-750 watt mid drive with 48 volt batt and ds103 display , even kno its called a sun union wuxing cm5001, its believed to be a bafang motor just rebranded. after almost getting sun union to send me ther tool and software,they sent examples of software page and its looks exactly like the bafang programming software . but anyway they declined to send it to me cause the bike is branded, they seem to think i told them it was a Lavelo so now i cant get them to send it
It sounds like its actually bafang, but I don't have exact information. You can try to connect besst tool, but I can make absolutely no warranty that it will work. Please send me screenshot you got from sun union. What converter did they recommend to use with their software?
 
If your motor have CAN connector and made by unknown brand, it may be unreasonable to buy expensive besst tool just to test if its rebranded bafang or not. At least make photo of text on controller to check if it has bafang's model number or no
ill get u photos today, thank you . ur a God sent if u can help me get this figured out.
 
Hi. I have a M400 canbus system. All cables I found on aliexpress has UART connector.
Is there any way I can use this ?
No. They are completely different and incompatible. You need besst tool (yes, it costs pretty expensive, nearly 100$) for can systems
 
Hey AndreyPr.

I recently purchased 2 E-bikes that are running the Bafang M620. Originally we weren't going to buy them because we had been looking for bikes with torque sensors and after our initial ride, we were convinced that these bikes only had cadence sensors. One of our complaints about the bikes is that in the lower gears, any PAS seems like too much. As soon as the cadence sensor detects any pedaling, the motor kicks on and does all the work. A common complaint it seems. However, after doing some research and discovering that they also had a torque sensor that is capable of being tuned, and being offered a really good deal, we decided to buy them anyway.

When I was researching the tuning options that are available, I quickly found that there are many options for the M620 systems and got excited. As I learned more, I found that many of those options are only compatible with UART systems. Obviously I was disheartened a bit when I discovered that mine were equipped with CAN bus systems. But eventually my searching led me here, to your pages here and on github. I was relieved to find that you are actively working on this project and are frequently releasing updates. For that I say thank you!

You have been very clear that the support for CANbus is new and incomplete, but I wanted to see what was available with my own eyes. So after receiving my Besst Tool in the mail today, I downloaded and installed 2.1.1. I connected one of my bikes to the CANbus connectors, connected the Besst Tool to my computer, and launched the app. I was pleasantly surprised by the sleek and modern interface, and that despite being very early in development, I did not have any crashes or unexpected behavior. For the most part, the app seemed to detect the controller, motor, and sensors without issue, but ultimately found that many of the features I was looking for are not available yet. That being said, I think this project is awesome and you are doing a great job!

I see that you have many offers for alpha and beta testers but if you find yourself needing one more, I would be happy to help. I am not a programmer nor electrical engineer, but I know my way around computers and electronics, and am always willing to learn more.
 
Hey AndreyPr.

I recently purchased 2 E-bikes that are running the Bafang M620. Originally we weren't going to buy them because we had been looking for bikes with torque sensors and after our initial ride, we were convinced that these bikes only had cadence sensors. One of our complaints about the bikes is that in the lower gears, any PAS seems like too much. As soon as the cadence sensor detects any pedaling, the motor kicks on and does all the work. A common complaint it seems. However, after doing some research and discovering that they also had a torque sensor that is capable of being tuned, and being offered a really good deal, we decided to buy them anyway.

When I was researching the tuning options that are available, I quickly found that there are many options for the M620 systems and got excited. As I learned more, I found that many of those options are only compatible with UART systems. Obviously I was disheartened a bit when I discovered that mine were equipped with CAN bus systems. But eventually my searching led me here, to your pages here and on github. I was relieved to find that you are actively working on this project and are frequently releasing updates. For that I say thank you!

You have been very clear that the support for CANbus is new and incomplete, but I wanted to see what was available with my own eyes. So after receiving my Besst Tool in the mail today, I downloaded and installed 2.1.1. I connected one of my bikes to the CANbus connectors, connected the Besst Tool to my computer, and launched the app. I was pleasantly surprised by the sleek and modern interface, and that despite being very early in development, I did not have any crashes or unexpected behavior. For the most part, the app seemed to detect the controller, motor, and sensors without issue, but ultimately found that many of the features I was looking for are not available yet. That being said, I think this project is awesome and you are doing a great job!

I see that you have many offers for alpha and beta testers but if you find yourself needing one more, I would be happy to help. I am not a programmer nor electrical engineer, but I know my way around computers and electronics, and am always willing to learn more.
Thank you. Happy to hear you. Theoretically M620 should have torque sensor also, you can try to turn it on with my program. Can you make screenshots which exact parameters are not available?
 
Hey AndreyPr.

I recently purchased 2 E-bikes that are running the Bafang M620. Originally we weren't going to buy them because we had been looking for bikes with torque sensors and after our initial ride, we were convinced that these bikes only had cadence sensors. One of our complaints about the bikes is that in the lower gears, any PAS seems like too much. As soon as the cadence sensor detects any pedaling, the motor kicks on and does all the work. A common complaint it seems. However, after doing some research and discovering that they also had a torque sensor that is capable of being tuned, and being offered a really good deal, we decided to buy them anyway.

When I was researching the tuning options that are available, I quickly found that there are many options for the M620 systems and got excited. As I learned more, I found that many of those options are only compatible with UART systems. Obviously I was disheartened a bit when I discovered that mine were equipped with CAN bus systems. But eventually my searching led me here, to your pages here and on github. I was relieved to find that you are actively working on this project and are frequently releasing updates. For that I say thank you!

You have been very clear that the support for CANbus is new and incomplete, but I wanted to see what was available with my own eyes. So after receiving my Besst Tool in the mail today, I downloaded and installed 2.1.1. I connected one of my bikes to the CANbus connectors, connected the Besst Tool to my computer, and launched the app. I was pleasantly surprised by the sleek and modern interface, and that despite being very early in development, I did not have any crashes or unexpected behavior. For the most part, the app seemed to detect the controller, motor, and sensors without issue, but ultimately found that many of the features I was looking for are not available yet. That being said, I think this project is awesome and you are doing a great job!

I see that you have many offers for alpha and beta testers but if you find yourself needing one more, I would be happy to help. I am not a programmer nor electrical engineer, but I know my way around computers and electronics, and am always willing to learn more.
Please make screenshot of sensor page. There is should be field "torque voltage", if it actually changes when you press pedal, your motor actually have torque sensor and you just need to turn controller in this mode, that is already possible with OpenBafangTool
 
Thank you for your quick reply. The bikes do have a torque sensor and it does respond to pressure on the pedals. So, is it possible to disable the cadence sensor so that only the torque sensor is being used?

The options that are not available are mostly in the motor settings. Like how much assistance each pedal assist each level provides. Etc..

I also, was mistaken about all the devices being detected. The display's model, serial, software, and firmware were not detected in the app. The display info as shown on the display is HW: DP C18.C 1.4 and SW: DPC18CP13053.0

One other are of concern I have is that on the motor settings page it says regulations limit the maximum speed to 25 km/h. Currently the bike is set to 50 km/h. So I am wondering can I use this tool to change other settings without modifying the currently set speed limit?

I am attaching the screen shots of the display settings, motor settings, and sensor settings. I can also get any other information that you need.

Again thank you for your response and all the effort you are putting in to this project!
 

Attachments

  • Sensor Settings.png
    Sensor Settings.png
    54.9 KB · Views: 31
  • Motor Settings 3.png
    Motor Settings 3.png
    65.8 KB · Views: 32
  • Motor Settings 2.png
    Motor Settings 2.png
    70 KB · Views: 32
  • Motor Settings 1.png
    Motor Settings 1.png
    54.9 KB · Views: 30
  • General Info 4.png
    General Info 4.png
    62 KB · Views: 31
  • General Info 3.png
    General Info 3.png
    55.6 KB · Views: 31
  • General Info 2.png
    General Info 2.png
    54.9 KB · Views: 31
  • General Info 1.png
    General Info 1.png
    49.6 KB · Views: 26
  • Display Settings.png
    Display Settings.png
    62.4 KB · Views: 31
Thank you for your quick reply. The bikes do have a torque sensor and it does respond to pressure on the pedals. So, is it possible to disable the cadence sensor so that only the torque sensor is being used?

The options that are not available are mostly in the motor settings. Like how much assistance each pedal assist each level provides. Etc..

I also, was mistaken about all the devices being detected. The display's model, serial, software, and firmware were not detected in the app. The display info as shown on the display is HW: DP C18.C 1.4 and SW: DPC18CP13053.0

One other are of concern I have is that on the motor settings page it says regulations limit the maximum speed to 25 km/h. Currently the bike is set to 50 km/h. So I am wondering can I use this tool to change other settings without modifying the currently set speed limit?

I am attaching the screen shots of the display settings, motor settings, and sensor settings. I can also get any other information that you need.

Again thank you for your response and all the effort you are putting in to this project!
Unfortunately, your motor firmware have not available most of settings. This problem exists on some bafang devices, and currently I don't know the way how to fix it. Maybe it's possible to flash different version of original firmware, but currently its not researched yet. It means that you can not configure assist levels and other parameters, only wheel size is available.
You can contact Tomblarom about different firmwares for your controller, possible that he has compatible one (I don't know how to flash firmware, he knows).

About speed limit: program doesn't let user to remove legal 25kmh limit, but if bike already have bigger limit (upped by some other way) program still can work with this bike and will not change limit at all. Later I also plan to add button "Lower limit to 25 kmh (irreversible action)" for users who wants to legalize their bike
 

Attachments

  • IMG_20240622_235031.png
    IMG_20240622_235031.png
    11.7 KB · Views: 8
Back
Top