Open-Agriculture / AgIsoStack-plus-plus

AgIsoStack++ is the completely free open-source C++ ISOBUS library for everyone
https://agisostack.com/
MIT License
187 stars 41 forks source link

Send responses to activation messages in the VT client #381

Closed GwnDaan closed 9 months ago

GwnDaan commented 10 months ago

For a VT client that work with VT version 6 and later, a response to an activation message should be sent back within 200 ms. If a VT server doesn't receive a response within 300 ms, it will retry up to 3 times, and if that fails, it terminates the connection. Transaction numbers (TAN) are added to activation messages for response pairing. Hence our response should include the TAN to align message-response pairs.

Since the responses may also be sent to VT server of version 5 and prior, we can just always send responses from our client.