mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
delay between TX and RX
necessary so we are not sending until other station is in RX mode
This commit is contained in:
parent
3044c7ee54
commit
588d3ecbaa
2 changed files with 13 additions and 2 deletions
|
@ -598,7 +598,11 @@ def arq_received_data_channel_opener(data_in):
|
||||||
connection_frame[3:9] = static.MYCALLSIGN
|
connection_frame[3:9] = static.MYCALLSIGN
|
||||||
connection_frame[12:13] = bytes([static.ARQ_DATA_CHANNEL_MODE])
|
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)
|
||||||
#modem.transmit_signalling(connection_frame)
|
#modem.transmit_signalling(connection_frame)
|
||||||
while static.CHANNEL_STATE == 'SENDING_SIGNALLING':
|
while static.CHANNEL_STATE == 'SENDING_SIGNALLING':
|
||||||
|
@ -668,7 +672,12 @@ def received_ping(data_in):
|
||||||
ping_frame[1:2] = static.DXCALLSIGN_CRC8
|
ping_frame[1:2] = static.DXCALLSIGN_CRC8
|
||||||
ping_frame[2:3] = static.MYCALLSIGN_CRC8
|
ping_frame[2:3] = static.MYCALLSIGN_CRC8
|
||||||
ping_frame[3:9] = static.MYGRID
|
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....
|
# wait while sending....
|
||||||
modem.transmit_signalling(ping_frame)
|
modem.transmit_signalling(ping_frame)
|
||||||
#modem.transmit_signalling(ping_frame)
|
#modem.transmit_signalling(ping_frame)
|
||||||
|
|
|
@ -67,6 +67,8 @@ HAMLIB_SERIAL_SPEED = '9600'
|
||||||
HAMLIB_FREQUENCY = 0
|
HAMLIB_FREQUENCY = 0
|
||||||
HAMLIB_MODE = ''
|
HAMLIB_MODE = ''
|
||||||
HAMLIB_BANDWITH = 0
|
HAMLIB_BANDWITH = 0
|
||||||
|
|
||||||
|
TIME_BETWEEN_RX_TX = 1 # time between TX and RX in seconds
|
||||||
# -------------------------
|
# -------------------------
|
||||||
# FreeDV Defaults
|
# FreeDV Defaults
|
||||||
FREEDV_RECEIVE = True
|
FREEDV_RECEIVE = True
|
||||||
|
|
Loading…
Reference in a new issue