# Parsing ser. buffer

**URL:** <https://discourse.nodered.org/t/parsing-ser-buffer/74833>\
**Category:** General\
**Created:** [7 February 2023 09:55 UTC](https://discourse.nodered.org/t/parsing-ser-buffer/74833 "2023-02-07T09:55:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![valbuz](https://avatars.discourse-cdn.com/v4/letter/v/c89c15/32.png) [@valbuz](https://discourse.nodered.org/u/valbuz)\
**Post date:** [7 February 2023 09:55 UTC](https://discourse.nodered.org/t/parsing-ser-buffer/74833/1 "2023-02-07T09:55:20Z")

</div>

hi

i want to parse a serial buffer. the format is a little tricky (for me).

The data i need comes with a 7number following with the info, after each info a carriage return tells me there is a new info. But the carriage return arrives in front of a new info.  
So i can split the message after the second arrived message. That's not a problem.

I make a function node for split the "\r\n". But this Function split also all other info to different payloads.  
Because the info comes also with whitespaces.

The result i want to have is one payload with the 7 digit and the follwing info.  
It's to tricky for me to get this working ☹

i try some nodes for parsing/buffering...

i.e.

CR/LF 123457 INFO1 CR/LF 123457 INFO2 CR/LF 123457 INFO3 and so on

it where nice for some little help 😑

pat

---

<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:** [8 April 2023 09:56 UTC](https://discourse.nodered.org/t/parsing-ser-buffer/74833/2 "2023-04-08T09:56:07Z")

</div>

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