How to setup a serial port over Ethernet
using the RS232 connector with TTL converter
You can try ser2net, and run a TCP232 program in your PC.
-
Install ser2net
opkg update && opkg install ser2net
-
Configure ser2net
vi /etc/config/ser2nt config proxy option enabled 1 option port 5002 option protocol raw option timeout 0 option device '/dev/ttyATH0' option baudrate 115200 option databits 8 option parity 'none' option stopbits 1
-
Disable Debug Console
Comment on this line ::askconsole:/bin/ash --login in /etc/inittab.
# cat /etc/inittab ::sysinit:/etc/init.d/rcS S boot ::shutdown:/etc/init.d/rcS K shutdown # ::askconsole:/bin/ash --login
-
Reboot device
reboot