Giter Club home page Giter Club logo

Comments (5)

jcrona avatar jcrona commented on August 17, 2024

Could you please attach the kernel panic logs ?

from rf-ctrl.

Irdroid avatar Irdroid commented on August 17, 2024

Unfortunately the unit freezes without showing any syslog information and it reboots after a while .

The above happens also with repeat frames > 10 . Does it have something to do with priority (e.g the rf send applications get a greater priority for some reason)

from rf-ctrl.

jcrona avatar jcrona commented on August 17, 2024

Maybe a watchdog that triggers a reboot. I suspect that the driver blocks the kernel for too long when it sends the frames. The ook-gpio driver uses udelay() and blocks the IRQs to achieve good timings. This was the fastest/dirty way to do it, but clearly not the best, even if it works well for my needs on the AR9331.

You could try to block and restore the IRQs at the beginning and end of each frame instead of the whole transmission, but it would not help for RAW protocols like Somfy.
The best thing, I think, would be to implement the same behaviour using hrtimers, and see if it works. For that, you might first try to experiment with usleep_range() which is backed by hrtimers.

from rf-ctrl.

Irdroid avatar Irdroid commented on August 17, 2024

I have discovered that every command is send 10 times in code for the somfy driver. It works well if the command is sent just once, and the gpio kernel module is not blocking the kernel

from rf-ctrl.

jcrona avatar jcrona commented on August 17, 2024

Glad to hear it !
However, the real somfy remote sends the command 10 times IIRC. So even if it works, the right approach would be to fix the kernel module.

I will probably do it at a point .

from rf-ctrl.

Related Issues (3)

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.