Re: Need help with FTDI USB connection for W2, interface program in Linux

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Need help with FTDI USB connection for W2, interface program in Linux

Martin
Hello Bill,
try this:
Linux handles serial devices different from windows.
Your usb-serial adaptor probably will be recogniced 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.
Open a console and type:

ls /dev/ttyUSB*
You should see a reply like this:

/dev/ttyUSBx

where x is probably 0 (zero).

Now, assuming the x was 0 (zero), type (case-sensitive!) or simply copy
and paste:

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

If you type correct, 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


(This step might or might not be neccessary:
(Then log out and back in. If you don't know how to log out/in, simply
(reboot.

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 set some
permissions. I can help.


--

Ohne CW ist es nur CB..

73, Martin DM4iM
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

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

Martin

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


______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]