Skip to content

Instantly share code, notes, and snippets.

View gyaresu's full-sized avatar

Gareth gyaresu

View GitHub Profile
@gyaresu
gyaresu / at-commands.csv
Last active February 8, 2016 01:34
9602 AT commands - first test
Time [s] Analyzer Name Decoded Protocol Result
4.290077900000000 Async Serial A
4.290598750000000 Async Serial T
4.291119550000000 Async Serial +
4.291640400000000 Async Serial S
4.292161200000000 Async Serial B
4.292682050000000 Async Serial D
4.293202850000000 Async Serial D
4.293723700000000 Async Serial 0
4.294244550000000 Async Serial \r
@gyaresu
gyaresu / hackrf-transfer-pipe.txt
Last active February 4, 2016 02:34
HackRF piped data error.
gyaresu@zaphod:~/programming/iridium-toolkit|experiment
⇒ hackrf_transfer -f 1625800000 -a1 -l40 -g20 -s 2000000 -r /dev/fd/3 3>&1 1>&2 | python extractor.py -c 1625800000 -r 2000000 -f hackrf --jobs 7 | fgrep "A:OK"
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Ran into burst squelch at 75.776
1454552438 | i: 0/s | i_avg: 28/s | q: 12 | q_max: 12 | o: 0/s | ok: 100% | ok: 0/s | ok_avg: 100% | ok: 1 | ok_avg: 2/s | d: 0
Ran into burst squelch at 178.176
call hackrf_sample_rate_set(2000000 Hz/2.000 MHz)
call hackrf_baseband_filter_bandwidth_set(1750000 Hz/1.750 MHz)
call hackrf_set_freq(1625800000 Hz/1625.800 MHz)
@gyaresu
gyaresu / results.txt
Created February 2, 2016 03:01
iridium-toolkit results
LNA4ALL | HackRF | WS9261 from Wi-Sys
$ hacking_stuff/iridium42.bits
hackrf_transfer -f 1625800000 -a 1 -l 20 -g30 -s 2000000 -r /dev/fd/3 3>&1 1>&2 | python2 extractor.py -c 1625800000 -r 2000000 -f hackrf --jobs 2 | fgrep "A:OK" >> output.bits
1453893728 | i: 1/s | i_avg: 3/s | q: 0 | q_max: 2 | o: 1/s | ok: 36% | ok: 0/s | ok_avg: 35% | ok: 142 | ok_avg: 1/s | d: 0
---
Thomas Schneider:
is running: hackrf_transfer -f 1625800000 -a 1 -l 40 -g 20 -s 2000000 -S 26214400 -r /dev/fd/3
1453896326 | i:   6/s | i_avg:  28/s | q:   39 | q_max: 1600 | o: 32/s | ok:  56% | ok: 18/s | ok_avg:  52% | ok:    4581449 | ok_avg:  14/s | d: 171580
"so, 28 bursts per second on average, 52% decode at least the unique word"
@gyaresu
gyaresu / teensy-test.ino
Created January 5, 2016 10:09
Teensy 3.1 test code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address
void setup() {
// set up the LCD's number of rows and columns:
lcd.begin(20, 4);
@gyaresu
gyaresu / teensy-error.txt
Last active January 5, 2016 10:08
Teensy 3.1 error message
Arduino: 1.6.5 (Mac OS X), TD: 1.24, Board: "Teensy 3.1, Serial, 96 MHz optimized (overclock), US English"
Build options changed, rebuilding all
/Users/gyaresu/Documents/Arduino/libraries/LiquidCrystal/LiquidCrystal_I2C_ByVac.cpp: In constructor 'LiquidCrystal_I2C_ByVac::LiquidCrystal_I2C_ByVac(uint8_t)':
/Users/gyaresu/Documents/Arduino/libraries/LiquidCrystal/LiquidCrystal_I2C_ByVac.cpp:41:14: warning: statement has no effect [-Wunused-value]
_polarity == NEGATIVE;
^
In file included from /Users/gyaresu/Documents/Arduino/libraries/LiquidCrystal/LiquidCrystal_SR1W.cpp:35:0:
/Users/gyaresu/Documents/Arduino/libraries/LiquidCrystal/LiquidCrystal_SR1W.h:157:1: warning: multi-line comment [-Wcomment]
// | | 0.1uF | \
@gyaresu
gyaresu / output.txt
Created December 23, 2015 14:51
hackrf_transfer -r /dev/stdout -f 1625500000 -a 1 -l 40 -g 20 -s 2000000 | python2 extractor.py -d 12 -c 1625500000 -r 2000000 -f hackrf --jobs 3 | grep "A:OK" | tee /tmp/output.txt
RAW: i-1450820794.4221-t1 000002852 1626413185 A:OK L:no 88% 0.058 172 <001100000011000011110011> 00110011111100110011001111110011 10111010000110110100001110111110 00110000000011000100010111001000 10100000010010100001000010001000 10001111001010010101100110100011 00111010000111011111010010100001 01011001111111001011100011110101 00000010100111011001110100110001 11010110011111001010011101110101 10011101000010101001010110101100 111111110001111101111001
RAW: i-1450820794.4221-t1 000024814 1626112981 A:OK L:no 96% 0.056 120 <001100000011000011110011> 11000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 0000000000001100
RAW: i-1450820794.4221-t1 000042094 1626112277 A:OK L:no 86% 0.048 360 <001100000011000011110011> 11000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 0000000000000000000000000
@gyaresu
gyaresu / iridium-first-results.txt
Created November 29, 2015 07:57
iridium-parser.py results GREP'd for CRC:OK
hackrf_transfer -r /dev/stdout -f 1626000000 -a 1 -l 40 -g 20 -s 2000000 | python2 extractor.py -c 1626000000 -r 2000000 -f hackrf --jobs 4 | grep "A:OK" | tee ../iridium-hacking/temp/2015-11-27-extracted.txt
python ../../iridium-toolkit/iridium-parser.py 2015-11-27-extracted.txt > 2015-11-27-parsed.txt
cat 2015-11-27-parsed.txt|grep "SBD" > 2015-11-27-sbd.txt
cat 2015-11-27-sbd.txt|grep "OK" | tee 2015-11-27-crc-ok.txt
IDA: i-1448690087.6865-t1 000024770 1625092836 94% 0.030 181 L:no LCW(2,101100,010101001111110100000 E0) 0011 ctr=0000 0001 0100 0:0000 [06.05.00.36.26.c1.00.00.00.00.00.00.00.00.00.00.00.00.00.00] a6a9/0000 CRC:OK 0000 SBD: ...6&............... descr_extra:0111
IDA: i-1448690087.6865-t1 000024770 1625176157 97% 0.034 180 L:no LCW(2,101100,010101001111110100000 E0) 0010 ctr=0000 0000 0010 0:0000 [76.08.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00] 8836/0000 CRC:OK 0000 SBD: v................... descr_extra:00
IDA: i-1448690087.6865-t1 000024950 1625092781 95% 0.038 180 L:no LCW(2
@gyaresu
gyaresu / reprRadioConfig.py
Created November 2, 2015 21:56
reprRadioConfig
== Hardware ==
Dongle: YARDSTICKONE
Firmware rev: 0348
Bootloader: CC-Bootloader
== Software ==
rflib rev: 425
== Frequency Configuration ==
Frequency: 914999633.789063 hz (0x261fffL)
@gyaresu
gyaresu / rfcat390.py
Last active November 2, 2015 18:18
rfcat390
d.setFreq(390000000)
d.setMdmModulation(MOD_ASK_OOK)
d.makePktFLEN(12)
d.setMdmDRate(4800)
d.setMaxPower()
d.setMdmSyncMode(0)
for i in range(0,1000):d.RFxmit('\xFF\xFF\x0E\x63\x9C\xC7\x31\x8E\x73\x18\xFF\xFF');
@gyaresu
gyaresu / basic_tx.c
Created October 30, 2015 06:09
Basic OOK
#include "EEPROM.h"
#include "cc1101.h"
CC1101 cc1101;
#define LEDOUTPUT 7
char const* testnum = "Gareth test";
byte counter;
byte b;