Skip to content
2 changes: 1 addition & 1 deletion vendor/nwave/ncc405fm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dimensions:
height: 20
weight: 405
battery:
replaceable: true
replaceable: false
type: AA 10,800mAh Li-SOCI2
operatingConditions:
temperature:
Expand Down
2 changes: 1 addition & 1 deletion vendor/nwave/ncc405sm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dimensions:
height: 20
weight: 412
battery:
replaceable: true
replaceable: false
type: AA 10,800mAh Li-SOCI2
operatingConditions:
temperature:
Expand Down
3 changes: 2 additions & 1 deletion vendor/nwave/nps405-codec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ uplinkDecoder:
- description: User Registration
input:
fPort: 10
bytes: [0xD1, 0x1F, 0x34, 0x56, 0x78]
bytes: [0xD1, 0x20, 0x1F, 0x34, 0x56, 0x78]
output:
data:
type: user_registration
occupied: true
previous_state_duration: 160
previous_state_duration_error: 4
previous_state_duration_overflow: false
tag_battery_voltage: 3.2
tag_id: '1F345678'

- description: Heartbeat
Expand Down
4 changes: 2 additions & 2 deletions vendor/nwave/nps405.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ function decodeUplink(input) {
data.previous_state_duration_error = null;
data.previous_state_duration_overflow = null;
}

data.tag_id = (bytes[1] << 24 | bytes[2] << 16 | bytes[3] << 8 | bytes[4]).toString(16).toUpperCase();
data.tag_battery_voltage = bytes[1] * 0.1;
data.tag_id = (bytes[2] << 24 | bytes[3] << 16 | bytes[4] << 8 | bytes[5]).toString(16).toUpperCase();

break;
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/nwave/nps405fm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dimensions:
height: 20
weight: 405
battery:
replaceable: true
replaceable: false
type: AA 10,800mAh Li-SOCI2
operatingConditions:
temperature:
Expand Down
2 changes: 1 addition & 1 deletion vendor/nwave/nps405sm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dimensions:
height: 20
weight: 412
battery:
replaceable: true
replaceable: false
type: AA 10,800mAh Li-SOCI2
operatingConditions:
temperature:
Expand Down