Ce site contient essentiellement des notes de travail. Le contenu est en constante évolution, et loin d'être achevé. (+ d'infos)
La plupart des documentations informatiques sont orientées Debian / Ubuntu.

Electronique/Hardware/Communication/433MHz/RPi-rf (Python)

De Ordinoscope.net
Sauter à la navigation Sauter à la recherche

Introduction

  • rpi-rf_receive entend beaucoup de bruit

Installation

apt install python3-pip
pip3 install rpi-rf

Câblage

                   RPI GPIO HEADER
              ____________
             |        ____|__
             |       |    |  |
             |     01|  . x  |02
             |       |  . x__|________       RX
             |       |  . x__|______  |   ________
             |       |  . .  |      | |  |        |
   TX        |   ____|__x .  |      | |__|VCC     |
 _______     |  |  __|__x .  |      |    |        |
|       |    |  | |  |  x____|______|____|DATA    |
|    GND|____|__| |  |  . .  |      |    |        |
|       |    |    |  |  . .  |      |    |DATA    |
|    VCC|____|    |  |  . .  |      |    |        |
|       |         |  |  . .  |      |____|GND     |
|   DATA|_________|  |  . .  |           |________|
|_______|            |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                   39|  . .  |40
                     |_______|

Utilisation

rpi-rf_receive

rpi-rf_receive
2018-05-21 11:00:49 - [INFO] rpi-rf_receive: Listening for codes on GPIO 27
2018-05-21 11:00:50 - [INFO] rpi-rf_receive: 1193342 [pulselength 178, protocol 1]
2018-05-21 11:00:50 - [INFO] rpi-rf_receive: 544 [pulselength 332, protocol 1]
2018-05-21 11:00:50 - [INFO] rpi-rf_receive: 8 [pulselength 270, protocol 1]
2018-05-21 11:00:52 - [INFO] rpi-rf_receive: 16777728 [pulselength 215, protocol 1]
2018-05-21 11:00:55 - [INFO] rpi-rf_receive: 4210709 [pulselength 367, protocol 1]
2018-05-21 11:00:55 - [INFO] rpi-rf_receive: 4210709 [pulselength 368, protocol 1]
2018-05-21 11:00:56 - [INFO] rpi-rf_receive: 128 [pulselength 230, protocol 1]
2018-05-21 11:00:56 - [INFO] rpi-rf_receive: 4210708 [pulselength 367, protocol 1]
2018-05-21 11:00:56 - [INFO] rpi-rf_receive: 4210708 [pulselength 367, protocol 1]
2018-05-21 11:00:56 - [INFO] rpi-rf_receive: 66 [pulselength 174, protocol 1]
2018-05-21 11:00:57 - [INFO] rpi-rf_receive: 4202624 [pulselength 289, protocol 1]
2018-05-21 11:00:59 - [INFO] rpi-rf_receive: 5933632 [pulselength 195, protocol 1]

rpi-rf_send

rpi-rf_send 4194325
2018-05-21 11:02:10 - [INFO] rpi-rf_send: 4194325 [protocol: default, pulselength: default]


Références