GithubHelp home page GithubHelp logo

jderehag / rpi-rfsniffer Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 7.0 20 KB

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

License: BSD 2-Clause "Simplified" License

Python 100.00%

rpi-rfsniffer's Introduction

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.

rpi-rfsniffer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rpi-rfsniffer's Issues

Cannot sniff the codes

After running the code rfsniffer record remotename.button1 the instruction "Press remotename.Button1" appears and even after pressing my controller button, the codes are not registered!

I have double checked my Receiver and Transceiver GPIO pin connections 27 and 17 respectively.

Hope you can shed some light on the matter! Thanks!

Pin numbering

Which one is it?

Broadcom GPIO numbers, board numbers ?

question!

how to setup and how to chose the pin for transmitter and receiver?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.