Commit graph

1273 commits

Author SHA1 Message Date
Daniel Öster
d94e235ad6 Fix broken RX for CANFD native 2024-10-04 21:02:36 +03:00
amarofarinha
a0a482769a Clarify usage of webserver authentication setting 2024-10-04 09:40:24 +01:00
Daniel Öster
79e7361d47
Merge pull request #508 from dalathegreat/feature/cellvoltage-safeties-centralized
Safety: Refactor cellvoltage safeties
2024-10-03 16:13:59 +03:00
amarofarinha
84110365e9
Merge pull request #506 from amarofarinha/emergency-stop
Add Support for External Button and Web-Based Equipment Stop Functionality
2024-10-03 14:08:34 +01:00
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
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
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
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
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
amarofarinha
0cd0b384c3 Fix: Disable Chained CAN Sending During OTA Updates to Prevent Incomplete Communication Control 2024-09-28 19:42:06 +01: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
amarofarinha
2a1424c969 Compilation fix - order_events declared inside wrong #ifdef 2024-09-28 08:51:50 +01: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
1a4d5a73f3 restore minification 2024-09-26 19:42:57 +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
Christopher Obbard
a7d5d61225 Fix: Allow test battery to close contactors
It can be useful to test CONTACTOR_CONTROL with the fake battery;
allow the fake battery to close contactors.

Signed-off-by: Christopher Obbard <obbardc@gmail.com>
2024-09-24 15:09:29 +01:00
Christopher Obbard
e83f9e07e8 Fix: Fake battery errors out when sending CAN messages
The fake battery can be used to test the software, without
any battery connected via CAN. In this case, sending any message
over CAN will cause an error because no messages are ACKed
since there is nothing connected. This means the Battery-Emulator
is unable to be used without a battery for testing.

Fix this by not sending any CAN messages when the fake
battery is enabled.

Signed-off-by: Christopher Obbard <obbardc@gmail.com>
2024-09-24 14:47:50 +01:00
Daniel Öster
c53ebf1366
Merge pull request #465 from dalathegreat/bugfix/contactor-closing-egmp
Feature: Contactor closing for eGMP
2024-09-23 16:18:47 +03:00
Daniel Öster
6204456abc First confirmed contactor closing sequence 2024-09-22 22:58:21 +03:00
Daniel Öster
4b59ac9e75
Update version number to signal dev 2024-09-22 20:36:24 +03:00
Daniel Öster
b92b3ab3b0
Update Software.ino version number 2024-09-22 17:54:58 +03:00
Daniel Öster
9bd816c946
Merge pull request #455 from dalathegreat/feature/zoe-obd2-polling
Improvement: OBD2 polling for Gen1 Zoe
2024-09-22 17:53:57 +03:00
Daniel Öster
0d009e665f Fix total pack voltage incorrect 2024-09-22 13:33:35 +03:00
Daniel Öster
72213db2e1 Remove %n causing crash 2024-09-21 23:41:34 +03:00