you can use this sample as reference:
UART_TCP_Server.rar (3.7 KB)
- Disable firewall by
iptables -I INPUT -j ACCEPT - Start the application by
app runProc UART_TCP_Server UART_TCP_Server --exe=uart -- 5044 /dev/ttyHSL0 115200
- Establish a TCP client connection from PC to 192.168.2.2 on port 5044
- Send some data from TCP client and they will be forwarded to module’s UART1
- Type some characters on UART1 of module, they will be sent to TCP client.
- To disconnect the TCP connection, you can send ”exit”.