philpem / hylink

Python library to access Hytera DMR repeaters through the ADK Dispatcher interface
GNU Lesser General Public License v3.0
5 stars 2 forks source link

Protocol: Retry HSTRPToRadio requests #4

Open philpem opened 5 years ago

philpem commented 5 years ago

Currently a HSTRP request takes the form of a 'dumb' socket send. If the request fails (no ACK from the repeater), the request should be retried with the same sequence ID after a short delay (e.g. 2 seconds).

After a set number of retries (e.g. 5) the request should be aborted and raise an error.

smarek commented 4 years ago

HSTRP should retry automatically, if you use eg. TMS/TMP (protocol 0x09, send private action 0xA1) repeater will retry 3 times, if the message could not be delivered. However if you use protocol 0x89 (TMP with reliable bit set), HSTRP message delivery will be retried until it succeeds. So this could be delegated to repeater through reliable bit, instead of doing buffering/re-deliveries directly in hylink