# Dropdown and serial input

**URL:** <https://discourse.nodered.org/t/dropdown-and-serial-input/51886>\
**Category:** General\
**Created:** [5 October 2021 15:04 UTC](https://discourse.nodered.org/t/dropdown-and-serial-input/51886 "2021-10-05T15:04:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdosml](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@abdosml](https://discourse.nodered.org/u/abdosml)\
**Post date:** [5 October 2021 15:04 UTC](https://discourse.nodered.org/t/dropdown-and-serial-input/51886/1 "2021-10-05T15:04:53Z")

</div>

i had this type of data:  
\*\*\*\*\*\*\*\* 05/10/2021, 15:53:33[node: 65267da.3d97d84](http://127.0.0.1:1880/#)msg.payload : string[22]

string[22]

CE3PRO~1.GCO 7003983

05/10/2021, 15:53:34[node: 65267da.3d97d84](http://127.0.0.1:1880/#)msg.payload : string[22]

string[22]

CE3PRO~2.GCO 4042484

05/10/2021, 15:53:34[node: 65267da.3d97d84](http://127.0.0.1:1880/#)msg.payload : string[22]

string[22]

CE3PRO~3.GCO 1151271

05/10/2021, 15:53:34[node: 65267da.3d97d84](http://127.0.0.1:1880/#)msg.payload : string[22]

string[22]

CE3PRO~4.GCO 4946323

05/10/2021, 15:53:34[node: 65267da.3d97d84](http://127.0.0.1:1880/#)msg.payload : string[22]

string[22]

CE26C6~1.GCO 1305369

05/10/2021, 15:53:34[node: 65267da.3d97d84](http://127.0.0.1:1880/#)msg.payload : string[22]

string[22]

CE1729~1.GCO 1745732\*\*\*\*\*\*\*\*  
it is taken from a serial entrance;  
I am debutant with node red I will recognize if you can m adier by suggestion

---

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [5 October 2021 15:07 UTC](https://discourse.nodered.org/t/dropdown-and-serial-input/51886/2 "2021-10-05T15:07:26Z")

</div>

Please use markup to format your output

```auto
Like so

```

Some of us are using smartphones to help here on the forum.  
Thank you 😊  
Al  
Edit:  
And please peste in your output as a JSON  
Not just by copying your output view, via a clipboard icon in the debug window, in the top right of the msg.

---

<div class="post-metadata">

**Author:** ![abdosml](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@abdosml](https://discourse.nodered.org/u/abdosml)\
**Post date:** [5 October 2021 15:42 UTC](https://discourse.nodered.org/t/dropdown-and-serial-input/51886/3 "2021-10-05T15:42:32Z")

</div>

thanks for your comment I hope this is that what you want  
this data from input serial filtering by a switch

```auto
CE3PRO~1.GCO 7003983
CE3PRO~2.GCO 4042484
CE3PRO~3.GCO 1151271
CE3PRO~4.GCO 4946323
CE26C6~1.GCO 1305369
CE1729~1.GCO 1745732

```

```auto
[{"id":"d88d7327.df59c","type":"serial in","z":"236861.38a5b7a","name":"","serial":"d47dab87.de9298","x":50,"y":880,"wires":[["61b2e6f8.f68a88","34592559.b9a7ea"]]},{"id":"34592559.b9a7ea","type":"switch","z":"236861.38a5b7a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":".GCO","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":170,"y":1120,"wires":[["65267da.3d97d84"]]},{"id":"65267da.3d97d84","type":"debug","z":"236861.38a5b7a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"jsonata","statusVal":"","statusType":"auto","x":400,"y":1060,"wires":[]},{"id":"3a67f832.d7fe68","type":"ui_dropdown","z":"236861.38a5b7a","name":"","label":"list","tooltip":"","place":"Select option","group":"fbe44ce1.d7606","order":2,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"","value":"","type":"str"}],"payload":"","topic":"topic","topicType":"msg","x":350,"y":1120,"wires":[[]]},{"id":"d47dab87.de9298","type":"serial-port","serialport":"COM7","serialbaud":"115200","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"\\n","bin":"false","out":"char","addchar":"","responsetimeout":"10000"},{"id":"fbe44ce1.d7606","type":"ui_group","name":"Impression","tab":"871a5df8.1826a","order":2,"disp":true,"width":"8","collapse":false},{"id":"871a5df8.1826a","type":"ui_tab","name":"Controle","icon":"fa-cog","disabled":false,"hidden":false}]

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/4/84baed817f06781f1551c912bf046e75ed471d4e.png)

---

<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:** [4 December 2021 15:43 UTC](https://discourse.nodered.org/t/dropdown-and-serial-input/51886/4 "2021-12-04T15:43:20Z")

</div>

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