From: Ezequiel A. Q. B. <equ...@in...> - 2010-02-18 18:01:40
|
Hello Player/Stage users! I'm working with: + Player 3.0.1 + Ubuntu 9.04 + Logitech QuickCam Sphere AF + C/C++ I'm trying to control this device from Player, to take pictures and blob detection. I've tried the 'sphere' driver, which is loaded correctly when I start Player but when I try to use the camera commands (like GetImageSize' or 'SaveFrame') from the control program, the player server give me these errors: > Setting up sphere driver > fg_open(): get framebuffer failed; ignoring: Invalid argument > fg_open(): get memory buffer: Invalid argument > error : Setup(): unable to open > error : Driver failed to Setup (-1) do you have any idea of why I'm getting these messages? do you know where can I find any working examples of use for this driver? or any other example for controlling this camera? Hope someone can help me out! Regards! |
From: Paul O. <new...@ki...> - 2010-02-18 18:28:59
|
Hi, This 'Invalid argument' message is caused by kernel API incompatibility: sphere driver uses old (V4L) API dropped somewhere around 2.6.18 kernel. I guess your version of Ubuntu is running newer kernel, so you need to use V4L2-compatible driver (one of camerav4l2, camerauvc, cvcam; AFAIR sphere camera sends mpeg streams so camerav4l2 is rather not capable to work with it). As V4L2 API allows to open camera device more than once at the same time, you can actually run two different drivers for two different functionalities (image vs ptz). Try to configure two drivers in your Player server instance: 1. camerauvc or cvcam driver for obtaining camera image 2. sphereptz for pan-tilt-zoom control For blob detection you can try to use cmvision or simpleshape driver. Paul On Thu, 18 Feb 2010, Ezequiel A. Quintero Barrios wrote: > Hello Player/Stage users! > > I'm working with: > + Player 3.0.1 > + Ubuntu 9.04 > + Logitech QuickCam Sphere AF > + C/C++ > > I'm trying to control this device from Player, to take pictures and > blob detection. I've tried the 'sphere' driver, which is loaded > correctly when I start Player but when I try to use the camera commands > (like GetImageSize' or 'SaveFrame') from the control program, the > player server give me these errors: >> Setting up sphere driver >> fg_open(): get framebuffer failed; ignoring: Invalid argument >> fg_open(): get memory buffer: Invalid argument >> error : Setup(): unable to open >> error : Driver failed to Setup (-1) > > do you have any idea of why I'm getting these messages? > do you know where can I find any working examples of use for this > driver? or any other example for controlling this camera? > > Hope someone can help me out! > Regards! > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |
From: Ezequiel A. Q. B. <equ...@in...> - 2010-02-18 18:53:08
|
Just saw this thread: http://sourceforge.net/mailarchive/message.php?msg_id=1255613029.8350.18.camel%40avalero-desktop which was a discussion about the same problem. Sorry I didn't see it before! I haven't been able to connect to the camera proxy, I'm getting this error: > playerc error : got NACK from request > playerc error : failed to get response > CameraProxy::CameraProxy()(-1) : could not subscribe Does anyone has used the driver "sphereptz" and can help out? Regards! "Ezequiel A. Quintero Barrios" <equ...@in...> dijo: > Hello Player/Stage users! > > I'm working with: > + Player 3.0.1 > + Ubuntu 9.04 > + Logitech QuickCam Sphere AF > + C/C++ > > I'm trying to control this device from Player, to take pictures and > blob detection. I've tried the 'sphere' driver, which is loaded > correctly when I start Player but when I try to use the camera > commands (like GetImageSize' or 'SaveFrame') from the control > program, the player server give me these errors: >> Setting up sphere driver >> fg_open(): get framebuffer failed; ignoring: Invalid argument >> fg_open(): get memory buffer: Invalid argument >> error : Setup(): unable to open >> error : Driver failed to Setup (-1) > > do you have any idea of why I'm getting these messages? > do you know where can I find any working examples of use for this > driver? or any other example for controlling this camera? > > Hope someone can help me out! > Regards! > > -- Máster en Ciencia y Tecnología Informática Grupo PLG (2.1.B16) Universidad Carlos III de Madrid |
From: Paul O. <new...@ki...> - 2010-02-18 19:23:36
|
Hi, sphereptz driver should not be used alone, you should configure camerauvc driver in your Player configuration file too, as a result, CameraProxy will be able to subscribe camera interface. Paul On Thu, 18 Feb 2010, Ezequiel A. Quintero Barrios wrote: > Just saw this thread: > http://sourceforge.net/mailarchive/message.php?msg_id=1255613029.8350.18.camel%40avalero-desktop > > which was a discussion about the same problem. Sorry I didn't see it > before! I haven't been able to connect to the camera proxy, I'm getting > this error: >> playerc error : got NACK from request >> playerc error : failed to get response >> CameraProxy::CameraProxy()(-1) : could not subscribe > > Does anyone has used the driver "sphereptz" and can help out? > > Regards! > > > "Ezequiel A. Quintero Barrios" <equ...@in...> dijo: > >> Hello Player/Stage users! >> >> I'm working with: >> + Player 3.0.1 >> + Ubuntu 9.04 >> + Logitech QuickCam Sphere AF >> + C/C++ >> >> I'm trying to control this device from Player, to take pictures and >> blob detection. I've tried the 'sphere' driver, which is loaded >> correctly when I start Player but when I try to use the camera >> commands (like GetImageSize' or 'SaveFrame') from the control >> program, the player server give me these errors: >>> Setting up sphere driver >>> fg_open(): get framebuffer failed; ignoring: Invalid argument >>> fg_open(): get memory buffer: Invalid argument >>> error : Setup(): unable to open >>> error : Driver failed to Setup (-1) >> >> do you have any idea of why I'm getting these messages? >> do you know where can I find any working examples of use for this >> driver? or any other example for controlling this camera? >> >> Hope someone can help me out! >> Regards! >> >> > > > > -- > Máster en Ciencia y Tecnología Informática > Grupo PLG (2.1.B16) > Universidad Carlos III de Madrid > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |
From: Ezequiel A. Q. B. <equ...@in...> - 2010-02-19 15:00:10
|
Hi Player/Stage list! [I'm working with a 'Logitech Quickcam Sphere AF', using 'Player 3.0.1' on 'Ubuntu 9.04'. C++] Thanks for all the help Paul!! I'm using 'camerauvc' for the camera operations and 'sphereptz' for the 'ptz' operations. The drivers seems to load correctly. I've been able to capture images from the camera but I'm not being able to move it... When I try to make this control code work: > client.Read(); > double p = ptz.GetPan(); double t = ptz.GetTilt(); double z = ptz.GetZoom(); > printf("p=%f, t=%f, z=%f \n", p,t,z); > ptz.SetCam(0.0, 30.0, 0.0); sleep(1); > client.Read(); t = ptz.GetTilt(); > printf("t=%f \n", t); I get this error messages from the Player server: > CameraUvc: Driver initialising > warning : opening /dev/video0 > warning : V4L2_CAP_READWRITE check failed (ignored) > error : VIDIOC_S_EXT_CTRLS failed on V4L2_CID_PAN_RESET_NEW > error : Driver failed to Setup (-1) > CameraUvc: Driver initialisation done > error : StopThread called when state != running or restarting (0) > closing TCP connection to client 0 on port 6665 And the 'tilt' value does not change. I get this on console: > p=0.000000, t=0.000000, z=0.000000 t=0.000000 I'm not sure of what does 'V4L2_CAP_READWRITE check failed' means... Do you have any idea of what is wrong? and what can I do to solve it? Greetings! |
From: Jennifer T. <jen...@gm...> - 2010-11-11 19:20:20
|
Ezequiel A. Quintero Barrios <equinter <at> inf.uc3m.es> writes: > > Hi Player/Stage list! > [I'm working with a 'Logitech Quickcam Sphere AF', using 'Player 3.0.1' > on 'Ubuntu 9.04'. C++] > > Thanks for all the help Paul!! > > I'm using 'camerauvc' for the camera operations and 'sphereptz' for the > 'ptz' operations. > The drivers seems to load correctly. > I've been able to capture images from the camera but I'm not being able > to move it... > > When I try to make this control code work: > > client.Read(); > > double p = ptz.GetPan(); double t = ptz.GetTilt(); double z = ptz.GetZoom(); > > printf("p=%f, t=%f, z=%f \n", p,t,z); > > ptz.SetCam(0.0, 30.0, 0.0); sleep(1); > > client.Read(); t = ptz.GetTilt(); > > printf("t=%f \n", t); > > I get this error messages from the Player server: > > CameraUvc: Driver initialising > > warning : opening /dev/video0 > > warning : V4L2_CAP_READWRITE check failed (ignored) > > error : VIDIOC_S_EXT_CTRLS failed on V4L2_CID_PAN_RESET_NEW > > error : Driver failed to Setup (-1) > > CameraUvc: Driver initialisation done > > error : StopThread called when state != running or restarting (0) > > closing TCP connection to client 0 on port 6665 > > And the 'tilt' value does not change. I get this on console: > > p=0.000000, t=0.000000, z=0.000000 t=0.000000 > > I'm not sure of what does 'V4L2_CAP_READWRITE check failed' means... > Do you have any idea of what is wrong? and what can I do to solve it? > > Greetings! > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > Hi all (especially Paul if he's still listening), I ran into the same issues as Ezequiel, I am on Ubuntu 10.10 with a shiny new installation of Player. I have run into a lot of issues with the new kernel change in a few areas, but anyway. I found the patch that was submitted and compared it to that installed with the current version of Player (v.3.0.2.) and sure enough it matches perfectly but the same problem is still there (for me anyway). I have checked the functionality of the camera itself and it works perfectly on guvcview, and I can access the camera end just fine through Player and camerauvc driver. The camera itself is very new, approximately 4 months old (although I have no idea how long it was sitting on a shelf before that). Anyway, does anyone know if any more work is being done on this or has anyone had more success than I have with a similar setup. Thanks in advance for any thoughts J |
From: Paul O. <new...@ki...> - 2010-11-12 10:34:11
|
W dniu 11.11.2010 20:14, Jennifer Treanor pisze: > Ezequiel A. Quintero Barrios <equinter <at> inf.uc3m.es> writes: > >> >> Hi Player/Stage list! >> [I'm working with a 'Logitech Quickcam Sphere AF', using 'Player 3.0.1' >> on 'Ubuntu 9.04'. C++] >> >> Thanks for all the help Paul!! >> >> I'm using 'camerauvc' for the camera operations and 'sphereptz' for the >> 'ptz' operations. >> The drivers seems to load correctly. >> I've been able to capture images from the camera but I'm not being able >> to move it... >> >> When I try to make this control code work: >>> client.Read(); >>> double p = ptz.GetPan(); double t = ptz.GetTilt(); double z = ptz.GetZoom(); >>> printf("p=%f, t=%f, z=%f \n", p,t,z); >>> ptz.SetCam(0.0, 30.0, 0.0); sleep(1); >>> client.Read(); t = ptz.GetTilt(); >>> printf("t=%f \n", t); >> >> I get this error messages from the Player server: >>> CameraUvc: Driver initialising >>> warning : opening /dev/video0 >>> warning : V4L2_CAP_READWRITE check failed (ignored) >>> error : VIDIOC_S_EXT_CTRLS failed on V4L2_CID_PAN_RESET_NEW >>> error : Driver failed to Setup (-1) >>> CameraUvc: Driver initialisation done >>> error : StopThread called when state != running or restarting (0) >>> closing TCP connection to client 0 on port 6665 >> >> And the 'tilt' value does not change. I get this on console: >>> p=0.000000, t=0.000000, z=0.000000 t=0.000000 >> >> I'm not sure of what does 'V4L2_CAP_READWRITE check failed' means... >> Do you have any idea of what is wrong? and what can I do to solve it? >> >> Greetings! >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> > > > Hi all (especially Paul if he's still listening), > > I ran into the same issues as Ezequiel, I am on Ubuntu 10.10 with a shiny new > installation of Player. I have run into a lot of issues with the new kernel > change in a few areas, but anyway. I found the patch that was submitted and > compared it to that installed with the current version of Player (v.3.0.2.) and > sure enough it matches perfectly but the same problem is still there (for me > anyway). I have checked the functionality of the camera itself and it works > perfectly on guvcview, and I can access the camera end just fine through Player > and camerauvc driver. The camera itself is very new, approximately 4 months old > (although I have no idea how long it was sitting on a shelf before that). > Anyway, does anyone know if any more work is being done on this or has anyone > had more success than I have with a similar setup. > > Thanks in advance for any thoughts > J > > > Hi Jennifer, Recently I can hardly find time to spend on Player and this Sphere USB camera is treated like a toy here and used rarely (comparing to Sony EVID-30 cameras that we're using here) so I doubt I'll be able to help you. AFAIR I've released some patches for it based on guvcview code as much as possible - if the camera works with guvcview for you, we can assume that kernel version (API changes and so on) is not an issue in this case. I don't really know if and which Player release may contain relevant patch - I'm always working with SVN trunk and I'm pretty sure this change is there. Also try to use playerv client program and subscribe ptz interface there - I'm always testing devices with it and AFAIR this one worked right. Paul |
From: Jennifer T. <jen...@gm...> - 2010-11-12 13:50:40
|
Paul Osmialowski <newchief <at> king.net.pl> writes: > Hi Jennifer, > > Recently I can hardly find time to spend on Player and this Sphere USB > camera is treated like a toy here and used rarely (comparing to Sony > EVID-30 cameras that we're using here) so I doubt I'll be able to help > you. AFAIR I've released some patches for it based on guvcview code as > much as possible - if the camera works with guvcview for you, we can > assume that kernel version (API changes and so on) is not an issue in > this case. I don't really know if and which Player release may contain > relevant patch - I'm always working with SVN trunk and I'm pretty sure > this change is there. Also try to use playerv client program and > subscribe ptz interface there - I'm always testing devices with it and > AFAIR this one worked right. > > Paul > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Playerstage-users mailing list > Playerstage-users <at> lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/playerstage-users > Hi Paul, thanks for you time, I really appreciate it. I know they are not the most sophisticated cameras out there but our group isn't in a position to upgrade equipment right now. For example our robots are a fleet of Nomad Scout 150s to give you an idea with vintage of our equipment. I had double checked that your patch was included in the version of Player I was using but just to be sure to be sure, I installed the latest svn branch (namely release-3-0-patches) but with the same outcome unfortunately: listening on 6665 Listening on ports: 6665 accepted TCP client 0 on port 6665, fd 8 warning : opening /dev/video0 warning : V4L2_CAP_READWRITE check failed (ignored) warning : Adding control for [Pan (relative)] error : UVCIOC_CTRL_ADD - Error error : Driver failed to Setup (-1) CameraUvc: Driver initialising CameraUvc: Driver initialisation done error : StopThread called when state != running or restarting (0) when using the prescribed driver file as stated in the sphereptz driver itself and testing via playerv. I fully understand you are far too busy to work on this yourself at the moment, but if you had even any pointers as to a direction I should go in with this I would be very grateful. Of course if not, no worries at all, I'll look for a way around the issue. Thanks again for your notes and speedy responses. Jenny |
From: Paul O. <new...@ki...> - 2010-11-12 20:35:01
|
W dniu 12.11.2010 14:50, Jennifer Treanor pisze: > Paul Osmialowski <newchief <at> king.net.pl> writes: > > >> Hi Jennifer, >> >> Recently I can hardly find time to spend on Player and this Sphere USB >> camera is treated like a toy here and used rarely (comparing to Sony >> EVID-30 cameras that we're using here) so I doubt I'll be able to help >> you. AFAIR I've released some patches for it based on guvcview code as >> much as possible - if the camera works with guvcview for you, we can >> assume that kernel version (API changes and so on) is not an issue in >> this case. I don't really know if and which Player release may contain >> relevant patch - I'm always working with SVN trunk and I'm pretty sure >> this change is there. Also try to use playerv client program and >> subscribe ptz interface there - I'm always testing devices with it and >> AFAIR this one worked right. >> >> Paul >> >> ------------------------------------------------------------------------------ >> Centralized Desktop Delivery: Dell and VMware Reference Architecture >> Simplifying enterprise desktop deployment and management using >> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end >> client virtualization framework. Read more! >> http://p.sf.net/sfu/dell-eql-dev2dev >> _______________________________________________ >> Playerstage-users mailing list >> Playerstage-users <at> lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/playerstage-users >> > > Hi Paul, > > thanks for you time, I really appreciate it. I know they are not the most > sophisticated cameras out there but our group isn't in a position to upgrade > equipment right now. For example our robots are a fleet of Nomad Scout 150s to > give you an idea with vintage of our equipment. > > I had double checked that your patch was included in the version of Player I was > using but just to be sure to be sure, I installed the latest svn branch (namely > release-3-0-patches) but with the same outcome unfortunately: > > listening on 6665 > Listening on ports: 6665 > accepted TCP client 0 on port 6665, fd 8 > warning : opening /dev/video0 > warning : V4L2_CAP_READWRITE check failed (ignored) > warning : Adding control for [Pan (relative)] > error : UVCIOC_CTRL_ADD - Error > error : Driver failed to Setup (-1) > CameraUvc: Driver initialising > CameraUvc: Driver initialisation done > error : StopThread called when state != running or restarting (0) > > when using the prescribed driver file as stated in the sphereptz driver itself > and testing via playerv. I fully understand you are far too busy to work on this > yourself at the moment, but if you had even any pointers as to a direction I > should go in with this I would be very grateful. Of course if not, no worries at > all, I'll look for a way around the issue. > > Thanks again for your notes and speedy responses. > Jenny > > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users Hello again, This pasted message comes indeed from my patch. I looked at its code and compared to similar code in guvcview and found that in my patch I'm not checking for EACCESS errno code - it means that if Player is not started as root (sudo may help), it will fail on UVCIOC_CTRL_ADD ioctl. If however you're 100% sure Player process has enough rights, try to modify this code and remove following lines: PLAYER_ERROR("UVCIOC_CTRL_ADD - Error"); close(this->fd); this->fd = -1; return -1; If this does not help, I'll be @ lab in monday and try to reproduce the problem (hovewer I don't have ideas how to reproduce: the camera works with guvcview, my plugin code is similar, so where the problem comes from?). Cheers, Paul |
From: Jennifer T. <jen...@gm...> - 2010-11-16 17:24:45
|
Paul Osmialowski <newchief <at> king.net.pl> writes: > Hello again, > > This pasted message comes indeed from my patch. I looked at its code and > compared to similar code in guvcview and found that in my patch I'm not > checking for EACCESS errno code - it means that if Player is not started > as root (sudo may help), it will fail on UVCIOC_CTRL_ADD ioctl. If > however you're 100% sure Player process has enough rights, try to modify > this code and remove following lines: > PLAYER_ERROR("UVCIOC_CTRL_ADD - Error"); > close(this->fd); > this->fd = -1; > return -1; > > If this does not help, I'll be @ lab in monday and try to reproduce the > problem (hovewer I don't have ideas how to reproduce: the camera works > with guvcview, my plugin code is similar, so where the problem comes from?). > > Cheers, > Paul > Hi Paul, very sorry for the delay in replying, I was on some unforeseen business down the country and only got back to my computer + camera now. Thank you again for your interest and help. You were exactly right. Player did not have sufficient privileges. It works just perfectly once given them. Much obliged, Jenny |
From: Paul O. <new...@ki...> - 2010-02-19 16:27:51
|
On Fri, 19 Feb 2010, Ezequiel A. Quintero Barrios wrote: > I get this error messages from the Player server: >> CameraUvc: Driver initialising >> warning : opening /dev/video0 >> warning : V4L2_CAP_READWRITE check failed (ignored) >> error : VIDIOC_S_EXT_CTRLS failed on V4L2_CID_PAN_RESET_NEW This may happend when camera firmware hanged up. You can unplug it an plug it in again then start Player server and test if it helps. One thing that you can also do is to check if your operating system is capable to move your camera (unfortunately, I cannot repeat it here - it works for me, so I cannot say why it is not working when it is not working). To do some test, download, compile and run this program: http://guvcview.berlios.de it is a gtk+ application on which there are four buttons to move camera: up, down, left and right. If it can't move your camera, nothing can be done: sphereptz is actually based on this application code. Paul >> error : Driver failed to Setup (-1) >> CameraUvc: Driver initialisation done >> error : StopThread called when state != running or restarting (0) >> closing TCP connection to client 0 on port 6665 > > And the 'tilt' value does not change. I get this on console: >> p=0.000000, t=0.000000, z=0.000000 t=0.000000 > > I'm not sure of what does 'V4L2_CAP_READWRITE check failed' means... > Do you have any idea of what is wrong? and what can I do to solve it? > > > Greetings! > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |
From: Paul O. <new...@ki...> - 2010-03-08 22:14:09
|
I got my Sphere camera back, so once again I could test if my sphereptz driver works fine. I tested both guvcview and Player (camerauvc + sphereptz drivers). Still it works fine as it was before. One thing that I did accidently was to use my TV Card (/dev/video0) instead of Sphere (available as /dev/video1 on my PC). This caused error messages similar to yours. *Before* you connect this camera, make sure no video0 file is present in /dev directory. *After* you connect this camera to your PC, make sure you have only one video* device (namely, /dev/video0) in your /dev directory tree. Other thing I can say is that PTZ module of Logitech Sphere camera is rather poor comparing to Sony EVID30, so don't expect miracles using this. Additionally, firmware sometimes hangs causing software reset (V4L2_CID_PAN_RESET_NEW or V4L2_CID_TILT_RESET_NEW) impossible: in such a case only unpluging from USB port for about 10 seconds helps. I was using it on Gentoo Linux with 2.6.31-gentoo-r10 #1 SMP PREEMPT kernel. I've used Player SVN trunk (3.1) snapshot taken 07th of march 2010. Paul On Fri, 19 Feb 2010, Paul Osmialowski wrote: > > > On Fri, 19 Feb 2010, Ezequiel A. Quintero Barrios wrote: > >> I get this error messages from the Player server: >>> CameraUvc: Driver initialising >>> warning : opening /dev/video0 >>> warning : V4L2_CAP_READWRITE check failed (ignored) >>> error : VIDIOC_S_EXT_CTRLS failed on V4L2_CID_PAN_RESET_NEW > > This may happend when camera firmware hanged up. You can unplug it an plug > it in again then start Player server and test if it helps. > > One thing that you can also do is to check if your operating system is > capable to move your camera (unfortunately, I cannot repeat it here - it > works for me, so I cannot say why it is not working when it is not > working). To do some test, download, compile and run this program: > http://guvcview.berlios.de it is a gtk+ application on which there are > four buttons to move camera: up, down, left and right. If it can't move > your camera, nothing can be done: sphereptz is actually based on this > application code. > > Paul > > >>> error : Driver failed to Setup (-1) >>> CameraUvc: Driver initialisation done >>> error : StopThread called when state != running or restarting (0) >>> closing TCP connection to client 0 on port 6665 >> >> And the 'tilt' value does not change. I get this on console: >>> p=0.000000, t=0.000000, z=0.000000 t=0.000000 >> >> I'm not sure of what does 'V4L2_CAP_READWRITE check failed' means... >> Do you have any idea of what is wrong? and what can I do to solve it? >> >> >> Greetings! >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Playerstage-users mailing list >> Pla...@li... >> https://lists.sourceforge.net/lists/listinfo/playerstage-users >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |
From: Paul O. <new...@ki...> - 2010-03-09 17:03:28
|
I don't like 'works for me' attitude, so I looked at my sphereptz driver more carefully. Well, indeed there were some bugs, so I was lucky it was working for me. Still it can't work with RHEL/CentOS based distros running 2.6.18 kernel as it is too old to uderstand new v4l2 unofficial extensions. The patch waits on a tracker. Paul On Mon, 8 Mar 2010, Paul Osmialowski wrote: > I got my Sphere camera back, so once again I could test if my sphereptz > driver works fine. I tested both guvcview and Player (camerauvc + > sphereptz drivers). Still it works fine as it was before. One thing that I > did accidently was to use my TV Card (/dev/video0) instead of Sphere > (available as /dev/video1 on my PC). This caused error messages similar to > yours. > *Before* you connect this camera, make sure no video0 file is present in > /dev directory. *After* you connect this camera to your PC, make sure you > have only one video* device (namely, /dev/video0) in your /dev directory > tree. > Other thing I can say is that PTZ module of Logitech Sphere camera is > rather poor comparing to Sony EVID30, so don't expect miracles using this. > Additionally, firmware sometimes hangs causing software reset > (V4L2_CID_PAN_RESET_NEW or V4L2_CID_TILT_RESET_NEW) impossible: in such a > case only unpluging from USB port for about 10 seconds helps. > I was using it on Gentoo Linux with 2.6.31-gentoo-r10 #1 SMP PREEMPT > kernel. I've used Player SVN trunk (3.1) snapshot taken 07th of march > 2010. > > Paul > > On Fri, 19 Feb 2010, Paul Osmialowski wrote: > >> >> >> On Fri, 19 Feb 2010, Ezequiel A. Quintero Barrios wrote: >> >>> I get this error messages from the Player server: >>>> CameraUvc: Driver initialising >>>> warning : opening /dev/video0 >>>> warning : V4L2_CAP_READWRITE check failed (ignored) >>>> error : VIDIOC_S_EXT_CTRLS failed on V4L2_CID_PAN_RESET_NEW >> >> This may happend when camera firmware hanged up. You can unplug it an plug >> it in again then start Player server and test if it helps. >> >> One thing that you can also do is to check if your operating system is >> capable to move your camera (unfortunately, I cannot repeat it here - it >> works for me, so I cannot say why it is not working when it is not >> working). To do some test, download, compile and run this program: >> http://guvcview.berlios.de it is a gtk+ application on which there are >> four buttons to move camera: up, down, left and right. If it can't move >> your camera, nothing can be done: sphereptz is actually based on this >> application code. >> >> Paul >> >> >>>> error : Driver failed to Setup (-1) >>>> CameraUvc: Driver initialisation done >>>> error : StopThread called when state != running or restarting (0) >>>> closing TCP connection to client 0 on port 6665 >>> >>> And the 'tilt' value does not change. I get this on console: >>>> p=0.000000, t=0.000000, z=0.000000 t=0.000000 >>> >>> I'm not sure of what does 'V4L2_CAP_READWRITE check failed' means... >>> Do you have any idea of what is wrong? and what can I do to solve it? >>> >>> >>> Greetings! >>> >>> >>> ------------------------------------------------------------------------------ >>> Download Intel® Parallel Studio Eval >>> Try the new software tools for yourself. Speed compiling, find bugs >>> proactively, and fine-tune applications for parallel performance. >>> See why Intel Parallel Studio got high marks during beta. >>> http://p.sf.net/sfu/intel-sw-dev >>> _______________________________________________ >>> Playerstage-users mailing list >>> Pla...@li... >>> https://lists.sourceforge.net/lists/listinfo/playerstage-users >>> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Playerstage-users mailing list >> Pla...@li... >> https://lists.sourceforge.net/lists/listinfo/playerstage-users >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |