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:
- make ( your cp210x driver )
- cp cp210x.ko to /lib/modules/<kernel-version>/kernel/drivers/usb/serial
- insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko
- insmod cp210x.ko
RedHat:
- yum update kernel* //need to update the kernel first otherwise your header won’t match
- yum install kernel-devel kernel-headers //get the devel and header packages.
- reboot //your build link should be fixed after your system come back
- make ( your cp210x driver ) // should be able to build successfully at this point
- cp cp210x.ko to /lib/modules/<kernel-version>/kernel/drivers/usb/serial
6a. insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko- insmod cp210x.ko
- sudo chmod 666 /dev/ttyUSB0
- 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:
- g++ cp210x_gpio_example.c -o cp210x_gpio_example
- ./cp210x_gpio_example