The Observation Report String uplink command is used for reporting by the OBIS observer. The command includes the OBIS content captured according to schedule and contain string values.
import * as observationReportString from 'jooby-codec/obis-observer/commands/uplink/observationReportString.js';// report exampleconst bytes = [ 0x00, 0x00, 0x00, 0x02, 0x2d, 0x18, 0xdf, 0x80, 0x32, 0x1a, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x20, 0x51, 0x49, 0x2c, 0x20, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x38, 0x18, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x20, 0x51, 0x49, 0x2c, 0x20, 0x74, 0x6f, 0x74, 0x61, 0x6c];// decoded payloadconst parameters = observationReportString.fromBytes(bytes);console.log(parameters);// output:{ meterId: 2, time2000: 756604800, obisValueList: [ {code: 50, content: 'reactive power QI, average'}, {code: 56, content: 'reactive power QI, total'} ]} Copy
import * as observationReportString from 'jooby-codec/obis-observer/commands/uplink/observationReportString.js';// report exampleconst bytes = [ 0x00, 0x00, 0x00, 0x02, 0x2d, 0x18, 0xdf, 0x80, 0x32, 0x1a, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x20, 0x51, 0x49, 0x2c, 0x20, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x38, 0x18, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x20, 0x51, 0x49, 0x2c, 0x20, 0x74, 0x6f, 0x74, 0x61, 0x6c];// decoded payloadconst parameters = observationReportString.fromBytes(bytes);console.log(parameters);// output:{ meterId: 2, time2000: 756604800, obisValueList: [ {code: 50, content: 'reactive power QI, average'}, {code: 56, content: 'reactive power QI, total'} ]}
Command format documentation
The Observation Report String uplink command is used for reporting by the OBIS observer. The command includes the OBIS content captured according to schedule and contain string values.
Example: create command instance from command body hex dump
Command format documentation