# Same Serial flow on Pi400 and windows different results

**URL:** <https://discourse.nodered.org/t/same-serial-flow-on-pi400-and-windows-different-results/98857>\
**Category:** General\
**Tags:** node-red-node-serialport\
**Created:** [27 August 2025 14:27 UTC](https://discourse.nodered.org/t/same-serial-flow-on-pi400-and-windows-different-results/98857 "2025-08-27T14:27:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikingsraven](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vikingsraven/32/49243_2.png) [@vikingsraven](https://discourse.nodered.org/u/vikingsraven)\
**Post date:** [27 August 2025 14:27 UTC](https://discourse.nodered.org/t/same-serial-flow-on-pi400-and-windows-different-results/98857/1 "2025-08-27T14:27:48Z")

</div>

HI , so i have a small lidar unit , old one Baudrate 230400 , so im trying to get some data from it, to get it ti start you send the letter b, to stop the letter e.

I’m using the same flow on windows as well as the pi400 (obviously the comport id is different).

Pi is using /dev/ttyUSB0, windows COM 6.

```auto
[{"id":"acdc896b51950e4b","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"9fce417b9e0c05ad","type":"serial request","z":"acdc896b51950e4b","name":"","serial":"5f2986c2df0ee00f","x":450,"y":260,"wires":[["2f31e8cb41ed1e88"]]},{"id":"2f31e8cb41ed1e88","type":"debug","z":"acdc896b51950e4b","name":"debug 1","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":280,"wires":[]},{"id":"76e1b2dbf2eb3391","type":"inject","z":"acdc896b51950e4b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"b","payloadType":"str","x":270,"y":220,"wires":[["9fce417b9e0c05ad"]]},{"id":"397f836876b3f028","type":"inject","z":"acdc896b51950e4b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"e","payloadType":"str","x":270,"y":300,"wires":[["9fce417b9e0c05ad"]]},{"id":"91f3413120431a12","type":"serial in","z":"acdc896b51950e4b","name":"","serial":"5f2986c2df0ee00f","x":450,"y":360,"wires":[["2f31e8cb41ed1e88","b699ee4f664a679e"]]},{"id":"b699ee4f664a679e","type":"change","z":"acdc896b51950e4b","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[1]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":360,"wires":[["663b3847c02e38be"]]},{"id":"663b3847c02e38be","type":"debug","z":"acdc896b51950e4b","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1060,"y":360,"wires":[]},{"id":"5f2986c2df0ee00f","type":"serial-port","name":"","serialport":"COM8","serialbaud":"230400","databits":8,"parity":"none","stopbits":1,"waitfor":"0xFA","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"42","bin":"bin","out":"count","addchar":"","responsetimeout":10000},{"id":"b4f9729d7e0e3655","type":"global-config","env":[],"modules":{"node-red-node-serialport":"2.0.3"}}]

```

So with the Windows Node-red the inject b and inject e work m switching on and off the Lidar module.  
In the Pi 400 version, nothing happens when i press b , but it then starts when i press the e.  
Also the data im expecting on the debug is correct on the windows version and not on the Pi version, is it formatting issues with linux , any ideas?

---

<div class="post-metadata">

**Author:** ![vikingsraven](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vikingsraven/32/49243_2.png) [@vikingsraven](https://discourse.nodered.org/u/vikingsraven)\
**Post date:** [27 August 2025 14:43 UTC](https://discourse.nodered.org/t/same-serial-flow-on-pi400-and-windows-different-results/98857/2 "2025-08-27T14:43:04Z")

</div>

Ok , solved it , i had an additional Serial on the Pi400 version, which was setting it to 115200.  
removed that and its now working fine .

---

<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:** [10 September 2025 14:43 UTC](https://discourse.nodered.org/t/same-serial-flow-on-pi400-and-windows-different-results/98857/3 "2025-09-10T14:43:21Z")

</div>

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