WINE serial port links

WINE creates serial port softlinks( automatically.

Serial port mapping is managed via

WINEPREFIX=~/.wine wine regedit

Be sure to include the WINEPREFIX (default is ~/.wine)

Which WINE serial port to use: find the WINE serial port corresponding to the Linux serial port device name by watch log output from:

dmesg -w

when plugging in the serial ↔ USB adapter.

Using WINEPREFIX, start the WINE registry editor:

WINEPREFIX=~/.wine wine regedit

Configure the port–if the device is seen at /dev/ttyUSB0, and you want it to appear to WINE on COM1, edit HKEY_LOCAL_MACHINE\Software\Wine\Ports to have a new string entry named COM1 with value /dev/ttyUSB0.

Verify this setting (but do not edit) by:

ls ~/.wine/dosdevices

where again ~/.wine is the location of your WINEPREFIX.