Thank you for the quick reply.
Here is the output of journalctl -u kplex.service :
-1- restarting kplex service manually
-2- sleep
-3- waking up with not data on udp port
Jan 27 09:23:34 M93p systemd[1]: Starting NMEA 0183 Multiplexer...
Jan 27 09:23:34 M93p kplex[56053]: kplex DEBUG: kplex starting, config file /etc/kplex.conf
Jan 27 09:23:34 M93p kplex[56053]: kplex DEBUG: _serial-id1: opened serial device /dev/AIS for input
Jan 27 09:23:34 M93p kplex[56053]: kplex DEBUG: _pty-id2: created pty link /home/sergio/virtual_com to /dev/pts/2
Jan 27 09:23:34 M93p systemd[1]: Started NMEA 0183 Multiplexer.
Jan 27 09:23:34 M93p kplex[56053]: kplex DEBUG: _udp-id3: output address 127.0.0.1, port 10110
Jan 27 09:32:53 M93p kplex[56053]: kplex DEBUG: Cleaning up data for exiting input interface _serial-id1 id 10000
Jan 27 09:32:53 M93p kplex[56053]: Failed to restore serial line: Input/output error
Jan 27 09:32:56 M93p kplex[56053]: kplex DEBUG: Cleaning up data for exiting output interface _udp-id3 id 30000
Jan 27 09:32:56 M93p kplex[56053]: kplex DEBUG: Cleaning up data for exiting output interface _pty-id2 id 20000
Jan 27 09:32:56 M93p kplex[56053]: kplex DEBUG: Removing pid file
Jan 27 09:32:56 M93p kplex[56053]: kplex DEBUG: Kplex exiting
Jan 27 09:32:56 M93p systemd[1]: kplex.service: Succeeded.
Noteworthy:
I added this in kplex.conf:
[pty]
direction=out
baud=38400
mode=master
filename=/home/sergio/virtual_com
group=dialout
owner=sergio
After waking up from sleep, it's also not working.../home/sergio/virtual_com has not been recreated.