Giter Site home page Giter Site logo

Comments (4)

jcarduino avatar jcarduino commented on August 28, 2024

I think validation should be done during handling events callback. Made some changes to callback to also take p->bits_per_row. So now we can use bits per row to check for validity.

pmw_d_decode and pmw_p_decode have been changed :

events+=p->callback(p->bits_buffer, p->bits_per_row);

so now bits_per _row are available for usage.

For this a change has been made to structure protocol_state:
int (*callback)(uint8_t bits_buffer[BITBUF_ROWS][BITBUF_COLS],int16_t bits_per_row[BITBUF_ROWS]);

Now you can use the check to exit callback when called and not appropriate.

comments are welcome...

from rtl_433.

rct avatar rct commented on August 28, 2024

I think this is a good idea, and a fairly small change to the current code that will allow callbacks to better validate the message.

I do think a bigger change is required that better uses timing parameters to better classify the signal rather than calling every call back is necessary. But that's a bigger rewrite. In the meantime, just adding the bits per row is a small/worthwhile change to the current code base.

Thanks.

from rtl_433.

Batilan avatar Batilan commented on August 28, 2024

Please also see my issue #78 I think if we can get the plugin infra implemented also for the PWM decoders we can more easily develop and test this without having to change all plugins. Like @rct mentions bigger changes are probably required to further improve validation of devices and make the software more scalable.

from rtl_433.

merbanan avatar merbanan commented on August 28, 2024

The new analyzer -A and demodulator configuration makes this better.

from rtl_433.

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.