Commit graph

146 commits

Author SHA1 Message Date
Matt Holmes
cd7e0b51ea Fixing typo and removing unused led_color enum 2025-08-21 18:13:17 +01:00
Matt Holmes
d4f0e188fe Refactoring led handler, webserver and mqtt to all use a common BE status enum rather than relying on duplicatitng logic or using led color 2025-08-21 17:33:15 +01:00
Jaakko Haakana
d8534b8fa0 Merge from main and fix conflicts 2025-08-03 21:54:06 +03:00
Daniel Öster
807576a252 Add SOH candidate and contactor opening event 2025-07-28 11:10:32 +03:00
Jaakko Haakana
28609f18a6 Merge from main and fix conflicts 2025-07-26 16:57:29 +03:00
Jaakko Haakana
9e44de269c Fix test compilation errors and max 2025-07-26 15:53:24 +03:00
Jaakko Haakana
995cc7784c Add working unit tests 2025-07-26 15:19:49 +03:00
Jonny
4ad621f6c3 Add a 64-bit millis64() function to avoid rollover issues 2025-07-26 10:31:30 +01:00
Jaakko Haakana
f609d54a14 Add some required includes 2025-07-25 19:11:07 +03:00
Jaakko Haakana
64d1fa418a Remove include.h, does not build yet 2025-07-23 09:32:53 +03:00
Daniel Öster
342090f3b8
Merge pull request #1287 from kyberias/hal2
Hal refactoring and GPIO allocations
2025-07-22 11:33:18 +03:00
Jaakko Haakana
001d254cd3 Use rollover count at the time of the event, not the current value to
produce correct dates. Use 64-bit integers for timestamp to ease
arithmetic.
2025-07-21 09:52:07 +03:00
Jaakko Haakana
895ebc07a2 Clarify GPIO error messages 2025-07-13 09:51:25 +03:00
Jaakko Haakana
2602316369 Merge from main 2025-07-02 19:09:01 +03:00
Jaakko Haakana
e3de4e546c Battery and inverter can bus can be selected in the UI 2025-06-29 20:33:45 +03:00
Daniel Öster
b66934fb42 Add improved statemachine for isolation disable 2025-06-18 14:51:50 +03:00
Daniel Öster
702149f388 Add event for SMA pairing event to aid troubleshooting 2025-06-09 22:00:31 +03:00
Daniel Öster
cd5facf774 Merge branch 'main' into improvement/can-overrun-refactoring 2025-05-03 21:36:37 +03:00
Daniel Öster
e4cf649f3c Add high temperature fault event 2025-05-03 11:55:40 +03:00
Daniel Öster
792eac2858 Improve wording on enable event 2025-05-01 12:04:36 +03:00
Daniel Öster
363804710d Add Event for missing enable line for SMA 2025-04-28 18:12:29 +03:00
Daniel Öster
c8de168435 Simplify can sending routine and perf check 2025-04-26 23:43:51 +03:00
Daniel Öster
5bbfa7f962
Update description for Equipment Stop 2025-04-16 23:04:13 +03:00
Daniel Öster
dc470e64c4 Add CPU overheat event 2025-04-15 19:08:12 +03:00
Cabooman
23e62defb5 First commit 2025-03-10 07:50:43 +01:00
Daniel Öster
92e62fad4a Remove unused variables 2025-03-06 22:47:18 +02:00
Daniel Öster
51b0e80132 Move millis() check into datalayer 2025-03-06 22:45:42 +02:00
Daniel Öster
873c5e249e Remove loop, simplify events section 2025-03-06 21:59:48 +02:00
Daniel Öster
8d21930101 Optimize CAN-Native driver and event handling 2025-03-06 19:01:13 +02:00
laughingguffly
d8810ba817
Merge branch 'main' into feature/bms_reset_at_with_ntp 2025-02-16 19:17:43 +01:00
Daniel Öster
a8d8dffd5c Add event for rjxzs BMS error and how to clear 2025-02-15 23:13:34 +02:00
laughingguffly
e84f73709d merge with main branch 2025-02-08 21:39:34 +00:00
laughingguffly
b75d5fb20f add PERIODIC BMS RESET Events 2025-02-08 14:40:09 +00:00
laughingguffly
aab9f876d9 add BMS RESET events 2025-02-07 20:41:43 +00:00
Marijn van Galen
3def2fe5ed
Change error to warning as agreed. 2025-02-04 22:04:06 +01:00
mvgalen
36ab214ecf Fix code formatting. 2025-02-04 10:45:56 +01:00
mvgalen
d678ea1981 Add event for large temperature difference in battery 2025-02-04 08:45:39 +01:00
Matt Holmes
f807890b28 Add warning event if SD card fails to initialize 2025-02-02 09:49:04 +00:00
Daniel Öster
8f6d583468
Improvement: Make CAN events more readable (#823)
* Rename CAN events to make them simpler to debug

* Add buffer full check for MCP2515

* Add charger CAN missing event
2025-01-27 17:35:53 +02:00
Matt Holmes
31bf24c9e3
Merge pull request #798 from dalathegreat/ferature/zoe-fuse-event
Feature: Add event for blown fuse in Zoe battery
2025-01-17 21:22:08 +00:00
Daniel Öster
035831f2bf Add event for blown fuse 2025-01-15 12:11:39 +02:00
mvgalen
9410b8732b Changes due to review comments
- Split bms_status (system status) to real_bms_status (bms status)
- Put #ifdef DEBUG_LOG around all log calls.
- Do not update bms_status (system status) directly, fire event instead from automatic precharge control
- Add Battery BMS status to webserver for MEB battery type only
2025-01-14 22:26:31 +01:00
mvgalen
753b506068 Revert "Change default state of bms_Status to INACTIVE and only switch to ACTIVE upon reception of SOC from battery."
This reverts commit f6c73e9481.
2025-01-14 19:19:10 +01:00
mvgalen
57fbe69b14 Do not set CAN_STILL_ALIVE from reset_all_events 2025-01-14 17:19:19 +01:00
mvgalen
fbd9fe6900 Merge remote-tracking branch 'origin/main' into feature/automatic-precharge 2025-01-14 08:40:24 +01:00
Daniel Öster
7c14b8a0c0 Add CRITICAL cell voltage safeties 2025-01-11 21:07:40 +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
a60a1c3b5c Add balancing start/end event 2025-01-07 16:01:17 +02:00