# If I have multi response from RX, How can I judge which is it?

**URL:** <https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105>\
**Category:** General\
**Created:** [7 July 2021 02:40 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105 "2021-07-07T02:40:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [7 July 2021 02:40 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/1 "2021-07-07T02:40:50Z")

</div>

Dear Sir :

1. if I receive 7 set of data from RX, Receive one at time.  
0xcd,0x00,0x00,0x00,0x00  
0xcd,0x01,0x00,0x00,0x00  
0xcd,0x02,0x00,0x00,0x00  
0xcd,0x03,0x00,0x00,0x00  
0xcd,0x04,0x00,0x00,0x00  
0xcd,0x05,0x00,0x00,0x00  
0xcd,0x06,0x00,0x00,0x00
2. So which node can be use to judge which data it is?
3. My mean is I send it from TX and receive it from RX, So how can I identify then to do another  
process?
4. How can I read from RX buffer? I dont understand!

Thank u.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 July 2021 06:19 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/2 "2021-07-07T06:19:44Z")

</div>

Start by reading and attempting to understand all posts sent to this forum. If you had been doing that you would have seen several very similar questions here since you joined, along with the suggestion of using the buffer parser node. Also you would have seen suggestions that if you have control of the device transmitting the data then send JSON not raw data.

Edit: I don't mean read all the posts in the whole forum, just watch new ones as they come in. That way you will learn s great deal.

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [7 July 2021 08:51 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/3 "2021-07-07T08:51:47Z")

</div>

Dear Coloin :

1. Pardon me, My english is not good, I will try.
2. The first question is solved.
3. But I have second question is :  
I have a set of data from RX, About 34 bytes(9 kind of data).  
So I hope when I receice the data then I can show the value,  
But how? Use which node is better...

Thank u?

---

<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:** [7 July 2021 09:02 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/4 "2021-07-07T09:02:44Z")

</div>

> [@jlian168](#):
>
> I have a set of data from RX, About 34 bytes(9 kind of data).  
> So I hope when I receice the data then I can show the value,  
> But how? Use which node is better...

Without seeing the data or knowing its content, it is difficult to help however the [node-red-contrib-buffer-parser (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-buffer-parser) node will be able to translate the bytes into meaningful values.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 July 2021 09:02 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/5 "2021-07-07T09:02:48Z")

</div>

> [@jlian168](#):
>
> Use which node is better...

As I said

> [@Colin](#):
>
> you would have seen several very similar questions here since you joined, along with the suggestion of using the buffer parser node.

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [7 July 2021 09:36 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/6 "2021-07-07T09:36:40Z")

</div>

Dear Colin :

I have a idea,  
I want use Function node and use for to do.  
But I have a question...  
The js have union can set? And its like C union?

Thank u.

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [7 July 2021 09:39 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/7 "2021-07-07T09:39:23Z")

</div>

Dear Steve-Mcl :

If my idea is can not that I will try it.

Thank u.

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [7 July 2021 09:49 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/8 "2021-07-07T09:49:35Z")

</div>

Dear All :

I think for is can not :  
Cause every set of data I need return msg.payload, It will exit function node ...  
So, Let me thinking.............................................................................................

Thank u.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 July 2021 10:22 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/9 "2021-07-07T10:22:10Z")

</div>

> [@jlian168](#):
>
> I want use Function node

I suggested the buffer parser node. I am not sure why you ask for advise and then ignore it.

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [8 July 2021 00:37 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/10 "2021-07-08T00:37:31Z")

</div>

Dear Colin :

This is topic I have been solved.  
But I have another question so I need to open new topic.

Thank u.

---

<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:** [6 September 2021 00:38 UTC](https://discourse.nodered.org/t/if-i-have-multi-response-from-rx-how-can-i-judge-which-is-it/48105/11 "2021-09-06T00:38:01Z")

</div>

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