casainho said:Also seems it is impossible to unlock the motor for speed and the motor power - there are devices for speed unlock but they are very expensive like 200€ which may cost only 10€ in materials!!
Waynemarlow said:Luna in the States have gone further with their own controller and Pex replacement main gear to quieten down the older M600’s. The later factory M600’s and M500’s now have Pex main gears and are comparable with a belt driven unit.
The best would be to write our own OpenSource firmware!! But first we need to find a way to source relatively cheap the original motor controller.ornias said:Waynemarlow said:Luna in the States have gone further with their own controller and Pex replacement main gear to quieten down the older M600’s. The later factory M600’s and M500’s now have Pex main gears and are comparable with a belt driven unit.
Luna never said they replaced the controller with their own controller for the M600, considering it's still fully BESST compatible and no one completely reverse engineered the CANBUS protocol yet, this is highly unlikely.
Considering they stated in the past they needed a hardware change,a firmware flash and software (BESST) to connect it to the motor unit, I expect they execute a shuntmod and adapting the assistence curve in the firmware accordingly for at least the 1500W version. Because that's all that would be needed, as technically the controller is already capable of handling 30A*48V.
All things considered, it would be nicer if Luna Cycles started to embrace opensource and DIY and share which knowhow they have about the motors and which procedures they follow to modify theirs. We donnot need any proprietary software at this stage, we mostly just need to start to learn how the product behaves.
On a completely different note:
It seems a norwegian company got BAFANG to write custom firmware for the M600 to make them EU road legal, called the M600S:
If ANYONE could get their hands on a firmware file, that would be absolutely golden.
casainho said:The best would be to write our own OpenSource firmware!! But first we need to find a way to source relatively cheap the original motor controller.ornias said:Waynemarlow said:Luna in the States have gone further with their own controller and Pex replacement main gear to quieten down the older M600’s. The later factory M600’s and M500’s now have Pex main gears and are comparable with a belt driven unit.
Luna never said they replaced the controller with their own controller for the M600, considering it's still fully BESST compatible and no one completely reverse engineered the CANBUS protocol yet, this is highly unlikely.
Considering they stated in the past they needed a hardware change,a firmware flash and software (BESST) to connect it to the motor unit, I expect they execute a shuntmod and adapting the assistence curve in the firmware accordingly for at least the 1500W version. Because that's all that would be needed, as technically the controller is already capable of handling 30A*48V.
All things considered, it would be nicer if Luna Cycles started to embrace opensource and DIY and share which knowhow they have about the motors and which procedures they follow to modify theirs. We donnot need any proprietary software at this stage, we mostly just need to start to learn how the product behaves.
On a completely different note:
It seems a norwegian company got BAFANG to write custom firmware for the M600 to make them EU road legal, called the M600S:
If ANYONE could get their hands on a firmware file, that would be absolutely golden.
If someone can donate to me one unit of that motor controller, I can give a look, write some notes and make them available on a public repository on github. Developing the firmware always start like this. I do not have any ebike with this motor or the motor itself.ornias said:casainho said:The best would be to write our own OpenSource firmware!! But first we need to find a way to source relatively cheap the original motor controller.ornias said:Waynemarlow said:Luna in the States have gone further with their own controller and Pex replacement main gear to quieten down the older M600’s. The later factory M600’s and M500’s now have Pex main gears and are comparable with a belt driven unit.
Luna never said they replaced the controller with their own controller for the M600, considering it's still fully BESST compatible and no one completely reverse engineered the CANBUS protocol yet, this is highly unlikely.
Considering they stated in the past they needed a hardware change,a firmware flash and software (BESST) to connect it to the motor unit, I expect they execute a shuntmod and adapting the assistence curve in the firmware accordingly for at least the 1500W version. Because that's all that would be needed, as technically the controller is already capable of handling 30A*48V.
All things considered, it would be nicer if Luna Cycles started to embrace opensource and DIY and share which knowhow they have about the motors and which procedures they follow to modify theirs. We donnot need any proprietary software at this stage, we mostly just need to start to learn how the product behaves.
On a completely different note:
It seems a norwegian company got BAFANG to write custom firmware for the M600 to make them EU road legal, called the M600S:
If ANYONE could get their hands on a firmware file, that would be absolutely golden.
Agreed 100%... If we could dump complete firmware and reflash it, that would be easier and less DMCA prone than reverse enginering Bafangs firmware files.
Anyway, motor controllers are available here for relatively cheap:
https://flx.bike/collections/replacement-parts/products/controller-dz-multi?variant=31247163752584
As far as I can find out (because not one has posted high res overview pictures of the controller yet), it looks to be an STM32 based board.
Thank you so so much for pointing that out! Seems like a solid company!ornias said:On a completely different note:
It seems a norwegian company got BAFANG to write custom firmware for the M600 to make them EU road legal, called the M600S:
If ANYONE could get their hands on a firmware file, that would be absolutely golden.
Going to provide some controllers to casainho. M500 that my be broken and a fully working M600 controller. Maybe I could also get you an M620 at some point. We're already in contact.casainho said:If someone can donate to me one unit of that motor controller, I can give a look, write some notes and make them available on a public repository on github. Developing the firmware always start like this. I do not have any ebike with this motor or the motor itself.
Tomblarom said:Thank you so so much for pointing that out! Seems like a solid company!ornias said:On a completely different note:
It seems a norwegian company got BAFANG to write custom firmware for the M600 to make them EU road legal, called the M600S:
If ANYONE could get their hands on a firmware file, that would be absolutely golden.
So I was able to get a pair of HIGO-S5 cables and the innomaker module. Am I correct, that it's not possible to use the innomaker USB2CAN directly with the BESST tool? You have to have the original BESST hardware, even with the python-trick?
Tomblarom said:Going to provide some controllers to casainho. M500 that my be broken and a fully working M600 controller. Maybe I could also get you an M620 at some point. We're already in contact.casainho said:If someone can donate to me one unit of that motor controller, I can give a look, write some notes and make them available on a public repository on github. Developing the firmware always start like this. I do not have any ebike with this motor or the motor itself.
Done: https://github.com/OpenSourceEBike/Bafang_M500_M600ornias said:@Tomblarom
Could share a good closeup picture and a good overview of every chip on the board, before sending them to @casainho?
And a comparison to any board difference between m500 and m600?
@casainho
It might be nice if you could create a seperate repo inside the opensource firmware github organisation to work on bafang m500 and m600 based controllers and to document any knowhow we might gain...
That would be a nice single place to document:
- My reverse enginering work (noted in the seperate thread), including code examples
- Different Bafang firmwares
- Workarounds for the BESST login
- @stancecoke his start at reverse enginering the canbus interface
- pictures of the controller(s) and chips
etcetcetc
casainho said:Done: https://github.com/OpenSourceEBike/Bafang_M500_M600ornias said:@Tomblarom
Could share a good closeup picture and a good overview of every chip on the board, before sending them to @casainho?
And a comparison to any board difference between m500 and m600?
@casainho
It might be nice if you could create a seperate repo inside the opensource firmware github organisation to work on bafang m500 and m600 based controllers and to document any knowhow we might gain...
That would be a nice single place to document:
- My reverse enginering work (noted in the seperate thread), including code examples
- Different Bafang firmwares
- Workarounds for the BESST login
- @stancecoke his start at reverse enginering the canbus interface
- pictures of the controller(s) and chips
etcetcetc
You have already reverse enginering work? where is it? better, please fork the repository, make your changes and then sub,it a pull request. But would be nice if there was some interested developer to maintain the project and accept the pull requests.
What is the most popular motor version? I would like to focus on only one since the time is so scarse...
Are you interested to have write access to the repository? if so, please tell me your github id.ornias said:I didn't actually work out how to get a complete decompile running, But I did do a lot of research on the files and code.
The most populair is definately the m600. However: as far as i've seen mechanically the m500 is super close and I bet they use the same controller.
That would be great, I've already send you a PR with some notes and code.casainho said:Are you interested to have write access to the repository? if so, please tell me your github id.ornias said:I didn't actually work out how to get a complete decompile running, But I did do a lot of research on the files and code.
The most populair is definately the m600. However: as far as i've seen mechanically the m500 is super close and I bet they use the same controller.
Would be so nice to have there links to buy the frames, the motor and parts. I mean, links for popular shops and or cheap ones.
I also like they have a smaller one for road / gravel bike!!
And I wish to know more about the fix of motor to the frame, are the fix holes all equal between this 3 motor versions?
Yes sure. Pretty busy currently, but I can deliver exactly this, before I send anything out.ornias said:Could share a good closeup picture and a good overview of every chip on the board, before sending them to @casainho? And a comparison to any board difference between m500 and m600?
Any chance to replicate this? Maybe collecting the UART commands using a virtual COM port and HTerm?ornias said:Yeah the BESST tool actually requires the BESST device
M500 and M600 have the same hole-pattern, so they fit in one another's frame. Bafang support told me the M600 is wider and has metal gears. Seems to be able to take more, mechanically. If you're looking for a solid frame, checkout Dengfu or Seroxat. We have a Facebook group, with a lot experience on frames and manufacturer from china. Feel free to join.casainho said:And I wish to know more about the fix of motor to the frame, are the fix holes all equal between this 3 motor versions?
Tomblarom said:Yes sure. Pretty busy currently, but I can deliver exactly this, before I send anything out.ornias said:Could share a good closeup picture and a good overview of every chip on the board, before sending them to @casainho? And a comparison to any board difference between m500 and m600?
Any chance to replicate this? Maybe collecting the UART commands using a virtual COM port and HTerm?ornias said:Yeah the BESST tool actually requires the BESST device
M500 and M600 have the same hole-pattern, so they fit in one another's frame. Bafang support told me the M600 is wider and has metal gears. Seems to be able to take more, mechanically. If you're looking for a solid frame, checkout Dengfu or Seroxat. We have a Facebook group, with a lot experience on frames and manufacturer from china. Feel free to join.casainho said:And I wish to know more about the fix of motor to the frame, are the fix holes all equal between this 3 motor versions?
We're currently working on a controller version for the M600. Hope to get it into my bike soon.. Currently the Innotrace X1 is only available for Bafang M620: https://innotrace-shop.de
I got CAD models of both versions in case you guys need specific info on anything.
brake034 said:Personally I think that there will be more takers for the M620 motors once they get CAN as Bafang has announced for 2021.
The M600 sells far less but has been around with CAN for a few years now.
casainho said:As I can understand, the display data, assist level, walk assist, etc are all done on the display with the CAN communications. Also on this same communication cable we can make the configurations to the motor controller. So, we just need to find how to communicate with the display, it is is very easy to hookup the USB-CAN on the bus and log the packages that are sent to the BUS when we change assist level or the configurations on the display or the PC software.
Tomblarom said:Bafang support told me the M600 is wider and has metal gears.
Could you send a PR with those to the github with information me and casainho are building?Tomblarom said:I got CAD models of both versions in case you guys need specific info on anything.
Nope sorry. I'm not allowed to share them publicly. However, anybody can request specific measurements, exports or tasks, from me.ornias said:Could you send a PR with those to the github with information me and casainho are building?
Tomblarom said:There appears to be a new firmware for M500 with BOOST button functionality. I don't know whether it's M600 compatible. It was privately forwarded to me. Flashable using the BESST tool. Unzip first.
Display: DPC240CI.......
Controller: CRX10NC361....
PadreParada said:Hi Casainho and Ornias 1993,
This are two limited to 10 Amps firmwares, for M600 that Bafang sent me a few days ago. You may upload them in the GitHub repository and compare them with the rest.
Thanks you very much for all your efforts.