Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update iX Branch from Main #784

Closed
wants to merge 302 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
302 commits
Select commit Hold shift + click to select a range
63b96f5
Merge pull request #669 from lenvm/feature/update-github-workflows
lenvm Dec 12, 2024
888409f
Merge pull request #666 from dalathegreat/bugfix/atto-3-highprec-soc-…
dalathegreat Dec 13, 2024
602fc6d
Update comments to make them more clear
dalathegreat Dec 13, 2024
3f715bf
Merge pull request #668 from dalathegreat/bugfix/precharge-pwm
dalathegreat Dec 14, 2024
d4f04ce
Update Software.ino
dalathegreat Dec 14, 2024
c7e0d96
Update Software.ino
dalathegreat Dec 14, 2024
3ac8d62
relay control
gwk1 Dec 15, 2024
45586a2
precharge boolean
gwk1 Dec 15, 2024
40d2d23
.
gwk1 Dec 15, 2024
6ad5c41
.
gwk1 Dec 15, 2024
e71ca81
Add startup delay for contactors (#673)
dalathegreat Dec 15, 2024
fb4d81b
Add messages needed for Solax X3 Ultra (#656)
dalathegreat Dec 15, 2024
b356356
Add double battery support for Santa Fe PHEV (#596)
dalathegreat Dec 15, 2024
3653ff6
Add target voltage setting, configurable
dalathegreat Nov 28, 2024
8dbc50b
Reduce preferences key length to max 15 characters. Add notes about t…
mvgalen Dec 15, 2024
005f3e6
Make parameter saving work
dalathegreat Dec 15, 2024
f8140b1
Update version number for release
dalathegreat Dec 15, 2024
4fef40b
Update version number to signal dev
dalathegreat Dec 15, 2024
7fe5dcb
update DUAL_CAN to CAN_ADDON and update CAN_FD to CANFD_ADDON
lenvm Dec 13, 2024
b512c17
add comments for #endif statements
lenvm Dec 13, 2024
83764aa
move CAN related functions from Software.ino to can communication folder
lenvm Dec 13, 2024
df6145f
move RS485 related functions to rs485 folder and move Serial Link rel…
lenvm Dec 13, 2024
624926b
move contactor control related functions from Software.ino to comm_co…
lenvm Dec 13, 2024
6aa4a4e
move equipment stop button related functions from Software.ino to equ…
lenvm Dec 13, 2024
4c4b4ee
move setting storage related settings from Software.ino to nvme folder
lenvm Dec 13, 2024
4e3dcf1
add doxygen style comments to functions, and change function names fo…
lenvm Dec 13, 2024
db77fcf
Merge pull request #671 from lenvm/feature/code-refactoring
lenvm Dec 15, 2024
bc5ef7c
Add more info about which CAN messages are present
dalathegreat Dec 15, 2024
0203a85
Make startup less prone to throw Events
dalathegreat Dec 15, 2024
c94120b
Merge pull request #674 from dalathegreat/improvement/zoe-gen1-41-info
dalathegreat Dec 16, 2024
22f3fdd
Update comment explaining voltage init
dalathegreat Dec 16, 2024
2d36c9a
Update README.md
dalathegreat Dec 16, 2024
0231b22
add skip-duplicate-actions to batteries workflow
lenvm Dec 16, 2024
1b21b13
add skip-duplicate-actions to inverters workflow
lenvm Dec 16, 2024
cfe5f6e
update name of pre_job to skip-duplicate-actions, and add skip-duplic…
lenvm Dec 16, 2024
9994bae
Merge pull request #676 from lenvm/feature/skip-duplicate-actions
dalathegreat Dec 17, 2024
8d103c5
Merge pull request #675 from dalathegreat/improvement/atto3-startup
dalathegreat Dec 17, 2024
320c58a
Update TESLA-BATTERY.cpp
josiahhiggs Dec 18, 2024
34f749d
Update TESLA-BATTERY.cpp
josiahhiggs Dec 18, 2024
29ba773
Merge branch 'dalathegreat:main' into improvement/tesla-advanced-battery
josiahhiggs Dec 18, 2024
6ed3b7e
Update TESLA-BATTERY.cpp
josiahhiggs Dec 18, 2024
b4ea3dc
Update TESLA-BATTERY.cpp
josiahhiggs Dec 18, 2024
bdc617c
Replace AsyncTCP library
dalathegreat Dec 19, 2024
f6fa454
Change references to AsyncTCP library
dalathegreat Dec 19, 2024
9cada80
Update Readme which library used
dalathegreat Dec 19, 2024
f6ed6a7
Merge pull request #681 from dalathegreat/bugfix/esp32-3.1.0-crashfix
dalathegreat Dec 19, 2024
fa0eaa7
Merge branch 'dalathegreat:main' into improvement/tesla-advanced-battery
josiahhiggs Dec 19, 2024
75f270a
Add groups 83, 84 and 90
dalathegreat Dec 19, 2024
335533f
Add numbers to more battery info page
dalathegreat Dec 20, 2024
3f1f2e6
split compile-all-combinations workflow into two pieces, to avoid tha…
lenvm Dec 16, 2024
b14bbde
Merge pull request #687 from lenvm/feature/split-compile-all-combinat…
lenvm Dec 20, 2024
ec46130
Merge pull request #686 from dalathegreat/feature/LEAF-BMS-version
dalathegreat Dec 20, 2024
a043dc6
Add Current and allowed charge mappings
dalathegreat Dec 20, 2024
9abf7db
Fix bitmasking in current value
dalathegreat Dec 20, 2024
ecff22a
Fix scaling of A value
dalathegreat Dec 20, 2024
f8bb4c8
Merge pull request #689 from dalathegreat/improvement/Zoe-gen1-charge…
dalathegreat Dec 20, 2024
dd510f4
Update TESLA-BATTERY.cpp Update advanced_battery_html.cpp
josiahhiggs Dec 21, 2024
320416e
Update TESLA-BATTERY.cpp Update advance_battery_html.cpp
josiahhiggs Dec 21, 2024
26f6781
Merge branch 'dalathegreat:main' into improvement/tesla-advanced-battery
josiahhiggs Dec 21, 2024
1ea1746
Update datalayer_extended.h
josiahhiggs Dec 21, 2024
ff6727d
Update advanced_battery_html.cpp
josiahhiggs Dec 21, 2024
333bcef
Update advanced_battery_html.cpp
josiahhiggs Dec 21, 2024
8870027
Moving secrets from USER_SETTINGS to USER_SECRETS.h
No-Signal Dec 8, 2024
4f53a3b
Updating github workflows to copy template secrets file
No-Signal Dec 21, 2024
bcc6964
Sbox
gwk1 Dec 21, 2024
774be64
sbox merge cleanup
gwk1 Dec 21, 2024
b4be33e
sbox merge cleanup
gwk1 Dec 21, 2024
f85de38
sbox merge cleanup
gwk1 Dec 21, 2024
fe24c19
sbox merge cleanup
gwk1 Dec 21, 2024
4dbda15
.
gwk1 Dec 21, 2024
b12480b
Merge branch 'main' into feature/bmw-sbox
gwk1 Dec 21, 2024
605f416
Merge fix
gwk1 Dec 21, 2024
fcedc4b
Update advanced_battery_html.cpp
josiahhiggs Dec 22, 2024
f55cad9
Update advanced_battery_html.cpp
josiahhiggs Dec 22, 2024
6d96808
factoring changes
josiahhiggs Dec 22, 2024
ad215a0
Factoring changes
josiahhiggs Dec 22, 2024
1175283
Change to use regen allowed value
dalathegreat Dec 22, 2024
b4474e5
Moving additional sensitive settings to USER_SECRETS.h
No-Signal Dec 22, 2024
b2aa3dc
Merge pull request #695 from dalathegreat/bugfix/zoe-gen1-chargepower
dalathegreat Dec 22, 2024
c713d0a
Change Serial logging to flexible logging (#690)
mvgalen Dec 22, 2024
ce2b714
Restore Async lib, implement Mutex locking
dalathegreat Dec 23, 2024
bd5984d
Restore USER_SETTINGS file
dalathegreat Dec 23, 2024
d28c59c
Merge pull request #662 from No-Signal/feature/user_secrets
dalathegreat Dec 23, 2024
5faf6c1
Add TODOs to .cpp file
dalathegreat Dec 23, 2024
6535e96
Merge branch 'main' into feature/bolt-ampera-battery
dalathegreat Dec 23, 2024
023fbc6
Update README.md
dalathegreat Dec 23, 2024
173091a
Pre-commit fix
dalathegreat Dec 23, 2024
47c99f9
Merge pull request #642 from dalathegreat/feature/bolt-ampera-battery
dalathegreat Dec 23, 2024
ad84b7e
Make USER_SETTINGS more simplified
dalathegreat Dec 23, 2024
24baf41
fix order of includes
dalathegreat Dec 23, 2024
0199d01
make MCP2515 and MCP2518FD unique, such that they can be used simulta…
lenvm Dec 24, 2024
d07443f
Merge branch 'dalathegreat:main' into improvement/tesla-advanced-battery
josiahhiggs Dec 25, 2024
126ab43
Update TESLA-BATTERY.cpp
josiahhiggs Dec 25, 2024
c08cbb6
Merge branch 'improvement/tesla-advanced-battery' of https://github.c…
josiahhiggs Dec 25, 2024
931f99f
Update TESLA-BATTERY.cpp
josiahhiggs Dec 25, 2024
76efc15
Update bool and battery2
josiahhiggs Dec 25, 2024
7edba4e
Update TESLA-BATTERY.cpp
josiahhiggs Dec 25, 2024
a113cd3
Return to send 30ms message
josiahhiggs Dec 25, 2024
4f07290
Update bool values in datalayer and advanced battery
josiahhiggs Dec 25, 2024
b8e10c3
Update bool values
josiahhiggs Dec 25, 2024
aadd9df
Add delay
josiahhiggs Dec 25, 2024
3ef5bec
Add delay
josiahhiggs Dec 25, 2024
fc90d3e
Update TESLA-BATTERY.cpp
josiahhiggs Dec 26, 2024
22c8d7d
Update TESLA-BATTERY.cpp
josiahhiggs Dec 26, 2024
7d9f8cf
add LED pin, that turns on when SMA allows contactor closing
lenvm Dec 26, 2024
b9a0678
Update advanced_battery_html.cpp
josiahhiggs Dec 27, 2024
256bf19
Update advanced_battery_html.cpp
josiahhiggs Dec 27, 2024
f27408b
Update TESLA-BATTERY.cpp
josiahhiggs Dec 27, 2024
7b67eab
Update TESLA-BATTERY.cpp
josiahhiggs Dec 27, 2024
52b45f0
Merge pull request #703 from lenvm/feature/add-sma-contactor-endable-…
dalathegreat Dec 28, 2024
cf75f48
Merge pull request #700 from lenvm/feature/make-mcp2515-and-mcp2517-u…
dalathegreat Dec 28, 2024
57cba6f
Merge pull request #697 from dalathegreat/bugfix/assert-failed-tasksC
dalathegreat Dec 28, 2024
30a07ab
Pre-commit fix
dalathegreat Dec 28, 2024
e2fb70e
Merge pull request #693 from josiahhiggs/improvement/tesla-advanced-b…
dalathegreat Dec 28, 2024
50219ff
Merge pull request #698 from dalathegreat/bugfix/make-secrets-easier
dalathegreat Dec 28, 2024
c9c5e69
Apply diff from successful testing
dalathegreat Dec 28, 2024
ea2ea2e
Merge branch 'main' into bugfix/SMA-tripower-enable-line
dalathegreat Dec 28, 2024
8663571
Add SMA Tripower to contactor allow writing
dalathegreat Dec 28, 2024
3e5aaca
Merge pull request #641 from dalathegreat/bugfix/SMA-tripower-enable-…
dalathegreat Dec 28, 2024
fe4bd98
Merge branch 'main' into feature/PSA-battery
dalathegreat Dec 28, 2024
d0ffb97
Rename to stellantis, add TODO
dalathegreat Dec 28, 2024
f013403
Merge pull request #462 from dalathegreat/feature/PSA-battery
dalathegreat Dec 28, 2024
7cc6390
Make Ultra messages part of normal sending
dalathegreat Dec 28, 2024
fe451cc
Revert to hardcoded ID
dalathegreat Dec 28, 2024
22913ea
Merge pull request #704 from dalathegreat/bugfix/solax-ultra-content
dalathegreat Dec 28, 2024
a91e484
Merge branch 'enhancement/tesla-safety-check' of https://github.com/j…
josiahhiggs Dec 29, 2024
a0907b7
Update TESLA-BATTERY.cpp
josiahhiggs Dec 29, 2024
1bbbaac
Update TESLA-BATTERY.cpp
josiahhiggs Dec 29, 2024
40399b4
Adding ability to log CAN frames to SD card
No-Signal Dec 29, 2024
d4f652b
Adding compile error check to ensure SD card logging can only be enab…
No-Signal Dec 29, 2024
e5b0481
Merge pull request #707 from No-Signal/feature/CAN_Logging_To_SDCard
dalathegreat Dec 29, 2024
0b09601
reword functions in CAN communication
lenvm Dec 24, 2024
eb4e5bc
update function name map_can_frame_to_variable_battery() to handle_in…
lenvm Dec 29, 2024
789d021
Merge pull request #699 from lenvm/feature/reword-can-communication
lenvm Dec 29, 2024
baf9093
Merge branch 'dalathegreat:main' into enhancement/tesla-safety-check
josiahhiggs Dec 29, 2024
06a1eb0
Update TESLA-BATTERY.cpp
josiahhiggs Dec 29, 2024
3503447
Update TESLA-BATTERY.cpp
josiahhiggs Dec 29, 2024
9ba6a96
Update TESLA-BATTERY.cpp
josiahhiggs Dec 29, 2024
12745d1
Update TESLA-BATTERY.cpp
josiahhiggs Dec 29, 2024
43d3e78
homogenize sma inverter protocols
lenvm Dec 29, 2024
08e0ea5
rename SMA defines, to use more consistent naming
lenvm Dec 29, 2024
f7033b5
Update TESLA-BATTERY.cpp
josiahhiggs Dec 29, 2024
91aa122
Make cellvoltages work for double-battery
dalathegreat Dec 29, 2024
1a1ccd3
update function name map_can_frame_to_variable_battery2() to handle_i…
lenvm Dec 29, 2024
ca1da7e
add wake up pin for BMW I3 double battery
lenvm Dec 29, 2024
ec1d0cf
Update TESLA-BATTERY.cpp
josiahhiggs Dec 29, 2024
5deb333
ensure code compiles for hardware that does not have SD card pins def…
lenvm Dec 29, 2024
aa8ed59
Merge pull request #711 from lenvm/bugfix/double-battery-function-name
dalathegreat Dec 30, 2024
688952c
Merge pull request #712 from lenvm/feature/add-bmw-i3-wake-up-pin-for…
dalathegreat Dec 30, 2024
1c8aab9
Add autodetect for battery2 size
dalathegreat Dec 30, 2024
22e49ab
Merge pull request #716 from josiahhiggs/enhancement/tesla-safety-check
dalathegreat Dec 30, 2024
e819936
Merge pull request #714 from lenvm/bugfix/compile-hw-without-sd-card
dalathegreat Dec 30, 2024
5b11e5b
add hardware to GitHub Actions workflows
lenvm Dec 29, 2024
6c8333f
update error message if no target hardware is selected
lenvm Dec 30, 2024
06557bf
fix missing #endif in hw_stark
lenvm Dec 30, 2024
2cf3ecd
Merge pull request #710 from lenvm/feature/homogenize-sma-inverter-pr…
dalathegreat Dec 30, 2024
52a5fd9
Merge pull request #715 from lenvm/feature/add-hardware-to-github-act…
lenvm Dec 30, 2024
4d68c65
Merge pull request #709 from dalathegreat/bugfix/i3-second-battery-ce…
dalathegreat Dec 30, 2024
cc6761a
Add Tesla LFP balancing feature
dalathegreat Dec 30, 2024
95ae99a
add hardware abstraction layer for ESP32 DevKit V1
lenvm Dec 29, 2024
5ec5547
Force SOC to 99pct during balancing
dalathegreat Dec 30, 2024
b45f28b
move check if CAN_ADDON AND CANFD_ADDON are defined simultaneously, t…
lenvm Dec 30, 2024
293bf12
Fix broken references in logging
dalathegreat Dec 30, 2024
c9f9aa4
Merge pull request #721 from dalathegreat/bugfix/tesla-logging-compile
dalathegreat Dec 30, 2024
a86823c
Merge branch 'main' into feature/tesla-balancing
dalathegreat Dec 30, 2024
ea2d57a
Merge pull request #719 from lenvm/feature/hw-devkit
lenvm Dec 30, 2024
208c643
Merge pull request #720 from lenvm/feature/move-check-to-lilygo-hw
dalathegreat Dec 31, 2024
132fa1e
Remove watchdog spamming
dalathegreat Dec 31, 2024
04a68fc
Fix crash caused by percentage char
dalathegreat Dec 31, 2024
af05f28
Remove percentage sign from logging
dalathegreat Dec 31, 2024
17e43da
Merge pull request #722 from dalathegreat/improvement/tesla-watchdog-…
dalathegreat Dec 31, 2024
53b0e1a
Merge pull request #724 from dalathegreat/bugfix/logging-panic-reset
dalathegreat Dec 31, 2024
d638626
Merge branch 'main' into feature/tesla-balancing
dalathegreat Dec 31, 2024
d43cd3f
shunt communication status bit
gwk1 Jan 1, 2025
3d5f038
merge
gwk1 Jan 1, 2025
1f74953
fixed comment and function name
gwk1 Jan 1, 2025
bcfb41e
Add task priority setting for CAN addons
dalathegreat Jan 1, 2025
608b082
Merge pull request #730 from dalathegreat/bugfix/freeRTOS-task-assert
dalathegreat Jan 1, 2025
b3435e6
Speedup polling, fix requests
dalathegreat Jan 2, 2025
184d929
Merge pull request #728 from dalathegreat/feature/bmw-sbox
dalathegreat Jan 2, 2025
af53aa6
Merge pull request #731 from dalathegreat/bugfix/leaf-cellv-regression
dalathegreat Jan 2, 2025
3bfac77
Update version number for release
dalathegreat Jan 2, 2025
850031c
Update version number to signal dev
dalathegreat Jan 2, 2025
3d1f535
* Fix issue with % in log output conflicting with templating character
mvgalen Jan 2, 2025
54db0a2
Merge branch 'main' into feature/tesla-balancing
dalathegreat Jan 2, 2025
884ed71
Update KIA-HYUNDAI-64-BATTERY.cpp
LevinSwe Jan 2, 2025
91e0e55
Update KIA-HYUNDAI-64-BATTERY.cpp
LevinSwe Jan 2, 2025
5babcc0
Update KIA-HYUNDAI-64-BATTERY.cpp
LevinSwe Jan 2, 2025
f138f97
Adding feature to log to SD Card (#708)
No-Signal Jan 2, 2025
33aa75b
Add BMS power reset functionality (#706)
dalathegreat Jan 2, 2025
e0d72b7
Merge pull request #734 from LevinSwe/main
dalathegreat Jan 2, 2025
8246e1d
Fix bugs in printf logging code & add version to log
mvgalen Jan 3, 2025
3705d27
Fix code formatting
mvgalen Jan 3, 2025
fd76959
Fix code formatting.
mvgalen Jan 3, 2025
c8efe2f
Add support for BMS2 power (#741)
dalathegreat Jan 3, 2025
7df7992
Kia64: Add sanity checking for last cellvoltages (#745)
dalathegreat Jan 3, 2025
01ae0c1
Volvo/Polestar: Add contactor closing and DTC reset (#744)
dalathegreat Jan 3, 2025
3f993f7
Add more battery info data
dalathegreat Jan 4, 2025
bf08d5b
Add more sanity checking to cellvoltage reading
dalathegreat Jan 4, 2025
49d5f57
Merge pull request #747 from dalathegreat/bugfix/Kia-90S-cellvoltages
dalathegreat Jan 4, 2025
8c8fddd
Make SPA use BMS allowed charge/discharge values
dalathegreat Jan 4, 2025
f47f5ca
Move logging of version/data/time to setup()
mvgalen Jan 4, 2025
54d96a6
Fix code formatting.
mvgalen Jan 4, 2025
8440eb9
Merge pull request #749 from dalathegreat/bugfix/SPA-allowed-power
dalathegreat Jan 4, 2025
ae05061
Move BYD startup messages to 10s block
dalathegreat Jan 4, 2025
b81e0f5
Change forced startup messages to 60 second interval
dalathegreat Jan 5, 2025
6cb892b
Update ArduinoJson to v7.3.0 (#750)
dalathegreat Jan 5, 2025
33cbbd3
Update CANFD library with 2517 compatibility toggle (#753)
dalathegreat Jan 5, 2025
1e93ad8
Improvements to CAN logging to SD to significantly improve performanc…
No-Signal Jan 5, 2025
6944561
Merge pull request #742 from dalathegreat/enhancement/logging
dalathegreat Jan 5, 2025
e387ab9
Add support for Sono Motors Battery
dalathegreat Jan 6, 2025
a60a1c3
Add balancing start/end event
dalathegreat Jan 7, 2025
3353bec
Increase LFP allowed imbalance mv limit
dalathegreat Jan 7, 2025
d852692
Increase max LFP allowed cell limit
dalathegreat Jan 7, 2025
64e633f
Merge pull request #718 from dalathegreat/feature/tesla-balancing
dalathegreat Jan 7, 2025
221ce94
Add isolation clearing function
dalathegreat Jan 7, 2025
77d83e5
Remove intermediate variable to save memory
dalathegreat Jan 8, 2025
b6d7217
Remove unused code and trim variable allocs
dalathegreat Jan 8, 2025
d2d67db
Adding ability to remotely trigger a BMS reset via MQTT and configure…
No-Signal Jan 8, 2025
d14af30
Remove unreachable RGB function
dalathegreat Jan 8, 2025
4447014
Typo in .cpp file
dalathegreat Jan 8, 2025
89fc610
Remove unused test_on_target event handling
dalathegreat Jan 8, 2025
733d52d
Remove superflous event description
dalathegreat Jan 8, 2025
949bfb1
Remove unused defines
dalathegreat Jan 8, 2025
b75275e
Remove references to RGB
dalathegreat Jan 8, 2025
606866e
Phase out .md in favour of Wiki
dalathegreat Jan 8, 2025
9697246
Remove unused modbus files to reduce sketch size
dalathegreat Jan 8, 2025
f90cf0b
Remove examples from library
dalathegreat Jan 8, 2025
c1d79c2
Remove unused textfiles from libraries
dalathegreat Jan 8, 2025
bdf6551
kostal: more tracing with timestamps
lewurm Jan 8, 2025
61f5bc6
contactors control: add tracing with timestamps
lewurm Jan 8, 2025
e03215f
Add blocking until we see inverter
dalathegreat Jan 9, 2025
4912c01
Merge pull request #770 from dalathegreat/improvement/sketch-size
dalathegreat Jan 10, 2025
e83533f
Merge pull request #754 from dalathegreat/feature/sono-battery
dalathegreat Jan 10, 2025
ca77485
Merge pull request #751 from dalathegreat/bugfix/BYD-CAN-startup
dalathegreat Jan 10, 2025
34c8754
Volvo/Polestar SPA: Add startup routine for contactor closing (#771)
dalathegreat Jan 10, 2025
5b684ec
New inverter protocol: Growatt 48V Low Voltage (#776)
dalathegreat Jan 10, 2025
f0fd607
Merge pull request #764 from dalathegreat/feature/reset-isolation-tesla
dalathegreat Jan 10, 2025
8a39976
Remove MCP2517 support (#756)
dalathegreat Jan 10, 2025
81cf36f
Update version number for release
dalathegreat Jan 10, 2025
ef3ab5c
Update version number for release
dalathegreat Jan 10, 2025
7fadcdf
Update Software.ino
dalathegreat Jan 10, 2025
183ff9a
Fix INVERT_LOW_HIGH_BYTES operation
dalathegreat Jan 10, 2025
8966edb
Make Pylon respect user set voltage limits
dalathegreat Jan 10, 2025
6f05fb4
Removing duplicate start script
No-Signal Jan 11, 2025
55b8ea4
Update VOLVO-SPA-BATTERY.cpp
GoSmartEV Jan 11, 2025
1837007
Merge pull request #781 from GoSmartEV/patch-1
dalathegreat Jan 11, 2025
7140b68
Merge pull request #779 from No-Signal/bug/fix_adv_bat_script
dalathegreat Jan 11, 2025
66cd6f1
Merge pull request #778 from dalathegreat/bugfix/pylon-respect-voltag…
dalathegreat Jan 12, 2025
9afa16c
Merge pull request #644 from lewurm/kostal-rs485-more-debug
dalathegreat Jan 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
- Inverter communication protocol: ``
- Hardware used for Battery-Emulator: `HW_LILYGO, HW_STARK, Custom`
- CONTACTOR_CONTROL: `yes/no`
- DUAL_CAN: `yes/no`
- CAN_ADDON: `yes/no`
- WEBSERVER: `yes/no`
- MQTT: `yes/no`
39 changes: 33 additions & 6 deletions .github/workflows/compile-all-batteries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,28 @@ on:
- pull_request

# This is the list of jobs that will be run concurrently.
# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.
jobs:
# This is the name of the job
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
skip-duplicate-actions:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
concurrent_skipping: 'never'
skip_after_successful_duplicate: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'

# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.
build-batteries:
needs: skip-duplicate-actions
if: needs.skip-duplicate-actions.outputs.should_skip != 'true'

# Here we tell GitHub that the jobs must be determined
# dynamically depending on a matrix configuration.
Expand All @@ -40,9 +56,10 @@ jobs:
- CHADEMO_BATTERY
- IMIEV_CZERO_ION_BATTERY
- JAGUAR_IPACE_BATTERY
- KIA_HYUNDAI_64_BATTERY
- KIA_E_GMP_BATTERY
- KIA_HYUNDAI_64_BATTERY
- KIA_HYUNDAI_HYBRID_BATTERY
- MEB_BATTERY
- MG_5_BATTERY
- NISSAN_LEAF_BATTERY
- PYLON_BATTERY
Expand All @@ -53,13 +70,19 @@ jobs:
- RENAULT_ZOE_GEN1_BATTERY
- RENAULT_ZOE_GEN2_BATTERY
- SANTA_FE_PHEV_BATTERY
- STELLANTIS_ECMP_BATTERY
- TESLA_MODEL_3Y_BATTERY
- TESLA_MODEL_SX_BATTERY
- VOLVO_SPA_BATTERY
- TEST_FAKE_BATTERY
- SERIAL_LINK_RECEIVER
# These are the emulated inverter communication protocols for which the code will be compiled.
inverter:
- BYD_CAN
# These are the supported hardware platforms for which the code will be compiled.
hardware:
- HW_LILYGO

# This is the platform GitHub will use to run our workflow.
runs-on: ubuntu-latest

Expand All @@ -68,6 +91,10 @@ jobs:
# First we clone the repo using the `checkout` action.
- name: Checkout
uses: actions/checkout@v4

# Copy USER_SECRETS.TEMPLATE.h to USER_SECRETS.h
- name: Copy USER_SECRETS.TEMPLATE.h to USER_SECRETS.h
run: cp ./Software/USER_SECRETS.TEMPLATE.h ./Software/USER_SECRETS.h

# We use the `arduino/setup-arduino-cli` action to install and
# configure the Arduino CLI on the system.
Expand All @@ -84,4 +111,4 @@ jobs:
# in the build matrix, and using build flags to define the
# battery and inverter set in the build matrix.
- name: Compile Sketch
run: arduino-cli compile --fqbn ${{ matrix.fqbn }} --build-property "build.extra_flags=-Wall -DESP32 -D${{ matrix.battery}} -D${{ matrix.inverter}}" ./Software
run: arduino-cli compile --fqbn ${{ matrix.fqbn }} --build-property "build.extra_flags=-Wall -DESP32 -D${{ matrix.battery}} -D${{ matrix.inverter}} -D${{ matrix.hardware}}" ./Software
119 changes: 119 additions & 0 deletions .github/workflows/compile-all-combinations-part1-batteries-A-to-M.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# This is the name of the workflow, visible on GitHub UI.
name: Compile All Combinations

# Here we tell GitHub when to run the workflow.
on:
# This allows you to run this workflow manually from the
# GitHub Actions tab.
workflow_dispatch:
# The workflow is run upon creating, editing,
# pre-releasing, releasing and publishing a release
release:
types: [created, edited, prereleased, released, published]

# This is the list of jobs that will be run concurrently.
jobs:
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
skip-duplicate-actions:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
concurrent_skipping: 'never'
skip_after_successful_duplicate: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'

# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.

# This is the name of the job.
build-matrix:
needs: skip-duplicate-actions
if: needs.skip-duplicate-actions.outputs.should_skip != 'true'

# Here we tell GitHub that the jobs must be determined
# dynamically depending on a matrix configuration.
strategy:
# The matrix will produce one job for each combination of parameters.
matrix:
# This is the development board hardware for which the code will be compiled.
# FBQN stands for "fully qualified board name", and is used by Arduino to define the hardware to compile for.
fqbn:
- esp32:esp32:esp32
# further ESP32 chips
#- esp32:esp32:esp32c3
#- esp32:esp32:esp32c2
#- esp32:esp32:esp32c6
#- esp32:esp32:esp32h2
#- esp32:esp32:esp32s3
# These are the batteries for which the code will be compiled.
battery:
- BMW_I3_BATTERY
- BMW_IX_BATTERY
- BYD_ATTO_3_BATTERY
- CELLPOWER_BMS
- CHADEMO_BATTERY
- IMIEV_CZERO_ION_BATTERY
- JAGUAR_IPACE_BATTERY
- KIA_E_GMP_BATTERY
- KIA_HYUNDAI_64_BATTERY
- KIA_HYUNDAI_HYBRID_BATTERY
- MEB_BATTERY
- MG_5_BATTERY
# These are the emulated inverter communication protocols for which the code will be compiled.
inverter:
- AFORE_CAN
- BYD_CAN
- BYD_KOSTAL_RS485
- BYD_MODBUS
- FOXESS_CAN
- GROWATT_LV_CAN
- PYLON_CAN
- PYLON_LV_CAN
- SCHNEIDER_CAN
- SMA_BYD_H_CAN
- SMA_BYD_HVS_CAN
- SMA_LV_CAN
- SMA_TRIPOWER_CAN
- SOFAR_CAN
- SOLAX_CAN
- SERIAL_LINK_TRANSMITTER
# These are the supported hardware platforms for which the code will be compiled.
hardware:
- HW_LILYGO

# This is the platform GitHub will use to run our workflow.
runs-on: ubuntu-latest

# This is the list of steps this job will run.
steps:
# First we clone the repo using the `checkout` action.
- name: Checkout
uses: actions/checkout@v4

# Copy USER_SECRETS.TEMPLATE.h to USER_SECRETS.h
- name: Copy USER_SECRETS.TEMPLATE.h to USER_SECRETS.h
run: cp ./Software/USER_SECRETS.TEMPLATE.h ./Software/USER_SECRETS.h

# We use the `arduino/setup-arduino-cli` action to install and
# configure the Arduino CLI on the system.
- name: Setup Arduino CLI
uses: arduino/setup-arduino-cli@v2

# We then install the platform.
- name: Install platform
run: |
arduino-cli core update-index
arduino-cli core install esp32:esp32

# Finally, we compile the sketch, using the FQBN that was set
# in the build matrix, and using build flags to define the
# battery and inverter set in the build matrix.
- name: Compile Sketch
run: arduino-cli compile --fqbn ${{ matrix.fqbn }} --build-property "build.extra_flags=-Wall -DESP32 -D${{ matrix.battery}} -D${{ matrix.inverter}} -D${{ matrix.hardware}}" ./Software
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,30 @@ on:
types: [created, edited, prereleased, released, published]

# This is the list of jobs that will be run concurrently.
# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.
jobs:
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
skip-duplicate-actions:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
concurrent_skipping: 'never'
skip_after_successful_duplicate: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'

# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.

# This is the name of the job.
build-matrix:
needs: skip-duplicate-actions
if: needs.skip-duplicate-actions.outputs.should_skip != 'true'

# Here we tell GitHub that the jobs must be determined
# dynamically depending on a matrix configuration.
Expand All @@ -36,34 +54,41 @@ jobs:
#- esp32:esp32:esp32s3
# These are the batteries for which the code will be compiled.
battery:
- BMW_I3_BATTERY
- BYD_ATTO_3_BATTERY
- CHADEMO_BATTERY
- IMIEV_CZERO_ION_BATTERY
- KIA_HYUNDAI_64_BATTERY
- KIA_HYUNDAI_HYBRID_BATTERY
- NISSAN_LEAF_BATTERY
- PYLON_BATTERY
- RJXZS_BMS
- RANGE_ROVER_PHEV_BATTERY
- RENAULT_KANGOO_BATTERY
- RENAULT_TWIZY_BATTERY
- RENAULT_ZOE_GEN1_BATTERY
- RENAULT_ZOE_GEN2_BATTERY
- SANTA_FE_PHEV_BATTERY
- STELLANTIS_ECMP_BATTERY
- TESLA_MODEL_3Y_BATTERY
- TESLA_MODEL_SX_BATTERY
- VOLVO_SPA_BATTERY
- TEST_FAKE_BATTERY
# These are the emulated inverter communication protocols for which the code will be compiled.
inverter:
- AFORE_CAN
- BYD_CAN
- BYD_KOSTAL_RS485
- BYD_SMA
- BYD_MODBUS
- FOXESS_CAN
- GROWATT_LV_CAN
- PYLON_CAN
- SMA_CAN
- PYLON_LV_CAN
- SCHNEIDER_CAN
- SMA_BYD_H_CAN
- SMA_BYD_HVS_CAN
- SMA_LV_CAN
- SMA_TRIPOWER_CAN
- SOFAR_CAN
- SOLAX_CAN
- SERIAL_LINK_TRANSMITTER
# These are the supported hardware platforms for which the code will be compiled.
hardware:
- HW_LILYGO

# This is the platform GitHub will use to run our workflow.
runs-on: ubuntu-latest
Expand All @@ -73,6 +98,10 @@ jobs:
# First we clone the repo using the `checkout` action.
- name: Checkout
uses: actions/checkout@v4

# Copy USER_SECRETS.TEMPLATE.h to USER_SECRETS.h
- name: Copy USER_SECRETS.TEMPLATE.h to USER_SECRETS.h
run: cp ./Software/USER_SECRETS.TEMPLATE.h ./Software/USER_SECRETS.h

# We use the `arduino/setup-arduino-cli` action to install and
# configure the Arduino CLI on the system.
Expand All @@ -89,4 +118,4 @@ jobs:
# in the build matrix, and using build flags to define the
# battery and inverter set in the build matrix.
- name: Compile Sketch
run: arduino-cli compile --fqbn ${{ matrix.fqbn }} --build-property "build.extra_flags=-Wall -DESP32 -D${{ matrix.battery}} -D${{ matrix.inverter}}" ./Software
run: arduino-cli compile --fqbn ${{ matrix.fqbn }} --build-property "build.extra_flags=-Wall -DESP32 -D${{ matrix.battery}} -D${{ matrix.inverter}} -D${{ matrix.hardware}}" ./Software
Loading
Loading