1 |
Hi James, |
2 |
|
3 |
Thanks for going to all the trouble of testing out the phone |
4 |
operation on your SuSE machine. I havn't had any breakthrough |
5 |
yet, but your help has given me the confidence to persevere.. |
6 |
|
7 |
On Wed, Nov 02, 2005 at 06:40:11AM -0500, James Hiscock wrote: |
8 |
> > I've just tried to use moto4lin with a Motorola Razr. It starts as with |
9 |
> > yours, but when I click "Switch to P2K", /dev/ttyACM0 disappears! nothing |
10 |
> > works after that until I disconnect and reconnect the phone, at which |
11 |
> > point I am back in AT mode and it all starts again. |
12 |
> |
13 |
> That's what was happening for me for several hours until it magically |
14 |
> started working... I honestly don't know what the heck changed. But |
15 |
> once it decided to work, it works consistently. |
16 |
|
17 |
It also sounds very much like what I am seeing. My /dev/usb/acm/0 |
18 |
disappears the first time it is accessed (either by moto4lin or by |
19 |
just echoing anything to it), followed by a message along the lines |
20 |
of |
21 |
usb 1-1: USB disconnect, address 17 |
22 |
in /var/log/messages |
23 |
|
24 |
So far I havn't managed to get it into a mode where it works more |
25 |
sucessfully. |
26 |
|
27 |
I have noticed that on connection I sometimes get: |
28 |
usb 1-1: new full speed USB device using uhci_hcd and address 5 |
29 |
usb 1-1: device descriptor read/64, error -71 |
30 |
usb 1-1: device descriptor read/64, error -71 |
31 |
usb 1-1: new full speed USB device using uhci_hcd and address 6 |
32 |
cdc_acm 1-1:1.0: ttyACM0: USB ACM device |
33 |
whereas on other occasions I get: |
34 |
usb 1-1: new full speed USB device using uhci_hcd and address 16 |
35 |
usb 1-1: device descriptor read/64, error -71 |
36 |
usb 1-1: device descriptor read/64, error -71 |
37 |
usb 1-1: new full speed USB device using uhci_hcd and address 17 |
38 |
usb 1-1: device descriptor read/64, error -71 |
39 |
cdc_acm 1-1:1.0: ttyACM0: USB ACM device |
40 |
ie sometimes 2 descriptor read failures, sometimes 3. |
41 |
|
42 |
so perhaps there is something a bit flakey in there that at some point |
43 |
might just start working. |
44 |
|
45 |
Anyone else seen these sort of error messages on plug-in? I'm really |
46 |
not sure what they are telling me. I can't even find the error message |
47 |
in the source. The closest I have found is in linux/drivers/usb/core/hub.c: |
48 |
dev_err(&udev->dev, "device descriptor read/%s, error %d\n", "all", retval); |
49 |
but the '%s' seems hard wired to produce the string "all" rather than 64, |
50 |
unless dev_err is doing something funny with its 3rd arg. |
51 |
|
52 |
> There's a note in the moto4lin wiki specifically for Razr phones |
53 |
> (http://moto4lin.sourceforge.net/wiki/Razr_V3) that says that it's |
54 |
> inconsistent, and you may need to run |
55 |
> |
56 |
> echo AT+MODE=8 > /dev/ttyACM0 |
57 |
> |
58 |
> When I was doing that last night on my laptop, the first time would |
59 |
> work, and the second time it removed the device... I honestly don't |
60 |
> know what the heck is going on with this program, but it _is_ a pretty |
61 |
> early release... <shrug> |
62 |
|
63 |
I get the device disappearing every time I attempt this. My gut feeling |
64 |
is that the problem has nothing to do with moto4lin. After all, when I |
65 |
am using echo it isn't even running. |
66 |
|
67 |
I suspect it is more a compatability issue between the Linux USB/ACM |
68 |
code and the Motorola gadget code. |
69 |
|
70 |
> There isn't much info for the C380 in the wiki, other than the |
71 |
> settings that should be used (which are the defaults)... |
72 |
|
73 |
Yes, although it is listed as one of the models that work, so I assume |
74 |
somebody must have managed to get it to go. |
75 |
|
76 |
I still have to try tweaking the kernel USB related config parameters, but |
77 |
if that doesn't help, I suspect I am going to have to bite the bullet and |
78 |
try and find my way around the USB driver code. Anybody know of any good |
79 |
references on USB protocols and drivers? |
80 |
|
81 |
Regards, |
82 |
DigbyT |
83 |
-- |
84 |
Digby R. S. Tarvin digbyt@××××××.com |
85 |
http://www.digbyt.com |
86 |
-- |
87 |
gentoo-user@g.o mailing list |