Coder Social home page Coder Social logo

Comments (3)

zeekhuge avatar zeekhuge commented on August 25, 2024

Hi ! I would like to help here. Can you please guide me ?

from libgpiod.

brgl avatar brgl commented on August 25, 2024

Hi @zeekhuge,

I have already started working on that. I currently need to get it to the point where it has at least basic functionalities, then I'll push a development branch (features/daemon probably) on which collaborative work can start.

What I have now is epoll-based daemon listening on multiple sockets (client connections, gpio events, signals etc.). I'm using libconfig for configuration files and libprotobuf-c for communication between the client application and the daemon.

from libgpiod.

clemensg avatar clemensg commented on August 25, 2024

Hi @brgl,

I have a similar use case. I currently use a hash table with a pointer to each gpiod_line I need to manage from a daemon.
The chips need to stay open during the runtime of the daemon for this to work (see my PR #11). I close them at the end. With this, I can open the chips and request the lines at daemon startup act and react to various events, get and set gpios by name during the daemon runtime and close them at daemon exit.

Maybe PR #11 could be useful for your features/daemon branch too? Or do you have an alternative approach in mind to avoid opening and closing the chips for each action?

from libgpiod.

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.