Please note: this page has been translated automatically. If you can, you should read it in one of these languages:

rf_gpio

Presentation

rf_gpio Simulate RFLink with transmitter and receiver connected directly to the GPIO ports of raspberry pi.

Installation:

cd /home/pi
git clone https://github.com/jmichault/rf_gpio.git
cd rf_gpio  
sudo cp -p rf_gpio.sh /etc/init.d  
sudo update-rc.d rf_gpio.sh defaults  
sudo service rf_gpio.sh start  

Connect the receiver to gpio2 bcm27 ( Pin 13 )
Connect the transmitter to gpio0 bcm17 ( Pin 11 )

Use with domoticz :

Add material of type «RFLink Gateway with LAN interface» Remote Address: 127.0.0.1
Port: 10000
If the hardware is recognized, integration with domoticz is simple: it is enough to use the “ automatic detection “ on the “ Switches “ tab, or activate the option “ Allow 5 minutes “

Transceivers Tested:

Note: For good results, the receiver must be protected from pests issued by raspberry-pi. For testing, you can use an aluminum coat in a sheet of paper folded in half.

Recognized materials:

been successfully tested:

Other sensors are predefined in sensors.ini, but were not tested.

To add a new sensor:

The data transfer protocol and the data format must be identified.

Option 1:

Follow the exit of RF_gpio, soit en le lançant dans une fenêtre shell, soit en s’y connectant avec la commande «telnet 127.0.0.1 10000».

When the sensor sends data, and the transfer protocol is recognized, you will see something that looks like this:
20; 00; P0102, Bits = 36, D0 = 529, D1 = 949, D2 = 1926, DS = 3865; binary = 011100110000100000, hex = 7300d8f20;
20; = Any RFLink emissions frame starts like this.
00; = First framework published.
P0102, Bits = 36, D0 = 529, D1 = 949, D2 = 1926, DS = 3865 = RF _gpio a identifié un protocole du type :

bit 0 = D0 D1  
bit 1 = D0 D2  
36 data bits  
Duration d0 = 520 μs  
Duration d1 = 957 μs  
Duration d2 = 1936 μs  
 Synchronous duration DS = 3881 μs      Duuma = 0111001100000000100000, Hex = 7300D8F20; : Data received in Binary and Hexa.   

Option 2:

Run in bark:
./analyzi
and press the button on the remote control, or wait for the sensor to send data. If the protocol is recognized, we see something similar to that:
73 Practical protocol: “ xxx; P0001, Bits = 36, D0 = 689, D1 = 1923, DS = 3890; ID: B1-B36 “
Binary Data: 01110011000000110110001100100000
Hexa Data: 7300d8f20

You now need to analyze binary data to identify the meaning of each piece.
You can then add a line in the Dentilos.ini file, each line consists of three elements separated by a semicolon:

In receipt all the lines that satisfy the condition will generate a line, if you want to avoid false positives, you can start or remove the lines that do not match your equipment.
About question, only the first line with the correct name of equipment will be used.

If the protocol is not recognized, you can use to analyze to study it by increasing its verb with the option -v, -vv or -vv. But RF_gpio ne pourra pas le reconnaitre sans développement supplémentaire.

Supported protocols:

Only protocols with at least the following features have a chance to be recognized:

In the show, the rotary codes and the confirmation amounts are not administered.