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?

demandé il y a 2 ans211 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions