# Node-red-node-serialport not holding custom baud rate

**URL:** <https://discourse.nodered.org/t/node-red-node-serialport-not-holding-custom-baud-rate/53459>\
**Category:** General\
**Created:** [9 November 2021 15:40 UTC](https://discourse.nodered.org/t/node-red-node-serialport-not-holding-custom-baud-rate/53459 "2021-11-09T15:40:59Z")\
**Posts on this page:** 7\
**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:** [9 November 2021 15:40 UTC](https://discourse.nodered.org/t/node-red-node-serialport-not-holding-custom-baud-rate/53459/1 "2021-11-09T15:40:59Z")

</div>

HI all, just a heads up. I'm trying to run my lidar unit from node red, it another piece of kit that has a weird baud rate 230400, it works ok but occasionally the serial port in or out will default back to 57600.  
 ![Serial comms issue](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/d/0dfa6ed8eced0f67e804849ca4a08092d0227225.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/4/c4886ccfbb313cb652a43fb48b87ce42141abc4d.png)  
Its not a major issue for now as im still playing with what data i will need.  
Node V14.18.1  
Node Red 2.1.3  
npm 6.14.15  
raspbian kernel 5.10.63-v7+

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [13 November 2021 13:55 UTC](https://discourse.nodered.org/t/node-red-node-serialport-not-holding-custom-baud-rate/53459/2 "2021-11-13T13:55:35Z")

</div>

Hi @vikingsraven,  
If you would like to test something ... locate and edit the file 25-serial.html  
around line 260 - insert a line like  
`{value:"230400",label:"230400",hasValue:false},`  
save the file and restart Node-RED. you should now have an option for 230400 baud.  
Can you test and let me know if if seems to work reliably ?  
If so I'll make it an option in next release.

---

<div class="post-metadata">

**Author:** ![davidz](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@davidz](https://discourse.nodered.org/u/davidz)\
**Post date:** [13 November 2021 18:04 UTC](https://discourse.nodered.org/t/node-red-node-serialport-not-holding-custom-baud-rate/53459/3 "2021-11-13T18:04:37Z")

</div>

Dave,

We have been using 230,400 in industrial applications for more than a year. The serial node works reliably without any problems. So it is safe to add this option.

As a matter of fact, the serial port can go up to 921,600 reliably per our tests in the past half a year. Flow control is recommended for rates more than 230,400.

---

<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:** [15 November 2021 10:45 UTC](https://discourse.nodered.org/t/node-red-node-serialport-not-holding-custom-baud-rate/53459/4 "2021-11-15T10:45:21Z")

</div>

@davidz , nice one. Yeah had to run a BMS for a project and that ran at 1000000, worked fine till anything else used a serial port then it locked it up.  
230400 is solid, just the dropdown and the reverting back to 57600 on the label.

---

<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:** [15 November 2021 11:04 UTC](https://discourse.nodered.org/t/node-red-node-serialport-not-holding-custom-baud-rate/53459/6 "2021-11-15T11:04:52Z")

</div>

hi @dceejay ok, did that and its working fine thanks.  
only the text box doesn't span in the menu  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/8/38666e0246c70f6f41a9853186ff356064075e5c.png)  
but yep, its nice and stable thanks

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [15 November 2021 11:20 UTC](https://discourse.nodered.org/t/node-red-node-serialport-not-holding-custom-baud-rate/53459/7 "2021-11-15T11:20:50Z")

</div>

OK - added as an option to v0.15.0

---

<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:** [29 November 2021 11:21 UTC](https://discourse.nodered.org/t/node-red-node-serialport-not-holding-custom-baud-rate/53459/8 "2021-11-29T11:21:32Z")

</div>

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