OS:  Fedora 14  (2.6.35.10-74.fc14.i686)

Info from DEBUG
>>> dev.read(0x86, 1024, 0, 100)
2012-02-17 23:34:41,768
DEBUG:usb.backend.libusb10:_LibUSB.get_configuration_descriptor(<usb.backend.libusb10._Device
object at 0x99fffec>, 0)
2012-02-17 23:34:41,769
DEBUG:usb.backend.libusb10:_LibUSB.get_interface_descriptor(<usb.backend.libusb10._Device
object at 0x99fffec>, 0, 0, 0)
2012-02-17 23:34:41,769
DEBUG:usb.backend.libusb10:_LibUSB.get_configuration_descriptor(<usb.backend.libusb10._Device
object at 0x99fffec>, 0)
2012-02-17 23:34:41,770
DEBUG:usb.backend.libusb10:_LibUSB.bulk_read(c_void_p(161650472), 134, 0,
1024, 100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/usb/core.py", line 624, in read
    self.__get_timeout(timeout)
  File "/usr/lib/python2.7/site-packages/usb/_debug.py", line 53, in
do_trace
    return f(*args, **named_args)
  File "/usr/lib/python2.7/site-packages/usb/backend/libusb10.py", line
483, in bulk_read
    timeout)
  File "/usr/lib/python2.7/site-packages/usb/backend/libusb10.py", line
581, in __read
    timeout))
  File "/usr/lib/python2.7/site-packages/usb/backend/libusb10.py", line
353, in _check
    raise USBError(_str_error[retval.value])
usb.core.USBError: Operation timed out


Best wishes

Regards,
Yunong Pang






On Fri, Feb 17, 2012 at 9:39 PM, Wander Lairson Costa <
wander.lair...@gmail.com> wrote:

> 2012/2/17 Yunong Pang <029...@gmail.com>:
> > Hi all,
> >
> > I'm writing some code to get data from camera module ov7670.
> >
> > I can see the data has been output from the module, as the waveform has
> > changed when putting different image before the camera. And the EP6,
> which
> > is set to be AUTOIN , is full. I have set
> >
> >             PINFLAGSAB = 0xE6;             // FLAGA - fixed EP6PF-EP6
> Enable
> > flag, FLAGB - fixed EP6 Full Flag
> >
> > And the flag B is always 1, but I can not read EP6 by
> >
> >            import usb.core
> >            import sys
> >            dev = usb.core.find(idVendor=0x0547, idProduct=0x1002)
> >            dev.set_configuration()
> >            ret = dev.read(0x86, 1024, 0, 100)
> >
> > The error is 'usb.core.USBError: Operation timed out'
> >
> > What can I do now? Thanks for your help!
>
> What OS are you using? Please, define the environment variable
> PYUSB_DEBUG_LEVEL=debug and submit the output..
>
> --
> Best Regards,
> Wander Lairson Costa
>
>
> --
> Best Regards,
> Wander Lairson Costa
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to