Skip to content

Commit

Permalink
First draft of new BSP interface. SIL is working,
Browse files Browse the repository at this point in the history
all other BSP drivers are broken for now.

Signed-off-by: Cornelius Claussen <[email protected]>
  • Loading branch information
corneliusclaussen committed Oct 11, 2023
1 parent a9fb04a commit 3420b10
Show file tree
Hide file tree
Showing 48 changed files with 1,332 additions and 985 deletions.
1 change: 0 additions & 1 deletion config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ generate_config_run_script(CONFIG sil-ocpp201)
generate_config_run_script(CONFIG sil-dc)
generate_config_run_script(CONFIG sil-two-evse-dc)
generate_config_run_script(CONFIG sil-energy-management)
generate_config_run_script(CONFIG hil)
generate_config_run_script(CONFIG sil-gen-pm)
generate_config_run_script(CONFIG sil-ocpp)
generate_config_run_script(CONFIG sil-ocpp-custom-extension)
Expand Down
97 changes: 0 additions & 97 deletions config/config-hil.yaml

This file was deleted.

1 change: 0 additions & 1 deletion config/config-sil-dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ active_modules:
config_module:
connector_id: 1
country_code: DE
rcd_enabled: true
evse_id: DE*PNX*E12345*1
evse_id_din: 49A80737A45678
session_logging: true
Expand Down
2 changes: 0 additions & 2 deletions config/config-sil-energy-management.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: DE*PNX*E12345*1
session_logging: true
session_logging_xml: false
Expand Down Expand Up @@ -44,7 +43,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: DE*PNX*E12345*2
session_logging: true
session_logging_xml: false
Expand Down
2 changes: 0 additions & 2 deletions config/config-sil-ocpp-custom-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: "1"
session_logging: true
session_logging_xml: false
Expand Down Expand Up @@ -44,7 +43,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: "2"
session_logging: true
session_logging_xml: false
Expand Down
2 changes: 0 additions & 2 deletions config/config-sil-ocpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: "1"
session_logging: true
session_logging_xml: false
Expand Down Expand Up @@ -44,7 +43,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: "2"
session_logging: true
session_logging_xml: false
Expand Down
2 changes: 0 additions & 2 deletions config/config-sil-ocpp201.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: "1"
session_logging: true
session_logging_xml: false
Expand Down Expand Up @@ -44,7 +43,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: "2"
session_logging: true
session_logging_xml: false
Expand Down
2 changes: 0 additions & 2 deletions config/config-sil-two-evse-dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ active_modules:
config_module:
connector_id: 1
country_code: DE
rcd_enabled: true
evse_id: DE*PNX*E12345*1
evse_id_din: 49A80737A45678
session_logging: true
Expand Down Expand Up @@ -48,7 +47,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: DE*PNX*E12345*2
session_logging: true
session_logging_xml: false
Expand Down
2 changes: 0 additions & 2 deletions config/config-sil-two-evse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: DE*PNX*E12345*1
session_logging: true
session_logging_xml: false
Expand Down Expand Up @@ -44,7 +43,6 @@ active_modules:
three_phases: true
has_ventilation: true
country_code: DE
rcd_enabled: true
evse_id: DE*PNX*E12345*2
session_logging: true
session_logging_xml: false
Expand Down
4 changes: 3 additions & 1 deletion config/config-sil.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ active_modules:
max_current_export_A: 32
payment_enable_contract: true
payment_enable_eim: true
rcd_enabled: true
session_logging: true
session_logging_path: /tmp/everest-logs
session_logging_xml: false
Expand All @@ -80,6 +79,9 @@ active_modules:
slac:
- implementation_id: evse
module_id: slac
ac_rcd:
- implementation_id: rcd
module_id: connector_1_powerpath
module: EvseManager
telemetry:
id: 1
Expand Down
2 changes: 1 addition & 1 deletion config/nodered/config-sil-flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@
},
{
"label": "AC RCD Error",
"value": "sleep 1;rcd_current 10.3;sleep 10;rcd_current 0.1sleep 36000#unplug",
"value": "sleep 1;iec_wait_pwr_ready;sleep 1;draw_power_regulated 16,3;sleep 3;rcd_current 10.5;sleep 5;rcd_current 0.2;sleep 36000#unplug",
"type": "str"
},
{
Expand Down
27 changes: 27 additions & 0 deletions interfaces/ac_rcd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
description: >-
This interface defines an AC Residual Current Monitor (RCD). Actual emergency switch off is done in HW directly,
but this interface allows some control and telemetry.
cmds:
self_test:
description: >-
Executes a self test of the RCD. Once finished, the var self_test_result should be published. Since
the test can take quite long we do not use a synchronous return value here.
reset:
description: >-
Resets the RCD after a trigger. May not be supported by actual hardware.
result:
description: 'True: Reset successfull, False: Reset failed.'
type: boolean
vars:
rcd_current_mA:
description: Residual current in mA. Note that this does not trigger anything, it is merely for reporting.
type: number
fault_ac:
description: Indicates an AC residual current fault (informational only, hardware needs to shut down power on its own)
type: 'null'
fault_dc:
description: Indicates an DC residual current fault (on the AC wires, informational only, hardware needs to shut down power on its own).
type: 'null'
self_test_result:
description: Result of a triggered self test
type: boolean
40 changes: 0 additions & 40 deletions interfaces/board_support_AC_debug.yaml

This file was deleted.

Loading

0 comments on commit 3420b10

Please sign in to comment.