Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95437

RS485 modbus timing issues

$
0
0

@paul_c5x4 wrote:

Have a couple of cheap SHT20 modbus humidity & temperature sensors attached to a USB<->RS485 adapter. Also have a couple of other modbus capable devices I wish to connect at a later date, including a PZEM-16 energy monitor.

My logs are being flooded with “No response from hub” errors, which appears to be a fairly common problem. Have tried a number of suggestions & tweaks, including delving in to the modbus code to insert waits between transactions. Have even resorted to adding a custom driver utilising the minimalmodbus python library.

During the course of testing with the minimalmodbus library, I noticed that errors were greatly reduced (or even disappeared) if a single thread application paused for some 150ms between reads. This got me thinking about the multi-threaded capabilities of HA… Looking at the error logs, it appears that each “modbus.sensor,name” runs under a different worker thread.

Question: Is it possible to force HA to run groups of modbus.sensors under a single worker thread ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95437

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>