Commit graph

255 commits

Author SHA1 Message Date
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 Öster
4199526305
Merge pull request #57 from dalathegreat/tesla-model3-fixes
Tesla model3 fixes
2023-09-16 22:41:04 +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 Öster
363fdbedfe
Merge pull request #56 from dalathegreat/user-config-rewrite
Rewrite with central user settings file
2023-09-15 14:12:08 +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 Öster
7263b36b6c
Merge pull request #45 from dalathegreat/dual-can
- Added support for Dual CAN Bus Using MCP2515
2023-08-28 15:40:31 +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
Daniel
f9ca90b20e Refactor for merge to main 2023-08-27 12:33:12 +03:00
Daniel
961e33033e Restore .h from main 2023-08-27 11:17:32 +03:00
rjsc
de36a34be8
Merge pull request #53 from dalathegreat/main
Telsa Model 3 Battery update
2023-08-21 10:19:57 +01:00
Daniel Öster
1c6cd17eae
Merge pull request #52 from dalathegreat/tesla-hvil-bypass
Tesla HVIL bypass
2023-08-20 23:08:53 +03:00
Daniel
fa4ec899ee Add serialprint about HVIL 2023-08-20 23:07:40 +03:00
Daniel
61c4a26aff Add HVIL omitting. Improve logs 2023-08-20 21:17:21 +03:00
rjsc
8497537b25
Update SOLAX-CAN.cpp 2023-08-19 00:11:33 +01:00
rjsc
2177acb5c2
Update NISSAN-LEAF-BATTERY.h 2023-08-19 00:08:18 +01:00
rjsc
12a4bcf82e
Update NISSAN-LEAF-BATTERY.h
SoC limits back in sync with main branch.
2023-08-19 00:05:12 +01:00
Daniel
7f91c449a3 Rewrite to separate modbus from .ino 2023-08-19 00:29:55 +03:00
RJSC
2a8db9dff8 * Fixed contactor PWM pins initialization
* Nissan Leaf Battery limits changed to SoC between 6% and 96% as it is used in the car
2023-08-16 23:11:38 +01:00
rjsc
beaeddcbe9
Merge pull request #49 from dalathegreat/main
Add timeout to CAN write to prevent crashing
2023-08-16 22:31:51 +01:00
Daniel Öster
0ee021bbac
Merge pull request #48 from dalathegreat/can-crash
Add timeout to CAN write to prevent crashing
2023-08-16 23:57:56 +03:00
Daniel
7025811c6e Add timeout to CAN write to prevent crashing 2023-08-16 23:55:28 +03:00
rjsc
233e7c741d
Merge pull request #47 from dalathegreat/main
Modbus active only when needed
2023-08-16 00:49:41 +01:00
Daniel Öster
56f7f205e4
Merge pull request #46 from dalathegreat/modbus-refactor
Add ifdefs for modbus server
2023-08-15 23:56:23 +03:00
Daniel
a453ed60f9 Add ifdefs for modbus server 2023-08-15 23:21:21 +03:00