Skip to content

Instantly share code, notes, and snippets.

View M0LTE's full-sized avatar

Tom M0LTE M0LTE

View GitHub Profile
@M0LTE
M0LTE / bpq32.cfg
Last active July 3, 2024 08:37
bpq32.cfg for MB7NGP
SIMPLE
NODECALL=MB7NGP
NODEALIAS=GILWEL
LOCATOR=JO01ap
PASSWORD=xxxxxxxx
AUTOSAVE=1
NODESINTERVAL=10
MINQUAL=10
IDINTERVAL=15
IDMSG:
@M0LTE
M0LTE / KISS_over_freedv_thoughts.md
Last active March 27, 2023 17:39
Idea for using FreeDV's data API as a drop-in replacement for KISS modems

KISS is a super simple framing technique for packet radio TNCs.

Simplistically, a KISS TNC can be commanded to send an AX.25 frame out of its first (or only) port by prefixing it with 0xC0 0x00. See http://www.symek.com/g/smack.html

As well as KISS over serial, BPQ can do KISS over TCP or UDP. I assume the Linux kernel can too.

FreeDV (codec2) has a data transmission API. Codec2 ships with a pair of minimalistic demo programs for transmitting and receiving arbitrary data through FreeDV via stdin/out. The transmit program takes data on stdin and outputs audio bytes to stdout. The receive program takes audio bytes on stdin and outputs the original data on stdout.

Source of the two programs:

@M0LTE
M0LTE / bpq32.cfg
Last active January 9, 2025 08:26
bpq32.cfg for GB7RDG
SIMPLE ; sets a lot of defaults
NODECALL=GB7RDG ; Node callsign
NODEALIAS=THURST ; Node alias (6 characters max)
LOCATOR=IO91lk ; Maidenhead locator
MAPCOMMENT=40m, 6m, 2m, 70cm
PASSWORD=xxxxxxxx
AUTOSAVE=1
EnableEvents=1
EnableM0LTEMap=1
#(as non-root, on a Pi 2B, Raspbian 11)
mkdir linbpq
cd linbpq
wget https://www.cantab.net/users/john.wiseman/Downloads/pilinbpq
mv pilinbpq linbpq
chmod +x linbpq
sudo setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq
mkdir HTML
cd HTML
wget http://www.cantab.net/users/john.wiseman/Downloads/HTMLPages.zip
@M0LTE
M0LTE / DecodeMessage.cs
Created July 27, 2019 10:21
A .NET type which parses the format of UDP datagrams emitted from WSJT-X on UDP port 2237, for the Decode message type (the type emitted when WSJT-X decodes an FT8 frame)
using System;
using System.Linq;
using System.Net;
/// <summary>
/// A .NET type which parses the format of UDP datagrams emitted from WSJT-X on UDP port 2237,
/// for the Decode message type (the type emitted when WSJT-X decodes an FT8 frame)
/// </summary>
public class DecodeMessage
{
4.2V
3.7V
3.0V
5s = 21.0V -> 18.5V -> 15V
4s = 16.8V -> 14.8V -> 12V
3s = 12.6V -> 11.1V -> 9V
13.8V + 10% = 15.18V
13.8V - 10% = 12.42V
@M0LTE
M0LTE / cty.dat.json
Last active June 15, 2018 15:24
cty.dat from WSJT-X 1.9.0 rc4 re-packed as dictionary
This file has been truncated, but you can view the full file.
{
"1A": [
{
"ctry": "Sov Mil Order of Malta",
"pre": "1A",
"tz": -1.0,
"lon": -12.43,
"lat": 41.9,
"cnt": "EU",
"itu": 28,
#in /root/update-wordpress.sh:
#!/bin/bash -e
export PATH="$PATH:/usr/local/bin"
# change this
siteroot=/var/www/html
webserveruser=nginx
wp cli update --quiet
@M0LTE
M0LTE / ardupips.ino
Last active May 14, 2018 22:12
Arduino pips
void setup() {
pinMode(6, OUTPUT);
pinMode(10, OUTPUT);
Serial.begin(9600);
}
void loop() {
digitalWrite(10, HIGH);
delay(1000);
@M0LTE
M0LTE / gist:f1669b2b8f719fd4c851db867da8cda4
Last active June 23, 2018 23:17
WellGood Loop components
C1, C2 133-5699 82pF A82J (blue)
C3, C7, C101, C102 191-985 2.2uF (must be poly-carbonate in signal path) mmkbjo63-
C4, C5, C10, C13 538-1310 100nF k5k 104 (yellow)
C6 538-1146 10pF k2j 100 (yellow)
C8, C9 312-1582 330nF
R1 148-528 1.2kΩ
R2 148-578 2kΩ
Q1, Q2 739-0381 PN2222 / ZTX653 / MPSH10
D1, D2, D3, D4 671-5477 1N4148
CON1,2,3 512-1225 RF-BNC