Hi,

I am trying to talk to a mobile phone using a usb serial cable
(Siemens DCA-510 cable and SL55 phone).  This fails with a "Protocol
error" when scmxx tries to open /dev/tts/USB0.  The driver is toast after
the test, apparently having been released twice (see lsmod list below:
pl2303 Used by (-1)).

Any ideas about how to debug this?  Or am I doing something foolish?

Here are uname, release, syslog, strace, lsmod and
/proc/bus/usb/devices.

****** uname ******
Linux sabre 2.6.8-rc2 #2 Wed Jul 21 11:59:29 CEST 2004 i686 AMD Athlon(tm) XP 3000+ 
AuthenticAMD GNU/Linux

****** /etc/gentoo-release ******
Gentoo Base System version 1.5.1

****** syslog ******
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: Had to override the open usb 
serial operation with the generic one.
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: Had to override the write usb 
serial operation with the generic one.
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: Had to override the close usb 
serial operation with the generic one.
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: Had to override the write_room 
usb serial operation with the generic one.
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: Had to override the 
chars_in_buffer usb serial operation with the generic one.
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: Had to override the 
read_bulk_callback usb serial operation with the generic one.
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: Had to override the 
write_bulk_callback usb serial operation with the generic one.
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: USB Serial support registered 
for Generic
Jul 21 17:07:50 sabre usbserial_generic 1-4:1.1: usb_probe_interface
Jul 21 17:07:50 sabre usbserial_generic 1-4:1.1: usb_probe_interface - got id
Jul 21 17:07:50 sabre usbserial_generic 1-2.1:1.0: usb_probe_interface
Jul 21 17:07:50 sabre usbserial_generic 1-2.1:1.0: usb_probe_interface - got id
Jul 21 17:07:50 sabre usbcore: registered new driver usbserial_generic
Jul 21 17:07:50 sabre usbcore: registered new driver usbserial
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: Had to override the write_room 
usb serial operation with the generic one.
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: Had to override the 
chars_in_buffer usb serial operation with the generic one.
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: USB Serial support registered 
for PL-2303
Jul 21 17:07:50 sabre pl2303 1-2.1:1.0: usb_probe_interface
Jul 21 17:07:50 sabre pl2303 1-2.1:1.0: usb_probe_interface - got id
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: descriptor matches
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: found interrupt in
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: found bulk out
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: found bulk in
Jul 21 17:07:50 sabre pl2303 1-2.1:1.0: PL-2303 converter detected
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: get_free_serial 1
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: get_free_serial - minor base = 0
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: usb_serial_probe - setting up 1 
port structures for this device
Jul 21 17:07:50 sabre drivers/usb/serial/pl2303.c: device type: 1
Jul 21 17:07:50 sabre drivers/usb/serial/usb-serial.c: usb_serial_probe - registering 
ttyUSB0
Jul 21 17:07:50 sabre usb 1-2.1: PL-2303 converter now attached to ttyUSB0
Jul 21 17:07:50 sabre usbcore: registered new driver pl2303
Jul 21 17:07:50 sabre drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial 
adaptor driver v0.11
Jul 21 17:07:51 sabre udev[7577]: configured rule in '/etc/udev/rules.d/50-udev.rules' 
at line 89 applied, 'ttyUSB0' becomes 'tts/USB%n'
Jul 21 17:07:51 sabre udev[7577]: creating device node '/dev/tts/USB0'
Jul 21 17:12:20 sabre drivers/usb/serial/usb-serial.c: serial_open
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_open -  port 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8484:0x0  1 - 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0x40:0x1:0x404:0x0  0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8484:0x0  1 - 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8383:0x0  1 - 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8484:0x0  1 - 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0x40:0x1:0x404:0x1  0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8484:0x0  1 - 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8383:0x0  1 - 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0x40:0x1:0x0:0x1  0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0x40:0x1:0x1:0x0  0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0x40:0x1:0x2:0x24  0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_set_termios -  port 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0xa1:0x21:0:0  7 - 0 0 0 0 0 0 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_set_termios - data bits = 8
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_set_termios - baud = 9600
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_set_termios - stop bits = 1
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_set_termios - parity = none
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0x21:0x20:0:0  7
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: set_control_lines - value = 3, 
retval = 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: 0xa1:0x21:0:0  7 - 80 25 0 0 0 0 8
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_open - submitting read urb
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_open - submitting interrupt 
urb
Jul 21 17:12:20 sabre PL-2303 ttyUSB0: pl2303_open - failed submitting interrupt urb, 
error -28
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_close - port 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_close - shutting down urbs
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_read_bulk_callback - port 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_read_bulk_callback - 
urb->status = -2
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_read_bulk_callback - unable 
to handle the error, exiting.
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: set_control_lines - value = 0, 
retval = 0
Jul 21 17:12:20 sabre drivers/usb/serial/usb-serial.c: serial_close - port 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_close - port 0
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_close - shutting down urbs
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: set_control_lines - value = 0, 
retval = 0
Jul 21 17:12:20 sabre drivers/usb/serial/usb-serial.c: destroy_serial - PL-2303
Jul 21 17:12:20 sabre drivers/usb/serial/usb-serial.c: serial_shutdown
Jul 21 17:12:20 sabre drivers/usb/serial/pl2303.c: pl2303_shutdown
Jul 21 17:12:20 sabre drivers/usb/serial/usb-serial.c: return_serial
Jul 21 17:12:20 sabre udev[7658]: removing device node '/dev/tts/USB0'
Jul 21 17:12:20 sabre PL-2303 ttyUSB0: PL-2303 converter now disconnected from ttyUSB0
Jul 21 17:12:20 sabre drivers/usb/serial/usb-serial.c: port_release - ttyUSB0


****** strace ******
execve("/usr/bin/scmxx", ["scmxx", "-v", "-i", "-d", "/dev/tts/USB0"], [/* 62 vars 
*/]) = 0
uname({sys="Linux", node="sabre", ...}) = 0
brk(0)                                  = 0x805d000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=75041, ...}) = 0
mmap2(NULL, 75041, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`P\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1177936, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40028000
mmap2(NULL, 1109164, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40029000
mmap2(0x40132000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 
0x108) = 0x40132000
mmap2(0x40136000, 7340, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 
0) = 0x40136000
close(3)                                = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x40028780, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0
munmap(0x40015000, 75041)               = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "34\253\354", 4)                = 4
close(3)                                = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38392864, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40138000
close(3)                                = 0
brk(0)                                  = 0x805d000
brk(0x807e000)                          = 0x807e000
brk(0)                                  = 0x807e000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38392864, ...}) = 0
mmap2(NULL, 1097728, PROT_READ, MAP_PRIVATE, 3, 0x540) = 0x40338000
mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0x873) = 0x40444000
close(3)                                = 0
write(2, "Accessing device /dev/tts/USB0.."..., 33) = 33
open("/dev/tts/USB0", O_RDWR|O_NONBLOCK|O_NOCTTY) = -1 EPROTO (Protocol error)
write(2, "Cannot open /dev/tts/USB0: Proto"..., 42) = 42
exit_group(1)                           = ?

****** lsmod ******
Module                  Size  Used by
pl2303                 17348  4294967295 
usbserial              27880  1 pl2303
capi                   18368  4 
capifs                  5960  2 capi
nvidia               4814132  12 
b1pci                   9984  1 
b1dma                  17092  1 b1pci
b1                     25024  2 b1pci,b1dma
kernelcapi             47136  4 capi,b1pci,b1dma,b1
usblp                  12864  0 
sd_mod                 18560  0 
usb_storage            30592  0 
scsi_mod               77564  2 sd_mod,usb_storage

****** /proc/bus/usb/devices ******
T:  Bus=01 Lev=02 Prnt=03 Port=00 Cnt=01 Dev#=  6 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=067b ProdID=2303 Rev= 2.02
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303
E:  Ad=81(I) Atr=03(Int.) MxPS=  10 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

-- 
Frank Cringle,      [EMAIL PROTECTED]
voice: (+49 7745) 928759; fax: 928761


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to