BiancoRoyal/node-red-contrib-modbus

Speed varies a lot - my fault or?

hoegge opened this issue · 4 comments

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

5.23.3

What happened?

When I changed my modbus device (heat pump controller) from connecting over WiFi to ethernet the speed of reading Modbus increase a lot (a factor 10-20 I estimate). That worked well for a long time. When I upgraded to version 5.26 the speed fell drastically, so I reverted to version 5.23 and speed was up again. Now, after a few changes to my flow .. not anything really serious and nothing that to me explains the difference, speed is now down to very slow again. What influences the speed of Modbus performance that much? I have removed all uneccesary nodes and removed a writer.
modbus speed

And then 2 hours later it suddenly runs super fast:
modbus speed fast

Between the two, I tried to install the v8-profiler node to see if it could reveal anything. It did not work and I uninstalled it and now suddenly Modbus runs super fast.

Now and then (every half hour) I get a lot of these:

12 Nov 15:35:09 - [warn] [modbus-flex-getter:b28b0f8bdeef434b] Modbus Failure On State sending Get More About It By Logging
12 Nov 15:35:09 - [warn] [modbus-flex-getter:8ab743dfec4860f7] Modbus Failure On State sending Get More About It By Logging
12 Nov 15:35:09 - [warn] [modbus-flex-write:270db2d2537ce663] Modbus Failure On State sending Get More About It By Logging
12 Nov 15:35:09 - [warn] [modbus-flex-getter:87d4f075a94f5e75] Modbus Failure On State sending Get More About It By Logging
12 Nov 15:35:09 - [warn] [modbus-flex-getter:b28b0f8bdeef434b] Modbus Failure On State sending Get More About It By Logging
12 Nov 15:35:09 - [warn] [modbus-flex-getter:8ab743dfec4860f7] Modbus Failure On State sending Get More About It By Logging
12 Nov 15:35:09 - [warn] [modbus-flex-getter:87d4f075a94f5e75] Modbus Failure On State sending Get More About It By Logging

Not sure why and not sure how to get more logging info / but does not seem to be related.

Server

Other/External server

How can this be reproduced?

Not really sure - sorry

What did you expect to happen?

I would expect reading items would be 10 times as fast.

Other Information

No response

Hi @hoegge, the speed depends more on modbus-serial and the 3rd libraries. In the client itself should be no drastic change. An example flow to reproduce this would be helpful for us. You can use the node-red-contrib-helper node to create a real test-flow for our CI/CD pipeline testings to support our investigation.

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.

@biancode Ok - will try that next time I get to the location

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.