How to install and use the CP2102 UART to USB Converter?

This forum is for discussion about general software issues.

How to install and use the CP2102 UART to USB Converter?

Postby sherrellbc » Mon May 26, 2014 5:16 pm

I searched around on the net a bit and found a very useful USART to USB converter bridge (http://www.nexuscyber.com/cp2102-usb-to ... Mgod5UQAdQ). The CP2102 is a programmable device with many settings insofar as the data framing is concerned. As such, a driver for the device must be used to interface and modify these parameters.

On the Silabs website I found this driver (http://www.silabs.com/products/mcu/page ... ivers.aspx) for linux (kernel > 3.x.x). The problem is that this driver is just a single C program with zero documentation. An include make file is about as useful considering it has a single line in it that fails (for me) at run-time.

$this->bbcode_second_pass_code('', ' obj-m = cp210x.o
KVERSION = $(shell uname -r)
all:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean')


The driver source can be found here (http://pastie.org/private/kulx2zqdyvkafoxekwjq)
Where my make error is

    make -C /lib/modules/3.14.4-1-ARCH/build M=/home/branden/Desktop/Linux_3.x.x_VCP_Driver_Source modules
    make[ 1 ]: Entering directory '/usr/lib/modules/3.14.4-1-ARCH/build'
    make[ 1 ]: *** No rule to make target 'modules. Stop.
    make[ 1 ]: Leaving directory '/usr/lib/modules/3.14.4-1-ARCH/build'
    Makefile:4: recipe for target 'all' failed
    make: *** [all] Error 2

There is no documentation aside from:
    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

Can anyone provide some guidance on the steps to install this driver (or at least where to look) and why there is such a lack of documentation? Are there assumptions here that I am not aware of? How is anyone suppose to use this? If you look in the source there are structures being used as arguments to functions that are never defined as far as I can tell. Perhaps they are part of the header files included at the top, but I could not find some of those on my machine either.

Has anyone had success using this device?
sherrellbc
 
Posts: 3
Joined: Mon May 26, 2014 5:06 pm

Re: How to install and use the CP2102 UART to USB Converter?

Postby WarheadsSE » Mon May 26, 2014 10:11 pm

THe CP2012 should have an in-kernel driver already. Are you using this from an ARM device?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to General

Who is online

Users browsing this forum: No registered users and 24 guests