# How to parse bits in bytes

**URL:** <https://discourse.nodered.org/t/how-to-parse-bits-in-bytes/69428>\
**Category:** General\
**Created:** [22 October 2022 17:08 UTC](https://discourse.nodered.org/t/how-to-parse-bits-in-bytes/69428 "2022-10-22T17:08:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![addi](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@addi](https://discourse.nodered.org/u/addi)\
**Post date:** [22 October 2022 17:08 UTC](https://discourse.nodered.org/t/how-to-parse-bits-in-bytes/69428/1 "2022-10-22T17:08:30Z")

</div>

Hello!

I have got USB-RS-485 dongle and Modbus-RTU device  
I read protocol frame but I cant parse it cause I dont know in what language I can do it(read value of separate bits or group of bits)  
For example in C I can parse via & and !& but in mneminic node-red I dont undesrant how to do it

Please help!

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [22 October 2022 17:52 UTC](https://discourse.nodered.org/t/how-to-parse-bits-in-bytes/69428/2 "2022-10-22T17:52:09Z")

</div>

Don't know if it will help but there is a node node-red-contrib-bitunloader that may help

---

<div class="post-metadata">

**Author:** ![addi](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@addi](https://discourse.nodered.org/u/addi)\
**Post date:** [22 October 2022 18:10 UTC](https://discourse.nodered.org/t/how-to-parse-bits-in-bytes/69428/3 "2022-10-22T18:10:10Z")

</div>

> [@gerry](#):
>
> node-red-contrib-bitunloader

Thanks, didnt know that, can you give some example?, please

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [22 October 2022 18:38 UTC](https://discourse.nodered.org/t/how-to-parse-bits-in-bytes/69428/4 "2022-10-22T18:38:30Z")

</div>

Haven't used it in any of my flows but there are several examples. Load the node go to import , examples and have fun

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 October 2022 18:45 UTC](https://discourse.nodered.org/t/how-to-parse-bits-in-bytes/69428/5 "2022-10-22T18:45:25Z")

</div>

I think node-red-contrib-buffer-parser will help unpack the payload as long as you have the spec for it

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 December 2022 18:46 UTC](https://discourse.nodered.org/t/how-to-parse-bits-in-bytes/69428/6 "2022-12-21T18:46:11Z")

</div>

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