[cpia] Intel QX3 Microscope Button

Duncan Haldane f.duncan.m.haldane@worldnet.att.net
Sun, 15 Jun 2003 23:31:27 -0400 (EDT)


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<n>

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 <f.duncan.m.haldane@worldnet.att.net>
Date: 15-Jun-2003
Time: 22:36:15

This message was sent by XFMail
----------------------------------