Node-red-node-serialport : change baudrate on the fly

#1

Hi here,

I am using intensively the serialport node and need to have the ability to change the baudrate on the fly.

This is possible and I was able to modify the node to do so.
In fact, I would like to share the modification but I don't know the process. It is the first time I use github and I am not a professionnal developper.

Any help would be greatly appreciated.

Modification is here :

1 Like
#2

Sorry, I'm also new to node-red, so I can't help with that, but I was looking for change baudrate dynamically, so I'll have a look to your code.

How do you modify baudrate from function node?

In order to publish your node I think you should follow packaging instructions at https://nodered.org/docs/creating-nodes/packaging

#3

from the look of it you send in a msg with a property .baudrate and it changes it . This means you can only do this by sending a message to an out node and it will change both the in and the out.

1 Like
#4

You are right.
In addition, if payload is absent, nothing is sent out.

#5

Can I change the com port same way? I tried with port and serialport property, but it did not work.