How to deal with Serial In Node which shows two buffers simultaneously

Is there any way to combine these two buffers which are coming out of a serial in node simultaneously. The device which is sending this serial data sometimes sends the whole buffer (which is desirable ) but sometimes it sends in the form of two buffers as shown in the figure. Is there any way or idea to deal with this issue and why is this happening? I appreciate your help. Thanks in advance


If you happen to be in control of the sending device's code, I believe flushing the serial buffer before sending would help. Otherwise you'll need to sort it out in the receiving end (no tips to give at this time).

1 Like

Do you mean a Serial In node? Show us how you have configured it.

1 Like

Thanks for the correction, actually the flow comprises of only two-nodes just to check what I am getting at the receiving side.

Show us how you have configured the serial node.

1 Like

I think the default is to split (lines) on the \n (0x0A) character - so if that is meant to be part of the data and not the line end then you will need a different to decide when the line end is... - maybe a number of characters or maybe a small timeout ?

1 Like

Please have a look at the Settings

Did you see @dceejay's post?

1 Like

Thank you for the reply @dceejay . Actually the buffer size is not fixed all the time, I think end of line based on number of characters would not work, what do you say?

Thank you @Colin for drawing my attention to @dceejay 's reply.

The alternative of using a timeout was also suggested. That is available in the node config. Then when data has been received and then stops it will be supplied by the node.

1 Like

I got it, thank you @Colin. I appreciate your support :slightly_smiling_face:.

Thank you @dceejay for identifying the issue and helping me out.

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