1 Hacked from [433Utils](https://github.com/ninjablocks/433Utils) by Dmitry Shalnoff for [Interplay Mediumâ„¢](https://interplaymedium.org) project.
3 # 433Utils, GPIO interrupt-less version
5 This s a fork of [433Utils](https://github.com/ninjablocks/433Utils) adapted for NanoPi (and probably other no GPIO interrupt supported devices). This code inherit compatibility with RPi as well. The usage of GPIO interrupt can be switched on and off if required.
7 This collection of code designed to assist you in the connection and usage of RF 433MHz transmit and receive modules to/with your device. Despite the name, 433Utils also works with 315MHz transmit and receive modules (tested).
12 2. RF 433MHz modules; a transmitter and receiver
16 ### Install dependency if needed
18 You have to install WiringNP first (for RPi it is avaliable from oficial repository, so use *apt install ...*)
20 git clone https://github.com/friendlyarm/WiringNP
22 git checkout nanopi-m1
26 Define macro-variables
27 noInterrupts in *rc-switch/RCSwitch.cpp* if you woild like to disable interrupt handler.
28 NANOPI in *xPi_utils/433rx* if you wouls like to use non-interrupt handler (possible on PRi as well, conservatively reduces resource utilization)
30 Clone this repo and compile
35 Complex (all utils at once) compilation has not been tested yet. Something might not built or not work properly. Howver you could try:
43 ./433rx -p <pin number> -l [Pulse length]
45 ### send (didn't tested with nanoPi)
46 sudo ./send systemCode unitCode command
48 This command is unaltered from the original rc\_switch distribution.
51 sudo ./codesend decimalcode
55 Due to limitiations in the implementation of interrupt-driven routines in the underlying RCSwitch library, it is currently not possible to use both the send and receive functionality within the one program.