MeshTNC is a tool for piping LoRa data to and from consumer grade radios.
- Code - github.com/datapartyjs/MeshTNC
- Releases - github.com/datapartyjs/MeshTNC/releases
- Support - ko-fi/dataparty
- Simple serial cli built into the firmware
- Transmit raw bytes (hex) over LoRA using serial CLI
- LoRA packet logging to serial (hex)
- KISS-TNC mode
- Install PlatformIO in Visual Studio Code.
- Clone and open the MeshTNC repository in Visual Studio Code.
- See the example applications you can modify and run:
Download precompiled firmware releases - github.com/datapartyjs/MeshTNC/releases
We haven't built a flashing tool yet. You can flash builds using the meshcore flasher, the OEM provided flashing tools or using the developer instructions to flash using VS Code.
- Flash using your platform's OEM flashing tool
- Use the meshcore flasher - http://flasher.meshcore.co.uk/
MeshTNC is designed for devices supported by MeshCore so check their support list in the MeshCore Flasher. We support most of the same hardware see variants.
The MeshTNC firmware initially starts up in a serial mode which is human readable. You can connect to the serial console using a serial terminal application like below.
minicom -D /dev/ttyACM0
Once connected the MeshTNC device has a simple CLI. The CLI is largely similar to meshcore with a few notable additions.
txraw <hex...>- Transmist a packetget syncword <word>- Read the syncword settingset kiss port <port>- Set the KISS device portset radio <freq>,<bw>,<sf>,<coding-rate>,<syncword>- Configure the radioserial mode kiss- Switch to KISS moderxlog on- Output format:
[timestamp],[type=RXLOG],[rssi],[snr],[hex...]\n
- Output format:
Existing Commands
rebootclock syncstart otaclocktimetempradioclear statsget afget agc.reset.intervalget nameget latget longet radioget rxdelayget txdelayget txget freqset afset int.threshset agc.reset.intervalset nameset radioset latset lonset rxdelayset txdelayset txset freqeraseverlog startlog stoprxlog onrxlog off
- Open a serial console and connect to the MeshTNC device
serial mode kiss
You can use your favorite APRS tools with MeshTNC. Simply select a frequency, place the radio into kiss mode and connect to your APRS tools as a KISS TNC device.
minicom -D /dev/ttyACM0set radio 918.25,500.0,7,5,0x16serial mode kiss
MeshTNC should work with lots of APRS clients, we've tested on the following:
Run the following on two or more computers, each with a MeshTNC device attached, to create an ethernet over LoRa network.
- Install
tncattachgit clone https://github.com/markqvist/tncattach.gitcd tncattachmakesudo make install
minicom -D /dev/ttyACM0set radio 916.75,500.0,5,5,0x16serial mode kiss
sudo tncattach --mtu=230 -e -noipv6 --ipv4=10.10.10.10/24 /dev/ttyACM0 115200
sudo tncattach --mtu=230 -e -noipv6 --ipv4=10.10.10.11/24 /dev/ttyACM0 115200


