
5. Control Command
R211 receive commands from gateway to absorbs and sends IR spectroscopy
1. Learn IR Spectroscopy
Gateway sends “NEW IR learn request” to R211 to enable learning mode. When the status LED light up,
press the button of the remote controller against R211 to learn IR command. After learning process, the status
LED turns OFF and R211 sends “NEW IR learn Confirm response” command to gateway.
2. Emit IR Spectroscopy
Gateway sends “AIR IR Apply request” to R211 and then R211 emit the corresponding IR spectroscopy. After
that, R211 response message to gateway. If success, status LED flashes once. Otherwise, status LED flashes 3
times.
3. Erase command
Gateway sends “Erase IR request” to R211 to remove the recorded IR code.
The detail of the command set is listed as below.
FPort:0x21
NEW IR learn request(IR)
IR Index - 2 bytes - Index of IR Command
NEW IR learn Confirm response(IR)
Actual IRIndex - 2 byte - Index of IR Command Assigned by device
Data index number - byte - ir array have all piece number.
Data Index - byte - Index of IR Data array.
Data len - byte - length of ir array.
Data – var bytes - IR data.(MAX=96bytes)
AIR IR Apply request
Data index number - byte - ir array have all piece number.
Data Index - byte - Index of IR Data.
Data len - byte - length of ir array.
Data - var bytes - IR array data.(MAX=96bytes).
Bytes 1 2
Cmd=0x49 IR Index
Bytes 1 2 1 1 1 Var(Max=96)
Cmd=0x4A Actual
IRIndex Data Index number Data Index Data len Data
Bytes 1 1 1 1 Var(Max=96)
Cmd=0x07 Data Index number Data Index Data len Data