Registers Data Not Updated In Subsequent Requests In ModBus RTU Component

0

This issue is in regards to the v2 aws.greengrass.Modbus component. The setup: Core device deployed on Raspberry Pi 4B Linux with Waveshare's RS485 CAN Hat connected to a temperature/humidity sensor (XY-MD02). Local simple Python scripts test fine. AWS IoT MQTT test client initially tests fine on first request but subsequent (and different) requests show the "registers" array in the result does not change although the function_code and operation parameters are all correctly updated. Basically, it appears almost as if the registers data remains somewhere in memory and is returned instead of the real results. It takes calling the request 3-4 times before the correct data in the registers in returned. What is causing this problem?

已提问 2 年前211 查看次数
1 回答
0

Hi, Could you provide more logs, configurations and info for this issue? From current symptom, we are not able to detect any root causes.

AWS
Daojing
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则