Skip to content

Instantly share code, notes, and snippets.

M0LTE

Block or report user

Report or block M0LTE

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@M0LTE
M0LTE / DecodeMessage.cs
Created Jul 27, 2019
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)
View DecodeMessage.cs
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
{
View gist:29d27da449c55c59f2ef97ed682c0637
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 Jun 15, 2018
cty.dat from WSJT-X 1.9.0 rc4 re-packed as dictionary
View cty.dat.json
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",
View gist:5ce7dc57bf5d10b1fe80bf3c05650d69
#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
Arduino pips
View ardupips.ino
void setup() {
pinMode(6, OUTPUT);
pinMode(10, OUTPUT);
Serial.begin(9600);
}
void loop() {
digitalWrite(10, HIGH);
delay(1000);
View gist:f1669b2b8f719fd4c851db867da8cda4
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
@M0LTE
M0LTE / pips.sh
Last active Apr 15, 2018
Pips for Jonathan (also now partly BY Jonathan)
View pips.sh
#!/bin/bash -e
# you need to run this file at startup.
# copy it to your system, make it executable (chmod +x pips.sh), then use /etc/rc.local or whatever to start it up once at boot.
# shouldn't really ever crash, there's nothing to go wrong, as long as the audio player never fails. Then you might
# want some error checking.
while true; do
# get time now in nanoseconds since 1970-01-01 00:00:00
now=$(date +%s%N)
@M0LTE
M0LTE / u-blox_rate_init.c
Created Apr 3, 2018
Configure the u-blox neo-6m for minimal output with 500ms updates from Arduino / C
View u-blox_rate_init.c
// configure the u-blox neo-6m for minimal output with 500ms updates
byte startup[] = {
/* 500ms updates
B5 62 06 08 06 00 F4 01 01 00 01 00 0B 77 */
0xB5, 0x62, 0x06, 0x08, 0x06, 0x00, 0xF4, 0x01, 0x01, 0x00, 0x01, 0x00, 0x0B, 0x77
/* disable $GPGSV
B5 62 06 01 03 00 F0 03 00 FD 15 */
, 0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x03, 0x00, 0xFD, 0x15
@M0LTE
M0LTE / gist:baefef79a06f74fecf0745de00537b38
Created Mar 28, 2018
FlexRadio Systems FlexControl USB control protocol
View gist:baefef79a06f74fecf0745de00537b38
Identifies as USB Serial vendor 0x2192 product 0x0010
Sends data at 9600 bps 8N1
AUX1/2/3 buttons
single tap X1S / X2S / X3S
double tap X1C / X2C / X3C
press and hold X1L / X2L / X3L (on release)
rotate dial anti/clockwise D / U
faster D/U02..D03..D04 up to at least 6
@M0LTE
M0LTE / install-dw-igate.sh
Created Mar 27, 2018
Almost-working igate-on-a-pi script
View install-dw-igate.sh
#!/bin/bash -e
# for some reason line 65 doesn't start DW, needs a bit more work
apt-get install build-essential git cmake libusb-1.0-0-dev libasound2-dev screen
git clone https://www.github.com/wb2osz/direwolf
git checkout dev # switch to dev branch, optional
pushd direwolf
make
make install
You can’t perform that action at this time.