Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 4.13 KB

README.md

File metadata and controls

48 lines (38 loc) · 4.13 KB

Offers possibility to send a binary code via radio waves. I'm personally using this for controlling different IOT devices by radio.

npm version npm npm downloads GitHub repo size in bytes GitHub last commit GitHub stars GitHub watchers GitHub license Code Climate Package Quality

rf-command

Offers possibility to send a binary code via radio waves. I'm personally using this for controlling different IOT devices by radio.

Code is tested with this device on Node red installed on a PaspberryPi II.

The node contains a python script for sending the payload; Python is mandatory;

How RF comminication works

On RF, the bits are identify by how much time the signal is high and how much time nothing is emitted on that frequency.

For example: if in 1024 µs we have 66% of time signal emitted and 33% of time silance, then is one. If we have 33% of time signal and then 66% of time silance then is zero.

Settings

  • GPIO Type: sets the type of pin specification; Can be BCM or BOARD more details here;
  • GPIO: pin number to which the RF emitter is connected;
  • Repeat: Indicates how many times the payload will be sent. Sometime is not enough to send the command just one time and the commands need to be send multiple times. For example can be an interference on the same frequency in exactly the same moment. For avoiding this scenario you cand set it to send same command multiple times just to be sure;
  • Pause (µs): if repeat is set more than one then we need to have a pause between each command;
  • Init sequence: Many devices have an init sequence that needs to be sent before sending the binary command. This allows you to configure an initialization signal.
    • Length: If you have multiple commands to be send you can concatenate all of them in a string and set here how long is a command. The node will split the command and inject initialisation code before each command. This shuld be the number of bits
    • Time high (µs): How long the signal will be high for initialization; in microseconds;
    • Time low (µs): How long the signal will be low for initialization; in microseconds;
  • Bit timing: configures how the time is split for a single bit;
    • Long time (µs): How much time is consider a long part of a bit for example can be 66% from 1024 (or how much a bit takes for your device)
    • Short time (µs): How much time is consider a short part of a bit for example can be 33% from 1024

Changelog

v1.0.0 (February 14, 2017)

  • Stable release;

v0.1.0 (December 6, 2017)

  • Stable release;

v0.0.11 (December 6, 2017)

  • Allows sending multiple commands in same string as binary;