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

Production #1968

Merged
merged 9 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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])