Error on Canbus for JKBMS #61
-
I am getting an error that I don't quite understand, maybe someone can help me in understanding the problem? Thanks
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Actually, after switching CAN BUSS speed to 500K this error went away.... |
Beta Was this translation helpful? Give feedback.
-
After switching back to 250K i did not get the error... I think it was some confusion between BMS and Cerbo, resetting everything seem to have clear the issue, it now works at both speeds. But I am getting different information than the Bluetooth connection, I show here the different settings depending if I use Bluetooth or CAN bus... Also I have two batteries and only one show up, is there something to set in the config too allow for two batteries on the same can buss? BLUETOOTH CAN@500K |
Beta Was this translation helpful? Give feedback.
-
Oh, ok. I tried to get the two BMS to show up but to no avail. Looking at the code it appears that the jkbms_can.py does not have the concept of a unique identifier.... Perhaps that is the issue. If I compare with jkbms_ble.py I can see that it does generate a unique identifier. except from jkbms_ble.py: |
Beta Was this translation helpful? Give feedback.
-
You are right, I just modified the code to generate a unique ID and it does not help. I will try to figure this out if I can... |
Beta Was this translation helpful? Give feedback.
-
That’s what I am actually doing…. But no joy up to now. I got the specs from jkbms and reading through it.
Roger
|
Beta Was this translation helpful? Give feedback.
After looking at CAN data I am thinking that there can only be one BMS per CAN buss. The way I understand it is that the message ID is the only ID provided.... Therefore both BMS send exactly the same ID messages. So I tried to connect one BMS to CAN0 and the other to CAN1 and after a bit of code modification (so the identifier is unique) I got it to work correctly.
Also I discovered that the message ID for CELL_VOLT and CELL_TEMP was different when connected to CAN1 vs CAN0 (but the BATT_STAT is correct...) That one I could not figure out, I don't know if some manipulation is done in the Cerbo before CAN messages are captured... So I added the new (or rewritten) frame id for the CELL_VOL…