Commit Graph

5 Commits

Author SHA1 Message Date
Ramon Moesching f5f902fbb6 socket-uart: add runtime configuration through um-service-cfg
All serial based services gets their network configuration through
/etc/user-module/network.conf file
Introduced systemd target user-module

BugzID: 56443

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching fa73575c29 socket-uart: provide uart, kline and lin serial interfaces from one recipe
Start systemd services for providing serial interfaces of remote machine:
- UART (ttyUM0)
- KLINE (ttyUM1)
- LIN (ttyUM2)

Caution: UserModule connection settings are hardcoded within the services!
BugzID: 56441

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching 3344a7b4a7 socket-uart: Change to correct systemd type and revise socat pty parameters
Systemd service file Type "forking" leads to service restart which
caused socket disconnection. ExecStart process was never forked.
Now Type=simple fixed this issue. It' anyway recommended for
long running tasks.

Socat:
- Fixed typo rawer to raw
- Set echo off
- Defined bitrate

BugzID: 52063

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching 24f65fc2e1 socket-uart: Set runtime dependency only to real package and fix typo
Set runtime dependency only to package with executables
and fix typo.

BugzID: 52063
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching 36b8009c17 socket-uart: refelct origin uart as pseudo tty device on local host
Bind pseudo tty and origin uart with socat usage (tcp socket)
Socat is started by systemd service.
BugzID: 52063

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00