wenet/start_tx.sh

32 wiersze
972 B
Bash
Executable File

#!/bin/bash
#
# Wenet TX-side Initialisation Script
# 2016-12-05 Mark Jessop <vk5qi@rfhead.net>
#
# Run this to set up an attached RFM22B/RFM98W and start transmitting!
# Replace the transmit frequency and callsign with your own.
#
MYCALL=N0CALL
TXFREQ=441.200
# Baud Rate
# Known working transmit baud rates are 115200 (the preferred default), 9600 and 4800 baud.
BAUDRATE=115200
# CHANGE THE FOLLOWING LINE TO REFLECT THE ACTUAL PATH TO THE TX FOLDER.
# i.e. it may be /home/username/dev/wenet/tx/
cd /home/pi/wenet/tx/
#Uncomment to initialise a RFM22B
#python init_rfm22b.py $TXFREQ
# Uncomment for use with a RFM98W
python init_rfm98w.py --frequency $TXFREQ --baudrate $BAUDRATE
# Start the main TX Script.
# Note, this assumes there is a uBlox GPS available at /dev/ttyACM0
python tx_picam_gps.py --baudrate $BAUDRATE $MYCALL &
# If you don't want any GPS overlays, you can comment the above line and run:
# python WenetPiCam.py --baudrate $BAUDRATE $MYCALL &