For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

->08 ->06 ->04 ->02 ->00
  • The fully Constructed TLV command data:

E108 E206 E204 E202 C100 (E108E206E204E202C100)

Use the configType and command data for the SDK APIs.

byte configType = 02; 
byte[] data = {0xE1,0x08,0xE2,0x06,0xE2,0x04,0xE2,0x02,0xC1,0x00};
byte[] response = devConfig.getConfigInfo(configType, data);

Example Get: Device Model Name

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

Last updated