Daniel Öster
435bef5ed1
Make the protocol more like FozzieUK spec
2024-10-05 21:18:02 +03: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
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
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
amarofarinha
355d171192
bugfix - pause state update was in wrong place.
2024-09-21 17:55:15 +01:00
amarofarinha
0d799188d2
Merge pull request #473 from amarofarinha/MQTT-connectivity-improvements
...
Improve MQTT Connection Resilience and Add Event Tracking for Diagnos…
2024-09-21 14:36:57 +01:00
amarofarinha
cbd1fd996e
apply the same connected_once logic to wifi
2024-09-20 19:33:37 +01:00
amarofarinha
9983d81cac
Improve MQTT Connection Resilience and Add Event Tracking for Diagnostics
2024-09-20 17:03:20 +01:00
Christopher Obbard
12650d4e7c
Feature: Show CONTACTOR_CONTROL status in the WebUI
...
When CONTACTOR_CONTROL is used, the battery-emulator controls
its own contactors. There is nowhere on the WebUI to show if
the contactors are engaged or not, only an error event is shown
if the contactors are disengaged.
Add an entry in the WebUI to show the CONTACTOR_CONTROL status.
Signed-off-by: Christopher Obbard <obbardc@gmail.com>
2024-09-20 16:50:18 +01:00
Daniel Öster
eca2c50e59
Improve sending timing
2024-09-20 15:31:18 +03:00