An AX.25 TNC for a ESP8266 with a LoRa board surgically grafted onto it.

Chris Baird 6d01068a66 2GET! 3 years ago
LICENSE 6d01068a66 2GET! 3 years ago
Makefile 6d01068a66 2GET! 3 years ago
README.md 6d01068a66 2GET! 3 years ago
RHGenericDriver.cpp 6d01068a66 2GET! 3 years ago
RHGenericDriver.h 6d01068a66 2GET! 3 years ago
RHGenericSPI.cpp 6d01068a66 2GET! 3 years ago
RHGenericSPI.h 6d01068a66 2GET! 3 years ago
RHHardwareSPI.cpp 6d01068a66 2GET! 3 years ago
RHHardwareSPI.h 6d01068a66 2GET! 3 years ago
RHSPIDriver.cpp 6d01068a66 2GET! 3 years ago
RHSPIDriver.h 6d01068a66 2GET! 3 years ago
RH_RF95.cpp 6d01068a66 2GET! 3 years ago
RH_RF95.h 6d01068a66 2GET! 3 years ago
RadioHead.h 6d01068a66 2GET! 3 years ago
kiss.cpp 6d01068a66 2GET! 3 years ago
kiss.h 6d01068a66 2GET! 3 years ago
kissemulator.c 6d01068a66 2GET! 3 years ago

README.md

Build environment

# 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