Jordi Colomé
unread,Feb 21, 2011, 10:35:49 AM2/21/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
...