Samsung Electronics logo

Sending a Power on Control Data to a Receiver



Learning how to send control data to a IrLed receiver is a basic IrLed management skill:

  1. To power on a TV, you need obtain the control signal data that the TV recognize, and send it with send() method of the IrLedManager interface:

    /* power on control data */
    var data = "38400,174,172,24,61,24,62,24,61,24,17,25,17,24,17,24,17,24,18,24,61,24,62,24,61,24,18,24,17,24,17,24,18,24,17,24, \
                17,24,62,24,17,24,17,24,18,24,17,24,17,24,18,24,61,24,17,24,62,24,61,25,61,24,62,24,61,24,62,24,1879";
    webapis.irled.send(
        data,
        function() {
           console.log("data send ok");
        }, 
        function(e) {
           console.log("Error: " + e.message);
        }
     );