mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
longer timeout on test_virtual2
This commit is contained in:
parent
b619b341d1
commit
ae80958b65
|
@ -144,6 +144,8 @@ while receive and time.time() < timeout:
|
|||
if rx_bursts == N_BURSTS:
|
||||
receive = False
|
||||
|
||||
if time.time() >= timeout:
|
||||
print("TIMEOUT REACHED")
|
||||
|
||||
print(f"RECEIVED BURSTS: {rx_bursts} RECEIVED FRAMES: {rx_total_frames} RX_ERRORS: {rx_errors}", file=sys.stderr)
|
||||
|
||||
|
|
|
@ -113,7 +113,6 @@ crc = ctypes.c_ushort(codec2.api.freedv_gen_crc16(bytes(buffer), payload_bytes_p
|
|||
crc = crc.value.to_bytes(2, byteorder='big') # convert crc to 2 byte hex string
|
||||
buffer += crc # append crc16 to buffer
|
||||
|
||||
|
||||
print(f"TOTAL BURSTS: {N_BURSTS} TOTAL FRAMES_PER_BURST: {N_FRAMES_PER_BURST}", file=sys.stderr)
|
||||
|
||||
for i in range(1,N_BURSTS+1):
|
||||
|
|
|
@ -18,8 +18,8 @@ RX_LOG=$(mktemp)
|
|||
# make sure all child processes are killed when we exit
|
||||
trap 'jobs -p | xargs -r kill' EXIT
|
||||
|
||||
python3 test_rx.py --mode datac0 --frames 2 --bursts 5 --audiodev -2 --debug &
|
||||
python3 test_rx.py --mode datac0 --frames 2 --bursts 5 --audiodev -2 --debug --timeout 20 &
|
||||
rx_pid=$!
|
||||
sleep 1
|
||||
python3 test_tx.py --mode datac0 --frames 2 --bursts 5 --delay 500 --audiodev -2
|
||||
python3 test_tx.py --mode datac0 --frames 2 --bursts 5 --delay 250 --audiodev -2
|
||||
wait ${rx_pid}
|
||||
|
|
Loading…
Reference in a new issue