# How to parse this Hex string?

**URL:** https://discourse.nodered.org/t/how-to-parse-this-hex-string/50422
**Category:** General
**Created:** [31 August 2021 04:29 UTC](https://discourse.nodered.org/t/how-to-parse-this-hex-string/50422 "2021-08-31T04:29:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [31 August 2021 04:29 UTC](https://discourse.nodered.org/t/how-to-parse-this-hex-string/50422/1 "2021-08-31T04:29:10Z")

</div>

Guys,

I have the following Hex string

aa557fc001824d3038303843475735303030532d4250ffffffffffffffffffffffffffffffff39353030304250533230425730303232333630303431302d30343030312d3038473431302d30

Parts of this decode as ASCII text e.g. 4757 = GW - as can be seen in the screenshot below

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/3/134c6d6bcff8c99de039af0cdf65ed6dee8e5bd4.png)

Further along is a serial number

I am trying to feed this to Steves Buffer Parser node - but can not hit on the right combination to get anything out

If i set it to treat it as Hex i get

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/d/ed9b0d7aa45e113c33af860ea2801066d36a03f3.png)

So i believe i have the offsets and length right

But i can not get it to output the ASCII representation of the Hex characters

I have tried Hex, ASCII, String and am not getting the output - only hex gives me something but it is just the hex characters.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/54686a787f1391c70a36debaf2902c5478977d10.png)

Any pointers ?

Craig

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [31 August 2021 06:13 UTC](https://discourse.nodered.org/t/how-to-parse-this-hex-string/50422/2 "2021-08-31T06:13:53Z")

</div>

> [@craigcurtin](#):
>
> I have tried Hex, ASCII, String and am not getting the output

There was a bug in my parsing that was fixed about a week or 2 ago. Make sure you have the latest version installed Craig.

If you can't update, use `binary` type instead.

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [31 August 2021 07:25 UTC](https://discourse.nodered.org/t/how-to-parse-this-hex-string/50422/3 "2021-08-31T07:25:10Z")

</div>

Thanks Steve - updated now and will report back shortly

Craig

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [31 August 2021 07:30 UTC](https://discourse.nodered.org/t/how-to-parse-this-hex-string/50422/4 "2021-08-31T07:30:55Z")

</div>

Yep that solved it ! Thanks for letting me know

Love the node by the way

Craig

---

<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: [14 September 2021 07:31 UTC](https://discourse.nodered.org/t/how-to-parse-this-hex-string/50422/5 "2021-09-14T07:31:30Z")

</div>

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