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