Skip to content

jderehag/rpi-rfsniffer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
January 10, 2017 20:07
January 10, 2017 21:36
January 4, 2017 10:32
February 5, 2019 10:21
January 10, 2017 20:07
January 10, 2017 20:07
January 12, 2017 20:05
January 10, 2017 21:36
January 12, 2017 20:30

rpi-rfsniffer

Allows you to record RF signals and play them back on a Rapsberry Pi.

Nowadays, many remotes are sending over cheap RF transmitters. Especially alot of the home automation devices usually communicate over these RF links.

Installation

Through pip:

$>sudo pip install rpi-rfsniffer

Latest development version (in linux):

$>git clone https://github.com/jderehag/rpi-rfsniffer.git
$>cd rpi-rfsniffer
$>sudo python setyp.py install
$>

Usage

By default it assumes you have attached the transmitter on pin 11 and the recevier on pin 13:

# To record signal
$>rfsniffer record remotename.button1
  Press remotename.button1
  Recorded 64 bit transitions
$>

# To transmit/send that signal (twice)
$>rfsniffer play remotename.button1 remotename.button1
$>

# To dump all the recorded signals
$>rfsniffer dump
  remotename.button1
$>

Hardware guide

All pin assignments refer to board numbers (rather than chipset pin layout). Allthough it has only been tested on RPi2, according to RPi doc all boards should be pin compatible. Worth mentioning is that it is assuming soft pull-down resistor mode for all recordings, so you should avoid GPIO pins 2-3 since these have fixed pull-up resistors.

Signal recording

Worth mentioning is that rfsniffer only is a thin wrapper around RPi.GPIO. rfsniffer simply reads bitflips using RPi.GPIO.wait_for_edge(..) and records the timing between these transitions. It ignores any signals with fewer than 5 transitions due to that its assumed that most RF systems have atleast a 5 bit preamble. Furthermore, it will continue reading a signal until atleast 1 second has passed without any additional signals. So if you record a buttonpress, you will likely want to release the button as you would normally so that rfsniffer can detect that there are no more signals and then store the signal in the database.

About

Allows you to record RF signals and play them back on a Rapsberry Pi.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages