I'm hoping someone can help me. I have a USB Serial device. I am not getting
any response from the device in my code. This particular device has been
tested with similar code using a Windows setup so I know that the device itself
is okay.
I can open /dev/ttyUSB0, write, flush, etc but a read just doesn't return
anything.
I Added the following to /etc/modules
usbserial vendor=0x10c4 product=0xea60
I am far from a LINUX expert - so there may be an obvious step that I have
missed.
Thanks in advance for any help anyone might have. The rest of this post shows
some of the information that may be helpful
------------------------
The modules I have installed
# lsmod
Module Size Used by
usbserial 19056 0
cdc_acm 8772 0
g_ether 17744 0
str8100_udc 13572 1 g_ether
ohci_hcd 14372 0
smsc9500 56484 0
smscusbnet 16396 1 smsc9500
usb_storage 23072 0
ehci_hcd 22028 0
usbcore 74300 7
usbserial,cdc_acm,ohci_hcd,smsc9500,smscusbnet,usb_storage,ehci_hcd
sd_mod 15504 0
scsi_mod 55372 2 usb_storage,sd_mod
#dmesg
[58230.300000] usb 2-2: new full speed USB device using str8100-ohci and address
6
[58230.490000] usb 2-2: configuration #1 chosen from 1 choice
[58230.490000] usbserial_generic 2-2:1.0: generic converter detected
[58230.490000] usb 2-2: generic converter now attached to ttyUSB0
# lsusb
Bus 002 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x
Composite Device
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
# lsusb -v
Bus 002 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x
Composite Device
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x10c4 Cygnal Integrated Products, Inc.
idProduct 0xea60 CP210x Composite Device
bcdDevice 1.00
iManufacturer 1 Silicon Labs
iProduct 2 CP2102 USB to UART Bridge Controller
iSerial 3 0001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 2 CP2102 USB to UART Bridge Controller
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|