Search results

  1. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    Yes, I'm currently working on the configuration tool to go along with this firmware, a few small things left to do there. As for the firmware itself there are some minor thing left to do there too but the important stuff is working. Still need to do: * Speed limiting according to configuraiton...
  2. D

    BBSHD Voltage Problem Firmware Update & Instructions

    It is not possibly, the microcontroller used in the BBSHD controller does not support readback of firmware. It's a "security" feature of STC microcontrollers.
  3. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    That interesting, that controller looks very similar except yet another model of the STC MCU. Should probably be possible to adapt the firmware for that external controller too with very minor changes. I have been busy lately but will pick up this project again, goal is to get this into a nice...
  4. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    Yes, everything is there, check the "src" directory. https://github.com/danielnilsson9/bbshd-fw I am currently aiming for creating a full replacement firmware compatible with the original bafang displays along with a custom configuration tool. The use of speed sensor and display will be...
  5. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    Small update on the progress. I have achived control of the motor with my custom firmware working on both old and new controller revisions. I also tried increasing the max current but it is limited in the NEC MCU to rougly 32A so that is the maximum we can do without replacing that firmware...
  6. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    I'm not sure, the tool we have to flash the STC MCU is from STC Micro, a windows binary, no idea if the protocol is publicly documented. If it is (or if it is easy to reverse engineer) then it should be possible since it's just standard UART communication I believe. Yes, absolutely, you are...
  7. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    Will be on my todo list once I get something running. Yes, that is actually quite a nice solution, could definitely see that useful. Yes it is possible to flash the controller firmware without opening the motor through the display connector using a standard TTL level serial port. On another...
  8. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    I will probably not take this very far, I have too many spare time projects... :confused: But the goal is to create a basic working firmware to run without speed sensor and display. Similar to my customization of your great TSDZ2 firmware I have made for running without display and speed...
  9. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    Alright I think everything (that we can easily figure out) about the protocol is now clear. Of all the parameters that can be configured in bafang config tool, only low voltage cutoff and current limit is sent to NEC MCU. The rest of the initialization parameters sent are probably hardcoded in...
  10. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    Thanks! I'm now fairly confident that we can succeed with this. I have hooked up my controller to a spare motor and started analyzing signals. The protocol seems to be very simple, all messages have a header (0xAA) and a trailing checksum. There are 11 parameters set during initialization, e.g...
  11. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    I think it would still be interesting to have open source firmware even if we cannot change the code running on the 79F9211 it would still give a few other possibilities for customization. I have been probing a partially broken controller I have for the last two days trying to figure out how...
Back
Top