Commit graph

702 commits

Author SHA1 Message Date
Daniel
12dbd662b8 Fix notes on SMA 2023-10-16 13:23:59 +03:00
Daniel
d856f6487b CAN send test 2023-10-13 20:33:32 +03:00
Daniel
00674b0678 Add Ah calculation 2023-10-12 22:53:09 +03:00
Daniel
7aa08fe248 Map more values 2023-10-12 15:28:43 +03:00
Daniel
97959b6fb9 Add correct SMA messages 2023-10-12 13:05:56 +03:00
Daniel
5f4d0324aa Add SMA skeleton 2023-10-12 10:39:27 +03:00
Daniel
9e07ec78f8 Improve debug printouts 2023-10-08 21:09:06 +03:00
Daniel
590b483fea Raise baud rate for USB to 115200 2023-10-08 21:08:44 +03:00
Daniel
62a1493c1d Improve convert uint16 function and header 2023-10-08 15:43:33 +03:00
Daniel
f103b36223 Fix scalings 2023-10-06 23:10:51 +03:00
Matvey Adzhigirey
39abc2fa02 Improvements to debug output for Tesla batteries. 2023-10-05 19:56:36 -04:00
Daniel
fc6661751b Improve parameter mapping and log 2023-10-05 17:37:58 +03:00
Daniel Öster
21f0aab175
Fix Mitsubishi showing CAN error
Move CANstillAlive outside switch so it triggers on CAN receive
2023-10-04 17:48:24 +03:00
Daniel Öster
447e52cb92
Fix cellvoltage init for tesla
Add init value to cellvoltages, to avoid RED LED going over BLUE LED in startup
2023-10-04 08:50:12 +03:00
StarkJohan
d3ace29b02 Update SOLAX-CAN.cpp
Fixes and improves:
- Current readings
- Scaling of more values
- BMS emulation
2023-09-30 15:23:37 +02:00
Daniel
85d5d1371c Only print used temperature value 2023-09-29 23:28:25 +03:00
Daniel
19fd332631 Fix scaling of LB_Current 2023-09-29 23:22:39 +03:00
Daniel
3f25c430db Fix halting 7BB polling when leafspy on 2023-09-29 22:58:45 +03:00
Daniel
75595b3aa6 Map cellvoltages to variable used for inverter 2023-09-17 20:39:24 +03:00
Daniel
fda922105b Increaes element size to 50k 2023-09-17 19:45:31 +03:00
Daniel
92d8850261 Added 32051 registers 2023-09-17 19:28:18 +03:00
Daniel
4a882d990b Added registers 39500 2023-09-17 19:00:24 +03:00
Daniel
407a68a3c0 Add Luna2000 to USER_SETTINGS 2023-09-17 18:35:55 +03:00
Daniel
b876b0b5b5 Merge branch 'modbus-luna2000' of https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24 into modbus-luna2000 2023-09-17 18:31:58 +03:00
Daniel
95e5e20330 Rebase on main 2023-09-17 18:30:32 +03:00
Daniel
cb0522fa44 Fix for charge W value 2023-09-17 18:18:26 +03:00
Daniel
0c6fe1fc07 Contactor fix 2023-09-17 12:44:41 +03:00
Daniel
1bf651abc2 Add HVIL safety 2023-09-17 11:24:20 +03:00
Daniel
dd95705107 Improve fault-contactor opening handling 2023-09-17 11:21:25 +03:00
Daniel
441549b645 Move CANstillAlive inside BMS message 2023-09-17 11:06:48 +03:00
Daniel
6b50e98d42 Tweak low voltage cutoff 2023-09-16 22:18:22 +03:00
Daniel
3144bc0708 Add cell min/max/dev safeties 2023-09-16 22:03:59 +03:00
Daniel
96204d2ce1 change A to W for limits 2023-09-16 12:47:00 +03:00
Daniel
0400e42753 change debug to include more SOC 2023-09-16 12:36:15 +03:00
Daniel
65c2f35a4e Add enumeration for HVIL state 2023-09-15 16:40:38 +03:00
Daniel
8fb078b370 Add cellvoltage readout 2023-09-15 15:37:06 +03:00
Daniel
b1ee3aedb1 Fix bms_status handling 2023-09-15 09:58:59 +03:00
Daniel
bcde54ce0d Remove HVIL bypass. Add contactor stop 2023-09-15 09:50:36 +03:00
Daniel
f22e0fa285 Fix typo in header 2023-09-14 13:33:25 +03:00
Daniel
eeefd20970 Rewrite with central user settings file 2023-09-14 13:23:15 +03:00
Daniel Öster
120fa9b5e7
Update TESLA-MODEL-3-BATTERY.cpp
Fix sending of 221 message
2023-09-13 21:23:20 +03:00
Daniel Öster
aa5111804c
Fix overflow in max charge power
The if/if/else did not prevent overflows, this fixes the max target charge power going over 70 000 W
2023-08-28 16:09:22 +03:00
Daniel
325ef0039f Fix compilation error 2023-08-28 00:18:44 +03:00
Daniel
188812a565 Fix multiple defines, add ACAN locally 2023-08-27 22:47:11 +03:00
Daniel
284c32cda8 Catch polled temp anomalies 2023-08-27 22:03:12 +03:00
Daniel
3224876f1c Safer calculation of SOC, and logging 2023-08-27 21:51:36 +03:00
Daniel
aefc451586 Change types for defines 2023-08-27 21:37:56 +03:00
Daniel
1c2aeca73b Crude fix for define not seen 2023-08-27 14:16:08 +03:00
Daniel
43e39e6b95 Fix define 2023-08-27 12:52:50 +03:00
Daniel
98fd24892b Fix compilation issue 2023-08-27 12:49:22 +03:00