[Elecraft] How to make serial<>usb adapters work with wine under linux

Martin dm4im at t-online.de
Fri Aug 22 16:53:12 EDT 2014


Linux handles serial devices different from windows.
Your usb-serial adaptor probably will be recognised as  /dev/ttyUSB0,
while your Windows-Software running under wine only can handle COMx.

So you need to tell wine what device it should use for serial
communications.

You can do this by linking the linux-device to the windows device.

Plug in your serial<>usb adapter, open a terminal and type:

ls /dev/ttyUSB*

You should see a reply like this:

/dev/ttyUSBx

where x is a number, probably 0 (zero).

Type (case-sensitive!) or simply copy and paste:

ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1

ln is lima november, not one (1) november

This will put a file named com1 in /home/yourusername/.wine/dosdevices

where /.wine is a hidden directory. Check if the file is there by typing

ls ~/.wine/dosdevices

Amongst a number of drive-letters, you should find a file named com1

Now run your application under wine. Advise it to use com1.

I expect this to work, but if it doesn't , you probably need to logout 
and log back in (or simply reboot). If it still doesn't work you 
probably need to set some permissions. Feel free to ask.

This works for me with FTDI as well as with Prolific adapters. There is 
no need to install a driver (at least on my ubuntu machines since 9.04 
or maybe even older versions).

-- 

Ohne CW ist es nur CB..

73, Martin DM4iM




More information about the Elecraft mailing list