mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
receive is writing frame
This commit is contained in:
parent
736bea3449
commit
5a6b4e319e
1 changed files with 24 additions and 0 deletions
|
@ -200,6 +200,8 @@ class DATA:
|
|||
FR_TYPE.PING_ACK.value: (self.received_ping_ack, "PING ACK"),
|
||||
FR_TYPE.PING.value: (self.received_ping, "PING"),
|
||||
FR_TYPE.QRV.value: (self.received_qrv, "QRV"),
|
||||
FR_TYPE.IS_WRITING.value: (self.received_is_writing, "IS_WRITING"),
|
||||
|
||||
}
|
||||
self.command_dispatcher = {
|
||||
#"CONNECT": (self.arq_session_handler, "CONNECT"),
|
||||
|
@ -370,6 +372,7 @@ class DATA:
|
|||
FR_TYPE.QRV.value,
|
||||
FR_TYPE.PING.value,
|
||||
FR_TYPE.BEACON.value,
|
||||
FR_TYPE.IS_WRITING.value,
|
||||
]
|
||||
):
|
||||
|
||||
|
@ -2799,6 +2802,27 @@ class DATA:
|
|||
static.FREQ_OFFSET,
|
||||
static.HAMLIB_FREQUENCY,
|
||||
)
|
||||
def received_is_writing(self, data_in: bytes) -> None:
|
||||
"""
|
||||
Called when we receive a IS WRITING frame
|
||||
Args:
|
||||
data_in:bytes:
|
||||
|
||||
"""
|
||||
# here we add the received station to the heard stations buffer
|
||||
dxcallsign = helpers.bytes_to_callsign(bytes(data_in[1:7]))
|
||||
|
||||
self.send_data_to_socket_queue(
|
||||
freedata="tnc-message",
|
||||
fec="is_writing",
|
||||
dxcallsign=str(dxcallsign, "UTF-8")
|
||||
)
|
||||
|
||||
self.log.info(
|
||||
"[TNC] IS_WRITING RCVD ["
|
||||
+ str(dxcallsign, "UTF-8")
|
||||
+ "] ",
|
||||
)
|
||||
|
||||
# ------------ CALCULATE TRANSFER RATES
|
||||
def calculate_transfer_rate_rx(
|
||||
|
|
Loading…
Reference in a new issue