Skip to content

LHT65N-VIB vib_count and work_min are swapped in VIB_MOD=1 #44

@albertgoodwin

Description

@albertgoodwin

here is and event in my device log

8032980 2026/4/22 17:43:27 1 3020 tdc:yes alarm:false vib_count:118 work_min:2.

the corresponding uplink in Chirpstack (V4.16.2) is this:

{
"deduplicationId": "69e95000-b496-4695-a8d9-4e9c3fa3878d",
"time": "2026-04-22T17:43:25.472+00:00",
"deviceInfo": {
"tenantId": "582a3281-d4e9-4c6b-97b5-cc3ec33af618",
"tenantName": "ccny",
"applicationId": "3d182119-ede3-46d3-b115-22f994516bac",
"applicationName": "condition_monitoring",
"deviceProfileId": "c7421146-8b8b-4fdb-866e-c1ca42918c8b",
"deviceProfileName": "LHT65N-VIB",
"deviceName": "test sensor",
"devEui": "a8404183d15b04f7",
"deviceClassEnabled": "CLASS_A",
"tags": {}
},
"devAddr": "019dcf11",
"adr": true,
"dr": 3,
"fCnt": 322,
"fPort": 2,
"confirmed": false,
"data": "C8wGAAAAAgAAAHY=",
"object": {
"Alarm": "FALSE",
"TDC": "YES",
"BatV": 3.02,
"vib_count": 2,
"work_min": 118
},
"rxInfo": [
{
"gatewayId": "24e124fffefe22a6",
"uplinkId": 4355,
"gwTime": "2026-04-22T17:43:25.472607+00:00",
"nsTime": "2026-04-22T17:43:26.488286706+00:00",
"timeSinceGpsEpoch": "1460915023.472s",
"rssi": -95,
"snr": 7.8,
"channel": 7,
"rfChain": 1,
"location": {
"latitude": 41.5432,
"longitude": -74.1879,
"altitude": 163
},
"context": "CpMqoA==",
"crcStatus": "CRC_OK"
}
],
"txInfo": {
"frequency": 905300000,
"modulation": {
"lora": {
"bandwidth": 125000,
"spreadingFactor": 7,
"codeRate": "CR_4_5"
}
}
},
"regionConfigId": "us915_1"
}

it seams the device is sending the payload with the byte arrays swapped for those two values. The decoder is doing what the manual says it should.

for now i am swapping the names in the decoder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions