Reference
Components
Phidgets IR Transmit and Receive
Description
This primitive allows you to interface to the Phidgets IR board.
Once you have the board connected to your PC you need to start the component by sending a trigger to the first input. The 'On' output will
return True if a connection has been established (False otherwise).
If you have multiple boards connected to your PC then you should provide the unique serial number of the board you want to connect to at
the 'Conn' (connection string) input. If you want to connect to a device on a remote server provide the device serial, IP and port or server
name and also a password if necessary separated by commas. Use -1 as the serial if you want to connect to the first device found.
Example connection strings:
“196491” or “635824,myserver” or “-1,myserver,password” or “142567,192.168.1.1,800,password”
To send an IR code you need to attach a String to the Code input. This must contain the full NEC encoding for the code you want to send .
An example code would be:
08b750af,32,2,2,108500,501,8980,4590,501,1761,501,626,8980,2333,501,|,0,0,0,0
To send the code simply trigger the Send input.
When IR codes are received you'll get the short hex code at the Hex output and the full NEC encoding at the Code output. The Rept output
gives you the repeat count for a code – the number of times it has been repeated if say a transmit button on a remote was held down.
313 of 494