On Wed, Feb 23, 2011 at 3:21 AM, Tomas Hektor <tomas.hek...@gmail.com> wrote: > 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()? >
In that case, you have to know how this USB Irda dongle works. And a TV remote may be too complicate to start the experiment. I would use a simple IR emitter (constant frequency) as the starting point. In any case, this task may not be that simple. Back to your task, I think that the USB Irda dongle may not be the best solution. I would use a MCU based system which has an Infrared receiver to count the pulse and then the MCU can communicate with the PC using either USB or Serial. BTW, what is the electric device you have? I would expect it comes others ways of reading the kWh and not only rely on IR pulse. -- Xiaofan ------------------------------------------------------------------------------ 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 pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users