Hytera RRS answer message to a radio request, format details #10
-
Hi, I would like to be able to reply to a Hytera RRS request sent by a radio terminal to a UDP server. In practice: dmrlib-hytera-rrs 1100030004180001937f03 Ideally, you should reply with a Timeout value, after which the radio should announce itself again. The response can look like this message, in this example we ask it to announce itself again in 900 seconds (x384 seconds): dmrlib-hytera-rrs 11008000091800019300000003847603 This response message includes the radio's address and the 900-second confirmation. The radio will send a new announcement message in 900 seconds. If we don't reply correctly to the radio's RRS request, it will send a request every 20 seconds for a certain period of time. I've managed to figure out how to format the response to a radio's RRS request, but I'm having trouble with part of the message. In my example above, I can't figure out how to fill in the 15th byte in this case [76] of this response, iIf it's a checksum, how is it calculated ? Where can I find this information? Thank you in advance for your valuable advice. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @cmolax1090 it's quite simple, RRS is HDAP, https://github.com/OK-DMR/ok-dmrlib/blob/master/okdmr/dmrlib/hytera/pdu/hdap.py#L63 However, why don't you just construct the payload using ok-dmrlib? Like this https://github.com/OK-DMR/ok-dmrlib/blob/master/okdmr/tests/dmrlib/hytera/pdu/test_rrs.py#L28 |
Beta Was this translation helpful? Give feedback.
Hi @cmolax1090
it's quite simple, RRS is HDAP, https://github.com/OK-DMR/ok-dmrlib/blob/master/okdmr/dmrlib/hytera/pdu/hdap.py#L63
However, why don't you just construct the payload using ok-dmrlib? Like this https://github.com/OK-DMR/ok-dmrlib/blob/master/okdmr/tests/dmrlib/hytera/pdu/test_rrs.py#L28