Comments (5)
Could you please attach the kernel panic logs ?
from rf-ctrl.
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rf-ctrl.