Commit graph

2694 commits

Author SHA1 Message Date
Daniel Öster
606866e3e3 Phase out .md in favour of Wiki 2025-01-08 19:30:11 +02:00
Daniel Öster
b75275e716 Remove references to RGB 2025-01-08 19:26:34 +02:00
Daniel Öster
949bfb172a Remove unused defines 2025-01-08 19:21:11 +02:00
Daniel Öster
733d52d72b Remove superflous event description 2025-01-08 19:15:28 +02:00
Daniel Öster
89fc610366 Remove unused test_on_target event handling 2025-01-08 19:08:49 +02:00
Daniel Öster
4447014243 Typo in .cpp file 2025-01-08 19:03:44 +02:00
Daniel Öster
d14af30028 Remove unreachable RGB function 2025-01-08 18:57:59 +02:00
Matt Holmes
d2d67db844
Adding ability to remotely trigger a BMS reset via MQTT and configure Device ID for multiple emulators (#746)
* Adding ability to remotely trigger a BMS reset via MQTT

* Adding comment to remove build warning

* Enabling configuration of HA Device Id to allow for multiple battery emulators in HA without collision
2025-01-08 17:53:23 +01:00
Daniel Öster
b6d7217036 Remove unused code and trim variable allocs 2025-01-08 18:31:00 +02:00
Daniel Öster
77d83e5eb1 Remove intermediate variable to save memory 2025-01-08 18:04:35 +02:00
Daniel Öster
221ce94d51 Add isolation clearing function 2025-01-07 20:42:54 +02:00
Daniel Öster
64e633f10f
Merge pull request #718 from dalathegreat/feature/tesla-balancing
Feature: Add forced Tesla LFP balancing functionality
2025-01-07 18:44:18 +03:00
Daniel Öster
d852692b2e Increase max LFP allowed cell limit 2025-01-07 16:03:01 +02:00
Daniel Öster
3353bece6c Increase LFP allowed imbalance mv limit 2025-01-07 16:02:02 +02:00
Daniel Öster
a60a1c3b5c Add balancing start/end event 2025-01-07 16:01:17 +02:00
mvgalen
ce949b2162 Fix extended addressing mode of DTC msg. Add missing break. 2025-01-06 22:18:25 +01:00
mvgalen
8dfbee5b72 Add CAN include. 2025-01-06 21:44:27 +01:00
mvgalen
5568617dd5 Add dump_frame to log function 2025-01-06 21:02:17 +01:00
mvgalen
21031bf60d Add DTC request every second.
- Add DTC request every second.
- Add log entry for unknown CAN messages.
2025-01-06 20:07:06 +01:00
Daniel Öster
e387ab9cf0 Add support for Sono Motors Battery 2025-01-06 10:56:27 +02:00
Daniel Öster
6944561b31
Merge pull request #742 from dalathegreat/enhancement/logging
Fix bugs in printf logging code & add version to log
2025-01-06 00:07:22 +03:00
Matt Holmes
1e93ad8740
Improvements to CAN logging to SD to significantly improve performance for busy CAN networks (#752)
- Migrate from SPI SD library to SD_MMC
- Minimise the number of individual file writes by batching writes where possible
- Write a binary stream to the buffer to stop corruption
2025-01-05 22:01:21 +01:00
Daniel Öster
33cbbd3c33
Update CANFD library with 2517 compatibility toggle (#753) 2025-01-05 21:59:21 +01:00
Daniel Öster
6cb892b4bc
Update ArduinoJson to v7.3.0 (#750) 2025-01-05 21:49:25 +01:00
Daniel Öster
b81e0f5647 Change forced startup messages to 60 second interval 2025-01-05 16:58:19 +02:00
mvgalen
af296ac88a Move logging of version/data/time to setup()
Move logging of version/data/time to setup() to ensure it is also printed to serial.
2025-01-05 11:48:28 +01:00
Daniel Öster
ae0506125f Move BYD startup messages to 10s block 2025-01-04 23:41:13 +02:00
mvgalen
f47f5ca9d3 Move logging of version/data/time to setup()
Move logging of version/data/time to setup() to ensure it is also printed to serial.
2025-01-04 22:29:46 +01:00
Daniel Öster
8c8fddd32b Make SPA use BMS allowed charge/discharge values 2025-01-04 21:52:56 +02:00
Daniel Öster
bf08d5b852 Add more sanity checking to cellvoltage reading 2025-01-04 11:31:34 +02:00
Daniel Öster
3f993f7d23 Add more battery info data 2025-01-04 11:14:19 +02:00
Daniel Öster
01ae0c1278
Volvo/Polestar: Add contactor closing and DTC reset (#744)
* Add contactor closing and DTC reset
2025-01-03 21:53:38 +01:00
Daniel Öster
7df7992149
Kia64: Add sanity checking for last cellvoltages (#745)
* Add sanity checking for last cellvoltages
2025-01-03 20:53:04 +01:00
mvgalen
0512d02101 Fix bugs in printf logging code & add version to log
- Fix printf end of line detection
- Fix overwriting of timestamp in printf path
- Add version + build date/time to log
2025-01-03 19:46:03 +01:00
Daniel Öster
c8efe2ff63
Add support for BMS2 power (#741) 2025-01-03 14:52:58 +01:00
mvgalen
fd76959a21 Fix code formatting. 2025-01-03 14:39:19 +01:00
mvgalen
3705d27fc3 Fix code formatting 2025-01-03 14:34:07 +01:00
mvgalen
8246e1d869 Fix bugs in printf logging code & add version to log
- Fix printf end of line detection
- Fix overwriting of timestamp in printf path
- Add version + build date/time to log
2025-01-03 14:31:44 +01:00
Daniel Öster
e0d72b71aa
Merge pull request #734 from LevinSwe/main
Slow down polling of ParameterPolling KIA / Hyundai
2025-01-03 01:12:52 +03:00
Daniel Öster
33aa75bd7c
Add BMS power reset functionality (#706) 2025-01-02 22:43:31 +01:00
mvgalen
7d431f688d Improve handling of bms_status for DOUBLE_BATTERY 2025-01-02 21:58:35 +01:00
mvgalen
f6c73e9481 Change default state of bms_Status to INACTIVE and only switch to ACTIVE upon reception of SOC from battery.
- Change default state of bms_Status to INACTIVE
- switch to ACTIVE upon reception of SOC from battery.
- Do not change bms_mode to ACTIVE upon reception of info/warning/debug event.
- Reset bms_mode to INACTIVE and CAN_battery_still_alive when resetting all events
2025-01-02 21:58:35 +01:00
mvgalen
dccfca17ea Add Automatic Precharge Control for modified HIA4V1 boards 2025-01-02 21:58:24 +01:00
Matt Holmes
f138f97905
Adding feature to log to SD Card (#708)
* Adding feature to log to SD Card

Co-authored-by: mvgalen <marijnvangalen@gmail.com>
2025-01-02 21:46:10 +02:00
LevinSwe
5babcc03bd
Update KIA-HYUNDAI-64-BATTERY.cpp
- Removed Non-used parameter polling IDs 7 -- 10
- Moved the PID counter Max value code inside the if (hold counter) code.
2025-01-02 19:14:08 +01:00
LevinSwe
91e0e55fd5
Update KIA-HYUNDAI-64-BATTERY.cpp 2025-01-02 15:29:40 +01:00
LevinSwe
884ed718d3
Update KIA-HYUNDAI-64-BATTERY.cpp
- Expand the time of parameterID polling to increase the ID-counter every other time instead of every 100ms cycle.
- Sometimes the cell voltages are corrupted if polled to fast.
2025-01-02 15:05:33 +01:00
Daniel Öster
54db0a2216 Merge branch 'main' into feature/tesla-balancing 2025-01-02 14:43:39 +02:00
mvgalen
3d1f535b09
* Fix issue with % in log output conflicting with templating character
* Fix issue with % in log output conflicting with templating character

- Split index_html string in header and footer part
- Use header and footer for index html template page
- Fix missing html and head tags in minified index html.
- Do not use templating engine for debug and can log pages, by using index html header and footer directly in generated content.

* Change pct to %.

* Revert "Fix crash caused by percentage char"

This reverts commit 04a68fc89e.
The original commit only fixed the symptoms, the cause has been fixed,
now we ran revert these.

* Revert "Remove percentage sign from logging"

This reverts commit af05f28755.
The original commit only fixed the symptoms, the cause has been fixed,
now we ran revert these.
2025-01-02 13:22:52 +01:00
mvgalen
4b19db29f9 Revert "Remove percentage sign from logging"
This reverts commit af05f28755.
The original commit only fixed the symptoms, the cause has been fixed,
now we ran revert these.
2025-01-02 11:46:21 +01:00