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

Recevier improvements - setReceiveUsingProtocolTiming() and setReceiveUnknownProtocol() #418

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pierzogad
Copy link

@pierzogad pierzogad commented May 8, 2021

  • setReceiveUsingProtocolTiming()

This library is using initial synchronisation pulse to determine base delay value used for decoding data. Some cheap transmitters use slightly shorter synchronisation pulse and, as a result, system is unable to recognize the data sent.

Setting setReceiveUsingProtocolTiming(true) tells library to use standard delay for protocol (e.g. 350 microseconds for protocol 1) to decode input.
This makes receiver more robust - able to receive data that otherwise was ignored.

  • setReceiveUnknownProtocol()

This is used as debugging aid only.
When system is unable to recognize any valid protocol it produces no output. It is difficult to tell is system didn't receive any data or was unable to decode it.
With setReceiveUnknownProtocol(true) you can see the dump of timers even if no valid protocol was recognized. The ReceiveDemo_Advanced example was updated to use it.

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

Successfully merging this pull request may close these issues.

1 participant