Re: PL2303 / PL2303X not working

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

 



On Wed, Apr 14, 2010 at 07:27:00PM +0200, Andrea Cometa wrote:
> Greg KH ha scritto:
>> On Wed, Apr 14, 2010 at 04:21:01PM +0200, Andrea Cometa wrote:
>>   
>>> Greg KH ha scritto:
>>>     
>>>> On Tue, Apr 13, 2010 at 07:40:24PM +0200, Andrea Cometa wrote:
>>>>         
>>>>> Hi,
>>>>> First of all I apologize for my poor knowledge of English ...
>>>>>
>>>>> I'm having problems with a USB serial adapter Prolific PL2303.
>>>>> My Linux distribution is Ubuntu 9.10 with kernel 2.6.31-20.
>>>>> the adapter is recognized and the file ttyUSB0 is also created.
>>>>> But the serial device receives and sends no reply.
>>>>> On the Internet I found some information concerning the possibility 
>>>>> that this adapter is a pl2303x instead pl2303, as the command lsusb 
>>>>> shows the value of "bmaxpacketsize0 64".
>>>>> Have any ideas about how to fix this problem?
>>>>>             
>>>> The "x" device should work with the latest driver, can you try out a
>>>> newer kernel version?  The 2.6.31 kernel was known to have problems with
>>>> the pl2303 and other tty drivers.
>>>>
>>>> thanks,
>>>>
>>>> greg k-h
>>>>
>>>>
>>>>         
>>> hi,
>>>
>>> i've installed kernel 2.6.34-rc2 but there was no change
>>> there may be an old working kernel?
>>>     
>>
>> Hm, what kind of messages do you get from the kernel log when you plug a
>> device in and then start sending/receiving data through it?
>>
>> Also, are you sure you have the flow control set up properly?  That
>> always tripps me up :)
>>
>> thanks,
>>
>> greg k-h
>>
>>
>>   
> kern.log:
> Apr 14 19:14:42 eeebox1 kernel: [ 6825.764086] usb 3-1: new full speed USB 
> device using uhci_hcd and address 6
> Apr 14 19:14:42 eeebox1 kernel: [ 6825.922595] usb 3-1: configuration #1 
> chosen from 1 choice
> Apr 14 19:14:42 eeebox1 kernel: [ 6825.925921] pl2303 3-1:1.0: pl2303 
> converter detected
> Apr 14 19:14:43 eeebox1 kernel: [ 6825.950190] usb 3-1: pl2303 converter 
> now attached to ttyUSB0
>
>
> lsmod | grep pl2303:
> pl2303                 17792  0
> usbserial              36264  1 pl2303
>
> echo 1 > /sys/module/usbserial/parameters/debug
> kern.log:
> Apr 14 19:21:52 eeebox1 kernel: [ 7255.656130] usb 3-1: USB disconnect, 
> address 6
> Apr 14 19:21:52 eeebox1 kernel: [ 7255.656375] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: 
> usb_serial_disconnect
> Apr 14 19:21:52 eeebox1 kernel: [ 7255.656638] pl2303 ttyUSB0: pl2303 
> converter now disconnected from ttyUSB0
> Apr 14 19:21:52 eeebox1 kernel: [ 7255.656696] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: destroy_serial 
> - pl2303
> Apr 14 19:21:52 eeebox1 kernel: [ 7255.656709] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: return_serial
> Apr 14 19:21:52 eeebox1 kernel: [ 7255.656724] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: port_release - 
> ttyUSB0
> Apr 14 19:21:52 eeebox1 kernel: [ 7255.656742] pl2303 3-1:1.0: device 
> disconnected
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.608070] usb 3-1: new full speed USB 
> device using uhci_hcd and address 7
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.766457] usb 3-1: configuration #1 
> chosen from 1 choice
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.769833] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: static 
> descriptor matches
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.769859] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: found interrupt 
> in on endpoint 0
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.769878] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: found bulk out 
> on endpoint 1
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.769895] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: found bulk in 
> on endpoint 2
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.769914] pl2303 3-1:1.0: pl2303 
> converter detected
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.769930] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: 
> usb_serial_probe - setting up 1 port structures for this device
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.795168] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: get_free_serial 
> 1
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.795181] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: get_free_serial 
> - minor base = 0
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.795195] 
> /build/buildd/linux-2.6.31/drivers/usb/serial/usb-serial.c: 
> usb_serial_probe - registering ttyUSB0
> Apr 14 19:21:55 eeebox1 kernel: [ 7258.795417] usb 3-1: pl2303 converter 
> now attached to ttyUSB0

Great, now what happens when you open the connection and try to send
data through it?  Can you provide the kernel debug log for when tha
happens?

> about flow control, i've tried it on and also off, but nothing happens
> this kind of devices (i've bought two different brands) seem to be deaf!
> :(

Ok, thanks for checking about flow control, but I don't see any
userspace open happening in the kernel log yet.

thanks,

greg k-h
--
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