Demand Peripherals     Robotics and Automation Made Easy

IRIO: Quad Input

The IRIO card and peripheral sends and receives consumer IR remote control packets. It uses the 'NEC Protocol' which has a 16 bit address, an 8 bit command, and command again but with the bits inverted.

You can find a list of NEC protocol devices, their addresses, and commands here: http://lirc.sourceforge.net/remotes/. The web site lists the address as the 'pre_data' value and the commands are listed by function and value. The second byte of most commands is, as expected, the inverse of the first byte.

 

Hardware:

Use the IORO card with the IRIO peripheral. The card has a 38 KHz IR receiver, a set of IR LEDs, and two visible LEDs. The visible LEDs flash when an IR packet is sent or received. More data about the IRIO card can be found here: cards/irio.html.

 

Resources:

Resources for the irio peripheral include a read-only data receive resource and a write-only transmit one.

recv : received IR packets given as a newline terminated 32 bit hexadecimal string. This resource works with pccat but not with pcget or pcset.

xmit : 32 bit hex value to be transmitted. This resource works with pcset but not pcget or pccat.

 

Examples:

Start a stream of received IR data.

    pccat irio recv