Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ignore a bit in flex decoder? #2779

Open
schumar opened this issue Jan 4, 2024 · 4 comments
Open

How to ignore a bit in flex decoder? #2779

schumar opened this issue Jan 4, 2024 · 4 comments

Comments

@schumar
Copy link

schumar commented Jan 4, 2024

I have this signal

It's 16 bit, repeated 6 times (bits are inverted). My issue is the second pulse that is sent between the repetitions, the 988-H 4264-L one. It gets interpreted as an additional 0 bit, thus decoded I get EA D5 / 75 6A 80 / 75 6A 80 / 75 6A 80 / 75 6A 80 / 75 6A 80 / instead of the EA D5 / EA D5 / EA D5 / EA D5 / EA D5 / EA D5 I need.

Does the decoder have support for this?

@zuckschwerdt
Copy link
Collaborator

Set the gap limit (e.g. 1500 as 1000 µs is the observed maximum) and you get sync on their own rows.

@schumar
Copy link
Author

schumar commented Jan 4, 2024

Thanks for the quick reply, @zuckschwerdt ; but with that I get additional rows containing a 0 bit, e.g. EA D5 / / 00 / EA D5 / / 00 / EA D5 / / 00 / EA D5 / / 00 / EA D5 / / 00 / EA D5 / /

@klohner
Copy link
Contributor

klohner commented Jan 8, 2024

Would you be able to attach a .cu8 of one of these samples?

@klohner
Copy link
Contributor

klohner commented Jan 8, 2024

I've had luck with similar situations by going down the path of doing an initial PCM decode (instead of PWM) and then decoding the bits in each PWM set using symbol_one and symbol_zero. Without looking at one of your .cu8 files, this is just a guess, but here's something that might get you started:

-X "n=MyDevice,m=OOK_PCM,s=496,l=496,r=3000,bits=58,symbol_one={3}8,symbol_zero={3}c"
or if you want the inversion:
-X "n=MyDevice,m=OOK_PCM,s=496,l=496,r=3000,bits=58,symbol_one={3}c,symbol_zero={3}8"

Here's what I get trying to decode the raw data in your PDV link using the -y parameter.

rtl_433 -X "n=MyDevice,m=OOK_PCM,s=496,l=496,r=3000,bits=58,symbol_one={3}8,symbol_zero={3}c" -y AAB10501F403DC07DC10A84F1481818190819081908181908190819081A39381818190819081908181908190819081A39381818190819081908181908190819081A39381818190819081908181908190819081A39381818190819081908181908190819081A39381818190819081908181908190819081A455

time      : 2024-01-08 12:38:42
model     : MyDevice     count     : 1             num_rows  : 1             rows      :
len       : 16           data      : ead5
codes     : {16}ead5
[...repeated 6 times...]

You may need to tweak the reset and bits values for your actual signal.

If this device can send different signals based on different conditions or button presses, look into the "get" methods to decode that data as well. For example:

rtl_433 -X "n=MyDevice,m=OOK_PCM,s=496,l=496,r=2000,bits>=51,symbol_one={3}8,symbol_zero={3}c,get=ID:@0:{8}:%02x,get=Something:@8:{4}:,get=SomethingElse:@12:{4}:[5:Button_1 6:Button_2]" -y AAB10501F403DC07DC10A84F1481818190819081908181908190819081A39381818190819081908181908190819081A39381818190819081908181908190819081A39381818190819081908181908190819081A39381818190819081908181908190819081A39381818190819081908181908190819081A455

time      : 2024-01-08 12:58:48
model     : MyDevice     count     : 1             num_rows  : 1             rows      :
len       : 16           data      : ead5          ID        : ea            Something : 13            SomethingElse: Button_1
codes     : {16}ead5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants