To access a remote serial port, that has been set up as above, from DOSBox you would need the following line in your nf file: serial1=nullmodem server:SerialMachine port:3333 Accessing a Remote Serial Port from DOSBoxĪ common use for this would to be to access a serial port form an emulator. If you connect to port 3333 on SerialMachine, whatever you send or receive to/from that port will actually be to/from the serial port on SerialMachine. Or if using systemd: $ systemctl restart ser2netįrom this point I'll refer to the machine with the serial port as SerialMachine. Or if you have started it as a service you may need do something like: $ /etc/init.d/ser2net restart Once you have created the configuration file you can either start ser2net by running: $ ser2net The serial port would be configured to 115200 baud, 8 data bits, no parity and 1 stop bit. This would tell ser2net to create a link between TCP port 3333 and /dev/ttyS0. An example configuration file would look like this: 3333:raw:0:/dev/ttyS0:115200 8DATABITS NONE 1STOPBIT It is configured by the file /etc/nf and is run on the machine with the serial port that you want to make available over TCP/IP. Ser2net listens to a TCP port and pipes data to and from a serial port via the TCP port. Using ser2net to Connect a Serial Port to a TCP port Most modern machines don't have a serial port as standard you could use a USB to serial lead, however, if you have another machine available that does have a serial port you can access it remotely over TCP/IP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |