Thank you Xiaofan
Installed pyusb-1.0 and it worked like a charm.
My goal is to use an old usb irda dongle with SigmaTel chipset to record
IR impulses from the electric system in my house. The electric device
omits an IR impulse at the speed of 1000 impulses/kWh and my aim is to
register the time between these pulses to compute what electric effect
my whole house is consuming at the moment.
I pointed my tv remot towards the dongle when I did a read operation:
>>> dev.read(0x82,7)
array('B', [255])
It's a long shot but does anyone know how to interpret the result from
read()?
/Tomas
Xiaofan Chen skrev 2011-02-22 09:26:
> On Tue, Feb 22, 2011 at 2:00 PM, Tomas Hektor<[email protected]> wrote:
>
>> I ran the pyusb-0.4.3.win32-py2.6.exe. So far everything ok.
> That is the problem. The turorial is for pyusb-1.0.
> http://pyusb.sourceforge.net/docs/1.0/tutorial.html
>
>> In the IDLE gui I get the following result:
>>
>>
>> IDLE 2.6.6
>>>>> import usb.core
>> Traceback (most recent call last):
>> File "<pyshell#0>", line 1, in<module>
>> import usb.core
>> ImportError: No module named core
> You have to download pyusb-1.0.
> http://sourceforge.net/projects/pyusb/files/PyUSB%201.0/1.0.0-alpha-1/
>
>
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
pyusb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyusb-users