Uplink command to get get additional current parameters.
import * as getExtendedCurrentValues2 from 'jooby-codec/mtx1/commands/uplink/getExtendedCurrentValues2.js';// simple responseconst bytes = [0x01, 0x66, 0x61, 0x21, 0x59, 0x0a, 0x81];// decoded payloadconst parameters = getExtendedCurrentValues2.fromBytes(bytes);console.log(parameters);// output:{ uBattery: 358, relayStatus: { RELAY_STATE: true, RELAY_UBAD: false, RELAY_UNEQ_CURRENT: false, RELAY_OFF_CENTER: true, RELAY_IMAX: true, RELAY_PMAX: false }, relayStatus2: { RELAY_COSFI: true, RELAY_SALDO_OFF_FLAG: false, RELAY_UNEQUIL_CURRENT_OFF: false, RELAY_BIPOLAR_POWER_OFF: false, RELAY_SALDO_OFF_ON_MAX_POWER: false, RELAY_HARD_ST1: true }, status1: { MAXVA: true, MINVA: false, MAXT: false, MINT: true, MAXF: true, MINF: false, MAXIA: true, MAXP: false }, status2: { MAX_POWER_SALDO: false, BATTERY_VBAT_BAD: true, CLOCK_UNSET: true, MIN_COS_FI: false }, status3: { UNEQUIL_CURRENT: true, BIPOLAR_POWER: false, POWER_A_NEGATIVE: false, POWER_B_NEGATIVE: true }} Copy
import * as getExtendedCurrentValues2 from 'jooby-codec/mtx1/commands/uplink/getExtendedCurrentValues2.js';// simple responseconst bytes = [0x01, 0x66, 0x61, 0x21, 0x59, 0x0a, 0x81];// decoded payloadconst parameters = getExtendedCurrentValues2.fromBytes(bytes);console.log(parameters);// output:{ uBattery: 358, relayStatus: { RELAY_STATE: true, RELAY_UBAD: false, RELAY_UNEQ_CURRENT: false, RELAY_OFF_CENTER: true, RELAY_IMAX: true, RELAY_PMAX: false }, relayStatus2: { RELAY_COSFI: true, RELAY_SALDO_OFF_FLAG: false, RELAY_UNEQUIL_CURRENT_OFF: false, RELAY_BIPOLAR_POWER_OFF: false, RELAY_SALDO_OFF_ON_MAX_POWER: false, RELAY_HARD_ST1: true }, status1: { MAXVA: true, MINVA: false, MAXT: false, MINT: true, MAXF: true, MINF: false, MAXIA: true, MAXP: false }, status2: { MAX_POWER_SALDO: false, BATTERY_VBAT_BAD: true, CLOCK_UNSET: true, MIN_COS_FI: false }, status3: { UNEQUIL_CURRENT: true, BIPOLAR_POWER: false, POWER_A_NEGATIVE: false, POWER_B_NEGATIVE: true }}
Command format documentation
Uplink command to get get additional current parameters.
Example: create command instance from command body hex dump
Command format documentation