Coder Social home page Coder Social logo

Comments (5)

ArminJo avatar ArminJo commented on May 25, 2024

Thanks for reporting.
I documented it in the sources now.
IRDATA_FLAGS_IS_AUTO_REPEAT means: The current repeat frame is a repeat, that is always sent after a regular frame and cannot be avoided. Only specified for protocols DENON, and LEGO.
IRDATA_FLAGS_IS_REPEAT means: The gap between the preceding frame is as smaller than the maximum gap expected for a repeat. !!!We do not check for changed command or address!!!

from arduino-irremote.

Franck78 avatar Franck78 commented on May 25, 2024

We do not check for changed command or address!!!

ah, maybe at link level most of this info (IRDATA_FLAGS) is useful. But at application level, there is no use for this.

This detection can be done at app level but really each decoder is the most suited place to do it accurately .

Can you think of it please ? Use bit 0x20 for that.

from arduino-irremote.

ArminJo avatar ArminJo commented on May 25, 2024

In many protocols, it is not possible to distinguish between two fast presses of the same button and one long press.
And it is almost not possible to press 2 different buttons on the remote within around 100 ms.
And the check consumes around 85 bytes of program memory.

from arduino-irremote.

Franck78 avatar Franck78 commented on May 25, 2024

Yeah, but as you know, you also wrote the Sender. And the sender has no problem sending codes at 'normal' throughput. Inserting a fake 'human' delay makes zero sense.

Detecting this reliably is mandatory. Without that, it simply means that all Senders can be removed from the repo except for one that has to be to made resistant to this usage.

The advantage of having them all (for sending) is choosing the one with less resources usage on one side, or best error detection, or shorter frames or compatible with the boxe of remote you mistakenly ordered ;)

At least do it between ifdefs for one protocol (say RC6). It will be 500% better done than any other contrib.

from arduino-irremote.

Franck78 avatar Franck78 commented on May 25, 2024

ArminJo added theses lines in commit ad0425f

and every decoded protocol is calling it.

#if defined(ENABLE_FULL_REPEAT_CHECK)
            && decodedIRData.address == lastDecodedAddress && decodedIRData.command == lastDecodedCommand /* requires around 85 bytes program space */
#endif

IRDATA_FLAGS_IS_REPEAT can be trusted.

from arduino-irremote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.