2016-03-13 02:08:39 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#
|
|
|
|
# Known bits Transmitter Script
|
|
|
|
# Transmit a fixed packet repeatedly. Useful for BER testing.
|
|
|
|
#
|
2018-01-25 03:04:43 +00:00
|
|
|
# Copyright (C) 2018 Mark Jessop <vk5qi@rfhead.net>
|
|
|
|
# Released under GNU GPL v3 or later
|
2016-03-13 02:08:39 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
import PacketTX, sys, os, time
|
|
|
|
import numpy as np
|
|
|
|
|
2022-03-19 03:50:41 +00:00
|
|
|
payload = np.arange(0,256,1).astype(np.uint8).tobytes() # 0->255
|
2016-03-13 02:08:39 +00:00
|
|
|
|
|
|
|
debug_output = False # If True, packet bits are saved to debug.bin as one char per bit.
|
|
|
|
|
|
|
|
|
|
|
|
tx = PacketTX.PacketTX(debug=debug_output)
|
|
|
|
tx.start_tx()
|
|
|
|
|
|
|
|
try:
|
|
|
|
while True:
|
|
|
|
tx.tx_packet(payload)
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
tx.close()
|
|
|
|
print("Closing")
|