I am trying to setup the StromPi3 (rev 1.1, firmware 1.72c) under Home Assistant OS (*). I have enabled PL011 UART as primary serial and switched miniUART to secondary via config.txt:
core_freq=250
enable_uart=1
dtoverlay=miniuart-bt
I have made sure that the serial console is disabled via cmdline.txt (console=serial0,115200 is not present):
dwc_otg.lpm_enable=0 console=tty1
I have started to fiddle with StromPi in HA OS itself (i.e. not in any docker container) as root. The serial port device in the OS is present (/dev/serial0 -> ttyAMA0). When I setup the port via
(Which is to a letter the same configuration as under Raspbian OS where the communication works.)
When I try to write to the port via
echo -ne 'status-rpi\x0D' > /dev/serial0
and listen via
cat < /dev/serial0
nothing happens, except for breaking the whole StromPi which then needs to be flashed. This procedure however works under Raspbian OS.
Can you please advise what could be wrong? I understand I can switch from HA OS to Raspbian OS, but this is the last resort. I believe the serial communication should be OS-agnostic, besides Home Assistant is known to communicate with serial peripherals without any troubles.
Bart
23.07.21 14:50
Bart
23.07.21 19:08
Niklas
29.07.21 09:53