Skip to content

Instantly share code, notes, and snippets.

View daniestevez's full-sized avatar

Daniel Estévez daniestevez

View GitHub Profile
@daniestevez
daniestevez / subaudio
Created May 24, 2016 09:00
LilacSat-2 subaudio telemetry 2016/05/24 18:33 UTC
**** 08:52:23, byte_corr = -1
**** 08:52:23, byte_corr = -1
**** 08:52:24, byte_corr = -1
**** 08:52:24, byte_corr = 0
* MESSAGE DEBUG PRINT PDU VERBOSE *
()
pdu_length = 108
@daniestevez
daniestevez / gomx3-data-20160529.kiss
Last active May 31, 2016 11:08
GOMX-3 data download 2016/05/29
@daniestevez
daniestevez / packets
Created June 2, 2016 15:37
ÑUSat-2 packets
* MESSAGE DEBUG PRINT PDU VERBOSE *
()
pdu_length = 64
contents =
0000: 1d 45 0c 59 8a 56 30 b4 9b 25 2e 12 70 c6 fa d9
0010: 11 fa 0d af 0a f7 e7 e9 8d 05 32 d5 ae 10 3d 7a
0020: 58 1d 42 bb ef 7a 64 6e 80 9b 63 0d 5a ee d8 08
0030: e9 f9 de 39 f1 a8 e9 43 cc 88 65 54 38 59 47 9f
***********************************
* MESSAGE DEBUG PRINT PDU VERBOSE *
@daniestevez
daniestevez / gps.py
Created August 16, 2016 14:13
Radiosonde to NMEA script
#!/usr/bin/python3 -u
import sys
for line in sys.stdin:
s = line.split(' ')
if len(s) < 14:
continue
time = s[4]
lat = s[7]
@daniestevez
daniestevez / direwolf-log
Last active September 11, 2016 10:08
HORYU-4 1k2 AFSK AX.25 telemetry
$ direwolf -t 0 -d p -B 1200 -r 22050 -b 8 - < HR4_CW_1200bps_200.wav
Dire Wolf version 1.1, December 2014
Audio input device for receive: stdin
Audio out device for transmit: default
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, C, 22050 sample rate.
Note: PTT not configured for channel 0. (Ignore this if using VOX.)
Ready to accept AGW client application 0 on port 8000 ...
Use -p command line option to enable KISS pseudo terminal.
Ready to accept KISS client application on port 8001 ...
@daniestevez
daniestevez / gomx-1-beacon.c
Last active September 17, 2016 09:50
GOMX-1 beacon format
/* BEACON A */
struct __attribute__((__packed__)) cdh_beacon_a {
struct __attribute__((packed)) {
uint16_t bootcount; // Total boot count
int16_t temp1; // Board temp1 * 4 in [C]
int16_t temp2; // Board temp2 * 4 in [C]
int16_t panel_temp[6]; // Panel temperatures * 4 in [C]
} obc;
struct __attribute__((packed)) {
uint16_t byte_corr_tot; // Total bytes corrected by reed-solomon
@daniestevez
daniestevez / gr_decode_ccsds_27_fb-viterbi.diff
Created October 10, 2016 15:55
AutoFEC gnuradio patch
diff -ur a/gr-fec/grc/fec_decode_ccsds_27_fb.xml b/gr-fec/grc/fec_decode_ccsds_27_fb.xml
--- a/gr-fec/grc/fec_decode_ccsds_27_fb.xml 2016-09-02 06:16:13.000000000 +0200
+++ b/gr-fec/grc/fec_decode_ccsds_27_fb.xml 2016-10-10 15:42:31.446904672 +0200
@@ -17,4 +17,9 @@
<name>out</name>
<type>byte</type>
</source>
+ <source>
+ <name>metric</name>
+ <type>float</type>
@daniestevez
daniestevez / bpsk.patch
Created October 14, 2016 21:40
AutoFEC BPSK patch
diff --git a/python/auto_fec.py b/python/auto_fec.py
index 40ee4ed..a3c2df3 100644
--- a/python/auto_fec.py
+++ b/python/auto_fec.py
@@ -36,7 +36,7 @@ _puncture_matrices = [
_phase_multiplication = [
('0', 1),
- ('90', 1j),
+## ('90', 1j),
@daniestevez
daniestevez / ondd-udp-inject.c
Created October 15, 2016 10:26
ONDD UDP inject
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <netdb.h>
#include <netinet/in.h>
#include <unistd.h>
@daniestevez
daniestevez / fec-debug
Created October 24, 2016 19:29
Outernet FEC debug info
--------------------------------------------------------------------
FEC debug info for file opaks/dad7-Alt-right.html.tbz2 (FEC decoding not implemented yet)
ldpc:k=452,n=543,N1=2,seed=1000
Length of FEC data: 21780 bytes; File size: 109186 bytes
--------------------------------------------------------------------
--------------------------------------------------------------------
FEC debug info for file opaks/ed57-Amazon.com.html.tbz2 (FEC decoding not implemented yet)
ldpc:k=852,n=1023,N1=2,seed=1000
Length of FEC data: 41140 bytes; File size: 206080 bytes