Modbus over RS485 - queue build up
See original GitHub issueI’m submitting a …
- (x ) unexpected behavior
Current behavior
The modbus rtu queue keeps building up messages one after another and the poll rate is really slow.
Expected behavior
The queue should be emptied faster than it’s being filled.
Minimal reproduction of the problem with instructions
I am using this example flow to pull data from SDM120 using RS485 to TTL adapter, I’ve also tried using USB to RS485 adapter with the same result. What happens is the queue object is showing increasing number of items and the flow is very slow. When I click on any of the modbus read nodes the queue seems to start moving for a short period. Illustration below:
The serial port queue delay is 100ms.
-
( x) I am using just the Node-RED package and got modbus-serial package installed with it
-
Device : Raspberry Pi Zero W
- ( x) Raspbian GNU/Linux 10 (buster)
-
node-red-contrib-modbus version: v5.2.0
- Node: (min. 10.x)
node --version
= v10.18.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
Hi, I have to add that communications are working, but the
msg.resetQueue = true
throws anTypeError: a.initQueue is not a function
I open a new issue to avoid meshing more this thread.Thanks @biancode, I made a clean install, I imported the previously exported nodes and everything is working in 1.0.2. Now updating to the tested version 1.0.3. Thanks!!