beautypg.com

Roirremote – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 287

background image

279

roIRRemote

This object supports receiving and transmitting arbitrary Infrared remote control codes using the NEC protocol. You can
also use this object to send PHC (Pronto Hex Code) commands. The best way to determine the required send values is to
capture the codes received by roIRRemote when the remote buttons of the device are pressed and then send the same
codes.

Important: The roIRRemote object cannot be used to receive input over the 3.5mm IR port on the 4Kx42 and XDx32
series—use the
roIRReceiver object instead.

NEC codes are expressed in 24 bits:

Bits 0-7: Button code

Bits 8-23: Manufacturer code

Note: If the manufacturer code is zero, then the code is considered to be intended for the Roku SoundBridge remote
control.


Interfaces:

ifSetMessagePort

,

ifIRRemote

.


The ifSetMessagePort interface provides the following:

SetPort(message_port_object As Object) As Void

The ifIRRemote interface provides the following:

Send(protocol as String, code as Dynamic) As Boolean: Sends the specified code using the IR
blaster. The system currently supports two IR transmission protocols: "NEC" and "PHC" (Pronto Hex Code). This
method returns True if the code was successfully transmitted, but there is no way to determine from BrightScript if
the controlled device actually received it.