![]() ![]() EXAMPLE FOR REMOTE TTY (TTY OVER TCP) USING SOCATĮxcerpt of that page - You have a host with some serial device like a modem or a bluetooth interface.You also might want to take a look at this documentation which discusses how to use socat which I would expect to be able to do exactly what you're trying to do. It offers functionality similar to Cisco's Dialout Utility, but on GNU/Linux instead of Windows. ![]() It allows you to use access servers with direct access to the modems (such as Cisco NAS) as ordinary dial-out modems for faxing, sending sms or visiting BBS'. Remtty (short for "remote tty") makes TCP connections available as pseudo ttys. It provides all the serial port setup, a configuration file to configure the ports, a control login for modifying port parameters, monitoring ports, and controlling ports. I tried all the other ones I could find and found them lacking, so I wrote my own. Ser2net provides a way for a user to connect from a network connection to a serial port. Ser2net - Serial to Network Proxy (ser2net) Specifically one of the answers to that question highlighted 2 tools that sound like what you're looking for: Looking through Stackoverflow I found this Q&A titled: Converting serial port data to TCP/IP in a linux environment. I'm completely stuck of how to read this serial data over Ethernet on a Linux box. Or attempting to bind it to a dev: $ socat -d -d -d tcp-l:127.0.0.1:8234,reuseaddr,fork file:/dev/tty0,nonblock,waitlock=/var/run/tty0.lock Many variations of socat do not produce any data on the screen, for example: $ sudo socat readline TCP-LISTEN:8234,bind=127.0.0.1 So the Ethernet packets are getting through but I can't find a way to map the serial data (over port 8234 Ethernet) to a device. Now when I point to a Linux box all I am getting is a connection attempt when I use tcpdump:Ģ1:00:07.322019 IP 192.168.1.214.20108 > development.local.8234: Flags, seq 4096, win 0, length 0 Under Windows using a virtual device driver mapping I can see the serial data, so I know the widget serial to Ethernet is working. I'm trying to connect a widget (192.168.1.214:20108) through Ethernet (serial to Ethernet) to a Linux box. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |