I trying to run PyDPFon my Pi but it fails due to bulk write timeout errors:
Code: Select all
File "dpflib_py.py", line 240, in _emulate_scsi
ret = self._handle.bulkWrite(ENDPT_OUT, outdata,1000)
usb.USBError: Connection timed out
Code: Select all
root@myPi:~/pydpf/display# python dpflib_py.py
DPF Device 0x1908:0x102 found at /dev/bus/usb/001/007
Display = Pearl DPF in landscape mode:
X resolution = 320
Y resolution = 240
Error bulk write
I'm using http://openwrt.org distri but with some modifications to switch to hardfloat and newer kernel.
The interesting thing is that I was able to reproduce the problem with
- recent raspbian wheezy version with kernel 3.6.11 hard / softfloat
- kernel 3.8.x (hf),
- kernel 3.9.8 even with latest commit(hf)
BUT NOT WITH kernel version 3.3.8 which is part of openwrt attitude adjustment release openwrt attitude adjustment release.
With that kernel version the transfer time is MUCH faster, no time-outs occur.
As far I know there are some known problems with raspberry's usb implementation, maybe this information helps !?
