Re: [pyusb-users] How to wake the device programatically

2011-08-16 Thread Wander Lairson Costa
2011/8/16 Charles Romestant : > Hello this is the last update I was talking about with XIaofan > After reset(), you must do a set_configuration again, I guess this is what is causing the segfault... > The task: get the input from the macbook pro's IR port (6button remote >> control) >> The code I

Re: [pyusb-users] How to wake the device programatically

2011-08-16 Thread Charles Romestant
Hello this is the last update I was talking about with XIaofan The task: get the input from the macbook pro's IR port (6button remote > control) > The code I'm using: > http://pastie.org/2378626 > and the debug output: > http://pastie.org/2378632 > the descriptor says only one endpoint exists(int

Re: [pyusb-users] How to wake the device programatically

2011-08-16 Thread Wander Lairson Costa
2011/8/10 Charles Romestant : > 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

Re: [pyusb-users] How to wake the device programatically

2011-08-10 Thread Charles Romestant
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 interr

Re: [pyusb-users] How to wake the device programatically

2011-08-06 Thread Xiaofan Chen
On Sat, Aug 6, 2011 at 4:30 PM, Xiaofan Chen 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

Re: [pyusb-users] How to wake the device programatically

2011-08-06 Thread Xiaofan Chen
On Sat, Aug 6, 2011 at 1:19 PM, Charles Romestant wrote: > I was just playing with the USB prober, and rightly so, there is little less > information than the name given in the probe, even with the "probe suspended > device" option activated. > Then again, after clicking on any button on the contr

Re: [pyusb-users] How to wake the device programatically

2011-08-05 Thread Charles Romestant
I was just playing with the USB prober, and rightly so, there is little less information than the name given in the probe, even with the "probe suspended device" option activated. Then again, after clicking on any button on the control, the probe is successful in giving all the info wanted. I thin

Re: [pyusb-users] How to wake the device programatically

2011-08-05 Thread Charles Romestant
THank you for your reply Xiaofan, I see what you say, but reading the last message in that thread you can see that they talk about : "Older version (10.5.6) -- this was the reference I used when adding the ability to unsuspend a device (this feature was not present in libusb 0.1): " I am wonderi

Re: [pyusb-users] How to wake the device programatically

2011-08-05 Thread Xiaofan Chen
On Sat, Aug 6, 2011 at 9:11 AM, Charles Romestant wrote: > Hello, > I'm playing around with pyUSB on a macbook pro, in order to be able to play > around with the IR port. > > Unless I click on any of the buttons on the remote control (thus I suppose > activating the device). > then the set_configu

[pyusb-users] How to wake the device programatically

2011-08-05 Thread Charles Romestant
Hello, I'm playing around with pyUSB on a macbook pro, in order to be able to play around with the IR port. I've got the device found using this: dev = usb.core.find(idVendor=0x05ac, idProduct=0x8242) if dev is None: raise ValueError('Device not found') now, if I try the dev.set_configuration() (