Answer the question
In order to leave comments, you need to log in
How to organize high-level logic over linux drivers?
Hello.
There is a driver (a set of drivers), suppose in the form of /dev/* character devices, it is necessary to implement complex logic on them. This means that some layer must check the status of the drivers (for example, through poll or select (what it is doing at the moment) and understand from the embedded program what needs to be corrected from the current state and send commands (for example, via ioctl).
This layer can change from session to session.I
suppose that you should take and write your own interpreter, however, there is no understanding how to organize work even in this case.How to
organize such a system?
===== UPD
The task can be formulated as follows:
There is an antenna. A set of hardware for working with it is presented in the form of drivers. Each session with the antenna is individual and the actions during the session may change (for example, dynamically change the priority of actions). It is necessary to implement a tool that will allow you to program the session and work with data.
Answer the question
In order to leave comments, you need to log in
Try to describe your original task, otherwise you wrote the desired implementation curve and it's not even clear what to advise.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question