Skip to content

Instantly share code, notes, and snippets.

@rxseger
Last active July 3, 2016 23:55
Show Gist options
  • Save rxseger/b6ff37961f7fc80f421b5d30eb7147e1 to your computer and use it in GitHub Desktop.
Save rxseger/b6ff37961f7fc80f421b5d30eb7147e1 to your computer and use it in GitHub Desktop.
rtl_ir hand decoding
decoding NEC pulses for power down button (0x4d) of RTL remote
http://www.sbprojects.com/knowledge/ir/nec.php
pulse, pause = 0
pulse, pause pause = 1
received using rtl_ir https://github.com/librtlsdr/librtlsdr/pull/9
$ ./rtl_ir
press the power button on the RTL remote, shows pulses:
start pulse
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
*20 = 3580 usec
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
*20 = 1820 usec
11111111111000000000000
1111111111100000000000
11111111111100000000000
11111111111000000000000
1111111111100000000000
11111111111100000000000
11111111111000000000000
1111111111000000000000
0000_0000 address
11111111111000000000000 0000000000000000000000
11111111111000000000000 0000000000000000000000
11111111111000000000000 0000000000000000000000
1111111111100000000000 00000000000000000000000
11111111111000000000000 0000000000000000000000
11111111111000000000000 0000000000000000000000
1111111111100000000000 00000000000000000000000
11111111111000000000000 0000000000000000000000
1111_1111 address'
11111111111000000000000 0000000000000000000000 0
1111111111110000000000 1
1111111111110000000000 00000000000000000000000 0
111111111111000000000000 0000000000000000000000 0
1111111111100000000000 1
1111111111100000000000 1
1111111111110000000000 000000000000000000000000 0
1111111111100000000000 1 = 0010_01101 = 0x4d, power on
0100_1101 command
11111111111000000000000
111111111110000000000 000000000000000000000000
1111111111100000000000
11111111111100000000000
11111111111000000000000 0000000000000000000000
11111111111000000000000 0000000000000000000000
11111111111000000000000
11111111111000000000000 000000000000000000000
1011_0010 command'
1111111111110000000000
1
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment