Skip to content

Commit 67056f3

Browse files
Modify r211 (#868)
* r718pa,r718pa4,r718pb,rp02 insert,r718n * add r718pa,r718pa4,r718pb,rp02,r718n3 support * add r718pa,r718pa4,r718pb,rp02,r718n3 support * add photos * R312A、R312FunctionKeyTrigger * photo submission * photo submission * Report type 0x11,0x12 support * RA02G R603 * ra02g,r603,r718pa,r718pb update * modify r603,add r315la * r315la modify * r211 update --------- Co-authored-by: Jaime Trinidad <81958808+Jaime-Trinidad@users.noreply.github.com>
1 parent b64c9ef commit 67056f3

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

vendor/netvox/payload/r211.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,17 @@ function decodeUplink(input) {
131131
data: data,
132132
};
133133
}
134+
if (input.bytes[2] === 0x80)
135+
{
136+
data.Device = getDeviceName(input.bytes[1]);
137+
data.SWver = input.bytes[3]/10;
138+
data.HWver = input.bytes[4];
139+
data.Datecode = padLeft(input.bytes[5].toString(16), 2) + padLeft(input.bytes[6].toString(16), 2) + padLeft(input.bytes[7].toString(16), 2) + padLeft(input.bytes[8].toString(16), 2);
140+
141+
return {
142+
data: data,
143+
};
144+
}
134145

135146
case 0x21:
136147
data.Cmd = getCmd(input.bytes[0]);

vendor/netvox/r211-codec.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ uplinkDecoder:
1212
HWver: 11
1313
Datecode: '20200424'
1414

15+
- description: Startup version report
16+
input:
17+
fPort: 6
18+
bytes: [0x01, 0x0F, 0x80, 0x0A, 0x05, 0x20, 0x21, 0x08, 0x13, 0x00, 0x00]
19+
output:
20+
data:
21+
Device: 'R211'
22+
SWver: 1
23+
HWver: 05
24+
Datecode: '20210813'
25+
1526
- description: Air IR apply response
1627
input:
1728
fPort: 33

0 commit comments

Comments
 (0)