Skip to content

Commit 169bad1

Browse files
committed
Add script to generate telemetry sequence numbers.
1 parent 78b75e8 commit 169bad1

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

Makefile.linux

+1
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ install : $(APPS) direwolf.conf tocalls.txt symbols-new.txt symbolsX.txt dw-icon
484484
$(INSTALL) telemetry-toolkit/telem-data91.pl $(INSTALLDIR)/bin
485485
$(INSTALL) telemetry-toolkit/telem-eqns.pl $(INSTALLDIR)/bin
486486
$(INSTALL) telemetry-toolkit/telem-parm.pl $(INSTALLDIR)/bin
487+
$(INSTALL) telemetry-toolkit/telem-seq.sh $(INSTALLDIR)/bin
487488
$(INSTALL) telemetry-toolkit/telem-unit.pl $(INSTALLDIR)/bin
488489
$(INSTALL) telemetry-toolkit/telem-volts.py $(INSTALLDIR)/bin
489490
#

Makefile.win

+10-3
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,6 @@ clean :
452452
z := $(notdir ${CURDIR})
453453

454454

455-
# Left out RPi Tracker due to Comcast upload size limit.
456-
457455
.PHONY: dist-win
458456
dist-win : direwolf.exe decode_aprs.exe text2tt.exe tt2text.exe ll2utm.exe utm2ll.exe \
459457
aclients.exe log2gpx.exe gen_packets.exe atest.exe ttcalc.exe \
@@ -470,8 +468,17 @@ dist-win : direwolf.exe decode_aprs.exe text2tt.exe tt2text.exe ll2utm.exe utm2l
470468
CHANGES.md \
471469
doc/User-Guide.pdf \
472470
doc/Raspberry-Pi-APRS.pdf \
473-
doc/APRStt-Implementation-Notes.pdf \
471+
doc/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf \
472+
doc/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf \
474473
doc/APRS-Telemetry-Toolkit.pdf \
474+
doc/APRStt-Implementation-Notes.pdf \
475+
doc/APRStt-interface-for-SARTrack.pdf \
476+
doc/APRStt-Listening-Example.pdf \
477+
doc/Raspberry-Pi-APRS.pdf \
478+
doc/Raspberry-Pi-APRS-Tracker.pdf \
479+
doc/Raspberry-Pi-SDR-IGate.pdf \
480+
doc/User-Guide.pdf \
481+
doc/WA8LMF-TNC-Test-CD-Results.pdf \
475482
LICENSE* \
476483
direwolf.conf \
477484
direwolf.exe \

doc/APRS-Telemetry-Toolkit.pdf

17.8 KB
Binary file not shown.

telemetry-toolkit/telem-seq.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
# Generate sequence number as described here:
3+
# https://github.com/wb2osz/direwolf/issues/9
4+
#
5+
SEQ=`cat /tmp/seq 2>/dev/null`
6+
SEQ=$(expr \( $SEQ + 1 \) % 1000)
7+
echo $SEQ | tee /tmp/seq

telemetry-toolkit/telem-volts.conf

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ CBEACON delay=0:11 every=1:00 via=WIDE2-1 infocmd="telem-unit.pl MYCALL-9 Volts"
2121
# This is supplied to telem-data.pl as a command line argument.
2222
# The result is used as the info part of a custom beacon.
2323

24-
CBEACON delay=0:15 every=0:10 via=WIDE2-1 infocmd="telem-data.pl 0 `PYTHONPATH=~/Adafruit-Raspberry-Pi-Python-Code/Adafruit_ADS1x15 telem-volts.py`"
24+
# Sequence numbers are generated as suggested here:
25+
# https://github.com/wb2osz/direwolf/issues/9
26+
27+
CBEACON delay=0:15 every=0:10 via=WIDE2-1 infocmd="telem-data.pl `telem-seq.sh` `PYTHONPATH=~/Adafruit-Raspberry-Pi-Python-Code/Adafruit_ADS1x15 telem-volts.py`"
2528

0 commit comments

Comments
 (0)