You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
522 B
21 lines
522 B
#ifndef __SERIAL_PORT_serial-over-LAN__
|
|
#define __SERIAL_PORT_serial-over-LAN__
|
|
|
|
/*
|
|
#!/bin/bash
|
|
# open virtual serial port
|
|
socat pty,link=$HOME/vmodem0,waitslave tcp:10.73.1.71:23 &
|
|
# run the program
|
|
./testcomms.py
|
|
# kill socat afterwards
|
|
killall socat
|
|
|
|
https://blog.febo.com/?p=457
|
|
https://stackoverflow.com/questions/484740/converting-serial-port-data-to-tcp-ip-in-a-linux-environment
|
|
http://www.dest-unreach.org/socat/doc/socat-ttyovertcp.txt
|
|
*/
|
|
|
|
|
|
|
|
|
|
#endif
|