question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modbus over RS485 - queue build up

See original GitHub issue

I’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: Peek-2020-01-15-21-55.gif

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:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
guganicommented, Feb 19, 2020

Hi, I have to add that communications are working, but the msg.resetQueue = true throws an TypeError: a.initQueue is not a function I open a new issue to avoid meshing more this thread.

0reactions
guganicommented, Feb 18, 2020

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!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modbus RTU Protocol Overview - Real Time Automation, Inc.
Modbus RTU protocol - A comprehensive protocol overview. A widely accepted serial level protocol due to its ease of use and reliability.
Read more >
Modbus Protocol User Guide - Lantronix
This allows a Modbus/TCP master/client to retry old requests without risking building up a stale queue of waiting requests. Character Timeout (10-7050 msec)....
Read more >
Modbus RTU Serial Driver - Kepware
The Modbus RTU Serial Driver provides a reliable way to connect Modbus serial devices to OPC client applic- ations, including HMI, SCADA, Historian,...
Read more >
A quick tutorial on RS485 and MODBUS - Yoctopuce
RS485 is a serial transmission standard, a little bit like RS232, but using other electric signals. An important advantage of RS485 is that...
Read more >
Modicon Modbus Protocol Reference Guide
can communicate over Modbus Plus using built–in ports or network adapters, and ... that it allows time intervals of up to one second...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found