Giter Site home page Giter Site logo

lesha369 / rpi-rfsniffer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jderehag/rpi-rfsniffer

0.0 0.0 0.0 19 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

Contributors

jderehag avatar

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.