diff --git a/vendor/netvox/payload/r211.js b/vendor/netvox/payload/r211.js index 14b0f0ab64..2d0298f1eb 100755 --- a/vendor/netvox/payload/r211.js +++ b/vendor/netvox/payload/r211.js @@ -131,6 +131,17 @@ function decodeUplink(input) { data: data, }; } + if (input.bytes[2] === 0x80) + { + data.Device = getDeviceName(input.bytes[1]); + data.SWver = input.bytes[3]/10; + data.HWver = input.bytes[4]; + 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); + + return { + data: data, + }; + } case 0x21: data.Cmd = getCmd(input.bytes[0]); diff --git a/vendor/netvox/r211-codec.yaml b/vendor/netvox/r211-codec.yaml index 0ab8669d9f..98abd0dd9f 100755 --- a/vendor/netvox/r211-codec.yaml +++ b/vendor/netvox/r211-codec.yaml @@ -12,6 +12,17 @@ uplinkDecoder: HWver: 11 Datecode: '20200424' + - description: Startup version report + input: + fPort: 6 + bytes: [0x01, 0x0F, 0x80, 0x0A, 0x05, 0x20, 0x21, 0x08, 0x13, 0x00, 0x00] + output: + data: + Device: 'R211' + SWver: 1 + HWver: 05 + Datecode: '20210813' + - description: Air IR apply response input: fPort: 33