cminyard / ser2net

Serial to network interface, allows TCP/UDP to serial port connections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid port name/number Issue on Boot With Raspberry Pi

menschel opened this issue · comments

The Issue itself is described in various Threads like #60
already but I found another caveat that I want to share.

The first requirement are the lines Wants=, After= in /lib/systemd/system/ser2net.service in section [Unit]

[Unit]
...
Wants=network-online.target
After=network-online.target

The caveat is that the static unit network-online.target must exist for this to work.

This option must be explicitely set on Raspberry Pi
sudo raspi-config --> System Options --> Network At Boot --> YES

It took me hours of try and error to figure out that this setting is related to the existence of network-online.target.