Skip to content

User guide SRFB

FixxCZ edited this page Feb 27, 2019 · 5 revisions

Sonoff RF Bridge gateway

Level of complexity: low

Receiving data from RF signal

Subscribe to the base topic "home" with mosquitto:

sudo mosquitto_sub -t home/# -v

Generate your RF signals by pressing a remote button or other and you will see :

home/SRFBtoMQTT/Raw 2A80015E042E0084D9

This is the raw value extracted from the RF module of the Sonoff bridge. The data are in hexadecimal and correspond to the details below: https://www.itead.cc/wiki/images/5/5e/RF_Universal_Transeceive_Module_Serial_Protocol_v1.0.pdf

OpenMQTTGateway process these datas to extract the following decimal values that can be reused to reproduce a signal (raw value can also be reused).

home/SRFBtoMQTT 34009 This is the decimal value to use (same as ZgatewayRF).

home/SRFBtoMQTT/Tsyn 10880 Code synchronisation time.

home/SRFBtoMQTT/Thigh 350 Low level time.

home/SRFBtoMQTT/Tlow 1070 High level time.

The home/SRFBtoMQTT, Tsyn, Thigh and Tlow values enables you to know the advanced parameters of your signal.

NOTE: currently the device doesn't receive correct values from Switches remote control

Send data by MQTT to convert it on RF signal

`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB -m 1315156`

This command will send by RF the code 1315156 and use the default parameters: Repeat = 1 Low time= 320 High time= 900 SYNC = 9500

Send data by MQTT with advanced RF parameters

RF bridge sending support four advanced parameters; Repeat, Low time, High time & Sync if you want to repeat your signal sending put into you topic RPT_2, 2 means 2 repetitions of signal

if you want to use a low time of 315 put inside your topic Tlow_315

if you want to use a high time of 945 put inside your topic Thigh_945

if you want to use a sync time of 9123 put inside your topic Tsyn_9123

Example: mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB/Tlow_315/Thigh_845/Tsyn_9123 -m 33151562 will make RF Bridge send a signal with the use of listed parameters 315, 845, 9123...

sudo mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB/Raw -m 267A013603B6140551 will make RF Bridge send a signal with the use of advanced parameters defined in the raw string

mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB -m 33151562 will make RF Bridge send a signal with the use of default parameters

Clone this wiki locally
You can’t perform that action at this time.