2016-08-07 08:11:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Wenet TX-side Initialisation Script
|
2022-03-19 04:44:58 +00:00
|
|
|
# 2022-03-19 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
|
|
|
|
2022-03-19 04:44:58 +00:00
|
|
|
# A callsign which will be included in the Wenet Packets.
|
|
|
|
# This MUST be <= 6 characters long.
|
2016-12-05 11:19:05 +00:00
|
|
|
MYCALL=N0CALL
|
2022-03-19 04:44:58 +00:00
|
|
|
|
|
|
|
# The centre frequency of the Wenet transmission.
|
|
|
|
TXFREQ=443.500
|
2016-12-05 11:19:05 +00:00
|
|
|
|
2018-12-23 06:52:10 +00:00
|
|
|
# Baud Rate
|
2022-03-19 04:44:58 +00:00
|
|
|
# Known working transmit baud rates are 115200 (the preferred default).
|
|
|
|
# Lower baud rates *may* work, but will need a lot of testing on the receiver
|
|
|
|
# chain to be sure they perform correctly.
|
2018-12-23 06:52:10 +00:00
|
|
|
BAUDRATE=115200
|
|
|
|
|
2022-03-19 04:44:58 +00:00
|
|
|
# GPS Port
|
|
|
|
# Note that we only support uBlox GPS units
|
|
|
|
GPSPORT=/dev/ttyACM0
|
|
|
|
|
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
|
|
|
|
2022-03-19 04:44:58 +00:00
|
|
|
#Uncomment to initialise a RFM22B (untested with Python 3)
|
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
|
2022-03-19 04:44:58 +00:00
|
|
|
python3 init_rfm98w.py --frequency $TXFREQ --baudrate $BAUDRATE
|
2016-12-05 11:19:05 +00:00
|
|
|
|
|
|
|
# Start the main TX Script.
|
2022-03-19 04:44:58 +00:00
|
|
|
# Note that you can also add --logo /path/to/logo.png to this to add a logo overlay.
|
|
|
|
python3 tx_picam_gps.py --baudrate $BAUDRATE --gps $GPSPORT $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 &
|