Results 1 to 6 of 6

Thread: Accessing USB serial ports

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Location
    Bracknell, England
    Beans
    87
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Accessing USB serial ports

    I have a device which contains a USB serial port (ftdi FT232). Ubuntu sees this and presents it as /dev/ttyUSB0. I can access this through Linux programs (Ubuntu Karmic 64 bit).

    I need to access this from a number of existing Win32 programs running under Wine (1.0.0.1 from the repository). These see the hardware COM1 and COM2 ports but I havn't found a way yet of connecting to the USB port.

    Is there a ay to do this (even at the expense of re-assigning the COM1 or COM2 ports - /dev/ttyS0 etc)?

    Thanks

    Steve, England

  2. #2
    Join Date
    Sep 2007
    Location
    Cambodia
    Beans
    88
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: Accessing USB serial ports

    wine does not support USB drivers, but if your device is being recognised as a serial device, and I think it is, then you need a symbolic link between com1 and /dev/usb and it must be in the folder ~/.wine/dosdevices

    This will allow windows programs running under wine to see usb serial devices. I use a usb GPS with wine.

    This should do it.

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

    see
    http://ubuntuforums.org/showthread.p...66#post4969966

    Garvan
    Desktop: Dell, Intel Core 2 Duo E7500 @ 2.93Ghz, 2GiB RAM, Linux Mint 13 Maya.
    Net-book: SAMSUNG N148-Plus, 2x Intel Atom CPU N450 @1.66Ghz, 1GB RAM, lubuntu 12.04.
    Laptop: Dell, Intel i5 @2.5Ghz, 4GB RAM, Win 7

  3. #3
    Join Date
    Jul 2008
    Location
    Bracknell, England
    Beans
    87
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Accessing USB serial ports

    Garvan,

    Thanks for that tip! I shall try it this evening.

    Steve

  4. #4
    Join Date
    Jul 2008
    Location
    Bracknell, England
    Beans
    87
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Accessing USB serial ports

    Garvan,

    Thank you, it worked!

    When one tries something different one learns a bit more.


    Best wishes,

    Steve

  5. #5
    Join Date
    Jan 2010
    Beans
    17
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Accessing USB serial ports

    Thank you so much It worked as a charm

  6. #6
    Join Date
    Nov 2010
    Beans
    13

    Re: Accessing USB serial ports

    YES! This solved my problem too... trying to get a G-Tech Pro to connect through a USB-to-serial adapter:

    http://ubuntuforums.org/showthread.php?p=11311366

    It worked! Thanks all for the help!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •