usb.USBError: error submitting URB: Invalid argument

115 views
Skip to first unread message

Jordi Colomé

unread,
Feb 21, 2011, 10:35:49 AM2/21/11
to pywws
Helo
I try to use your program over an Asus WL-500gP V2 with dd-wrt, the
EKO version
dd-wrt.v24-15943_NEWD-2_mini_usb_ftp.bin
All seems to work, wifi,usb storage,optware,....

When I execute it:

root@DD-WRT:/jffs/jordi/pywws-11.02_r354# python2.5
TestWeatherStation.py
Traceback (most recent call last):
File "TestWeatherStation.py", line 94, in <module>
sys.exit(main())
File "TestWeatherStation.py", line 57, in main
raw_fixed = ws.get_raw_fixed_block()
File "/jffs/jordi/pywws-11.02_r354/pywws/WeatherStation.py",
line 350, in get_raw_fixed_block
self._fixed_block = self._read_fixed_block()
File "/jffs/jordi/pywws-11.02_r354/pywws/WeatherStation.py",
line 391, in _read_fixed_block
result += self._read_block(mempos)
File "/jffs/jordi/pywws-11.02_r354/pywws/WeatherStation.py",
line 377, in _read_block
new_block = self.devh.interruptRead(0x81, 0x20, 1000)
usb.USBError: error submitting URB: Invalid argument
root@DD-WRT:/jffs/jordi/pywws-11.02_r354#

Do you know what is the reason to fail? can I use dd-wrt to read usb?

the only track with dmesg: (see usb device 3)
...
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 00:03.1-1, assigned address 2
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device 00:03.1-1.1, assigned address 3
usb.c: USB device 3 (vend/prod 0x1941/0x8021) is not claimed by
any active driver.
hub.c: new USB device 00:03.1-1.2, assigned address 4
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: CBM Model: Flash Disk Rev: 5.00
Type: Direct-Access ANSI SCSI revision:
02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun
0
SCSI device sda: 2046976 512-byte hdwr sectors (1048 MB)
sda: Write Protect is off
...

and at the end:
...
usbdevfs: usb_submit_urb returned -22
...

Jim Easterbrook

unread,
Feb 21, 2011, 12:51:16 PM2/21/11
to py...@googlegroups.com
On 21/02/2011 15:35, Jordi Colom� wrote:

> I try to use your program over an Asus WL-500gP V2 with dd-wrt, the
> EKO version
> dd-wrt.v24-15943_NEWD-2_mini_usb_ftp.bin

The V2 router is a problem. It has different USB hardware from the V1. I
thought I had used it with Oleg's firmware, but more recent experiments
failed (I have a V1 and a V2 router). One contribution to the wiki
http://code.google.com/p/pywws/wiki/Compatibility suggests using
firmware from koppel.cz.
--
Jim Easterbrook <http://www.jim-easterbrook.me.uk/>

Reply all
Reply to author
Forward
0 new messages