All pages
Powered by GitBook
1 of 1

Loading...

OID Conversion Method

This is an example of how to manually convert a property OID in decimal format into a constructed TLV command data.

  • ConfigType is the first number (node 6) to the left of the OID.

    [2] . 1 . 2 . 2 . 2 . 1
node(6)                  node(1)

To construct the remaining nodes, logical OR as follows.

OR node 1 with C0
OR nodes 2 - 5 with E0

Result:

        1 . 2 . 2 . 2 . 1
OR E0   E0   E0   E0   C0
= E1   E2   E2   E2   C1
  • Add Lengths to each node to include all lower nodes and data.

  • The fully Constructed TLV command data:

Use the configType and command data for the SDK APIs.

Example Get: Device Model Name

->08 ->06 ->04 ->02 ->00
E108 E206 E204 E202 C100 (E108E206E204E202C100)
byte configType = 02; 
byte[] data = {0xE1,0x08,0xE2,0x06,0xE2,0x04,0xE2,0x02,0xC1,0x00};
byte[] response = devConfig.getConfigInfo(configType, data);
[1] . 2 . 3 . 1 . 1 . 1 = 03000000
CT	En	En	En	En	Cn = 03000000 CT	EnLL->EnLL->EnLL->EnLL->CnLLValue
01	E20C->E30A->E108->E106->C10403000000

ConfigType = 01
Command data = E20CE30AE108E106C10403000000

Notation

Description

CT

Configuration type

En

Converted tag for a node

LL

TLV Length for that node

->

All TLVs to the right

Cn

Converted tag for the first node