UC-8112-LX-STK Manual
Wireless Module Settings
5-4
Bridging the Cellular to Serial Interface
This section describes how to enable the UC-8112 to communicate with peripheral devices.
UDP Server to Serial Device
Type the following command in the Command Shell so that the signal between the DUP server and serial device
can be transmitted:
socat UDP-SENDTO:REMOTE IP:REMOTE PORT
file:/dev/ttyM0,nonblock,raw,echo=0,waitlock=/var/run/ttyM0,b115200
UDP Client to Serial Device
Type the following command in the Command Shell so that the signal between the DUP client and serial device
can be transmitted.
socat UDP-SENDTO:REMOTE IP:REMOTE PORT
file:/dev/ttyM0,nonblock,raw,echo=0,waitlock=/var/run/ttyM0,b115200
TCP Server to Serial Device
Type the following command in the Command Shell so that the signal between the TCP server and serial device
can be transmitted.
socat -v TCP-LISTEN: LISTEN PORT,reuseaddr,fork
file:/dev/ttyM0,nonblock,raw,echo=0,waitlock=/var/run/ttyM0,b115200
TCP Client to Serial Device
Type the following command in the Command Shell so that the signal between the TCP client and serial device
can be transmitted:
socat TCP:REMOTE IP:REMOTE PORT
file:/dev/ttyM0,nonblock,raw,echo=0,waitlock=/var/run/ttyM0,b115200