[quote="Colin, post:2, topic:20329"]
exec node
[/quote] Thanks for your suggestion Colin! Not sure it will work for this purpose. The Python script will send binary data to the serial device, the serial device then sends a response back which the Python script will process. Depending on the response from the device the script then sends a new command to the device. So the data that’s sent to the Serial device changes (It’s not always the same command, for example there’s a function to count hashed password in the script).
Probably a silly question but Is there a way to modify the Python script to replace the “Import serial” function so it sends the binary data from the Python script directly the serial node (Or any node) in Node-red instead of the serial port? then the response from the device is sent to the script for it to process?