Hello all,

I was travelling and had little time to update.
I opted to take the try catch approach until the device is awoken by
keypress.
This was all working properly, then I started to code so I could read form
the device. So reading up on the docs, i was able to 1) figure out that its
an interrupt endpoint, and 2) figure out how to read from it.

Now here is where the problems came back.

endpoint = device[0][(0,0)][0]
 (single endpoint, first device, first alternate setting)
(here there is something weird, even though there is only one endpoint
listed, if I do
endpoint = device[0][(0,0)][1] it still returns an endpoint object, but I am
unable to read from it).

and then a simple
dev.read(endpoint.bEndpointAddress, endpoint.wMaxPacketSize)

which ends up in a segfault exit from python, and the device disappearing

a reboot fixes the issue (which is annoying, if anyone knows of a simple way
to reload the driver and the device it would be nice to know).

I think I need to learn how to use gdb in python.
Thanks again for the help,
I'll keep posted.

On Sat, Aug 6, 2011 at 4:39 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:

> On Sat, Aug 6, 2011 at 4:30 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> > But I am not familiar with Mac OS  X myself. And this particular
> > issue has nothing to do with pyusb but rather libusb-1.0 on Mac OS X.
> > You may want to ask in the libsub mailing list.
> >
> > BTW, you may want to check out the latest libusb-1.0 git
> > version for Mac OS X and it might help.
> > http://git.libusb.org/?p=libusb-darwin.git;a=summary;js=1
>
> Another note, you can check out the above git tree, build
> it with debug information on and see if the debug information
> shows some error related to suspend. And then you can
> post to the libusb mailing list with the debug log information.
>
> Something like this.
> "./configure --enable-maintainer-mode --enable-debug-log
> --enable-examples-build $"
>
>
> --
> Xiaofan
>
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>



-- 
Merci de penser à l'environnement avant d'imprimer cet e-mail
Please think about the environment before you print this e-mail
Por favor piense en el medio ambiente antes de imprimir este e-mail



Lic. Charles M. Romestant F.
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to