Re: cpia driver for microscope: any success?
On 23 April 2011 00:08, K. K. Subramaniam kksubbu...@gmail.com wrote: On Tuesday 19 Apr 2011 12:03:38 am Cherry Withers wrote: I had much success with the Veho 004, but at now $99 a piece I can't afford to buy more of them for my trip to the Philippines this June. This is actually good because it serves as a warning sign of going off-track ;-). Lasting learning outcomes come out of using locally available materials for experiments - like fashioning a magnifier by filling a discarded tungsten lamp with clear water or making one out of clean sheet of plastic etc. How about taking a couple of lenses or jeweller's eyepieces and then using digicam or cameraphone (with macro feature)? The combo is harder to get working but such hard fun should be part of learning. That's basically the approach described at http://wiki.laptop.org/go/Microscope#Overview_-_The_.241_video_microscope Sridhar Dhanapalan Technical Manager One Laptop per Child Australia M: +61 425 239 701 E: srid...@laptop.org.au A: G.P.O. Box 731 Sydney, NSW 2001 W: www.laptop.org.au ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: cpia driver for microscope: any success?
On Tuesday 19 Apr 2011 12:03:38 am Cherry Withers wrote: I had much success with the Veho 004, but at now $99 a piece I can't afford to buy more of them for my trip to the Philippines this June. This is actually good because it serves as a warning sign of going off-track ;-). Lasting learning outcomes come out of using locally available materials for experiments - like fashioning a magnifier by filling a discarded tungsten lamp with clear water or making one out of clean sheet of plastic etc. How about taking a couple of lenses or jeweller's eyepieces and then using digicam or cameraphone (with macro feature)? The combo is harder to get working but such hard fun should be part of learning. Subbu ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: cpia driver for microscope: any success?
On Sun, 2011-03-06 at 18:15 -0500, Chris Ball wrote: Hi, On Sun, Mar 06 2011, Cherry Withers wrote: Hi Folks, I'm starting to figure out that because the Intel QX3 microscope has an CPiA chipset, it may not be supported by cheese (which takes V4L/V2L devices) but needs a special cpia driver that can be found in: http://webcam.sourceforge.net/ This is outdated information (site last updated in 2003!). The drivers have been merged into the main Linux kernel now; it looks like you just need to turn on CONFIG_USB_GSPCA_CPIA1=m and build gspca_cpia1.ko from drivers/media/video/gspca/cpia1.c. Since our kernels already have CONFIG_USB_GSPCA=m, you can build this module without having to recompile your current kernel. Thanks Chris, I'm helping Cherry, getting this driver compiled. She's using a 2.6.31 kernel (the 10.1.3 build I think) which doesn't have the gspca_cpia1 driver. I looked into back-porting the driver to 2.6.31, there's only a handful of compile errors but it still might be more work than it's worth. I did a quick trial with the v4l1 cpia driver and it works with gstreamer, so it's just a matter of getting cheese to detect it. My initial investigation leads me to believe that cheese uses HAL to detect v4l capable devices and the QX3 isn't showing up as v4l capable, so I'll look into this a bit more. Any other ideas are welcome :) -Aaron ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: cpia driver for microscope: any success?
My sincere thanks to Aaron for taking this on!! I had much success with the Veho 004, but at now $99 a piece I can't afford to buy more of them for my trip to the Philippines this June. I have 2 of these Intel Play from 5 years ago that still work perfectly well with Windows but hoping they get more use by kids in the Philippines. They are also much cheaper (some going for $15 each on eBay). Somebody forwarded this UI that might work if I had the modules set-up (which I really don't have a clue how to do): http://sourceforge.net/projects/qtx3/ Might not work with Sugar but it looks like it can work with GNOME? Grateful, Cherry On Mon, Apr 18, 2011 at 7:25 AM, Aaron Borden adbor...@live.com wrote: On Sun, 2011-03-06 at 18:15 -0500, Chris Ball wrote: Hi, On Sun, Mar 06 2011, Cherry Withers wrote: Hi Folks, I'm starting to figure out that because the Intel QX3 microscope has an CPiA chipset, it may not be supported by cheese (which takes V4L/V2L devices) but needs a special cpia driver that can be found in: http://webcam.sourceforge.net/ This is outdated information (site last updated in 2003!). The drivers have been merged into the main Linux kernel now; it looks like you just need to turn on CONFIG_USB_GSPCA_CPIA1=m and build gspca_cpia1.ko from drivers/media/video/gspca/cpia1.c. Since our kernels already have CONFIG_USB_GSPCA=m, you can build this module without having to recompile your current kernel. Thanks Chris, I'm helping Cherry, getting this driver compiled. She's using a 2.6.31 kernel (the 10.1.3 build I think) which doesn't have the gspca_cpia1 driver. I looked into back-porting the driver to 2.6.31, there's only a handful of compile errors but it still might be more work than it's worth. I did a quick trial with the v4l1 cpia driver and it works with gstreamer, so it's just a matter of getting cheese to detect it. My initial investigation leads me to believe that cheese uses HAL to detect v4l capable devices and the QX3 isn't showing up as v4l capable, so I'll look into this a bit more. Any other ideas are welcome :) -Aaron ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: cpia driver for microscope: any success?
Martin: I will do that. Of course I don't know how to file a bug report. I believe I have a user ID, but will have to play for a bit, methinks. All my previous issues were due to user ignorance, or user error, with me being the user :-) Just to clarify, your list of the issue events is perfect. But, it's only the image *inside* the cheese frame that freezes, not the XO machine, the application or the projector, just the camera image. Also, its the same symptoms inb Sugar, not just Gnome. One can just close cheese, open guvcview and carry on in the same session. But guvcview requires a bit of work on F11 to install, much more work for a non-technical person than just a 'yum install cheese' requires. Off to bug report land! Cheers KG On Mon, Mar 7, 2011 at 9:52 AM, Martin Langhoff martin.langh...@gmail.comwrote: On Sun, Mar 6, 2011 at 8:12 PM, Kevin Gordon kgordon...@gmail.com wrote: just help me with another issue. Cheese image freezes 100% of the time on the XO 1.0 and XO 1.5, on either Sugar or Gnome when the machine is also displaying through an external USB2VGA monitor. Doesnt matter whether there is an external camera, or the built-in - image is frozen. Kevin, you are saying that - build 10.1.3 - boot XO with a supported USB2VGA adapter - no other usb devices attached - get to gnome - start cheese - freeze? can you confirm, and file a bug about this with more detail? It sounds like cheese/gstreamer are probing the usb bus or its devices, and do something stupid with the USB2VGA adapter. cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: cpia driver for microscope: any success?
On Tue, Mar 8, 2011 at 1:01 PM, Kevin Gordon kgordon...@gmail.com wrote: Just to clarify, your list of the issue events is perfect. But, it's only the image *inside* the cheese frame that freezes, not the XO machine, the application or the projector, just the camera image Important clarification -- thanks! USB2VGA does _not_ support a special mode called Xv that you normally use to display images from a camera. It may be that cheese misbehaves when Xv is not supported. Logs from cheese will be interesting to read. Does Record inside Sugar work well? It does for me, and that means it tries Xv and fallsback properly. m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: cpia driver for microscope: any success?
On Sun, Mar 6, 2011 at 8:12 PM, Kevin Gordon kgordon...@gmail.com wrote: just help me with another issue. Cheese image freezes 100% of the time on the XO 1.0 and XO 1.5, on either Sugar or Gnome when the machine is also displaying through an external USB2VGA monitor. Doesnt matter whether there is an external camera, or the built-in - image is frozen. Kevin, you are saying that - build 10.1.3 - boot XO with a supported USB2VGA adapter - no other usb devices attached - get to gnome - start cheese - freeze? can you confirm, and file a bug about this with more detail? It sounds like cheese/gstreamer are probing the usb bus or its devices, and do something stupid with the USB2VGA adapter. cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
cpia driver for microscope: any success?
Hi Folks, I'm starting to figure out that because the Intel QX3 microscope has an CPiA chipset, it may not be supported by cheese (which takes V4L/V2L devices) but needs a special cpia driver that can be found in: http://webcam.sourceforge.net/ The readme file looks very confusing and scary to me and requires more knowledge of kernel which I don't have. I have two of these microscopes and 1 more may be on the way and would love to use this with our Philippines deployment. Anyone here who can help me out with this? Or just tell me from the README file that it's absolutely not going to work with an XO? Much obliged, Cherry On Thu, Jan 20, 2011 at 3:20 PM, Kevin Gordon kgordon...@gmail.com wrote: Folks: We've been able to get the Veho USB 400x 1.3Mp/2.0Mp interpolated to work on the XO 1 and XO 1.5 under 10.1.3 with 'Cheese'. However, with this high resolution webcam, you just need to make sure it attaches itself to the USB 2.0 bus. If for some reason it comes up and attaches to the 1.1 bus, one gets get what looks like a 1970's color TV test pattern when starting the camera software.. I can't speak to the specifics of the DIgiMicro; we bought a bunch of different microscope samples from various HK based ebay vendors before standardizing on the Veho. It is fully uvc compliant and also works on Ubuntu, Windows and the Mac. On Ubuntu, we use guvcview to control it. Due to the fact we needed to support multi-continent co-curricula, we needed one that ran everywhere on everything. It can cost between $40 and $75 from ebay depending on the day of the week, it seems. Be careful, the one one wants is the '004' product not the '001' or '004'. On the XO, Mikus Grinbergs has since done some magic for us to get guvcview to load on the XO, since guvcview only has an Fc12, 686 RPM. It gets more complicated since some of the dependencies for guvcview need the FC12/686 rpm versions which one has to go out and find manually, while other dependencies need the FC11/586 standard repo versions. For us, we are still in the process of bullet-proofing this so young users can mod their 10.1.3 box to install guvcview. guvcview has way more user-definable parameters than does Cheese. So, for simplicity, one can just install Cheese for now. It works from Sugar if called from the terminal prompt. It wont run properly as root, just stay as default OLPC user., dont know why, dont really care. Personally I run as little as possible as root.A bunch of weird messages come up once invoked from Sugar, but it does eventually come up. It will flash the built-in cafe camera light then proceed over to the USB camera. You can edit the preferences in Cheese to default to the USB camera. If the USB camera isnt seen in teh camera device drop-down, then for some reason it isn't being handled properly at the driver level. In terminal, check the output of the lsusb command, the camera should be seen there with a nice description and USB vendor./eqpt number. Once you are doen in cheese on the the sugar side, unfortunately you have to stop it 'inelegantly'' as it has no sugar activity button. You can use the ctrl-q, or function key back to the activity wheel and kill it from there. However, this seems to leave a little stub up and running, so you may have to reboot to get it going again. On the other hand the successful yum install of cheese puts itself nicely into the graphics submenu on the Gnome side, and behaves nicely there. You can then save your microscope photos ot the fiel system (preferably on an external SD card or a USB stick, then look at the photos from the Sugar side. Just remember INSTALL it as root, but run it as the normal default user. Summary. USB uvc compliant webcams (microscopes) should just plug in and be seen by both the XO 1.0 and XO 1.5. Then yum install cheese, and use the Gnome side to do any 'photos'. All caveats with respect to the snails-pace of the yum install are still in effect ont the 1.0, we do a yum install downloadonly to a stick on a 1.5 (which does yum nicely), then yum localinstall from the stick to all the XO 1.0's to eliminate those install hanging and memory full issues. As an added benefit, Cheese has no other dependencies when installed to 10.1.3. For those who saw our little tech-geek table at the SF summit, this is exactly what we were demoing on the 1.5. Daniel Drake and Paul Fox have since done yeomen effort to bring the uvc, sisusb, and ldusb drivers all back into sync on the 1.0's and 1.5s at 10.1.3 . Have fun, it really is cool stuff. KG O n Thu, Jan 20, 2011 at 5:45 PM, Mike Lee curious...@gmail.com wrote: [Copying everyone.] I haven't tried this with the new 10.1.3. But before that, it didn't work on the XO-1 without having to get into kernal hacking. Paul Fox confirmed that they are looking into adding support. I don't know if they have. I bought my Digimicro from DealExtreme for
Re: cpia driver for microscope: any success?
Hi, On Sun, Mar 06 2011, Cherry Withers wrote: Hi Folks, I'm starting to figure out that because the Intel QX3 microscope has an CPiA chipset, it may not be supported by cheese (which takes V4L/V2L devices) but needs a special cpia driver that can be found in: http://webcam.sourceforge.net/ This is outdated information (site last updated in 2003!). The drivers have been merged into the main Linux kernel now; it looks like you just need to turn on CONFIG_USB_GSPCA_CPIA1=m and build gspca_cpia1.ko from drivers/media/video/gspca/cpia1.c. Since our kernels already have CONFIG_USB_GSPCA=m, you can build this module without having to recompile your current kernel. - Chris. -- Chris Ball c...@laptop.org http://printf.net/ One Laptop Per Child ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: cpia driver for microscope: any success?
Cherry: I was not able to get that particular Intel microscope to work with Cheese on my little Ubuntu 10.04 Lenovo either. The Ubuntu folk told me that it was not UVC compliant. That it was CPIA instead of V4L didnt seem to interest them. Their support ceased at the non-UVC statement. I am not deep enough down in the terminology to confirm or deny the theory. What I can say is that neither guvcview nor cheese can 'see' that specific microscope on non-customized F11/OLPC or Ubuntu 10.04. Whether it could on the customization suggested by Chris, I have not tested. Sorry, KG On Sun, Mar 6, 2011 at 6:15 PM, Chris Ball c...@laptop.org wrote: Hi, On Sun, Mar 06 2011, Cherry Withers wrote: Hi Folks, I'm starting to figure out that because the Intel QX3 microscope has an CPiA chipset, it may not be supported by cheese (which takes V4L/V2L devices) but needs a special cpia driver that can be found in: http://webcam.sourceforge.net/ This is outdated information (site last updated in 2003!). The drivers have been merged into the main Linux kernel now; it looks like you just need to turn on CONFIG_USB_GSPCA_CPIA1=m and build gspca_cpia1.ko from drivers/media/video/gspca/cpia1.c. Since our kernels already have CONFIG_USB_GSPCA=m, you can build this module without having to recompile your current kernel. - Chris. -- Chris Ball c...@laptop.org http://printf.net/ One Laptop Per Child ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: cpia driver for microscope: any success?
Hi, On Sun, Mar 06 2011, Kevin Gordon wrote: I was not able to get that particular Intel microscope to work with Cheese on my little Ubuntu 10.04 Lenovo either. The Ubuntu folk told me that it was not UVC compliant. That it was CPIA instead of V4L didnt seem to interest them. Cheese definitely talks to V4L2 (via gstreamer), and not to UVC, so I expect that you just need to build gspca_cpia1.ko too. -- Chris Ball c...@laptop.org http://printf.net/ One Laptop Per Child ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: cpia driver for microscope: any success?
Chris: Tangentially, nowknowing that Cheese talks through different drivers might just help me with another issue. Cheese image freezes 100% of the time on the XO 1.0 and XO 1.5, on either Sugar or Gnome when the machine is also displaying through an external USB2VGA monitor. Doesnt matter whether there is an external camera, or the built-in - image is frozen. Guvcview, on the other hand, works just peachy, built-in or external with the Veho external monitor or not.. H. KG On Sun, Mar 6, 2011 at 7:34 PM, Chris Ball c...@laptop.org wrote: Hi, On Sun, Mar 06 2011, Kevin Gordon wrote: I was not able to get that particular Intel microscope to work with Cheese on my little Ubuntu 10.04 Lenovo either. The Ubuntu folk told me that it was not UVC compliant. That it was CPIA instead of V4L didnt seem to interest them. Cheese definitely talks to V4L2 (via gstreamer), and not to UVC, so I expect that you just need to build gspca_cpia1.ko too. -- Chris Ball c...@laptop.org http://printf.net/ One Laptop Per Child ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel