Hosted by: |
MyHD/MyIRC Infrared Remote Control ReceiverThe MyHD is shipped with a simple, easy to use remote control and a serial or USB infrared receiver. Since I couldn't find a single mention of anyone using the MyIRC receiver in Linux, I decided to do a little digging and see if I could make it work. Note: if you simply want to know how to use this receiver with lirc, skip the next few paragraphs. The first thing I did was open the hood to look at the circuit. It is a simple circuit, which may look familiar to those with lirc experience. The board has one DIP8 12C509A One-Time Programmable PIC, one IR receiver, four diodes, and two resistors. It is basically the same as the home brew irman receiver, right down to the PIC, as you can see from the pictures at the bottom of this page. Unsure of how to proceed, I found a serial port traffic sniffer, PortMon from Sysinternals, and watched the MyIRC.exe program interact with the receiver. The receiver is initialized by opening the serial port at 9600 baud and sending 'IR'. The receiver then responds with 'OK'. Remote codes are sent as 6 byte packets. This is identical to the irman protocol, with one potential exception: the bits in each byte of data from the remote are reversed. This is of little consequence. To make sure Linux could interact with the receiver, I wrote a simple test program to initialize the receiver and dump all remote data. The program may be useful to those who wish to test any irman or MyHD/MyIRC serial port receiver. It may be downloaded here. After verifying that the receiver worked with Linux's serial driver and that the data received by my test program was identical to that shown in my investigation of the Windows MyIRC.exe program, I recompiled lirc with the irman driver. HOWTO: Here's what it takes to get the MyHD MyIRC receiver working in Linux with lirc:
Related Links: LIRC Home - Homebrew Universal Infrared Receiver (UIR/irman)
|
|