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.

How to troubleshoot "time out" issue?

See original GitHub issue

First of all, thank you for making this collection of nodes available! Although I’m a newcomer to Modbus, I can see that it is a well thought out and flexible collection of tools, with decent documentation. Nice! But I’m afraid I’m having a little trouble getting even the most basic set-up to work, and I’m unable to figure out why - or indeed even what exactly is going wrong 😃 At first I had trouble getting any communication at all to appear on the serial port (UART connected to a Pi2); I tried adding my “nodered” user to the “dialout” group, which is most likely necessary in order to grant it access to /dev/ttyAMA0 where the port is located, but that didn’t help. Then I looked a bit closer at the Node-RED log output and saw that I had an error on start-up: [warn] [serialport] Error: Module did not self-register, and after a bit of searching I did a re-install of the node-red-node-serialport with --unsafe-perm. Immediately I could see traffic starting to go out, and the “Rx” LED on the single RTU currently connected started blinking. “Great” I thought, “so it’s working now”, but alas I am not getting any response back. I have enabled debug by putting

Environment="NODE_RED_OPTIONS=-v"
Environment="DEBUG=modbus-serial,node_red_contrib_modbus"

in /lib/systemd/system/nodered.service and doing systemctl daemon-reload followed by systemctl restart nodered, and I can now see these debug messages in the syslog:

Sep  2 22:33:50 system Node-RED[3946]: Sat, 02 Sep 2017 21:33:50 GMT modbus-serial { action: 'send serial rtu buffered',
Sep  2 22:33:50 system Node-RED[3946]: data: <Buffer 01 01 00 f6 00 01 1d f8>,
Sep  2 22:33:50 system Node-RED[3946]: unitid: 1,
Sep  2 22:33:50 system Node-RED[3946]: functionCode: 1 }
Sep  2 22:33:51 system Node-RED[3946]: Sat, 02 Sep 2017 21:33:51 GMT modbus-serial {}
Sep  2 22:33:51 system Node-RED[3946]: Sat, 02 Sep 2017 21:33:51 GMT modbus-serial Timed out

The RTU in question is a Novus DigiRail 4C four channel counter, and it has a button “RCom” which when pressed sets the address and serial port parameters to known values (address 246, baud rate 1200, parity even, 1 stop bit) for one minute - I have used the same values in the configuration node (baud rate, parity, stop bit) and in the JSON I pass to the one modbus-flex-getter node I’ve put into my flow (full JSON is {“fc”:1,“address”:246,“quantity”:1}). I press the “RCom” button before triggering the read, after which I can see its “Rx” LED blink briefly, but then … nothing. Where do I go from here?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
clickworkorangecommented, Sep 23, 2017

Ah. Sorry, forgot to keep this updated - it seems the issue has to do with my RS-485 interface, a Monarco Hat, and the 4.9 Linux kernel. The Monarco devs are looking into it. And yes, this issue should probably be closed - many thanks for your help though!

0reactions
biancodecommented, Sep 23, 2017

if there is more - please reopen - did Node@6 fix it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timeout Error: How to Troubleshoot Network Issues - Precisely
1. Ping the server and trace it's route. To do this, open the command prompt and enter "ipconfig". · 2. Use the Telnet...
Read more >
How to Get to the Bottom of Network Timeout Issues
Based on the basic idea, first check the ECS instance and link for packet loss from the monitoring. The result shows that no...
Read more >
11 Ways to Fix the ERR_CONNECTION_TIMED_OUT Error
Solution 1: Restart Your Internet Connection · Solution 2: Disable Your Firewall and Antivirus Software · Solution 3: Disable Proxy Server ...
Read more >
How to Fix the ERR_CONNECTION_TIMED_OUT Error - Kinsta
1. Check Your Connection · 2. Disable Firewall and Antivirus Software Temporarily · 3. Disable Proxy Settings · 4. Change DNS Servers.
Read more >
Resolving timeout errors and slow system response - IBM
Diagnosing the problem ... First determine if there are any communication problems between the Content Classification client and server. Try turning off your ......
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