Old Windows and DOS programs working on modern PC USB serial port

Old Windows/DOS devices using RS232 or USB→RS232 connection may work on Linux using WINE or DOSBox. The examples assume a USB→RS232 adapter.

Windows RS232 on WINE

  1. from Linux terminal
    adduser $(whoami) dialout
    

    Logout and login again.

  2. Plug in USB-RS232 adapter.
    ls /dev/ttyUSB*
    

    It will probably show up as /dev/ttyUSB0

  3. Type in Terminal:
    ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
    

    And your device will be available on the COM1 port in WINE.

DOSBox RS232

You can use DOSBox on Linux, Mac, Windows or Android.

sertup serial port DOSBox on Linux

  • TODO: do Bluetooth to serial port adapters work from DOSBox?

Physical serial ports on Linux

For computers with 9-pin / 25-pin RS232/RS485 port. StarTech makes good PCI cards with 2, 4, or 8 RS232 ports that are Linux-friendly.

apt install setserial
setserial -g /dev/ttyS* | grep -v unknown

Notes

Leave a Comment