Commit graph

1435 commits

Author SHA1 Message Date
amarofarinha
917f76fd47 button name on web site 2024-10-03 13:59:43 +01:00
amarofarinha
f7f1427aef long press increased to 15s 2024-10-03 13:36:20 +01:00
amarofarinha
8fed9f237a change terms 2024-10-03 10:26:03 +01:00
Daniel Öster
c161e95e7e Make tighter mv celldiff for pylon 2024-10-03 11:46:54 +03:00
amarofarinha
adf8185d33 Replaced all instances of "emergency" with "equipment" in the code for improved clarity and alignment with the feature's purpose. 2024-10-03 09:43:41 +01:00
Daniel Öster
ce54203382 Refactor cellvoltage safeties 2024-10-03 11:36:47 +03:00
amarofarinha
7b3594c248 stop equipment before reboot 2024-10-02 20:49:01 +01:00
amarofarinha
173acab23a NC logic for button. 2 button behaviors. some suggestions implemented 2024-10-02 16:20:10 +01:00
Brian McKenna
66599e0e53 RJXZS: Map errors to Battery Emulator events 2024-10-02 08:33:37 +00:00
amarofarinha
8344bf5179 #ifdef missing 2024-10-02 03:10:51 +01:00
amarofarinha
c1a262421b Implement Support for External Equipment / Emergency Button on Battery Emulator 2024-10-02 02:50:32 +01:00
amarofarinha
81cd6780a3 Initial Implementation of Core Emergency Stop Feature on Battery Emulator 2024-10-01 19:12:22 +01:00
Daniel Öster
55340886af Add event for missing inverter, fix capping value 2024-10-01 11:23:19 +03:00
Daniel Öster
1d786463a8 Merge branch 'main' into feature/foxess-inverter 2024-10-01 11:01:02 +03:00
Daniel Öster
3f4ffb8055
Update version number to signal dev 2024-10-01 11:00:14 +03:00
Daniel Öster
af9886ad33
Update Software.ino for release 2024-10-01 10:46:57 +03:00
Daniel Öster
966a6c5517 Add error message incase MCP2515 fails to start 2024-09-30 16:02:38 +03:00
amarofarinha
c2433bd81b
Merge pull request #505 from amarofarinha/main
Improve OTA Update by Removing Delay and Immediate CAN Control
2024-09-29 18:14:15 +01:00
Daniel Öster
33dd510fad
Merge pull request #504 from dalathegreat/bufgfix/missing-cellmonitor-imiev
Bugfix iMIEV: Set amount of cellvoltages
2024-09-29 20:06:47 +03:00
Daniel Öster
840ae75436
Merge pull request #489 from dalathegreat/bugfix/pylon-voltages
Pylon Battery: Add voltage limits, remove faulty safety
2024-09-29 20:03:18 +03:00
amarofarinha
239371c314 comment correction 2024-09-29 16:28:46 +01:00
amarofarinha
1ff1101566 Improve OTA Update by Removing Delay and Immediate CAN Control 2024-09-29 16:24:14 +01:00
Daniel Öster
75707d3e32
Set amount of cellvoltages 2024-09-29 17:31:39 +03:00
Daniel Öster
bb0aa930e2
Make cellvolt check work with double 2024-09-29 15:13:17 +03:00
Daniel Öster
2a359d95ac Add charge stop bit writing 2024-09-29 14:13:43 +03:00
amarofarinha
11886bec0d
Merge pull request #499 from amarofarinha/Pause-Function-Terminology
Fix panic issue and pause function terminology
2024-09-29 10:58:48 +01:00
amarofarinha
95ade74d0b pre-commit fix 2024-09-29 09:17:36 +01:00
amarofarinha
7614c0473d Fix panic Issue on OTA and change pause terminology 2024-09-29 09:16:34 +01:00
StarkJohan
58f560a909 Merge branch 'main' of https://github.com/StarkJohan/Battery-Emulator into main 2024-09-29 07:33:53 +02:00
StarkJohan
207a405b77 Improved DEBUG_CANFD_DATA output ... MORE!
This PR adds outgoing canfd messages to the DEBUG_CANFD_DATA serial output as well as direction info to make debug life easier. Updated the solution according to suggestions from PR 495/496

Example output:

07:25:10.968 -> RX 111 66 F9 00 D5 00 00 00 00
07:25:11.125 -> TX 110 0F C8 0A 28 02 3A 02 EE
07:25:11.738 -> RX 91 0E A6 00 03 00 00 02 00
07:25:12.126 -> RX D1 02 08 00 00 00 00 02 00
07:25:12.544 -> RX 111 66 F9 00 D7 00 00 00 00
07:25:13.125 -> TX 110 0F C8 0A 28 02 3A 02 EE
07:25:13.319 -> RX 91 0E A6 00 03 00 00 02 00
07:25:13.740 -> RX D1 02 08 00 00 00 00 02 00
07:25:14.127 -> RX 111 66 F9 00 D8 00 00 00 00
07:25:14.936 -> RX 91 0E A6 00 03 00 00 02 00
07:25:15.097 -> TX 110 0F C8 0A 28 02 3A 02 EE
07:25:15.323 -> RX D1 02 08 00 00 00 00 02 00
07:25:15.743 -> RX 111 66 F9 00 DA 00 00 00 00
2024-09-29 07:32:31 +02:00
amarofarinha
09421057c4 code style 2024-09-28 21:21:14 +01:00
Daniel Öster
4363ecaa5e Add FOXESS to github workflow 2024-09-28 22:29:35 +03:00
amarofarinha
0cd0b384c3 Fix: Disable Chained CAN Sending During OTA Updates to Prevent Incomplete Communication Control 2024-09-28 19:42:06 +01:00
Daniel Öster
c77207d84e Decode more CAN messages 2024-09-28 21:34:44 +03:00
amarofarinha
9e181e292d
Merge pull request #491 from amarofarinha/main
Compilation fix - order_events declared inside wrong #ifdef
2024-09-28 17:47:07 +01:00
Daniel Öster
3d45edaa18 Make sending large batch of messages manageable 2024-09-28 15:37:37 +03:00
Daniel Öster
7cf2a136ac Add all missing CAN messages 2024-09-28 14:18:44 +03:00
amarofarinha
2a1424c969 Compilation fix - order_events declared inside wrong #ifdef 2024-09-28 08:51:50 +01:00
Daniel Öster
24b3c6ddd5 Add initial files for Foxess 2024-09-27 23:19:22 +03:00
Daniel Öster
3bce188f4f Add voltage limits, remove safety 2024-09-27 19:41:55 +03:00
Daniel Öster
72f5c681cd Fix reset not clearing bms_status 2024-09-26 22:22:51 +03:00
Daniel Öster
a2efc21642 Add feature to clear events 2024-09-26 22:01:21 +03:00
Daniel Öster
8e8fffe51a Compile error fix 2024-09-26 19:47:50 +03:00
Daniel Öster
eb2b538724 Restore 500ms, and fix setting limits 2024-09-26 19:46:37 +03:00
Daniel Öster
1a4d5a73f3 restore minification 2024-09-26 19:42:57 +03:00
Daniel Öster
35d7b35737 Speedup and voltage limits added 2024-09-25 22:58:25 +03:00
Christopher Obbard
ca98c123ca Fix: PWM_CONTACTOR_CONTROL now actually engages contactors
When PWM_CONTACTOR_CONTROL was set the contactor coil pins
for positive & negative never actually went high. This was
due to a wrong argument passed to ledcWrite: the existing
code used the PWM channel; while ledcWrite actually expects
the PWM pin to be passed.

Fix this by rewriting all of the calls to ledcWrite to use
the PWM pin rather than the channel. While we are here, fix
some quality-of-life things like ordering of the calls,
using variables instead of hardcoding values and also
guarding PWM_CONTACTOR_CONTROL/GPIO usage in #ifdefs.

Fixes: #472
Signed-off-by: Christopher Obbard <obbardc@gmail.com>
2024-09-24 15:09:45 +01:00
Christopher Obbard
d1e61a16af Improvement: Check CONTACTOR_CONTROL is enabled when using PWM_CONTACTOR_CONTROL
We should make sure that CONTACTOR_CONTROL is enabled
when using PWM_CONTACTOR_CONTROL is enabled.

Signed-off-by: Christopher Obbard <obbardc@gmail.com>
2024-09-24 15:09:29 +01:00
Christopher Obbard
95f4dd11f5 Improvement: Reword the documentation for PWM_CONTACTOR_CONTROL
Improve the documentation a little bit.

Signed-off-by: Christopher Obbard <obbardc@gmail.com>
2024-09-24 15:09:29 +01:00
Christopher Obbard
bd10092c7a Fix: Allow iPace battery to close contactors
Signed-off-by: Christopher Obbard <obbardc@gmail.com>
2024-09-24 15:09:29 +01:00