On Tue, 2004-09-28 at 11:29 -0400, Alan Stern wrote:
> On Tue, 28 Sep 2004, David Woodhouse wrote:
> 
> > I don't understand why modem_run works but two entirely separate
> > reimplementations of exactly the same thing in the kernel don't work.
> > What are we doing differently?
> 
> You could try using the "usbfs_snoop=true" module parameter to check and 
> see what's actually being sent from the userspace program.

It appears to confirm my belief that the userspace program is doing
_precisely_ what both Duncan's and my kernel versions do.... nothing but
the bulk transfer. I've already triple-checked the endpoints and the
data. We show a CRC on the data and print the length. I've even done a
hex dump of the start and end of the data in my paranoia.

It does claim the interface first but I believe that doesn't actually
_do_ anything to the device -- and it didn't make any difference when I
did that from the kernel driver anyway.

modem_run[4477]: modem_run version 1.3.1 started by dwmw2 uid 0
modem_run[4477]: Found SpeedTouch USB modem
modem_run[4477]: Assuming modem revision: 4
kernel: usb 3-1: usbdev_ioctl: CLAIMINTERFACE
modem_run[4477]: Best offset     32 with probability 100%
modem_run[4477]: Best offset    927 with probability 100%
modem_run[4477]: Firmware info (CRC:0x69636579, Size:935, Checked: Yes, 
Alcatel/Thomson Boot block (new))
modem_run[4477]: Firmware info (CRC:0x41d4143c, Size:775545, Checked: Yes, 0.0.0 - 
testing firmware from Thomson)
kernel: usb 3-1: usbdev_ioctl: BULK
modem_run[4477]: BLOCK1 :    935 bytes   uploaded : OK
modem_run[4477]: Downloaded in 4.758000 ms
kernel: usb 3-1: usbdev_ioctl: BULK
modem_run[4477]: BLOCK2 :    511 bytes downloaded : OK
modem_run[4477]: Downloaded in 170.845000 ms

I'm beginning to wonder if it's purely timing-related. But it doesn't
matter how long I leave it between connecting the modem and running the
userspace program -- and it doesn't work if I connect the modem then
wait a while before loading the kernel module either.

-ECONNFUSED

-- 
dwmw2



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to