Issue with USB Serial driver (USB CDC)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,

I have my new USB device which is compliant to CDC class.

When I connect the device to Windows system, it was able to load the
default CDC driver. Also, I am able to do serial communication through
my device using Hyper terminal.

But, When I connect the device to the Linux (Kernel 2.6.31.4), I am
not able to communicate with the device.

The process I followed to make the driver enable in LInux is,

1) Loaded the usbserial driver with the following command
    #modprobe usbserial vendor=xxxx product=xxxx
    (With this command, I was able to see ttyUSB in /proc/devices)

2) #mknod /dev/ttyUSB0 c 188 0

After giving the above two commands, I tried opening the device in my
application through open("/dev/ttyUSB0", O_RDONLY);
but it went in vain. The open() returned -1.

The debug messages I captured after connecting the device  to the
LInux system are,
-------------------------------------------------------
[32646.880029] usb 2-2: new full speed USB device using uhci_hcd and address 12
[32647.053397] usb 2-2: configuration #1 chosen from 1 choice
[32647.056423] cdc_acm 2-2:1.0: This device cannot do calls on its
own. It is not a modem.
[32647.056452] cdc_acm 2-2:1.0: ttyACM2: USB ACM device
[32647.296031] usb 3-1: new full speed USB device using uhci_hcd and address 12
[32647.450676] usb 3-1: configuration #1 chosen from 1 choice
---------------------------------------------------------

I don't know, whether I am following the correct procedure to
communicate with my CDC device.
Any help is appreciated.

Regards,
RD
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux