Open patrickjane opened 3 years ago
Any progress with your problem. I have exactly the same problem with different rf sensors. Have you made any progress yourself. The information on this is very poor for such a complicated process which requires a understanding of lots of different subjects. Most are things that we don't normally have any need to get acquainted with.
Nope, actually gave up on this.
Hi @patrickjane,
I'm also trying to decode some 433 sensor data, and have similar issues understanding the wiki guide, especially "buckets" and "nibbles".
My captured data also contains similar RF data part like yours, but when I try to remove the "high/low bucket marking by doing a logical and by 0x77 with each data byte" I get non-binary result:
81828281828282828282818282828282828282828181818181818181828282828282828283
after conversion, I get this, which is definitely non-binary:
01020201020202020202010202020202020202020101010101010101020202020202020203
How did you do the & 0x77 operation exactly?
- In the end, it seems like the numbers from 11) shall be converted using
& 0x77
with each "number", e.g. this would equal:8182808382808282808082808280828082828080828082828080828082828082808082808280828280828080828280828082808280808280828280808280828280 1010001010001010000010001000100010100000100010100000100010100010000010001000101000100000101000100010001000001000101000001000101000
Hello,
I have bought several wall switches, and I would like to integrate them into my smart home. I have already tried sniffing the B1 codes using
rfraw 177
, and I will get something like:Now, I saw that it is possible to define new protocols, so I thought maybe I can try this.
Is my understanding correct, that, when properly added, a new protocol leads to the tasmota software beeing able to spit out "normal" codes/payloads without using the
rfraw
modes, e.g. like{"Sync":14110,"Low":420,"High":1360,"Data":"E2BC0E","RfKey":"None"}
?If so, I would have several questions, since the documentation for adding new protocols is not 100% clear to me, and I am not familiar with RF protocols.
1) What does The longest bucket found is taken as sync bucket and is placed as first bucket number in the sniffed data: ->3<- 818190908181908190909090908190819081818190909091A mean? My understanding of "bucket" is "block of bytes", and in e.g.
AA B1 05 015E 0AB4 04C4 00F0 2814 481828383828382828383828382838283828280838283828280838283828280828083828382838282808280838282808280828082808382838282808382838282838 55
the "longest bucket" is the one starting with48182...
. So this whole block should be the "sync bucket"? Then what does "is placed as first bucket number in the sniffed data" mean? Does it mean I should simply use the first number of the bucket, e.g.4
? (for what?)2) In the documentation for the "second sync bucket" it seems like I should still operate on the
48182...
block ("the sync bucket"), while there its referred to as "second sync bucket"? (really, I think just the usage of the word "bucket" is causing major confusion for me). So it seems like I should either use the last number of the longest bucket (8
) or I should use the second number (8
). Which one must be found out by trial and error I guess?3) Chapter "decode RF data" states For this example each bit do have two buckets.. Again the word "bucket" is confusing me, since I thought bucket is a sequence of bytes, so how can a bit have 2 buckets? It is unclear to me what I shall do in this step also withe continued explanation in the chapter.
Example
From what I understand, I shall do the following: 1) Take, for example,
AA B1 05 014A 0AD2 04E2 00F0 2832 481828083828082828080828082808280828280808280828280808280828280828080828082808282808280808282808280828082808082808282808082808282808 55
2) First bucket (AA
) is the uart sync init, second one is uart command, third one indicates we have 5 buckets 3)014A
indicates Bucket 0 length: 330 4)0AD2
indicates Bucket 1 length: 2770 5)04E2
indicates Bucket 2 length: 1250 6)00F0
indicates Bucket 3 length: 240 7)2832
indicates Bucket 4 length: 10290 8) The sync bucket: I shall use4
, since its the first number in the 6th bucket / longest bucket 9) Second sync bucket: I shall use8
(equals second as well as last number of the 6th bucket / longest bucket) 10) This means48
"are the sync buckets" (again, the word "bucket" is confusing me) 11) I shall remove the first and the last number of the 6th bucket in order to decode the RF data. E.g. I shall use8182808382808282808082808280828082828080828082828080828082828082808082808280828280828080828280828082808280808280828280808280828280
12) I cannot understand the rest of the instructions which refer to "long high followed by short low", bit 0 and bit 1, and what I shall do with it 13) In the end, it seems like the numbers from 11) shall be converted using& 0x77
with each "number", e.g. this would equal:= 32 bit Is that correct!?
14) I dont understand how to evaluate BIT0 and BIT1 15) How do I know whether or not there is a pause between transmit repeats?
If someone could help me out I would be happy :)