You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/RF-Protocol.md
+19-2
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,8 @@ Otherwise you must [compile your build](Compile-your-build.md). Add the followin
13
13
Tasmota uses the [rc-switch library](https://github.com/sui77/rc-switch/) to decode RF codes. Supported hardware depends on rc-switch library support only.
14
14
15
15
## Sending RF Codes
16
-
Send an RF control code as a decimal or hexadecimal string in a JSON payload. An inexpensive RF receiver such as a [STX882](https://www.nicerf.com/product_132_82.html) can be connected to a device running Tasmota. In order to send RF data you need to _**configure the connected GPIO as `RFSend (105)`**_
16
+
Send an RF control code as a decimal or hexadecimal string in a JSON payload. An inexpensive RF receiver such as a [STX882](https://www.nicerf.com/productslist_119_stx882.html) can be connected to a device running Tasmota. In order to send RF data you need to _**configure the connected GPIO as `RFSend (105)`**_
17
17
18
-
### RF Transciever
19
18
Command|Parameters
20
19
:---|:---
21
20
RFsend<aid="rfsend"></a>|`<value>` = code decimal or JSON. Data value is required and can be decimal or hexadecimal (using the 0x prefix), other values are optional.<BR><BR>_JSON_<BR>`{"Data":"<value>","Bits":<value>,"Protocol":<value>,"Pulse":<value>}`<BR>`"Data":"<value>"` = hexadecimal code<BR>`"Bits":<value>` = required number of data bits _(default = `24`)_<BR>`"Protocol":<value>` = protocol number _(default = `1`)_<BR>`"Repeat":<value>` = repeat value _(default = `10`)_<BR>`"Pulse":<value>` = pulse value _(`350` = default for protocol 1)_<BR> e.g., `RFsend {"Data":"0x7028DC","Bits":24,"Protocol":1,"Pulse":238}`<BR><BR>_Decimal_<BR>`data, bits, protocol, repeat, pulse` <BR> e.g., `RFsend 7350492, 24, 1, 10, 238` or `RFsend 0x7028DC, 24, 1, 10, 238`
@@ -34,6 +33,24 @@ When sending decimal formatted command you need to follow the pattern otherwise
34
33
35
34
## Receiving RF Codes
36
35
An inexpensive RF receiver such as a [SRX882](https://www.nicerf.com/product_132_82.html) can be connected to a device running Tasmota. Configure the GPIO connected to Data pin on the RF receiver as 'RFrecv (106)'.
36
+
<br>Once you have identified the protocols that you want to receive data on , you can enable only those protocols .
37
+
<br>The RfProtocol command will only work if you have set a pin function to rfrecv
38
+
39
+
Command|Parameters
40
+
:---|:---
41
+
RfProtocol<aid="RfProtocol"></a> `<value>`|`<value>` 0 .. 0x7FFFFFFFF or 'A' for All :: This Sets the Enabled Protocol Mask Value
42
+
RfProtocol`<idx> <value>`|`<idx>` 1 .. 35 `<value>` 0 or 1 :: This Disables or Enables a Specific Protocol
43
+
44
+
!!! example
45
+
`RfProtocol 5`
46
+
<br> will enable only protocols 1 & 3 `stat/tasmota_D728A8/RESULT {"RfProtocol":"1,3"}`<br>
47
+
`RfProtocol27 1`
48
+
<br> will enable protocol 27 `stat/tasmota_D728A8/RESULT {"RfProtocol":"1,3,27"}`<br>
If you have an RF receiver configured, a message will be logged each time an RF code is seen. RF driver will try to decode it against all protocols supported by rc-switch library.
0 commit comments