Simp BMS

Topics concerning OEM and open source BMSes
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

Code unmodified.
It's hard to catch the first message with the board powered externally.

Edit. Just barely touched the throttle - motor barely moved - BMS went into error.

Code: Select all

15:40:50.491 -> 0
15:40:50.491 -> BMS Status : 2 Drive   | Key ON |  84
15:40:50.491 -> Out:1001 Cont:1100 In:1000 Charge Current Limit : 30 A DisCharge Current Limit : 30 A
15:40:50.491 -> 
15:40:50.491 -> 
15:40:50.491 -> Modules: 14 Cells: 84 Strings: 1  Voltage: 324.411V   Avg Cell Voltage: 3.862V  Low Cell Voltage: 3.847V   High Cell Voltage: 3.866V Delta Voltage: 18mV   Avg Temp: 21.097C 
15:40:50.491 -> 
15:40:50.491 -> Modules: 14 Cells: 84 Strings: 1  Voltage: 324.411V   Avg Cell Voltage: 3.862V  Low Cell Voltage: 3.847V   High Cell Voltage: 3.866V Delta Voltage: 18mV   Avg Temp: 21.097C 
15:40:50.491 -> 
15:40:50.491 -> Module #1   23.16V   Cell0: 3.86V   Cell1: 3.86V   Cell2: 3.86V   Cell3: 3.86V   Cell4: 3.86V   Cell5: 3.85V  Neg Term Temp: 22.10C  Pos Term Temp: 20.73C
15:40:50.491 -> Module #2   23.17V   Cell6: 3.86V   Cell7: 3.86V   Cell8: 3.86V   Cell9: 3.86V  Cell10: 3.86V  Cell11: 3.86V  Neg Term Temp: 20.32C  Pos Term Temp: 19.37C
15:40:50.491 -> Module #3   23.17V  Cell12: 3.86V  Cell13: 3.86V  Cell14: 3.86V  Cell15: 3.86V  Cell16: 3.86V  Cell17: 3.86V  Neg Term Temp: 19.94C  Pos Term Temp: 19.46C
15:40:50.491 -> Module #4   23.17V  Cell18: 3.86V  Cell19: 3.86V  Cell20: 3.86V  Cell21: 3.86V  Cell22: 3.86V  Cell23: 3.86V  Neg Term Temp: 20.20C  Pos Term Temp: 19.55C
15:40:50.491 -> Module #5   23.18V  Cell24: 3.86V  Cell25: 3.86V  Cell26: 3.86V  Cell27: 3.86V  Cell28: 3.86V  Cell29: 3.86V  Neg Term Temp: 21.03C  Pos Term Temp: 20.28C
15:40:50.491 -> Module #6   23.18V  Cell30: 3.86V  Cell31: 3.86V  Cell32: 3.86V  Cell33: 3.86V  Cell34: 3.86V  Cell35: 3.86V  Neg Term Temp: 23.31C  Pos Term Temp: 22.98C
15:40:50.491 -> Module #7   23.17V  Cell36: 3.86V  Cell37: 3.86V  Cell38: 3.86V  Cell39: 3.86V  Cell40: 3.86V  Cell41: 3.86V  Neg Term Temp: 21.03C  Pos Term Temp: 20.67C
15:40:50.491 -> Module #8   23.17V  Cell42: 3.86V  Cell43: 3.86V  Cell44: 3.86V  Cell45: 3.86V  Cell46: 3.86V  Cell47: 3.86V  Neg Term Temp: 21.60C  Pos Term Temp: 21.61C
15:40:50.491 -> Module #9   23.16V  Cell48: 3.86V  Cell49: 3.86V  Cell50: 3.86V  Cell51: 3.86V  Cell52: 3.86V  Cell53: 3.86V  Neg Term Temp: 23.59C  Pos Term Temp: 22.18C
15:40:50.491 -> Module #10  23.17V  Cell54: 3.86V  Cell55: 3.86V  Cell56: 3.86V  Cell57: 3.86V  Cell58: 3.86V  Cell59: 3.86V  Neg Term Temp: 21.50C  Pos Term Temp: 20.27C
15:40:50.491 -> Module #11  23.17V  Cell60: 3.86V  Cell61: 3.86V  Cell62: 3.86V  Cell63: 3.86V  Cell64: 3.86V  Cell65: 3.86V  Neg Term Temp: 22.32C  Pos Term Temp: 21.36C
15:40:50.491 -> Module #12  23.19V  Cell66: 3.86V  Cell67: 3.87V  Cell68: 3.87V  Cell69: 3.87V  Cell70: 3.86V  Cell71: 3.86V  Neg Term Temp: 21.81C  Pos Term Temp: 20.94C
15:40:50.491 -> Module #13  23.18V  Cell72: 3.86V  Cell73: 3.86V  Cell74: 3.86V  Cell75: 3.86V  Cell76: 3.86V  Cell77: 3.86V  Neg Term Temp: 20.57C  Pos Term Temp: 19.88C
15:40:50.491 -> Module #14  23.18V  Cell78: 3.86V  Cell79: 3.86V  Cell80: 3.86V  Cell81: 3.86V  Cell82: 3.86V  Cell83: 3.86V  Neg Term Temp: 21.12C  Pos Term Temp: 21.01C
15:40:50.491 -> CANbus   322.14mA  70% SOC 147000.00mAh296.00 | 20000 | 296.00mA  296.08 | 20000 | 296.08mA  296.17 | 20000 | 296.17mA  296.23 | 20000 | 296.23mA  296.32 | 20000 | 296.32mA  294.02 | 20000 | 294.02mA  
15:40:50.991 -> 
15:40:50.991 -> 0
15:40:50.991 -> BMS Status : 5 Error   | Key ON |  84
15:40:50.991 -> Out:1001 Cont:1100 In:1000 Charge Current Limit : 30 A DisCharge Current Limit : 30 A
15:40:50.991 -> 
15:40:50.991 -> 
15:40:50.991 -> Modules: 14 Cells: 84 Strings: 1  Voltage: 0.000V   Avg Cell Voltage: nanV  Low Cell Voltage: 5.000V   High Cell Voltage: 0.000V Delta Voltage: -5000mV   Avg Temp: 0.000C 
15:40:50.991 -> 
15:40:50.991 -> Module #1   0.00V   Cell0: 0.00V   Cell1: 0.00V   Cell2: 0.00V   Cell3: 0.00V   Cell4: 0.00V   Cell5: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #2   0.00V   Cell6: 0.00V   Cell7: 0.00V   Cell8: 0.00V   Cell9: 0.00V  Cell10: 0.00V  Cell11: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #3   0.00V  Cell12: 0.00V  Cell13: 0.00V  Cell14: 0.00V  Cell15: 0.00V  Cell16: 0.00V  Cell17: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #4   0.00V  Cell18: 0.00V  Cell19: 0.00V  Cell20: 0.00V  Cell21: 0.00V  Cell22: 0.00V  Cell23: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #5   0.00V  Cell24: 0.00V  Cell25: 0.00V  Cell26: 0.00V  Cell27: 0.00V  Cell28: 0.00V  Cell29: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #6   0.00V  Cell30: 0.00V  Cell31: 0.00V  Cell32: 0.00V  Cell33: 0.00V  Cell34: 0.00V  Cell35: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #7   0.00V  Cell36: 0.00V  Cell37: 0.00V  Cell38: 0.00V  Cell39: 0.00V  Cell40: 0.00V  Cell41: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #8   0.00V  Cell42: 0.00V  Cell43: 0.00V  Cell44: 0.00V  Cell45: 0.00V  Cell46: 0.00V  Cell47: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #9   0.00V  Cell48: 0.00V  Cell49: 0.00V  Cell50: 0.00V  Cell51: 0.00V  Cell52: 0.00V  Cell53: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #10  0.00V  Cell54: 0.00V  Cell55: 0.00V  Cell56: 0.00V  Cell57: 0.00V  Cell58: 0.00V  Cell59: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #11  0.00V  Cell60: 0.00V  Cell61: 0.00V  Cell62: 0.00V  Cell63: 0.00V  Cell64: 0.00V  Cell65: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #12  0.00V  Cell66: 0.00V  Cell67: 0.00V  Cell68: 0.00V  Cell69: 0.00V  Cell70: 0.00V  Cell71: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #13  0.00V  Cell72: 0.00V  Cell73: 0.00V  Cell74: 0.00V  Cell75: 0.00V  Cell76: 0.00V  Cell77: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> Module #14  0.00V  Cell78: 0.00V  Cell79: 0.00V  Cell80: 0.00V  Cell81: 0.00V  Cell82: 0.00V  Cell83: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:50.991 -> CANbus   294.02mA  100% SOC 210000.00mAh322.00 | 20000 | 322.00mA  322.01 | 20000 | 322.01mA  321.91 | 20000 | 321.91mA  321.84 | 20000 | 321.84mA  321.75 | 20000 | 321.75mA  320.05 | 20000 | 320.05mA  
15:40:51.463 -> 
15:40:51.463 -> 0
15:40:51.463 -> BMS Status : 5 Error   | Key ON |  84
15:40:51.463 -> Out:0000 Cont:0000 In:1000 Charge Current Limit : 0 A DisCharge Current Limit : 0 A
15:40:51.463 -> 
15:40:51.463 -> 
15:40:51.463 -> Modules: 14 Cells: 84 Strings: 1  Voltage: 0.000V   Avg Cell Voltage: nanV  Low Cell Voltage: 5.000V   High Cell Voltage: 0.000V Delta Voltage: -5000mV   Avg Temp: 0.000C 
15:40:51.463 -> 
15:40:51.463 -> Module #1   0.00V   Cell0: 0.00V   Cell1: 0.00V   Cell2: 0.00V   Cell3: 0.00V   Cell4: 0.00V   Cell5: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #2   0.00V   Cell6: 0.00V   Cell7: 0.00V   Cell8: 0.00V   Cell9: 0.00V  Cell10: 0.00V  Cell11: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #3   0.00V  Cell12: 0.00V  Cell13: 0.00V  Cell14: 0.00V  Cell15: 0.00V  Cell16: 0.00V  Cell17: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #4   0.00V  Cell18: 0.00V  Cell19: 0.00V  Cell20: 0.00V  Cell21: 0.00V  Cell22: 0.00V  Cell23: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #5   0.00V  Cell24: 0.00V  Cell25: 0.00V  Cell26: 0.00V  Cell27: 0.00V  Cell28: 0.00V  Cell29: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #6   0.00V  Cell30: 0.00V  Cell31: 0.00V  Cell32: 0.00V  Cell33: 0.00V  Cell34: 0.00V  Cell35: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #7   0.00V  Cell36: 0.00V  Cell37: 0.00V  Cell38: 0.00V  Cell39: 0.00V  Cell40: 0.00V  Cell41: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #8   0.00V  Cell42: 0.00V  Cell43: 0.00V  Cell44: 0.00V  Cell45: 0.00V  Cell46: 0.00V  Cell47: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #9   0.00V  Cell48: 0.00V  Cell49: 0.00V  Cell50: 0.00V  Cell51: 0.00V  Cell52: 0.00V  Cell53: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #10  0.00V  Cell54: 0.00V  Cell55: 0.00V  Cell56: 0.00V  Cell57: 0.00V  Cell58: 0.00V  Cell59: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #11  0.00V  Cell60: 0.00V  Cell61: 0.00V  Cell62: 0.00V  Cell63: 0.00V  Cell64: 0.00V  Cell65: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #12  0.00V  Cell66: 0.00V  Cell67: 0.00V  Cell68: 0.00V  Cell69: 0.00V  Cell70: 0.00V  Cell71: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #13  0.00V  Cell72: 0.00V  Cell73: 0.00V  Cell74: 0.00V  Cell75: 0.00V  Cell76: 0.00V  Cell77: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> Module #14  0.00V  Cell78: 0.00V  Cell79: 0.00V  Cell80: 0.00V  Cell81: 0.00V  Cell82: 0.00V  Cell83: 0.00V  Neg Term Temp: 0.00C  Pos Term Temp: 0.00C
15:40:51.463 -> CANbus   320.05mA  100% SOC 210000.00mAh295.00 | 20000 | 295.00mA  295.05 | 20000 | 295.05mA  294.58 | 20000 | 294.58mA  293.76 | 20000 | 293.76mA  292.95 | 20000 | 292.95mA  279.11 | 20000 | 279.11mA  
15:40:51.964 -> 
tom91
Posts: 1357
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 108 times
Been thanked: 234 times

Re: Simp BMS

Post by tom91 »

So clearly EMI from the HV. Your wiring twisted as per OEM tesla? are the runs as short as possible? Are the runs not parallel with HV cables/busbars?
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

tom91 wrote: Fri May 24, 2024 9:08 am So clearly EMI from the HV. Your wiring twisted as per OEM tesla? are the runs as short as possible? Are the runs not parallel with HV cables/busbars?
Hmm. Sometimes BMS turns on with the following in the log (HV disconnected) and stays like that unless I restart via R command - doesn't work with the power cycle.

Code: Select all

14:40:38.103 -> Starting up!
14:40:38.103 -> SimpBMS V2 Tesla
14:40:38.103 -> 
14:40:38.103 -> Reason for last Reset: 
14:40:38.103 -> Power-on Reset
14:40:38.103 -> Low-voltage Detect Reset
14:40:38.103 -> 
14:40:38.103 -> Started serial interface to BMS.
14:40:39.884 -> Recovery SOC: 
14:40:39.884 -> 100
14:40:40.065 -> 
14:40:40.065 -> 0
14:40:40.065 -> BMS Status : 5 Error     0
14:40:40.065 -> Out:0000 Cont:0000 In:0000 Charge Current Limit : 0 A DisCharge Current Limit : 0 A
14:40:40.065 -> 
14:40:40.065 -> 
14:40:40.065 -> Modules: 0 Cells: 0 Strings: 1  Voltage: 0.000V   Avg Cell Voltage: nanV  Low Cell Voltage: 5.000V   High Cell Voltage: 0.000V Delta Voltage: -5000mV   Avg Temp: nanC 
14:40:40.065 -> 
14:40:40.065 -> CANbus   0.00mA  100% SOC 210000.00mAh  
14:40:40.065 ->    !!! Series Cells Fault !!!  
14:40:40.601 -> 
14:40:40.601 -> 
14:40:40.601 -> 0
14:40:40.601 -> BMS Status : 5 Error     0
14:40:40.601 -> Out:0000 Cont:0000 In:0000 Charge Current Limit : 0 A DisCharge Current Limit : 0 A
14:40:40.601 -> 
14:40:40.601 -> 
14:40:40.601 -> Modules: 0 Cells: 0 Strings: 1  Voltage: 0.000V   Avg Cell Voltage: nanV  Low Cell Voltage: 5.000V   High Cell Voltage: 0.000V Delta Voltage: -5000mV   Avg Temp: nanC 
14:40:40.601 -> 
14:40:40.601 -> CANbus   0.00mA  100% SOC 210000.00mAh  
14:40:40.601 ->    !!! Series Cells Fault !!!  
These are my settings:

Code: Select all

14:41:35.244 -> Battery Settings Menu
14:41:35.244 -> r - Reset AH counter
14:41:35.244 -> f - Reset to Coded Settings
14:41:35.244 -> q - Go back to menu
14:41:35.244 -> 
14:41:35.244 -> 
14:41:35.244 -> 1 - Cell Over Voltage Setpoint : 4200mV  
14:41:35.244 -> 2 - Cell Under Voltage Setpoint : 3000mV  
14:41:35.244 -> 3 - Over Temperature Setpoint : 65.00C  
14:41:35.244 -> 4 - Under Temperature Setpoint : -10.00C  
14:41:35.244 -> 5 - Cell Balance Voltage Setpoint : 3900mV  
14:41:35.244 -> 6 - Balance Voltage Hystersis : 40mV  
14:41:35.244 -> 7 - Ah Battery Capacity : 210Ah  
14:41:35.244 -> 8 - Pack Max Discharge : 30.00A  
14:41:35.244 -> 9 - Cell Discharge Voltage Limit Setpoint : 3200mV  
14:41:35.244 -> 0 - Slave strings in parallel : 1  
14:41:35.244 -> a - Cells in Series per String : 84  
14:41:35.244 -> b - setpoint 1 : 3100mV  
14:41:35.244 -> c - SOC setpoint 1 : 10 %   
14:41:35.244 -> d - setpoint 2 : 4100mV  
14:41:35.244 -> e - SOC setpoint 2 : 90 %   
14:41:35.244 -> g - Storage Setpoint : 3800mV  
14:41:35.244 -> h - Discharge Current Taper Offset : 300mV  
14:41:35.244 -> j - Discharge Current Temperature Derate : 40.00C  
14:41:35.244 -> k - Cell Discharge Voltage Hysteresis : 200mV  


14:42:21.815 -> Alarm and Warning Settings Menu
14:42:21.815 -> 1 - Voltage Warning Offset: 100mV
14:42:21.815 -> 2 - Cell Voltage Difference Alarm: 200mV
14:42:21.815 -> 3 - Temp Warning Offset: 5.00 C
14:42:21.815 -> 4 - Over and Under Voltage Delay: 500 mS

14:42:39.874 -> Charging Settings
14:42:39.874 -> 1 - Cell Charge Voltage Limit Setpoint: 40000mV
14:42:39.874 -> 2 - Charge Hystersis: 200mV
14:42:39.874 -> 3 - Pack Max Charge Current: 30.00A
14:42:39.874 -> 4- Pack End of Charge Current: 5.00A
14:42:39.874 -> 5- Charger Type: Elcon Charger
14:42:39.874 -> 6- Charger Can Msg Spd: 1000mS
14:42:39.874 -> 7- Can Baudrate: 500kbps
14:42:39.874 -> 8 - Charger HV Connection:  Behind Contactors
14:42:39.874 -> 9 - Charge Current derate Low: 0.00 C
14:42:39.874 -> a - Alternate Pack Max Charge Current: 15.00A
14:42:39.874 -> b - Charger AC to DC effiecency: 85%
14:42:39.874 -> c - Charger AC Voltage: 240VAC
14:42:39.874 -> d - Standard Can Voltage Scale: 0.01
14:42:39.874 -> q - Go back to menu

14:42:58.389 -> Current Sensor Calibration Menu
14:42:58.389 -> c - To calibrate sensor offset
14:42:58.389 -> s - Current Sensor Type :  Canbus Current Sensor 
14:42:58.389 -> 1 - invert current : 0
14:42:58.389 -> 2 - Pure Voltage based SOC : 1
14:42:58.389 -> 3 - Current Multiplication : 1
14:42:58.389 -> 7 - Can Current Sensor :  IsaScale IVT - S 
14:42:58.389 -> q - Go back to menu

14:43:19.954 -> Contactor and Gauge Settings Menu
14:43:19.954 -> 1 - PreCharge Timer: 0mS
14:43:19.954 -> 2 - PreCharge Finish Current: 1000 mA
14:43:19.954 -> 3 - PWM contactor Hold 0 - 255 : 50
14:43:19.954 -> 4 - PWM for Gauge Low 0 - 255 : 50
14:43:19.954 -> 5 - PWM for Gauge High 0 - 255 : 255
Here's my wiring setup. I know it ain't pretty, but HV and LV are mostly perpendicular or away from each other. HV connection between two boxes are shielded to the boxes, while LV is twisted pair cable.
IMG_20240524_142901.jpg
IMG_20240524_143410~2.jpg
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

This is probably unrelated, but as I was troubleshooting I also noticed that BMS is showing some odd spikes of current here and there when reading from ISA shunt (also inside of the same battery box and is actually closer to the HV components). SavvyCAN doesn't see these and neither does my Teensy VCU. The spikes are visible on the CAN that BMS sends out via 0x356 as seen below, as well as, when I monitor via Serial interface. Everything else that BMS sends out - temp, SOC, Status, voltage etc. - is steady.
The only difference in my VCU code from the BMS is that I don't use LPF for filtering ISA values.

Code: Select all

readingISAamps = (long)((incoming.buf[2] << 24) | (incoming.buf[3] << 16) | (incoming.buf[4] << 8) | (incoming.buf[5]));
Also my VCU is outside of the battery box. Maybe BMS needs to be moved out of the battery box!?
image.png
(no load, everything is idle, yet a spike..)


Edit:
Regarding the comm issues BMS<->batteries. I've noticed that the BMS looses the comms with the batteries not when I'm turning the motor, but randomly after, at no load - no EMI. That is, if I boot BMS and don't use the motor it works fine. Switch BMS to drive - works fine. But after running the motor and leaving everything idle for some time - BMS Error. I noticed that when this happens the LED on each battery board turns off also - normally blinking. That's why no comms! Now, if I pull out the J1 connector on the BMS that connects the batterers to the BMS, the LEDs on the batteries start blinking again. If I plug J1 connection back into the BMS - LEDs on Tesla boards turn brightly on for a sec and then back to blinking and BMS sees all of the modules again!
As if either the Tesla boards or BMS-Teensy UART go into sleep mode under whatever conditions.
The serial interface between the BMS and computer continues to work - can enter menu and change parameters.
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

I went back to the firmware revision with which my BMS arrived - grabbed .hex from the history of https://github.com/Tom-evnut/TeslaBMSV2
image.png
image.png
And all my comm problems disappeared! Both BMS to battery and ISA shunt current are steady! Anybody knows how can I get new firmware to work?
I tried the newest .hex and I tried to compile the newest project file - .ino, same result firmware gives comm issues.

I need to use the newest firmware since I've build my VCU and dashboard around the CAN messages that BMS sends in the newest rev.

This is my BMS board.
IMG_20240526_151914.jpg
tom91
Posts: 1357
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 108 times
Been thanked: 234 times

Re: Simp BMS

Post by tom91 »

alexbeatle wrote: Sun May 26, 2024 10:21 pm I went back to the firmware revision with which my BMS arrived
Wait you change to which version and the Tesla comms are stable? That is not really logical as the base level software for the comms has not changed since the start.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

tom91 wrote: Sun May 26, 2024 10:28 pm Wait you change to which version and the Tesla comms are stable? That is not really logical as the base level software for the comms has not changed since the start.
Doesn't make sense to me either. I looked through the commits too.
Here's a short video of BMS running on Feb2022 commit, ISA shunt CAN comms no value spikes:

Here's the latest commit, ISA shunt CAN comms has value spikes...


Later on the newest commit lost comms to the batteries and went into error, while the Feb2022 no error - waited way longer than that.
Screenshot_20240526_160308~2.jpg
tom91
Posts: 1357
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 108 times
Been thanked: 234 times

Re: Simp BMS

Post by tom91 »

Please give me the exact firmware number you are using. I have not heard of this issue from anyone else so this sounds quite like a specific problem to you and your setup. You are using the provided .hex to flash the firmware right?
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

tom91 wrote: Mon May 27, 2024 10:22 am Please give me the exact firmware number you are using. I have not heard of this issue from anyone else so this sounds quite like a specific problem to you and your setup. You are using the provided .hex to flash the firmware right?
This hex gives me issues...
https://github.com/Tom-evnut/TeslaBMSV2 ... ENSY32.hex
Also compiled .ino, but same problem...
https://github.com/Tom-evnut/TeslaBMSV2 ... aBMSV2.ino


This hex works for me..
https://github.com/Tom-evnut/TeslaBMSV2 ... ENSY32.hex

Thank you for you help.
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

I factory reset the Teensy (or the closes thing - restored all default bms parameter, erased the flash) on the BMS and then compiled and uploaded the latest revision - so far no issues with comms with the batteries... <confused>

Regarding the ISA shunt spikes in current readings. Looks like there was a commit to accommodate for the Jaguar Ipace ISA shunt, which reads 0x3c3 ID for current reading. As it turned out my LIM module is transmitting some cyclical data on the same ID (can add if interested). I don't see it documented, nor used in the i3 LIM code for Zombie, nor defined in dbc. The firmware revision which was working for me, was from before this change. Removing the option from the code fixed the current readings for me. Just FYI for those working with the LIMs.

Small note. Looks like the getcurrent(); function only gets called when new data arrives. My ISA shunt is powered on ignition (to save 12vdc battery), while bms always stays powered. So when Ignition switches off and the ISA shunt stops sending data, bms retains the last value from the ISA and doesn't reset to 0 or NA. I suppose it's debatable whether the ISA should be powered on all the time or not.

What I'm trying to troubleshoot now is unstable battery temp readings on the CAN messages sent from the BMS. The readings are steady on the serial, but on the CAN bus they reset to 0 here and there - both on SavvyCAN and on my VCU. Don't see any clash of IDs like in the case of the aforementioned current readings. As a matter of fact temp low and temp high are part of the 0x373 message, while temp average is part of 0x356 message - issue affecting different messages. Both of these messages report other values (pack voltage, cell voltage, etc.) and those are stable! Trying to see whether it's due to the way temps are getting requested from the BMSModuleManager. Any advice is appreciated.
JaniK
Posts: 395
Joined: Sun Aug 25, 2019 12:39 pm
Location: Finland
Has thanked: 53 times
Been thanked: 14 times

Re: Simp BMS

Post by JaniK »

I had 4 VW e-golf BMS modules with SimpBMS only powered by USB from laptop working fine, then connected another 4 and it only showed data from 1 module.

Started working when powered the SimpBMS with 12v.
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

JaniK wrote: Thu May 30, 2024 4:02 am I had 4 VW e-golf BMS modules with SimpBMS only powered by USB from laptop working fine, then connected another 4 and it only showed data from 1 module.

Started working when powered the SimpBMS with 12v.
I'm powering via 12v too.

Anybody else is seeing unstable temp reading, specifically on the CAN?
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

alexbeatle wrote: Tue May 28, 2024 4:33 pm I factory reset the Teensy (or the closes thing - restored all default bms parameter, erased the flash) on the BMS and then compiled and uploaded the latest revision - so far no issues with comms with the batteries... <confused>
Ok, so the only parameters I didn't factory reset was the # of strings in parallel and in series. And guess how we find the max and min values - exactly by searching through all module values.
image.png
Setting the # of modules in parallel and in series to another value and then back to the correct one fixed unstable temps.
Makes me think that config can get corrupted during firmware updates and oddly all of the config values need to be typed in again even if the setting menu show them correctly.
Perhaps this will be of use to somebody else.
tom91
Posts: 1357
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 108 times
Been thanked: 234 times

Re: Simp BMS

Post by tom91 »

That is very unlikely, best to do would be to force a factory reset and then input all your parameters.

Most checks are done on which modules have reported themselves, they get "reset" every so often to check that all the values being received are correct and none of them have stopped adding in their values.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

Ok, I must still be looking at the symptoms note the cause. After power reboot (disconnecting the power not resetting through the menu) the problem comes back. It however goes away immediately if I re-enter # of strings as mentioned here.
alexbeatle wrote: Fri May 31, 2024 2:23 am ....
Setting the # of modules in parallel and in series to another value and then back to the correct one fixed unstable temps.
....
I tried setting factory default through the menu - same difference. Tried factory defaulting and inputting the setting again with USB power and with external 12v - same issue.
I feel like something isn't stored into eeprom and gets lost on the power loss.
tom91
Posts: 1357
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 108 times
Been thanked: 234 times

Re: Simp BMS

Post by tom91 »

the settings are read from the eeprom on start up. if the settings show up in the menus they are from the eeprom.

is this issues you are mentioning present on which firmware version? I have as I said never had feedback close to these kinds of issues.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

tom91 wrote: Fri May 31, 2024 5:31 pm the settings are read from the eeprom on start up. if the settings show up in the menus they are from the eeprom.

is this issues you are mentioning present on which firmware version? I have as I said never had feedback close to these kinds of issues.
int firmver = 230719; //Year Month Day
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

I'm still struggling with the modules going to "sleep" here and there. I'd be test driving the car or stopped after driving and all of the sudden bms goes to error. All the lights on the Tesla modules are off. The only way to restore is to unplug the J1 connector, plug it back in and then reboot bms for it to renumber the modules.
Any advice to troubleshoot is much appreciated, folks.
tom91
Posts: 1357
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 108 times
Been thanked: 234 times

Re: Simp BMS

Post by tom91 »

Again, it will most likely be failing of comms. So you would need to figure out why it is happens or change the code to handle these errors and recover.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
alexbeatle
Posts: 201
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 56 times
Been thanked: 20 times

Re: Simp BMS

Post by alexbeatle »

tom91 wrote: Fri Jun 14, 2024 10:44 am Again, it will most likely be failing of comms. So you would need to figure out why it is happens or change the code to handle these errors and recover.
Planning a different route for the comm wires... :(

Meanwhile, I've discovered that I can print each module's status. I shall pull this up during the next error.
I see that on the power up my faults don't get cleared. Shouldn't these get reset via bms.clearFaults(); on boot?

I'm hoping the overvoltage faults will go away after balancing.

Code: Select all

21:42:21.096 -> Modules: 14    Voltage: 323.142V   Avg Cell Voltage: 3.847V     Avg Temp: 23.055C 
21:42:21.096 -> 
21:42:21.096 ->                                Module #1
21:42:21.096 ->   Voltage: 23.062V   (3.832V-3.847V)     Temperatures: (22.419C-23.050C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Overvoltage Cell Numbers (1-6): 1 2 3 4 5 6 
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #2
21:42:21.096 ->   Voltage: 23.074V   (3.844V-3.848V)     Temperatures: (22.239C-23.101C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #3
21:42:21.096 ->   Voltage: 23.083V   (3.845V-3.849V)     Temperatures: (22.333C-22.742C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #4
21:42:21.096 ->   Voltage: 23.086V   (3.845V-3.849V)     Temperatures: (22.402C-22.828C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Overvoltage Cell Numbers (1-6): 1 2 3 4 5 6 
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered

21:42:21.096 -> 
21:42:21.096 ->                                Module #5
21:42:21.096 ->   Voltage: 23.087V   (3.845V-3.849V)     Temperatures: (22.574C-23.135C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #6
21:42:21.096 ->   Voltage: 23.088V   (3.846V-3.850V)     Temperatures: (23.383C-23.889C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #7
21:42:21.096 ->   Voltage: 23.081V   (3.845V-3.848V)     Temperatures: (23.333C-23.939C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #8
21:42:21.096 ->   Voltage: 23.080V   (3.844V-3.848V)     Temperatures: (22.916C-23.610C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #9
21:42:21.096 ->   Voltage: 23.069V   (3.843V-3.847V)     Temperatures: (23.103C-23.585C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #10
21:42:21.096 ->   Voltage: 23.080V   (3.845V-3.849V)     Temperatures: (23.009C-23.534C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Overvoltage Cell Numbers (1-6): 1 2 3 4 5 6 
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #11
21:42:21.096 ->   Voltage: 23.080V   (3.844V-3.848V)     Temperatures: (22.796C-23.415C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #12
21:42:21.096 ->   Voltage: 23.095V   (3.847V-3.850V)     Temperatures: (22.762C-23.475C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Overvoltage Cell Numbers (1-6): 1 2 3 4 5 6 
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #13
21:42:21.096 ->   Voltage: 23.093V   (3.846V-3.850V)     Temperatures: (22.676C-23.373C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Overvoltage Cell Numbers (1-6): 1 2 3 4 5 6 
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
21:42:21.096 -> 
21:42:21.096 ->                                Module #14
21:42:21.096 ->   Voltage: 23.085V   (3.842V-3.849V)     Temperatures: (22.685C-23.229C)
21:42:21.096 ->   MODULE IS FAULTED:
21:42:21.096 ->     Power on reset has occurred
21:42:21.096 ->   MODULE HAS ALERTS:
21:42:21.096 ->     Address not registered
nkiernan
Posts: 516
Joined: Mon Feb 24, 2020 8:59 pm
Location: Ireland
Has thanked: 291 times
Been thanked: 67 times

Re: Simp BMS

Post by nkiernan »

I'm currently tidying up my electrical setup for my project and have SimpBMS/BMW X5 BMS and BMW X5 SBOX working independently. I've recently tryied to put SimpBMS, X5 BMS and the SBOX on the same CAN bus, intended to work on Zombieverter CAN 2 bus (but currently still testing with a DUE sketch in place of Zombie for the serial feedback).

What I've found is when both Simp/X5 BMS and the SBOX are on the same bus, any request to the SBOX (from DUE manual serial input) to close contactors results in a shotgunning of the contactors. I don't believe there is a clash in any ID's (SBOX on 0x100 and 0x300 ID's).

Wondering if I'm missing something obvious about why they might not work together?

Disconnecting the CAN line to the X5 BMS resolves the issue! Now I do know the SBOX and the X5 BMS and ZV (and even the DUE I'm using for testing in place of the ZV for now) all have terminating resistors leaving approx 40R on the bus. I thought this was the issue but when I disconnect the X5 BMS and put a spare 120R resistor in place of it (to mimic its internal terminating resistor and getting the same 40R on the bus) the SBOX works away happily.

I didn't get to capture a log but will do that
tom91
Posts: 1357
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 108 times
Been thanked: 234 times

Re: Simp BMS

Post by tom91 »

royhen99 wrote: Wed Apr 24, 2024 1:03 pm I tested this last year. Battery modules and Sbox clash on id 0x100 so can not share the same bus.
nkiernan wrote: Sun Jun 16, 2024 7:10 pm tryied to put SimpBMS, X5 BMS and the SBOX on the same CAN bus
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
Post Reply