Skip to content

Commit

Permalink
Production (#1968)
Browse files Browse the repository at this point in the history
* fix duo

* fix file

* boot config enterprise

* boot config for enterprise

* improve boot config txt

* fix boot config

* init pin 22

* reboot immediately

* fix configuration.json
  • Loading branch information
LKuemmel authored Oct 24, 2024
1 parent d1c82b7 commit 816febf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion data/config/boot_config.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# openwb - begin
# openwb-version:3
# openwb-version:4
# Do not edit this section! We need begin/end and version for proper updates!
[all]
gpio=4,5,7,11,17,22,23,24,25,26,27=op,dl
gpio=6,8,9,10,12,13,16,21=ip,pu

[cm4]
# GPIO 22 is the buzzer on computemodule4
gpio=22=op,dh

[all]
# enable uart for modbus port on older addon hat
# this also requires to disable Bluetooth
dtoverlay=disable-bt
Expand Down
2 changes: 1 addition & 1 deletion runs/atreboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ chmod 666 "$LOGFILE"
echo "adding init to $boot_config_target..."
sudo tee -a "$boot_config_target" <"$boot_config_source" >/dev/null
echo "done"
echo "new configuration active after next boot"
sudo reboot now
fi

ramdisk_config_source="${OPENWBBASEDIR}/data/config/ramdisk_config.txt"
Expand Down
2 changes: 1 addition & 1 deletion runs/evse_read_modbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
num = int(sys.argv[3])

client, evse_ids = get_modbus_client(local_chargepoint_num)
print(client.read_holding_registers(register, [ModbusDataType.INT_16]*num, unit=evse_ids[local_chargepoint_num]))
print(client.read_holding_registers(register, [ModbusDataType.INT_16]*num, unit=evse_ids[0]))
2 changes: 1 addition & 1 deletion runs/evse_write_modbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
value = int(sys.argv[3])

client, evse_ids = get_modbus_client(local_chargepoint_num)
client.write_registers(register, value, unit=evse_ids[local_chargepoint_num])
client.write_registers(register, value, unit=evse_ids[0])

0 comments on commit 816febf

Please sign in to comment.