MaxTrautwein / TAR-Weiterentwicklung-IoT-Tor

GNU General Public License v3.0
0 stars 1 forks source link

Modbus Response Integration #22

Closed MaxTrautwein closed 2 years ago

MaxTrautwein commented 2 years ago

Antworten der Modbus Bride sollen ausgwertet werden können.

Da anhand von antworten nicht bestimmt werden kann auf welche Request diese folgen sowie aus gründen der einfachen verständlichkeit des flows erfordet dies eine größere änderung an den IO Nodes.

MaxTrautwein commented 2 years ago

Implementing this in Node red sadly won't work as I hoped it would. There is a Racecondition... if more then one request is sent from diffrent nodes then they have no idea if the response belongs to them or not.

To combat this changes in the Tasmota Code a needed that mark a response the be linked with a specific request

MaxTrautwein commented 2 years ago

https://github.com/MaxTrautwein/Tasmota/commit/adbe61e52faaa484f9340121cc1c63b3b780604d Added Support for a Strict Response mode A msg can only be sent if there has been a response for the last request All response msgs sent to MQTT contain the CRC of the last msg sent to the modbus → This allows a response to be matched to a specific request