LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-05-2005, 05:03 AM   #1
ZX_SA
LQ Newbie
 
Registered: May 2004
Location: Stellenbosch, South Africa
Distribution: Kubuntu breezy, MDK10.2
Posts: 26

Rep: Reputation: 15
Question daemon or not?


Hi

I'm faced with this question:

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?

Any advice will be appreciated.

Regards,
ZX_SA
 
Old 08-05-2005, 09:10 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 08-08-2005, 01:13 AM   #3
ZX_SA
LQ Newbie
 
Registered: May 2004
Location: Stellenbosch, South Africa
Distribution: Kubuntu breezy, MDK10.2
Posts: 26

Original Poster
Rep: Reputation: 15
No, it shouldn't need to run in kernel mode. I'll try using a daemon then. Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Daemon arunachalam Linux - Newbie 1 09-08-2005 06:22 AM
rsync daemon hverne Red Hat 6 06-04-2005 08:37 PM
rsync daemon hverne Fedora 1 05-27-2005 07:58 AM
daemon nobu Slackware 1 01-09-2003 08:02 AM
What is a daemon? nutshell Linux - General 3 02-26-2002 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration