From lorenl@alzatex.com Sun Jun 15 01:03:48 2003 From: lorenl@alzatex.com (Loren M Lang) Date: Sat, 14 Jun 2003 17:03:48 -0700 (PDT) Subject: [cpia] Intel QX3 Microscope Button Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there any easy way to use the button on the intel QX2 microscope? I noticed that the proc interface has an entry which will tell me the state of the button at the moment I read it, but then I would have to constantly be reading the proc file and doing so quite often if I want to catch the button press. Is there any other more interrupt driven method of doing this? - -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+67f6+vN6RuSjKAwRAuB7AKClqznjD/I/36IAiLgU4T4K3xE/KACeMG/6 93nu/HUEc1XtyluqsUPnvn0= =7jQJ -----END PGP SIGNATURE----- From f.duncan.m.haldane@worldnet.att.net Mon Jun 16 04:31:27 2003 From: f.duncan.m.haldane@worldnet.att.net (Duncan Haldane) Date: Sun, 15 Jun 2003 23:31:27 -0400 (EDT) Subject: [cpia] Intel QX3 Microscope Button In-Reply-To: Message-ID: Hi I have a QX3, but I'm not sure what the button is supposed to do. I think holding it pressed down is supposed to record a movie, just pressing it takes a snapshot (in the wwidows driver). There is some sample code in http://webcam.sourceforge.net/docs/qx3_cmd.pdf which appears to be implemented in cpia.c, at least to the extent that the driver "knows" if the button is pushed or not (and if the microscope is cradled or not). All that the driver does with this information ar present is record it in /proc/cpia/video Basically the only QX3-specific features in the cpia driver that are currently useful are the controls for switching the lights on and off. (The cpia-control program for using the /proc/interface is good for this). IF the Video4Linux (V4L) defines calls corresponding to "start recording a movie", "stop recording a movie" or "take a snapshot" correspond to calls defined in the Video4Linux interface, it might be easy to add appropriate calls in cpia.c when the button is pressed/released. (?) (But I dont know the v4l interface well; people on the video4linux-list might be able to comment whether v4l defined such calls) On 15-Jun-2003 Loren M Lang wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Is there any easy way to use the button on > the intel QX2 microscope? I noticed that > the proc interface has an entry which will > tell me the state of the button at the > moment I read it, but then I would have to > constantly be reading the proc file and > doing so quite often if I want to catch the > button press. Is there any other more > interrupt driven method of doing this? > > - -- > I sense much NT in you. > NT leads to Bluescreen. > Bluescreen leads to downtime. > Downtime leads to suffering. > NT is the path to the darkside. > Powerful Unix is. > > Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc > Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > > iD8DBQE+67f6+vN6RuSjKAwRAuB7AKClqznjD/I/36IAiLgU4T4K3xE/KACeMG/6 > 93nu/HUEc1XtyluqsUPnvn0= > =7jQJ > -----END PGP SIGNATURE----- > > _______________________________________________ > cpia mailing list - cpia@risc.uni-linz.ac.at > http://mailman.risc.uni-linz.ac.at/mailman/cgi-bin/listinfo/cpia ---------------------------------- E-Mail: Duncan Haldane Date: 15-Jun-2003 Time: 22:36:15 This message was sent by XFMail ---------------------------------- From Peter_Pregler@email.com Mon Jun 16 10:47:09 2003 From: Peter_Pregler@email.com (Peter Pregler) Date: Mon, 16 Jun 2003 11:47:09 +0200 Subject: [cpia] Intel QX3 Microscope Button In-Reply-To: References: Message-ID: <20030616114709.3c2b9085.Peter_Pregler@email.com> On Sun, 15 Jun 2003 23:31:27 -0400 (EDT) Duncan Haldane wrote: > Hi > > I have a QX3, but I'm not sure what the button is supposed to do. > I think holding it pressed down is supposed to record a movie, just pressing it > takes a snapshot (in the wwidows driver). That is a user-space task and not something to be done in kernel-space. All the kernel should do is provide an interface for applications to check for such an event in an efficient way (i.e. no busy-wait loop via /proc but some open/close/select on a device). So the first step is to see if v4l/v4l2 is ready for such a function. I think v4l2 should provide something in that direction since it is needed for synchronised recording (v4l most probably does not) . -Peter