Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a camera that can be controlled via the serial port using Sony's VISCA protocol. I need a program that will setup the camera and be ready for when a user need to zoom the camera or change any other settings. This could for instance happen during a video conference. But, before one can talk to the camera, the connection to the camera needs to be set up. So you can't just dump instructions on the camera. So I thought I would write a daemon that will set up the camera and then wait for user requests that will be passed on to the camera.
Until now I've had my own library that does all the VISCA stuff which was linked into my apps. But I would like to be able to control the camera at any time from any app. That is the main objective.
However, maybe this isn't quite what daemons are meant to do? Should I use a daemon type program here or rather just a normal user-space program? Also, if I do use a daemon, is there any way I can send requests to it without using a TCP / UDP interface?
A daemon is a normal user space program. Or do you mean that the setup needs to be done in the kernel (e.g. in a driver running in kernel mode that controlds the camera?). To me, a daemon sounds like a reasonable approach. You can have it take commands via a named socket (which looks like a file on the filesystem, like MySQL uses) or even a named pipe.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.