# Help with Axioma W1 Water Meter and Mini Hub TBMH100 gateway

**URL:** <https://www.thethingsnetwork.org/forum/t/help-with-axioma-w1-water-meter-and-mini-hub-tbmh100-gateway/72428>\
**Category:** Uncategorized\
**Created:** [October 22, 2025, 9:58am UTC](https://www.thethingsnetwork.org/forum/t/help-with-axioma-w1-water-meter-and-mini-hub-tbmh100-gateway/72428 "2025-10-22T09:58:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mortenx](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mortenx/32/25844_2.png) [@mortenx](https://www.thethingsnetwork.org/forum/u/mortenx)\
**Post date:** [October 22, 2025, 9:58am UTC](https://www.thethingsnetwork.org/forum/t/help-with-axioma-w1-water-meter-and-mini-hub-tbmh100-gateway/72428/1 "2025-10-22T09:58:48Z")

</div>

Can you help with packet decoder?  
I see packets but how to decode?

```auto
“frm_payload”: “3Kz4aBAZAAAAQKn4aBkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=”,“decoded_payload”: {“bytes”: [220,172,248,104,16,25,0,0,0,64,169,248,104,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},

```

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [October 22, 2025, 10:36am UTC](https://www.thethingsnetwork.org/forum/t/help-with-axioma-w1-water-meter-and-mini-hub-tbmh100-gateway/72428/2 "2025-10-22T10:36:27Z")

</div>

There is at least one topic with a link to the documentation from the manufacturer that explains the format.

To be clear, the device is documented and the forum has a link to that.

Please use search!

---

<div class="post-metadata">

**Author:** ![mortenx](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mortenx/32/25844_2.png) [@mortenx](https://www.thethingsnetwork.org/forum/u/mortenx)\
**Post date:** [October 23, 2025, 11:00pm UTC](https://www.thethingsnetwork.org/forum/t/help-with-axioma-w1-water-meter-and-mini-hub-tbmh100-gateway/72428/3 "2025-10-23T23:00:08Z")

</div>

working decoder:

```auto

function decodeUplink(input) {
  const bytes = input.bytes || [];
  const port = input.fPort;

  function readUInt32LE(b, i) {
    return b[i] + (b[i + 1] << 8) + (b[i + 2] << 16) + (b[i + 3] << 24);
  }

  function decodeTimestamp(ts) {
    const date = new Date(ts * 1000);
    return date.toISOString();
  }

  const statusMap = {
    0x00: "No error",
    0x04: "Low battery",
    0x08: "Permanent error",
    0x10: "Temporary error",
    0x20: "Leakage",
    0x60: "Backflow",
    0xA0: "Burst",
    0x80: "Freeze"
  };

  const data = {};

  if (port === 100 && bytes.length === 9) {
    const currentTs = readUInt32LE(bytes, 0);
    data.current_datetime = decodeTimestamp(currentTs);

    const status = bytes[4];
    data.status_code = "0x" + status.toString(16).padStart(2, '0');
    data.status_description = statusMap[status] || "Unknown";

    const currentVolume = readUInt32LE(bytes, 5);
    data.current_volume_liters = currentVolume;
    data.current_volume_m3 = currentVolume / 1000;
  } else {
    data.error = `Unsupported port ${port} or length ${bytes.length}`;
  }

  return { data };
}

```

---

<div class="post-metadata">

**Author:** ![mortenx](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mortenx/32/25844_2.png) [@mortenx](https://www.thethingsnetwork.org/forum/u/mortenx)\
**Post date:** [October 24, 2025, 8:32am UTC](https://www.thethingsnetwork.org/forum/t/help-with-axioma-w1-water-meter-and-mini-hub-tbmh100-gateway/72428/4 "2025-10-24T08:32:38Z")

</div>

a my bad , i inserted payload formatter decoder in the left menu with green, but had to insert to device  
with red  
Now its working fine and decoding.

{  
“current\_datetime”: “2025-10-24T08:52:27.000Z”,  
“current\_volume\_liters”: 25,  
“current\_volume\_m3”: 0.025,  
“status\_code”: “0x10”,  
“status\_description”: “Temporary error”  
}

 ![ttn](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/e/c/ec493dceb3c8c0b58f64715d1e181489380e9687.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [October 25, 2025, 8:32am UTC](https://www.thethingsnetwork.org/forum/t/help-with-axioma-w1-water-meter-and-mini-hub-tbmh100-gateway/72428/5 "2025-10-25T08:32:43Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
