An AX.25 TNC for a ESP8266 with a LoRa board surgically grafted onto it.
|
3 years ago | |
---|---|---|
LICENSE | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
RHGenericDriver.cpp | 3 years ago | |
RHGenericDriver.h | 3 years ago | |
RHGenericSPI.cpp | 3 years ago | |
RHGenericSPI.h | 3 years ago | |
RHHardwareSPI.cpp | 3 years ago | |
RHHardwareSPI.h | 3 years ago | |
RHSPIDriver.cpp | 3 years ago | |
RHSPIDriver.h | 3 years ago | |
RH_RF95.cpp | 3 years ago | |
RH_RF95.h | 3 years ago | |
RadioHead.h | 3 years ago | |
kiss.cpp | 3 years ago | |
kiss.h | 3 years ago | |
kissemulator.c | 3 years ago |
# apt-get install arduino-builder arduino
..then use the Arduino IDE to install the 3rd-party esp8266.com SDK, using the Preferences->Additional Boards Manager URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json ...and then adding the esp8266com devkit with Tools->Boards->Board Manager.
If that's too much bother, it should still work as a normal Sketch in the Arduino IDE, with the RadioHead library, and the additional kiss-related source added.
To test:
$ kissutil -p /dev/ttyUSB0 -s 9600
(kissutil is included with direwolf)
"[0] DEBUG0-1>IDENT:Radio init success"
...should appear, otherwise, beacons from the Digipeater can also show up:
"[0] FL0RA-1>BEACON:T#1,15,0,6"
To play with the digipeater:
$ kissutil -p /dev/ttyUSB0 -s 9600 \
-f /var/spool/packet/send -o /var/spool/packet/recv
$ echo "VK2CJB>FL0RA-1:ping" >/var/spool/packet/send/test
"[0] FL0RA-1>VK2CJB:ping RSSI=-56 PktRpts=0"
AX.25 limits callsigns/addresses to 6 upperalphas and numerics (and an optional "-SSID" digit). But since we're not in the Amateur space, just pick anything unique...
This is obviously just a preliminary serial-connected version, todo is the network stuff.
Another (possible..) future addition is adding the Digipeater functionality to the 'regular' TNC-- making it so every user's site can forward packets.
-- Chris,, chris.j.baird@gmail.comvk2cjb@wia.org.au