delay between TX and RX

necessary so we are not sending until other station is in RX mode
This commit is contained in:
DJ2LS 2021-08-11 22:05:28 +02:00 committed by GitHub
parent 3044c7ee54
commit 588d3ecbaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -598,7 +598,11 @@ def arq_received_data_channel_opener(data_in):
connection_frame[3:9] = static.MYCALLSIGN
connection_frame[12:13] = bytes([static.ARQ_DATA_CHANNEL_MODE])
# wait before sending so we can sure, other station is ready for TX
wait_until_transmit = time.time() + static.TIME_BETWEEN_RX_TX
while time.time() < wait_until_transmit:
pass
modem.transmit_signalling(connection_frame)
#modem.transmit_signalling(connection_frame)
while static.CHANNEL_STATE == 'SENDING_SIGNALLING':
@ -668,7 +672,12 @@ def received_ping(data_in):
ping_frame[1:2] = static.DXCALLSIGN_CRC8
ping_frame[2:3] = static.MYCALLSIGN_CRC8
ping_frame[3:9] = static.MYGRID
# wait before sending so we can sure, other station is ready for TX
wait_until_transmit = time.time() + static.TIME_BETWEEN_RX_TX
while time.time() < wait_until_transmit:
pass
# wait while sending....
modem.transmit_signalling(ping_frame)
#modem.transmit_signalling(ping_frame)

View file

@ -67,6 +67,8 @@ HAMLIB_SERIAL_SPEED = '9600'
HAMLIB_FREQUENCY = 0
HAMLIB_MODE = ''
HAMLIB_BANDWITH = 0
TIME_BETWEEN_RX_TX = 1 # time between TX and RX in seconds
# -------------------------
# FreeDV Defaults
FREEDV_RECEIVE = True