Results 1 to 3 of 3

Thread: USB to UART conversion driver?

  1. #1

    Default USB to UART conversion driver?

    Hi,
    I need a USB to UART conversion driver on Linux 12.3, 32 bit. I use it on Windows OS well. Because RS232 port disappears now, USB2UART is useful with some applications.

    The following link:
    USB to UART Bridge VCP Drivers | Silicon Labs

    is the choice, but it only explicitly supports Ubuntu and RedHat. How to install it on OPENSUSE?

    Thanks,

    Build instrutions:

    Ubuntu:
    1. make ( your cp210x driver )
    2. cp cp210x.ko to /lib/modules/<kernel-version>/kernel/drivers/usb/serial
    3. insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko
    4. insmod cp210x.ko

    RedHat:
    1. yum update kernel* //need to update the kernel first otherwise your header won't match
    2. yum install kernel-devel kernel-headers //get the devel and header packages.
    3. reboot //your build link should be fixed after your system come back
    4. make ( your cp210x driver ) // should be able to build successfully at this point
    5. cp cp210x.ko to /lib/modules/<kernel-version>/kernel/drivers/usb/serial
    6a. insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko
    6. insmod cp210x.ko
    7. sudo chmod 666 /dev/ttyUSB0
    8. sudo chmod 666 /dev/ttyUSB1


    GPIO example:
    This shows how to use the two IOCTLs to toggle GPIOs. This sample application simply reads
    the GPIO settings from the device, flips it, then writes the new setting.

    Build instructions:
    1. g++ cp210x_gpio_example.c -o cp210x_gpio_example
    2. ./cp210x_gpio_example

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,661
    Blog Entries
    15

    Default Re: USB to UART conversion driver?

    Quote Originally Posted by freerjw View Post
    Hi,
    I need a USB to UART conversion driver on Linux 12.3, 32 bit. I use it on Windows OS well. Because RS232 port disappears now, USB2UART is useful with some applications.

    The following link:
    USB to UART Bridge VCP Drivers | Silicon Labs

    is the choice, but it only explicitly supports Ubuntu and RedHat. How to install it on OPENSUSE?

    Thanks,
    Hi
    Ummm cp210x is already in the kernel.... have you plugged the device in? Checked the PCI ID's (lsusb command)?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: USB to UART conversion driver?

    freerjw wrote:
    > Hi,
    > I need a USB to UART conversion driver on Linux 12.3, 32 bit. I use it
    > on Windows OS well. Because RS232 port disappears now, USB2UART is
    > useful with some applications.
    >
    > The following link:
    > 'USB to UART Bridge VCP Drivers | Silicon Labs'
    > (http://tinyurl.com/44rm4a7)
    >
    > is the choice, but it only explicitly supports Ubuntu and RedHat. How to
    > install it on OPENSUSE?


    At the bottom of that page it says:

    "Note: The Linux 3.x.x version of the driver is maintained in the
    current Linux 3.x.x tree at www.kernel.org."

    In other words, the driver should already be available in openSUSE and
    all other distributions, no need to download and compile it. Just
    install it.

    I'm not a kernel expert but I think that means you just need to

    insmod cp210x.ko

Posting Permissions

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