Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node-RED crashing when deploying modbus read serial node #387

Closed
turfpal opened this issue Jun 19, 2023 · 4 comments
Closed

Node-RED crashing when deploying modbus read serial node #387

turfpal opened this issue Jun 19, 2023 · 4 comments

Comments

@turfpal
Copy link

turfpal commented Jun 19, 2023

Which node-red-contrib-modbus version are you using?

5.26.0

What happened?

When I configure a modbus read node as serial and deploy. Node-RED instantly crash and goes into infinite boot-loop. Running Node-RED in docker on Wago CC100. Tried the same on two different Wago CC100s, with same result.

Just for info, I've tried several other RS-485 devices and configurations all with the same outcome.

[{"id":"f90f75d5b032ff16","type":"modbus-read","z":"f6f2187d.f17ca8","name":"","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"showWarnings":true,"unitid":"","dataType":"HoldingRegister","adr":"4000","quantity":"2","rate":"5","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"aa079884c2adadbd","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":310,"y":160,"wires":[["dad3e6a31197d94b"],[]]},{"id":"aa079884c2adadbd","type":"modbus-client","name":"MID","clienttype":"serial","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"failureLogEnabled":true,"tcpHost":"192.168.1.194","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttySTM1","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"even","serialConnectionDelay":"100","serialAsciiResponseStartDelimiter":"0x3A","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true,"showWarnings":true,"showLogs":true}]

Server

Modbus-Server Node

How can this be reproduced?

Add a single modbus read node and a debug node, configure as serial, then deploy.

What did you expect to happen?

Node-RED not crashing and be able to read the output of the modbus node.

Other Information

Linux CC100-568AF0 5.10.21-rt34w03.01.06 #1 SMP PREEMPT_RT Wed Jun 1 08:31:39 UTC 2022 armv7l GNU/Linux
Wago CC100 Firmware Revision 03.09.07(21)
NodeJS v16.20.0
Docker version 20.10.14-wago, build f0df241
Node-RED 3.0.2

@turfpal turfpal added the bug label Jun 19, 2023
@funkitup
Copy link

I can reproduce this error on my machine.

Node-Red v3.0.2
Nodejs v16.11.1
Linux 4.14.142

@AlessandroAU
Copy link

This should fix it #390

@funkitup
Copy link

This should fix it #390

Thanks Allesandro!
However, I always get a segmentation fault after updating to [email protected]. Any idea what's going wrong?

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. It will be closed in 30 days, but can be saved by removing the stale label or commenting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants