Skip to content

Instantly share code, notes, and snippets.

View jboone's full-sized avatar

Jared Boone jboone

View GitHub Profile
@jboone
jboone / packets.txt
Created December 3, 2015 06:00
Packets.
0110011001100110 0010101010100101010101010101001010011001010101011010011000
1 0 1 0 1 0 1 0 __ 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 0 1 1 1 1 1 0 0 1 0__
0110011001100110 1010100101001001011001010110011001010100010101100101101001010101010010101001011001011010010101000110100101100101011010010100100110010101100101100101010001011001011010101010101010001010010101
1 0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 1 0 1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 1 0 0 1 1 1 1 1 0 0 0 0 1 1 0 1 1 0 0 1 1 1__ 1 0 0 1 1 0 1 1 1 0 0 1 1 0 0 1 0 1 1 1 0 1 1 0 1 1 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0__
0110011001100110 0001100101011001010101010101001001010101010110010110100100
1 0 1 0 1 0 1 0 __ 1 0 1 1 1 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 1 1 0 0 1__
@jboone
jboone / real_downconvert.py
Created January 15, 2016 18:09
Downconverting band-limited real-valued signal is a mess I don't have time to clean up. :-)
#!/usr/bin/env python
import numpy
import scipy.fftpack
import matplotlib.pyplot as plt
def plot_time_domain_of(items):
for t, samples, label in items:
plt.plot(t, samples, label=label)
@jboone
jboone / afsk_demod.grc
Created September 7, 2016 06:07
GNU Radio 3.7.10 graph to demonstrate AFSK demodulation.
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.10'?>
<flow_graph>
<timestamp>Sun Sep 4 08:56:11 2016</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
--- LPC43xx.svd.orig 2017-08-03 20:37:12.501824574 -0700
+++ LPC43xx.svd 2017-08-03 22:25:24.933731557 -0700
@@ -142,82 +142,82 @@
<enumeratedValues>
<name>ENUM</name>
<enumeratedValue>
- <name>RISING_EDGES_ON_INPU</name>
+ <name>INPUT_0_RISING_EDGE</name>
<description>Rising edges on input 0.</description>
<value>0x0</value>
@jboone
jboone / goertzel.py
Last active March 16, 2022 21:50
Goertzel-based DTMF detection.
#!/usr/bin/env python3
import sys
import wave
import numpy
import scipy.signal
def detect_tone(x, f, fs, step_size):
# Apply Goertzel algorithm