sphere driver error

View: New views
14 Messages — Rating Filter:   Alert me  

sphere driver error

by Alberto Valero Gomez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have a Sphere Logitech camera working properly on Ubuntu 9.10

I use Player 2.1.3.

I would like to capture the camera with player and control the
pan/tilt/zoom.

I have tried with the sphere driver, config file:

driver
(
  name "sphere"
  provides ["ptz:0" "camera:0"]
  port "/dev/video0"
  size [800 600]
  mode "RGB24"
  automatic_wb "fl"
  framerate 30
  shutter_speed   64000
  automatic_gain  10000
  dump_settings 0
)

player runs properly, but I cannot subscribe to the camera. I get the
error


accepted TCP client 0 on port 6665, fd 7
Setting up sphere driver
fg_open(): get framebuffer failed; ignoring: Invalid argument
fg_open(): get memory buffer: Invalid argument
error   : Setup():  unable to open
warning : subscription failed for device camera:0
warning : skipping subscription to unknown device blobfinder:0

If instead of the sphere plugin I use "camerauvc" it works properly, but
I cannot control ptz.

Some advice?? Why "sphere" does not work??

Thanks in advance.

--Alberto.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Paul Osmialowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

The "broken sphere camera driver" topic returns from time to time, so I
decided to buy one for my lab and see what the situation is. I've just
received it so I hope I'll be able to release a patch soon (right after I
finish my ranger interface collective bugfix), so stay tuned.

Paul

On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:

> Hi all,
>
> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>
> I use Player 2.1.3.
>
> I would like to capture the camera with player and control the
> pan/tilt/zoom.
>
> I have tried with the sphere driver, config file:
>
> driver
> (
>  name "sphere"
>  provides ["ptz:0" "camera:0"]
>  port "/dev/video0"
>  size [800 600]
>  mode "RGB24"
>  automatic_wb "fl"
>  framerate 30
>  shutter_speed   64000
>  automatic_gain  10000
>  dump_settings 0
> )
>
> player runs properly, but I cannot subscribe to the camera. I get the
> error
>
>
> accepted TCP client 0 on port 6665, fd 7
> Setting up sphere driver
> fg_open(): get framebuffer failed; ignoring: Invalid argument
> fg_open(): get memory buffer: Invalid argument
> error   : Setup():  unable to open
> warning : subscription failed for device camera:0
> warning : skipping subscription to unknown device blobfinder:0
>
> If instead of the sphere plugin I use "camerauvc" it works properly, but
> I cannot control ptz.
>
> Some advice?? Why "sphere" does not work??
>
> Thanks in advance.
>
> --Alberto.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Paul Osmialowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

BAD NEWS: I've looked at the code of sphere driver, it uses old V4L API
(actually it includes headers from old-API camerav4l driver) while
uvc kernel module offers only new V4L2 API (I've tried ekiga application
which can easily switch between new and old API, sphere camera can be
opened only using new API functions). I guess this driver might have been
tested with 2.4 kernels some time ago, it won't work with any recent Linux
distro. Basically, this driver must be rewritten (to look like camerauvc
driver which itself uses new V4L2 API), however, as I quickly looked at
it, it seems it uses extended old-V4L API funcions to control ptz
capabilities of the camera. This can make rewriting job harder to
complete. I can try to do that, however, for me it won't be a task of high
priority, earning money have higher priority nowadays.

Paul

On Fri, 16 Oct 2009, Paul Osmialowski wrote:

> Hello,
>
> The "broken sphere camera driver" topic returns from time to time, so I
> decided to buy one for my lab and see what the situation is. I've just
> received it so I hope I'll be able to release a patch soon (right after I
> finish my ranger interface collective bugfix), so stay tuned.
>
> Paul
>
> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>
>> Hi all,
>>
>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>
>> I use Player 2.1.3.
>>
>> I would like to capture the camera with player and control the
>> pan/tilt/zoom.
>>
>> I have tried with the sphere driver, config file:
>>
>> driver
>> (
>>  name "sphere"
>>  provides ["ptz:0" "camera:0"]
>>  port "/dev/video0"
>>  size [800 600]
>>  mode "RGB24"
>>  automatic_wb "fl"
>>  framerate 30
>>  shutter_speed   64000
>>  automatic_gain  10000
>>  dump_settings 0
>> )
>>
>> player runs properly, but I cannot subscribe to the camera. I get the
>> error
>>
>>
>> accepted TCP client 0 on port 6665, fd 7
>> Setting up sphere driver
>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>> fg_open(): get memory buffer: Invalid argument
>> error   : Setup():  unable to open
>> warning : subscription failed for device camera:0
>> warning : skipping subscription to unknown device blobfinder:0
>>
>> If instead of the sphere plugin I use "camerauvc" it works properly, but
>> I cannot control ptz.
>>
>> Some advice?? Why "sphere" does not work??
>>
>> Thanks in advance.
>>
>> --Alberto.
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Paul Osmialowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I hope it would be easier to add ptz interface (not provided by default)
to camerauvc driver (which itself seems need some bugfixing).
Paul

On Sun, 18 Oct 2009, Paul Osmialowski wrote:

> Hello,
>
> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L API
> (actually it includes headers from old-API camerav4l driver) while
> uvc kernel module offers only new V4L2 API (I've tried ekiga application
> which can easily switch between new and old API, sphere camera can be
> opened only using new API functions). I guess this driver might have been
> tested with 2.4 kernels some time ago, it won't work with any recent Linux
> distro. Basically, this driver must be rewritten (to look like camerauvc
> driver which itself uses new V4L2 API), however, as I quickly looked at
> it, it seems it uses extended old-V4L API funcions to control ptz
> capabilities of the camera. This can make rewriting job harder to
> complete. I can try to do that, however, for me it won't be a task of high
> priority, earning money have higher priority nowadays.
>
> Paul
>
> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>
>> Hello,
>>
>> The "broken sphere camera driver" topic returns from time to time, so I
>> decided to buy one for my lab and see what the situation is. I've just
>> received it so I hope I'll be able to release a patch soon (right after I
>> finish my ranger interface collective bugfix), so stay tuned.
>>
>> Paul
>>
>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>
>>> Hi all,
>>>
>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>
>>> I use Player 2.1.3.
>>>
>>> I would like to capture the camera with player and control the
>>> pan/tilt/zoom.
>>>
>>> I have tried with the sphere driver, config file:
>>>
>>> driver
>>> (
>>>  name "sphere"
>>>  provides ["ptz:0" "camera:0"]
>>>  port "/dev/video0"
>>>  size [800 600]
>>>  mode "RGB24"
>>>  automatic_wb "fl"
>>>  framerate 30
>>>  shutter_speed   64000
>>>  automatic_gain  10000
>>>  dump_settings 0
>>> )
>>>
>>> player runs properly, but I cannot subscribe to the camera. I get the
>>> error
>>>
>>>
>>> accepted TCP client 0 on port 6665, fd 7
>>> Setting up sphere driver
>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>> fg_open(): get memory buffer: Invalid argument
>>> error   : Setup():  unable to open
>>> warning : subscription failed for device camera:0
>>> warning : skipping subscription to unknown device blobfinder:0
>>>
>>> If instead of the sphere plugin I use "camerauvc" it works properly, but
>>> I cannot control ptz.
>>>
>>> Some advice?? Why "sphere" does not work??
>>>
>>> Thanks in advance.
>>>
>>> --Alberto.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Paul Osmialowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some news:
1. Good: camerauvc drivers is not buggy, it works fine for me with
Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
1. Bad: sphere driver code designed for old-V4L API cannot be reused to
write new sphere driver, headers it uses (for PTZ ioctl's definitions)
just cannot be mixed with V4L2 API.
2. Good news is that finally I've found a program that is able to operate
PTZ capabilities of this camera. It is free, open source and use V4L2 API.
Its name is guvcview and is available in official Gentoo portage tree (it
is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
with its built-in uvc driver). The plan is to use this source code as a
hint how to write new sphere2 driver (I guess we should leave old sphere
driver in Player tree for those who stick with old-V4L API - old 2.6.1x
kernels for embedded computers may still provide it).

Paul

On Sun, 18 Oct 2009, Paul Osmialowski wrote:

> I hope it would be easier to add ptz interface (not provided by default)
> to camerauvc driver (which itself seems need some bugfixing).
> Paul
>
> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>
>> Hello,
>>
>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L API
>> (actually it includes headers from old-API camerav4l driver) while
>> uvc kernel module offers only new V4L2 API (I've tried ekiga application
>> which can easily switch between new and old API, sphere camera can be
>> opened only using new API functions). I guess this driver might have been
>> tested with 2.4 kernels some time ago, it won't work with any recent Linux
>> distro. Basically, this driver must be rewritten (to look like camerauvc
>> driver which itself uses new V4L2 API), however, as I quickly looked at
>> it, it seems it uses extended old-V4L API funcions to control ptz
>> capabilities of the camera. This can make rewriting job harder to
>> complete. I can try to do that, however, for me it won't be a task of high
>> priority, earning money have higher priority nowadays.
>>
>> Paul
>>
>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>
>>> Hello,
>>>
>>> The "broken sphere camera driver" topic returns from time to time, so I
>>> decided to buy one for my lab and see what the situation is. I've just
>>> received it so I hope I'll be able to release a patch soon (right after I
>>> finish my ranger interface collective bugfix), so stay tuned.
>>>
>>> Paul
>>>
>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>
>>>> Hi all,
>>>>
>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>
>>>> I use Player 2.1.3.
>>>>
>>>> I would like to capture the camera with player and control the
>>>> pan/tilt/zoom.
>>>>
>>>> I have tried with the sphere driver, config file:
>>>>
>>>> driver
>>>> (
>>>>  name "sphere"
>>>>  provides ["ptz:0" "camera:0"]
>>>>  port "/dev/video0"
>>>>  size [800 600]
>>>>  mode "RGB24"
>>>>  automatic_wb "fl"
>>>>  framerate 30
>>>>  shutter_speed   64000
>>>>  automatic_gain  10000
>>>>  dump_settings 0
>>>> )
>>>>
>>>> player runs properly, but I cannot subscribe to the camera. I get the
>>>> error
>>>>
>>>>
>>>> accepted TCP client 0 on port 6665, fd 7
>>>> Setting up sphere driver
>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>> fg_open(): get memory buffer: Invalid argument
>>>> error   : Setup():  unable to open
>>>> warning : subscription failed for device camera:0
>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>
>>>> If instead of the sphere plugin I use "camerauvc" it works properly, but
>>>> I cannot control ptz.
>>>>
>>>> Some advice?? Why "sphere" does not work??
>>>>
>>>> Thanks in advance.
>>>>
>>>> --Alberto.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Paul Osmialowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

New working driver (sphereptz) is waiting on a patch tracker.

Paul

On Sun, 25 Oct 2009, Paul Osmialowski wrote:

> Some news:
> 1. Good: camerauvc drivers is not buggy, it works fine for me with
> Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
> Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
> 1. Bad: sphere driver code designed for old-V4L API cannot be reused to
> write new sphere driver, headers it uses (for PTZ ioctl's definitions)
> just cannot be mixed with V4L2 API.
> 2. Good news is that finally I've found a program that is able to operate
> PTZ capabilities of this camera. It is free, open source and use V4L2 API.
> Its name is guvcview and is available in official Gentoo portage tree (it
> is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
> with its built-in uvc driver). The plan is to use this source code as a
> hint how to write new sphere2 driver (I guess we should leave old sphere
> driver in Player tree for those who stick with old-V4L API - old 2.6.1x
> kernels for embedded computers may still provide it).
>
> Paul
>
> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>
>> I hope it would be easier to add ptz interface (not provided by default)
>> to camerauvc driver (which itself seems need some bugfixing).
>> Paul
>>
>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>
>>> Hello,
>>>
>>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L API
>>> (actually it includes headers from old-API camerav4l driver) while
>>> uvc kernel module offers only new V4L2 API (I've tried ekiga application
>>> which can easily switch between new and old API, sphere camera can be
>>> opened only using new API functions). I guess this driver might have been
>>> tested with 2.4 kernels some time ago, it won't work with any recent Linux
>>> distro. Basically, this driver must be rewritten (to look like camerauvc
>>> driver which itself uses new V4L2 API), however, as I quickly looked at
>>> it, it seems it uses extended old-V4L API funcions to control ptz
>>> capabilities of the camera. This can make rewriting job harder to
>>> complete. I can try to do that, however, for me it won't be a task of high
>>> priority, earning money have higher priority nowadays.
>>>
>>> Paul
>>>
>>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>>
>>>> Hello,
>>>>
>>>> The "broken sphere camera driver" topic returns from time to time, so I
>>>> decided to buy one for my lab and see what the situation is. I've just
>>>> received it so I hope I'll be able to release a patch soon (right after I
>>>> finish my ranger interface collective bugfix), so stay tuned.
>>>>
>>>> Paul
>>>>
>>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>>
>>>>> I use Player 2.1.3.
>>>>>
>>>>> I would like to capture the camera with player and control the
>>>>> pan/tilt/zoom.
>>>>>
>>>>> I have tried with the sphere driver, config file:
>>>>>
>>>>> driver
>>>>> (
>>>>>  name "sphere"
>>>>>  provides ["ptz:0" "camera:0"]
>>>>>  port "/dev/video0"
>>>>>  size [800 600]
>>>>>  mode "RGB24"
>>>>>  automatic_wb "fl"
>>>>>  framerate 30
>>>>>  shutter_speed   64000
>>>>>  automatic_gain  10000
>>>>>  dump_settings 0
>>>>> )
>>>>>
>>>>> player runs properly, but I cannot subscribe to the camera. I get the
>>>>> error
>>>>>
>>>>>
>>>>> accepted TCP client 0 on port 6665, fd 7
>>>>> Setting up sphere driver
>>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>>> fg_open(): get memory buffer: Invalid argument
>>>>> error   : Setup():  unable to open
>>>>> warning : subscription failed for device camera:0
>>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>>
>>>>> If instead of the sphere plugin I use "camerauvc" it works properly, but
>>>>> I cannot control ptz.
>>>>>
>>>>> Some advice?? Why "sphere" does not work??
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> --Alberto.
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>> http://p.sf.net/sfu/devconference
>>>>> _______________________________________________
>>>>> Playerstage-users mailing list
>>>>> Playerstage-users@...
>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Elvina Motard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Paul,

Thanks for fixing the sphere driver. However, I am working on player
2.1.1 and I can't get the patch to work. Is it possible to have a patch
for this version ?

Elvina

Paul Osmialowski wrote:

> New working driver (sphereptz) is waiting on a patch tracker.
>
> Paul
>
> On Sun, 25 Oct 2009, Paul Osmialowski wrote:
>
>  
>> Some news:
>> 1. Good: camerauvc drivers is not buggy, it works fine for me with
>> Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
>> Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
>> 1. Bad: sphere driver code designed for old-V4L API cannot be reused to
>> write new sphere driver, headers it uses (for PTZ ioctl's definitions)
>> just cannot be mixed with V4L2 API.
>> 2. Good news is that finally I've found a program that is able to operate
>> PTZ capabilities of this camera. It is free, open source and use V4L2 API.
>> Its name is guvcview and is available in official Gentoo portage tree (it
>> is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
>> with its built-in uvc driver). The plan is to use this source code as a
>> hint how to write new sphere2 driver (I guess we should leave old sphere
>> driver in Player tree for those who stick with old-V4L API - old 2.6.1x
>> kernels for embedded computers may still provide it).
>>
>> Paul
>>
>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>
>>    
>>> I hope it would be easier to add ptz interface (not provided by default)
>>> to camerauvc driver (which itself seems need some bugfixing).
>>> Paul
>>>
>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>
>>>      
>>>> Hello,
>>>>
>>>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L API
>>>> (actually it includes headers from old-API camerav4l driver) while
>>>> uvc kernel module offers only new V4L2 API (I've tried ekiga application
>>>> which can easily switch between new and old API, sphere camera can be
>>>> opened only using new API functions). I guess this driver might have been
>>>> tested with 2.4 kernels some time ago, it won't work with any recent Linux
>>>> distro. Basically, this driver must be rewritten (to look like camerauvc
>>>> driver which itself uses new V4L2 API), however, as I quickly looked at
>>>> it, it seems it uses extended old-V4L API funcions to control ptz
>>>> capabilities of the camera. This can make rewriting job harder to
>>>> complete. I can try to do that, however, for me it won't be a task of high
>>>> priority, earning money have higher priority nowadays.
>>>>
>>>> Paul
>>>>
>>>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>>>
>>>>        
>>>>> Hello,
>>>>>
>>>>> The "broken sphere camera driver" topic returns from time to time, so I
>>>>> decided to buy one for my lab and see what the situation is. I've just
>>>>> received it so I hope I'll be able to release a patch soon (right after I
>>>>> finish my ranger interface collective bugfix), so stay tuned.
>>>>>
>>>>> Paul
>>>>>
>>>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>>>
>>>>>          
>>>>>> Hi all,
>>>>>>
>>>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>>>
>>>>>> I use Player 2.1.3.
>>>>>>
>>>>>> I would like to capture the camera with player and control the
>>>>>> pan/tilt/zoom.
>>>>>>
>>>>>> I have tried with the sphere driver, config file:
>>>>>>
>>>>>> driver
>>>>>> (
>>>>>>  name "sphere"
>>>>>>  provides ["ptz:0" "camera:0"]
>>>>>>  port "/dev/video0"
>>>>>>  size [800 600]
>>>>>>  mode "RGB24"
>>>>>>  automatic_wb "fl"
>>>>>>  framerate 30
>>>>>>  shutter_speed   64000
>>>>>>  automatic_gain  10000
>>>>>>  dump_settings 0
>>>>>> )
>>>>>>
>>>>>> player runs properly, but I cannot subscribe to the camera. I get the
>>>>>> error
>>>>>>
>>>>>>
>>>>>> accepted TCP client 0 on port 6665, fd 7
>>>>>> Setting up sphere driver
>>>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>>>> fg_open(): get memory buffer: Invalid argument
>>>>>> error   : Setup():  unable to open
>>>>>> warning : subscription failed for device camera:0
>>>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>>>
>>>>>> If instead of the sphere plugin I use "camerauvc" it works properly, but
>>>>>> I cannot control ptz.
>>>>>>
>>>>>> Some advice?? Why "sphere" does not work??
>>>>>>
>>>>>> Thanks in advance.
>>>>>>
>>>>>> --Alberto.
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>> http://p.sf.net/sfu/devconference
>>>>>> _______________________________________________
>>>>>> Playerstage-users mailing list
>>>>>> Playerstage-users@...
>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>
>>>>>>            
>>>>> ------------------------------------------------------------------------------
>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>> http://p.sf.net/sfu/devconference
>>>>> _______________________________________________
>>>>> Playerstage-users mailing list
>>>>> Playerstage-users@...
>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>
>>>>>          
>>>> ------------------------------------------------------------------------------
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>>        
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>>      
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>>    
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>  

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Paul Osmialowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Comparing to Player 3, adding new drivers to the main Player tree is not
that simple on older Players. It would be easier to release this as a
plugin, however, I'd have to remind myself if threaded drivers were
already introduced to Player 2.1. For now I don't remember how it was done
then, fortunately, I can use Player 2.1 camerav4l driver as a template.

Since I'm extremely busy this week, I'd be able to do that in the middle
of next week.

Paul

On Fri, 6 Nov 2009, Elvina Motard wrote:

> Dear Paul,
>
> Thanks for fixing the sphere driver. However, I am working on player
> 2.1.1 and I can't get the patch to work. Is it possible to have a patch
> for this version ?
>
> Elvina
>
> Paul Osmialowski wrote:
>> New working driver (sphereptz) is waiting on a patch tracker.
>>
>> Paul
>>
>> On Sun, 25 Oct 2009, Paul Osmialowski wrote:
>>
>>
>>> Some news:
>>> 1. Good: camerauvc drivers is not buggy, it works fine for me with
>>> Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
>>> Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
>>> 1. Bad: sphere driver code designed for old-V4L API cannot be reused to
>>> write new sphere driver, headers it uses (for PTZ ioctl's definitions)
>>> just cannot be mixed with V4L2 API.
>>> 2. Good news is that finally I've found a program that is able to operate
>>> PTZ capabilities of this camera. It is free, open source and use V4L2 API.
>>> Its name is guvcview and is available in official Gentoo portage tree (it
>>> is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
>>> with its built-in uvc driver). The plan is to use this source code as a
>>> hint how to write new sphere2 driver (I guess we should leave old sphere
>>> driver in Player tree for those who stick with old-V4L API - old 2.6.1x
>>> kernels for embedded computers may still provide it).
>>>
>>> Paul
>>>
>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>
>>>
>>>> I hope it would be easier to add ptz interface (not provided by default)
>>>> to camerauvc driver (which itself seems need some bugfixing).
>>>> Paul
>>>>
>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>
>>>>
>>>>> Hello,
>>>>>
>>>>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L API
>>>>> (actually it includes headers from old-API camerav4l driver) while
>>>>> uvc kernel module offers only new V4L2 API (I've tried ekiga application
>>>>> which can easily switch between new and old API, sphere camera can be
>>>>> opened only using new API functions). I guess this driver might have been
>>>>> tested with 2.4 kernels some time ago, it won't work with any recent Linux
>>>>> distro. Basically, this driver must be rewritten (to look like camerauvc
>>>>> driver which itself uses new V4L2 API), however, as I quickly looked at
>>>>> it, it seems it uses extended old-V4L API funcions to control ptz
>>>>> capabilities of the camera. This can make rewriting job harder to
>>>>> complete. I can try to do that, however, for me it won't be a task of high
>>>>> priority, earning money have higher priority nowadays.
>>>>>
>>>>> Paul
>>>>>
>>>>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>>>>
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> The "broken sphere camera driver" topic returns from time to time, so I
>>>>>> decided to buy one for my lab and see what the situation is. I've just
>>>>>> received it so I hope I'll be able to release a patch soon (right after I
>>>>>> finish my ranger interface collective bugfix), so stay tuned.
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>>>>
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>>>>
>>>>>>> I use Player 2.1.3.
>>>>>>>
>>>>>>> I would like to capture the camera with player and control the
>>>>>>> pan/tilt/zoom.
>>>>>>>
>>>>>>> I have tried with the sphere driver, config file:
>>>>>>>
>>>>>>> driver
>>>>>>> (
>>>>>>>  name "sphere"
>>>>>>>  provides ["ptz:0" "camera:0"]
>>>>>>>  port "/dev/video0"
>>>>>>>  size [800 600]
>>>>>>>  mode "RGB24"
>>>>>>>  automatic_wb "fl"
>>>>>>>  framerate 30
>>>>>>>  shutter_speed   64000
>>>>>>>  automatic_gain  10000
>>>>>>>  dump_settings 0
>>>>>>> )
>>>>>>>
>>>>>>> player runs properly, but I cannot subscribe to the camera. I get the
>>>>>>> error
>>>>>>>
>>>>>>>
>>>>>>> accepted TCP client 0 on port 6665, fd 7
>>>>>>> Setting up sphere driver
>>>>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>>>>> fg_open(): get memory buffer: Invalid argument
>>>>>>> error   : Setup():  unable to open
>>>>>>> warning : subscription failed for device camera:0
>>>>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>>>>
>>>>>>> If instead of the sphere plugin I use "camerauvc" it works properly, but
>>>>>>> I cannot control ptz.
>>>>>>>
>>>>>>> Some advice?? Why "sphere" does not work??
>>>>>>>
>>>>>>> Thanks in advance.
>>>>>>>
>>>>>>> --Alberto.
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>> _______________________________________________
>>>>>>> Playerstage-users mailing list
>>>>>>> Playerstage-users@...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>
>>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>> http://p.sf.net/sfu/devconference
>>>>>> _______________________________________________
>>>>>> Playerstage-users mailing list
>>>>>> Playerstage-users@...
>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>
>>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>> http://p.sf.net/sfu/devconference
>>>>> _______________________________________________
>>>>> Playerstage-users mailing list
>>>>> Playerstage-users@...
>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>
>>>>>
>>>> ------------------------------------------------------------------------------
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Rich Mattes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can probably get away with changing the names of the functions back to
2.1 API style:
3.0                   2.1
void MainSetup()      int Setup()
void MainQuit()       int Shutdown()

And then change the class inheritance from
public: ThreadedDriver
to
public: Driver

After that you have to add a call to StartThread() at the end of Setup(),
and StopThread() in Shutdown().

To get it to compile as a plugin driver for player 2.1, you also need some
extra driver registration code.  Look in ${prefix}/share/player/examples for
the example plugin driver, and use that as a template.  There will be one
function you have to add to the source file, the one that's contained in
extern "C".  Then you can use the makefile in that directory as a template
for building as a plugin.

http://playerstage.sourceforge.net/wiki/Writing_a_Player_plugin_driver also
contains a more complicated way to compile a plugin driver for 2.1, using
automake.

-----Original Message-----
From: Paul Osmialowski [mailto:newchief@...]
Sent: Friday, November 06, 2009 8:22 AM
To: playerstage-users@...
Subject: Re: [Playerstage-users] sphere driver error

Comparing to Player 3, adding new drivers to the main Player tree is not
that simple on older Players. It would be easier to release this as a
plugin, however, I'd have to remind myself if threaded drivers were
already introduced to Player 2.1. For now I don't remember how it was done
then, fortunately, I can use Player 2.1 camerav4l driver as a template.

Since I'm extremely busy this week, I'd be able to do that in the middle
of next week.

Paul

On Fri, 6 Nov 2009, Elvina Motard wrote:

> Dear Paul,
>
> Thanks for fixing the sphere driver. However, I am working on player
> 2.1.1 and I can't get the patch to work. Is it possible to have a patch
> for this version ?
>
> Elvina
>
> Paul Osmialowski wrote:
>> New working driver (sphereptz) is waiting on a patch tracker.
>>
>> Paul
>>
>> On Sun, 25 Oct 2009, Paul Osmialowski wrote:
>>
>>
>>> Some news:
>>> 1. Good: camerauvc drivers is not buggy, it works fine for me with
>>> Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
>>> Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
>>> 1. Bad: sphere driver code designed for old-V4L API cannot be reused to
>>> write new sphere driver, headers it uses (for PTZ ioctl's definitions)
>>> just cannot be mixed with V4L2 API.
>>> 2. Good news is that finally I've found a program that is able to
operate
>>> PTZ capabilities of this camera. It is free, open source and use V4L2
API.
>>> Its name is guvcview and is available in official Gentoo portage tree
(it

>>> is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
>>> with its built-in uvc driver). The plan is to use this source code as a
>>> hint how to write new sphere2 driver (I guess we should leave old sphere
>>> driver in Player tree for those who stick with old-V4L API - old 2.6.1x
>>> kernels for embedded computers may still provide it).
>>>
>>> Paul
>>>
>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>
>>>
>>>> I hope it would be easier to add ptz interface (not provided by
default)
>>>> to camerauvc driver (which itself seems need some bugfixing).
>>>> Paul
>>>>
>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>
>>>>
>>>>> Hello,
>>>>>
>>>>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L
API
>>>>> (actually it includes headers from old-API camerav4l driver) while
>>>>> uvc kernel module offers only new V4L2 API (I've tried ekiga
application
>>>>> which can easily switch between new and old API, sphere camera can be
>>>>> opened only using new API functions). I guess this driver might have
been
>>>>> tested with 2.4 kernels some time ago, it won't work with any recent
Linux
>>>>> distro. Basically, this driver must be rewritten (to look like
camerauvc
>>>>> driver which itself uses new V4L2 API), however, as I quickly looked
at
>>>>> it, it seems it uses extended old-V4L API funcions to control ptz
>>>>> capabilities of the camera. This can make rewriting job harder to
>>>>> complete. I can try to do that, however, for me it won't be a task of
high

>>>>> priority, earning money have higher priority nowadays.
>>>>>
>>>>> Paul
>>>>>
>>>>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>>>>
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> The "broken sphere camera driver" topic returns from time to time, so
I
>>>>>> decided to buy one for my lab and see what the situation is. I've
just
>>>>>> received it so I hope I'll be able to release a patch soon (right
after I

>>>>>> finish my ranger interface collective bugfix), so stay tuned.
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>>>>
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>>>>
>>>>>>> I use Player 2.1.3.
>>>>>>>
>>>>>>> I would like to capture the camera with player and control the
>>>>>>> pan/tilt/zoom.
>>>>>>>
>>>>>>> I have tried with the sphere driver, config file:
>>>>>>>
>>>>>>> driver
>>>>>>> (
>>>>>>>  name "sphere"
>>>>>>>  provides ["ptz:0" "camera:0"]
>>>>>>>  port "/dev/video0"
>>>>>>>  size [800 600]
>>>>>>>  mode "RGB24"
>>>>>>>  automatic_wb "fl"
>>>>>>>  framerate 30
>>>>>>>  shutter_speed   64000
>>>>>>>  automatic_gain  10000
>>>>>>>  dump_settings 0
>>>>>>> )
>>>>>>>
>>>>>>> player runs properly, but I cannot subscribe to the camera. I get
the

>>>>>>> error
>>>>>>>
>>>>>>>
>>>>>>> accepted TCP client 0 on port 6665, fd 7
>>>>>>> Setting up sphere driver
>>>>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>>>>> fg_open(): get memory buffer: Invalid argument
>>>>>>> error   : Setup():  unable to open
>>>>>>> warning : subscription failed for device camera:0
>>>>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>>>>
>>>>>>> If instead of the sphere plugin I use "camerauvc" it works properly,
but

>>>>>>> I cannot control ptz.
>>>>>>>
>>>>>>> Some advice?? Why "sphere" does not work??
>>>>>>>
>>>>>>> Thanks in advance.
>>>>>>>
>>>>>>> --Alberto.
>>>>>>>
>>>>>>>
>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>> is the only developer event you need to attend this year. Jumpstart
your
>>>>>>> developing skills, take BlackBerry mobile applications to market and
stay
>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register
now!
>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>> _______________________________________________
>>>>>>> Playerstage-users mailing list
>>>>>>> Playerstage-users@...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>
>>>>>>>
>>>>>>
----------------------------------------------------------------------------
--
>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>> is the only developer event you need to attend this year. Jumpstart
your
>>>>>> developing skills, take BlackBerry mobile applications to market and
stay
>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>> http://p.sf.net/sfu/devconference
>>>>>> _______________________________________________
>>>>>> Playerstage-users mailing list
>>>>>> Playerstage-users@...
>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>
>>>>>>
>>>>>
----------------------------------------------------------------------------
--
>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>> is the only developer event you need to attend this year. Jumpstart
your
>>>>> developing skills, take BlackBerry mobile applications to market and
stay
>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>> http://p.sf.net/sfu/devconference
>>>>> _______________________________________________
>>>>> Playerstage-users mailing list
>>>>> Playerstage-users@...
>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>
>>>>>
>>>>
----------------------------------------------------------------------------
--
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart
your
>>>> developing skills, take BlackBerry mobile applications to market and
stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>>
>>>
----------------------------------------------------------------------------
--
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and
stay

>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>>
>>
>>
----------------------------------------------------------------------------
--

>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>
>
----------------------------------------------------------------------------
--
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
> trial. Simplify your report design, integration and deployment - and focus
on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Elvina Motard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Paul,

If it is easier for you to give me a plugin, then it is good for me !

Thanks,
Elvina

Paul Osmialowski wrote:

> Comparing to Player 3, adding new drivers to the main Player tree is not
> that simple on older Players. It would be easier to release this as a
> plugin, however, I'd have to remind myself if threaded drivers were
> already introduced to Player 2.1. For now I don't remember how it was done
> then, fortunately, I can use Player 2.1 camerav4l driver as a template.
>
> Since I'm extremely busy this week, I'd be able to do that in the middle
> of next week.
>
> Paul
>
> On Fri, 6 Nov 2009, Elvina Motard wrote:
>
>  
>> Dear Paul,
>>
>> Thanks for fixing the sphere driver. However, I am working on player
>> 2.1.1 and I can't get the patch to work. Is it possible to have a patch
>> for this version ?
>>
>> Elvina
>>
>> Paul Osmialowski wrote:
>>    
>>> New working driver (sphereptz) is waiting on a patch tracker.
>>>
>>> Paul
>>>
>>> On Sun, 25 Oct 2009, Paul Osmialowski wrote:
>>>
>>>
>>>      
>>>> Some news:
>>>> 1. Good: camerauvc drivers is not buggy, it works fine for me with
>>>> Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
>>>> Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
>>>> 1. Bad: sphere driver code designed for old-V4L API cannot be reused to
>>>> write new sphere driver, headers it uses (for PTZ ioctl's definitions)
>>>> just cannot be mixed with V4L2 API.
>>>> 2. Good news is that finally I've found a program that is able to operate
>>>> PTZ capabilities of this camera. It is free, open source and use V4L2 API.
>>>> Its name is guvcview and is available in official Gentoo portage tree (it
>>>> is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
>>>> with its built-in uvc driver). The plan is to use this source code as a
>>>> hint how to write new sphere2 driver (I guess we should leave old sphere
>>>> driver in Player tree for those who stick with old-V4L API - old 2.6.1x
>>>> kernels for embedded computers may still provide it).
>>>>
>>>> Paul
>>>>
>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>
>>>>
>>>>        
>>>>> I hope it would be easier to add ptz interface (not provided by default)
>>>>> to camerauvc driver (which itself seems need some bugfixing).
>>>>> Paul
>>>>>
>>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>>
>>>>>
>>>>>          
>>>>>> Hello,
>>>>>>
>>>>>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L API
>>>>>> (actually it includes headers from old-API camerav4l driver) while
>>>>>> uvc kernel module offers only new V4L2 API (I've tried ekiga application
>>>>>> which can easily switch between new and old API, sphere camera can be
>>>>>> opened only using new API functions). I guess this driver might have been
>>>>>> tested with 2.4 kernels some time ago, it won't work with any recent Linux
>>>>>> distro. Basically, this driver must be rewritten (to look like camerauvc
>>>>>> driver which itself uses new V4L2 API), however, as I quickly looked at
>>>>>> it, it seems it uses extended old-V4L API funcions to control ptz
>>>>>> capabilities of the camera. This can make rewriting job harder to
>>>>>> complete. I can try to do that, however, for me it won't be a task of high
>>>>>> priority, earning money have higher priority nowadays.
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>>>>>
>>>>>>
>>>>>>            
>>>>>>> Hello,
>>>>>>>
>>>>>>> The "broken sphere camera driver" topic returns from time to time, so I
>>>>>>> decided to buy one for my lab and see what the situation is. I've just
>>>>>>> received it so I hope I'll be able to release a patch soon (right after I
>>>>>>> finish my ranger interface collective bugfix), so stay tuned.
>>>>>>>
>>>>>>> Paul
>>>>>>>
>>>>>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>>>>>
>>>>>>>> I use Player 2.1.3.
>>>>>>>>
>>>>>>>> I would like to capture the camera with player and control the
>>>>>>>> pan/tilt/zoom.
>>>>>>>>
>>>>>>>> I have tried with the sphere driver, config file:
>>>>>>>>
>>>>>>>> driver
>>>>>>>> (
>>>>>>>>  name "sphere"
>>>>>>>>  provides ["ptz:0" "camera:0"]
>>>>>>>>  port "/dev/video0"
>>>>>>>>  size [800 600]
>>>>>>>>  mode "RGB24"
>>>>>>>>  automatic_wb "fl"
>>>>>>>>  framerate 30
>>>>>>>>  shutter_speed   64000
>>>>>>>>  automatic_gain  10000
>>>>>>>>  dump_settings 0
>>>>>>>> )
>>>>>>>>
>>>>>>>> player runs properly, but I cannot subscribe to the camera. I get the
>>>>>>>> error
>>>>>>>>
>>>>>>>>
>>>>>>>> accepted TCP client 0 on port 6665, fd 7
>>>>>>>> Setting up sphere driver
>>>>>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>>>>>> fg_open(): get memory buffer: Invalid argument
>>>>>>>> error   : Setup():  unable to open
>>>>>>>> warning : subscription failed for device camera:0
>>>>>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>>>>>
>>>>>>>> If instead of the sphere plugin I use "camerauvc" it works properly, but
>>>>>>>> I cannot control ptz.
>>>>>>>>
>>>>>>>> Some advice?? Why "sphere" does not work??
>>>>>>>>
>>>>>>>> Thanks in advance.
>>>>>>>>
>>>>>>>> --Alberto.
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>> _______________________________________________
>>>>>>>> Playerstage-users mailing list
>>>>>>>> Playerstage-users@...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>> _______________________________________________
>>>>>>> Playerstage-users mailing list
>>>>>>> Playerstage-users@...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>> ------------------------------------------------------------------------------
>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>> http://p.sf.net/sfu/devconference
>>>>>> _______________________________________________
>>>>>> Playerstage-users mailing list
>>>>>> Playerstage-users@...
>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>
>>>>>>
>>>>>>            
>>>>> ------------------------------------------------------------------------------
>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>> http://p.sf.net/sfu/devconference
>>>>> _______________________________________________
>>>>> Playerstage-users mailing list
>>>>> Playerstage-users@...
>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>
>>>>>
>>>>>          
>>>> ------------------------------------------------------------------------------
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>>
>>>>        
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>>      
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>>    
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>  



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Elvina Motard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Rich, Paul,

I created a player 2.1.1 plugin from the patch which compiles properly.
Then I launch player with a configuration file containing the sphereptz
driver and the camerauvc driver for my camera. I am able to visualize
the images from the camera through playercam, but when I try to
subscribe to the sphereptz through playerv, I get the following error:
warning : V4L2_CAP_READWRITE check failed (ignored)
error: VIDIOC_S_EXT_CTRLS failed for device ptz:0
warning: subscription failed for device ptz:0.

Sounds like it can not send commands to the camera. Do you have an idea
why ?
Thanks,
Elvina

Rich Mattes wrote:

> You can probably get away with changing the names of the functions back to
> 2.1 API style:
> 3.0                   2.1
> void MainSetup()      int Setup()
> void MainQuit()       int Shutdown()
>
> And then change the class inheritance from
> public: ThreadedDriver
> to
> public: Driver
>
> After that you have to add a call to StartThread() at the end of Setup(),
> and StopThread() in Shutdown().
>
> To get it to compile as a plugin driver for player 2.1, you also need some
> extra driver registration code.  Look in ${prefix}/share/player/examples for
> the example plugin driver, and use that as a template.  There will be one
> function you have to add to the source file, the one that's contained in
> extern "C".  Then you can use the makefile in that directory as a template
> for building as a plugin.
>
> http://playerstage.sourceforge.net/wiki/Writing_a_Player_plugin_driver also
> contains a more complicated way to compile a plugin driver for 2.1, using
> automake.
>
> -----Original Message-----
> From: Paul Osmialowski [mailto:newchief@...]
> Sent: Friday, November 06, 2009 8:22 AM
> To: playerstage-users@...
> Subject: Re: [Playerstage-users] sphere driver error
>
> Comparing to Player 3, adding new drivers to the main Player tree is not
> that simple on older Players. It would be easier to release this as a
> plugin, however, I'd have to remind myself if threaded drivers were
> already introduced to Player 2.1. For now I don't remember how it was done
> then, fortunately, I can use Player 2.1 camerav4l driver as a template.
>
> Since I'm extremely busy this week, I'd be able to do that in the middle
> of next week.
>
> Paul
>
> On Fri, 6 Nov 2009, Elvina Motard wrote:
>
>  
>> Dear Paul,
>>
>> Thanks for fixing the sphere driver. However, I am working on player
>> 2.1.1 and I can't get the patch to work. Is it possible to have a patch
>> for this version ?
>>
>> Elvina
>>
>> Paul Osmialowski wrote:
>>    
>>> New working driver (sphereptz) is waiting on a patch tracker.
>>>
>>> Paul
>>>
>>> On Sun, 25 Oct 2009, Paul Osmialowski wrote:
>>>
>>>
>>>      
>>>> Some news:
>>>> 1. Good: camerauvc drivers is not buggy, it works fine for me with
>>>> Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
>>>> Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
>>>> 1. Bad: sphere driver code designed for old-V4L API cannot be reused to
>>>> write new sphere driver, headers it uses (for PTZ ioctl's definitions)
>>>> just cannot be mixed with V4L2 API.
>>>> 2. Good news is that finally I've found a program that is able to
>>>>        
> operate
>  
>>>> PTZ capabilities of this camera. It is free, open source and use V4L2
>>>>        
> API.
>  
>>>> Its name is guvcview and is available in official Gentoo portage tree
>>>>        
> (it
>  
>>>> is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
>>>> with its built-in uvc driver). The plan is to use this source code as a
>>>> hint how to write new sphere2 driver (I guess we should leave old sphere
>>>> driver in Player tree for those who stick with old-V4L API - old 2.6.1x
>>>> kernels for embedded computers may still provide it).
>>>>
>>>> Paul
>>>>
>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>
>>>>
>>>>        
>>>>> I hope it would be easier to add ptz interface (not provided by
>>>>>          
> default)
>  
>>>>> to camerauvc driver (which itself seems need some bugfixing).
>>>>> Paul
>>>>>
>>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>>
>>>>>
>>>>>          
>>>>>> Hello,
>>>>>>
>>>>>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L
>>>>>>            
> API
>  
>>>>>> (actually it includes headers from old-API camerav4l driver) while
>>>>>> uvc kernel module offers only new V4L2 API (I've tried ekiga
>>>>>>            
> application
>  
>>>>>> which can easily switch between new and old API, sphere camera can be
>>>>>> opened only using new API functions). I guess this driver might have
>>>>>>            
> been
>  
>>>>>> tested with 2.4 kernels some time ago, it won't work with any recent
>>>>>>            
> Linux
>  
>>>>>> distro. Basically, this driver must be rewritten (to look like
>>>>>>            
> camerauvc
>  
>>>>>> driver which itself uses new V4L2 API), however, as I quickly looked
>>>>>>            
> at
>  
>>>>>> it, it seems it uses extended old-V4L API funcions to control ptz
>>>>>> capabilities of the camera. This can make rewriting job harder to
>>>>>> complete. I can try to do that, however, for me it won't be a task of
>>>>>>            
> high
>  
>>>>>> priority, earning money have higher priority nowadays.
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>>>>>
>>>>>>
>>>>>>            
>>>>>>> Hello,
>>>>>>>
>>>>>>> The "broken sphere camera driver" topic returns from time to time, so
>>>>>>>              
> I
>  
>>>>>>> decided to buy one for my lab and see what the situation is. I've
>>>>>>>              
> just
>  
>>>>>>> received it so I hope I'll be able to release a patch soon (right
>>>>>>>              
> after I
>  
>>>>>>> finish my ranger interface collective bugfix), so stay tuned.
>>>>>>>
>>>>>>> Paul
>>>>>>>
>>>>>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>>>>>
>>>>>>>> I use Player 2.1.3.
>>>>>>>>
>>>>>>>> I would like to capture the camera with player and control the
>>>>>>>> pan/tilt/zoom.
>>>>>>>>
>>>>>>>> I have tried with the sphere driver, config file:
>>>>>>>>
>>>>>>>> driver
>>>>>>>> (
>>>>>>>>  name "sphere"
>>>>>>>>  provides ["ptz:0" "camera:0"]
>>>>>>>>  port "/dev/video0"
>>>>>>>>  size [800 600]
>>>>>>>>  mode "RGB24"
>>>>>>>>  automatic_wb "fl"
>>>>>>>>  framerate 30
>>>>>>>>  shutter_speed   64000
>>>>>>>>  automatic_gain  10000
>>>>>>>>  dump_settings 0
>>>>>>>> )
>>>>>>>>
>>>>>>>> player runs properly, but I cannot subscribe to the camera. I get
>>>>>>>>                
> the
>  
>>>>>>>> error
>>>>>>>>
>>>>>>>>
>>>>>>>> accepted TCP client 0 on port 6665, fd 7
>>>>>>>> Setting up sphere driver
>>>>>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>>>>>> fg_open(): get memory buffer: Invalid argument
>>>>>>>> error   : Setup():  unable to open
>>>>>>>> warning : subscription failed for device camera:0
>>>>>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>>>>>
>>>>>>>> If instead of the sphere plugin I use "camerauvc" it works properly,
>>>>>>>>                
> but
>  
>>>>>>>> I cannot control ptz.
>>>>>>>>
>>>>>>>> Some advice?? Why "sphere" does not work??
>>>>>>>>
>>>>>>>> Thanks in advance.
>>>>>>>>
>>>>>>>> --Alberto.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
> ----------------------------------------------------------------------------
> --
>  
>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>                
> your
>  
>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>                
> stay
>  
>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register
>>>>>>>>                
> now!
>  
>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>> _______________________________________________
>>>>>>>> Playerstage-users mailing list
>>>>>>>> Playerstage-users@...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>
>>>>>>>>
>>>>>>>>                
> ----------------------------------------------------------------------------
> --
>  
>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>              
> your
>  
>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>              
> stay
>  
>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>> _______________________________________________
>>>>>>> Playerstage-users mailing list
>>>>>>> Playerstage-users@...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>
>>>>>>>
>>>>>>>              
> ----------------------------------------------------------------------------
> --
>  
>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>            
> your
>  
>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>            
> stay
>  
>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>> http://p.sf.net/sfu/devconference
>>>>>> _______________________________________________
>>>>>> Playerstage-users mailing list
>>>>>> Playerstage-users@...
>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>
>>>>>>
>>>>>>            
> ----------------------------------------------------------------------------
> --
>  
>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>          
> your
>  
>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>          
> stay
>  
>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>> http://p.sf.net/sfu/devconference
>>>>> _______________________________________________
>>>>> Playerstage-users mailing list
>>>>> Playerstage-users@...
>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>
>>>>>
>>>>>          
> ----------------------------------------------------------------------------
> --
>  
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and
>>>>        
> stay
>  
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>>
>>>>        
>>>      
> ----------------------------------------------------------------------------
> --
>  
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>>      
>>    
> ----------------------------------------------------------------------------
> --
>  
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>    
> 30-Day
>  
>> trial. Simplify your report design, integration and deployment - and focus
>>    
> on
>  
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>>    
>
> ----------------------------------------------------------------------------
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>  



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Paul Osmialowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Fri, 6 Nov 2009, Elvina Motard wrote:

> Dear Rich, Paul,
>
> I created a player 2.1.1 plugin from the patch which compiles properly.
> Then I launch player with a configuration file containing the sphereptz
> driver and the camerauvc driver for my camera. I am able to visualize
> the images from the camera through playercam, but when I try to
> subscribe to the sphereptz through playerv, I get the following error:
> warning : V4L2_CAP_READWRITE check failed (ignored)
> error: VIDIOC_S_EXT_CTRLS failed for device ptz:0
> warning: subscription failed for device ptz:0.
>
> Sounds like it can not send commands to the camera. Do you have an idea
> why ?
> Thanks,
> Elvina
>

What kernel version are you using? I have experienced "VIDIOC_S_EXT_CTRLS
failed" in two cases:
1. when I was using Scientific Linux with 2.6.18 kernel
2. when camera firmware haned up

For the first case, no help, this drivers works for me on my Gentoo Linux
with 2.6.30-gentoo-r8 kernel which is rather new. If you're not sure if
your camera is able to work with your kernel, try to compile and run
guvcview application, if it can't compile or if it can't work it means
your Linux kernel is too old.

For the second case the solution was to disconnect camera USB cable for a
half a minute and plug it in again.

>From what you wrote I assume I don't have to prepare separate plugin
anymore?
I have made some patch for this driver that solves compilation problems on
older 2.6 kernels but since you were able to compile it, this patch seems
to be irrelevant for you.

Paul

> Rich Mattes wrote:
>> You can probably get away with changing the names of the functions back to
>> 2.1 API style:
>> 3.0                   2.1
>> void MainSetup()      int Setup()
>> void MainQuit()       int Shutdown()
>>
>> And then change the class inheritance from
>> public: ThreadedDriver
>> to
>> public: Driver
>>
>> After that you have to add a call to StartThread() at the end of Setup(),
>> and StopThread() in Shutdown().
>>
>> To get it to compile as a plugin driver for player 2.1, you also need some
>> extra driver registration code.  Look in ${prefix}/share/player/examples for
>> the example plugin driver, and use that as a template.  There will be one
>> function you have to add to the source file, the one that's contained in
>> extern "C".  Then you can use the makefile in that directory as a template
>> for building as a plugin.
>>
>> http://playerstage.sourceforge.net/wiki/Writing_a_Player_plugin_driver also
>> contains a more complicated way to compile a plugin driver for 2.1, using
>> automake.
>>
>> -----Original Message-----
>> From: Paul Osmialowski [mailto:newchief@...]
>> Sent: Friday, November 06, 2009 8:22 AM
>> To: playerstage-users@...
>> Subject: Re: [Playerstage-users] sphere driver error
>>
>> Comparing to Player 3, adding new drivers to the main Player tree is not
>> that simple on older Players. It would be easier to release this as a
>> plugin, however, I'd have to remind myself if threaded drivers were
>> already introduced to Player 2.1. For now I don't remember how it was done
>> then, fortunately, I can use Player 2.1 camerav4l driver as a template.
>>
>> Since I'm extremely busy this week, I'd be able to do that in the middle
>> of next week.
>>
>> Paul
>>
>> On Fri, 6 Nov 2009, Elvina Motard wrote:
>>
>>
>>> Dear Paul,
>>>
>>> Thanks for fixing the sphere driver. However, I am working on player
>>> 2.1.1 and I can't get the patch to work. Is it possible to have a patch
>>> for this version ?
>>>
>>> Elvina
>>>
>>> Paul Osmialowski wrote:
>>>
>>>> New working driver (sphereptz) is waiting on a patch tracker.
>>>>
>>>> Paul
>>>>
>>>> On Sun, 25 Oct 2009, Paul Osmialowski wrote:
>>>>
>>>>
>>>>
>>>>> Some news:
>>>>> 1. Good: camerauvc drivers is not buggy, it works fine for me with
>>>>> Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
>>>>> Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
>>>>> 1. Bad: sphere driver code designed for old-V4L API cannot be reused to
>>>>> write new sphere driver, headers it uses (for PTZ ioctl's definitions)
>>>>> just cannot be mixed with V4L2 API.
>>>>> 2. Good news is that finally I've found a program that is able to
>>>>>
>> operate
>>
>>>>> PTZ capabilities of this camera. It is free, open source and use V4L2
>>>>>
>> API.
>>
>>>>> Its name is guvcview and is available in official Gentoo portage tree
>>>>>
>> (it
>>
>>>>> is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
>>>>> with its built-in uvc driver). The plan is to use this source code as a
>>>>> hint how to write new sphere2 driver (I guess we should leave old sphere
>>>>> driver in Player tree for those who stick with old-V4L API - old 2.6.1x
>>>>> kernels for embedded computers may still provide it).
>>>>>
>>>>> Paul
>>>>>
>>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>>
>>>>>
>>>>>
>>>>>> I hope it would be easier to add ptz interface (not provided by
>>>>>>
>> default)
>>
>>>>>> to camerauvc driver (which itself seems need some bugfixing).
>>>>>> Paul
>>>>>>
>>>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L
>>>>>>>
>> API
>>
>>>>>>> (actually it includes headers from old-API camerav4l driver) while
>>>>>>> uvc kernel module offers only new V4L2 API (I've tried ekiga
>>>>>>>
>> application
>>
>>>>>>> which can easily switch between new and old API, sphere camera can be
>>>>>>> opened only using new API functions). I guess this driver might have
>>>>>>>
>> been
>>
>>>>>>> tested with 2.4 kernels some time ago, it won't work with any recent
>>>>>>>
>> Linux
>>
>>>>>>> distro. Basically, this driver must be rewritten (to look like
>>>>>>>
>> camerauvc
>>
>>>>>>> driver which itself uses new V4L2 API), however, as I quickly looked
>>>>>>>
>> at
>>
>>>>>>> it, it seems it uses extended old-V4L API funcions to control ptz
>>>>>>> capabilities of the camera. This can make rewriting job harder to
>>>>>>> complete. I can try to do that, however, for me it won't be a task of
>>>>>>>
>> high
>>
>>>>>>> priority, earning money have higher priority nowadays.
>>>>>>>
>>>>>>> Paul
>>>>>>>
>>>>>>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> The "broken sphere camera driver" topic returns from time to time, so
>>>>>>>>
>> I
>>
>>>>>>>> decided to buy one for my lab and see what the situation is. I've
>>>>>>>>
>> just
>>
>>>>>>>> received it so I hope I'll be able to release a patch soon (right
>>>>>>>>
>> after I
>>
>>>>>>>> finish my ranger interface collective bugfix), so stay tuned.
>>>>>>>>
>>>>>>>> Paul
>>>>>>>>
>>>>>>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>>>>>>
>>>>>>>>> I use Player 2.1.3.
>>>>>>>>>
>>>>>>>>> I would like to capture the camera with player and control the
>>>>>>>>> pan/tilt/zoom.
>>>>>>>>>
>>>>>>>>> I have tried with the sphere driver, config file:
>>>>>>>>>
>>>>>>>>> driver
>>>>>>>>> (
>>>>>>>>>  name "sphere"
>>>>>>>>>  provides ["ptz:0" "camera:0"]
>>>>>>>>>  port "/dev/video0"
>>>>>>>>>  size [800 600]
>>>>>>>>>  mode "RGB24"
>>>>>>>>>  automatic_wb "fl"
>>>>>>>>>  framerate 30
>>>>>>>>>  shutter_speed   64000
>>>>>>>>>  automatic_gain  10000
>>>>>>>>>  dump_settings 0
>>>>>>>>> )
>>>>>>>>>
>>>>>>>>> player runs properly, but I cannot subscribe to the camera. I get
>>>>>>>>>
>> the
>>
>>>>>>>>> error
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> accepted TCP client 0 on port 6665, fd 7
>>>>>>>>> Setting up sphere driver
>>>>>>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>>>>>>> fg_open(): get memory buffer: Invalid argument
>>>>>>>>> error   : Setup():  unable to open
>>>>>>>>> warning : subscription failed for device camera:0
>>>>>>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>>>>>>
>>>>>>>>> If instead of the sphere plugin I use "camerauvc" it works properly,
>>>>>>>>>
>> but
>>
>>>>>>>>> I cannot control ptz.
>>>>>>>>>
>>>>>>>>> Some advice?? Why "sphere" does not work??
>>>>>>>>>
>>>>>>>>> Thanks in advance.
>>>>>>>>>
>>>>>>>>> --Alberto.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>> ----------------------------------------------------------------------------
>> --
>>
>>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>>
>> your
>>
>>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>>
>> stay
>>
>>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register
>>>>>>>>>
>> now!
>>
>>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>>> _______________________________________________
>>>>>>>>> Playerstage-users mailing list
>>>>>>>>> Playerstage-users@...
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>> ----------------------------------------------------------------------------
>> --
>>
>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>
>> your
>>
>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>
>> stay
>>
>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>> _______________________________________________
>>>>>>>> Playerstage-users mailing list
>>>>>>>> Playerstage-users@...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>
>>>>>>>>
>>>>>>>>
>> ----------------------------------------------------------------------------
>> --
>>
>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>
>> your
>>
>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>
>> stay
>>
>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>> _______________________________________________
>>>>>>> Playerstage-users mailing list
>>>>>>> Playerstage-users@...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>
>>>>>>>
>>>>>>>
>> ----------------------------------------------------------------------------
>> --
>>
>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>
>> your
>>
>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>
>> stay
>>
>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>> http://p.sf.net/sfu/devconference
>>>>>> _______________________________________________
>>>>>> Playerstage-users mailing list
>>>>>> Playerstage-users@...
>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>
>>>>>>
>>>>>>
>> ----------------------------------------------------------------------------
>> --
>>
>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>
>> stay
>>
>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>> http://p.sf.net/sfu/devconference
>>>>> _______________________________________________
>>>>> Playerstage-users mailing list
>>>>> Playerstage-users@...
>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>
>>>>>
>>>>>
>>>>
>> ----------------------------------------------------------------------------
>> --
>>
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>>
>>>
>> ----------------------------------------------------------------------------
>> --
>>
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>>
>> 30-Day
>>
>>> trial. Simplify your report design, integration and deployment - and focus
>>>
>> on
>>
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>>
>>
>> ----------------------------------------------------------------------------
>> --
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Elvina Motard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Paul,

The version of my kernel is 2.6.31-14; my camera is able to work with my
kernel, since using player I can visualize the images.
I have tried to unplug and the plug again the camera several times, but
I still can't get it to work.

Elvina


Paul Osmialowski wrote:

> On Fri, 6 Nov 2009, Elvina Motard wrote:
>
>  
>> Dear Rich, Paul,
>>
>> I created a player 2.1.1 plugin from the patch which compiles properly.
>> Then I launch player with a configuration file containing the sphereptz
>> driver and the camerauvc driver for my camera. I am able to visualize
>> the images from the camera through playercam, but when I try to
>> subscribe to the sphereptz through playerv, I get the following error:
>> warning : V4L2_CAP_READWRITE check failed (ignored)
>> error: VIDIOC_S_EXT_CTRLS failed for device ptz:0
>> warning: subscription failed for device ptz:0.
>>
>> Sounds like it can not send commands to the camera. Do you have an idea
>> why ?
>> Thanks,
>> Elvina
>>
>>    
>
> What kernel version are you using? I have experienced "VIDIOC_S_EXT_CTRLS
> failed" in two cases:
> 1. when I was using Scientific Linux with 2.6.18 kernel
> 2. when camera firmware haned up
>
> For the first case, no help, this drivers works for me on my Gentoo Linux
> with 2.6.30-gentoo-r8 kernel which is rather new. If you're not sure if
> your camera is able to work with your kernel, try to compile and run
> guvcview application, if it can't compile or if it can't work it means
> your Linux kernel is too old.
>
> For the second case the solution was to disconnect camera USB cable for a
> half a minute and plug it in again.
>
> >From what you wrote I assume I don't have to prepare separate plugin
> anymore?
> I have made some patch for this driver that solves compilation problems on
> older 2.6 kernels but since you were able to compile it, this patch seems
> to be irrelevant for you.
>
> Paul
>
>  
>> Rich Mattes wrote:
>>    
>>> You can probably get away with changing the names of the functions back to
>>> 2.1 API style:
>>> 3.0                   2.1
>>> void MainSetup()      int Setup()
>>> void MainQuit()       int Shutdown()
>>>
>>> And then change the class inheritance from
>>> public: ThreadedDriver
>>> to
>>> public: Driver
>>>
>>> After that you have to add a call to StartThread() at the end of Setup(),
>>> and StopThread() in Shutdown().
>>>
>>> To get it to compile as a plugin driver for player 2.1, you also need some
>>> extra driver registration code.  Look in ${prefix}/share/player/examples for
>>> the example plugin driver, and use that as a template.  There will be one
>>> function you have to add to the source file, the one that's contained in
>>> extern "C".  Then you can use the makefile in that directory as a template
>>> for building as a plugin.
>>>
>>> http://playerstage.sourceforge.net/wiki/Writing_a_Player_plugin_driver also
>>> contains a more complicated way to compile a plugin driver for 2.1, using
>>> automake.
>>>
>>> -----Original Message-----
>>> From: Paul Osmialowski [mailto:newchief@...]
>>> Sent: Friday, November 06, 2009 8:22 AM
>>> To: playerstage-users@...
>>> Subject: Re: [Playerstage-users] sphere driver error
>>>
>>> Comparing to Player 3, adding new drivers to the main Player tree is not
>>> that simple on older Players. It would be easier to release this as a
>>> plugin, however, I'd have to remind myself if threaded drivers were
>>> already introduced to Player 2.1. For now I don't remember how it was done
>>> then, fortunately, I can use Player 2.1 camerav4l driver as a template.
>>>
>>> Since I'm extremely busy this week, I'd be able to do that in the middle
>>> of next week.
>>>
>>> Paul
>>>
>>> On Fri, 6 Nov 2009, Elvina Motard wrote:
>>>
>>>
>>>      
>>>> Dear Paul,
>>>>
>>>> Thanks for fixing the sphere driver. However, I am working on player
>>>> 2.1.1 and I can't get the patch to work. Is it possible to have a patch
>>>> for this version ?
>>>>
>>>> Elvina
>>>>
>>>> Paul Osmialowski wrote:
>>>>
>>>>        
>>>>> New working driver (sphereptz) is waiting on a patch tracker.
>>>>>
>>>>> Paul
>>>>>
>>>>> On Sun, 25 Oct 2009, Paul Osmialowski wrote:
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>> Some news:
>>>>>> 1. Good: camerauvc drivers is not buggy, it works fine for me with
>>>>>> Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
>>>>>> Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
>>>>>> 1. Bad: sphere driver code designed for old-V4L API cannot be reused to
>>>>>> write new sphere driver, headers it uses (for PTZ ioctl's definitions)
>>>>>> just cannot be mixed with V4L2 API.
>>>>>> 2. Good news is that finally I've found a program that is able to
>>>>>>
>>>>>>            
>>> operate
>>>
>>>      
>>>>>> PTZ capabilities of this camera. It is free, open source and use V4L2
>>>>>>
>>>>>>            
>>> API.
>>>
>>>      
>>>>>> Its name is guvcview and is available in official Gentoo portage tree
>>>>>>
>>>>>>            
>>> (it
>>>
>>>      
>>>>>> is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
>>>>>> with its built-in uvc driver). The plan is to use this source code as a
>>>>>> hint how to write new sphere2 driver (I guess we should leave old sphere
>>>>>> driver in Player tree for those who stick with old-V4L API - old 2.6.1x
>>>>>> kernels for embedded computers may still provide it).
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>> I hope it would be easier to add ptz interface (not provided by
>>>>>>>
>>>>>>>              
>>> default)
>>>
>>>      
>>>>>>> to camerauvc driver (which itself seems need some bugfixing).
>>>>>>> Paul
>>>>>>>
>>>>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L
>>>>>>>>
>>>>>>>>                
>>> API
>>>
>>>      
>>>>>>>> (actually it includes headers from old-API camerav4l driver) while
>>>>>>>> uvc kernel module offers only new V4L2 API (I've tried ekiga
>>>>>>>>
>>>>>>>>                
>>> application
>>>
>>>      
>>>>>>>> which can easily switch between new and old API, sphere camera can be
>>>>>>>> opened only using new API functions). I guess this driver might have
>>>>>>>>
>>>>>>>>                
>>> been
>>>
>>>      
>>>>>>>> tested with 2.4 kernels some time ago, it won't work with any recent
>>>>>>>>
>>>>>>>>                
>>> Linux
>>>
>>>      
>>>>>>>> distro. Basically, this driver must be rewritten (to look like
>>>>>>>>
>>>>>>>>                
>>> camerauvc
>>>
>>>      
>>>>>>>> driver which itself uses new V4L2 API), however, as I quickly looked
>>>>>>>>
>>>>>>>>                
>>> at
>>>
>>>      
>>>>>>>> it, it seems it uses extended old-V4L API funcions to control ptz
>>>>>>>> capabilities of the camera. This can make rewriting job harder to
>>>>>>>> complete. I can try to do that, however, for me it won't be a task of
>>>>>>>>
>>>>>>>>                
>>> high
>>>
>>>      
>>>>>>>> priority, earning money have higher priority nowadays.
>>>>>>>>
>>>>>>>> Paul
>>>>>>>>
>>>>>>>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> The "broken sphere camera driver" topic returns from time to time, so
>>>>>>>>>
>>>>>>>>>                  
>>> I
>>>
>>>      
>>>>>>>>> decided to buy one for my lab and see what the situation is. I've
>>>>>>>>>
>>>>>>>>>                  
>>> just
>>>
>>>      
>>>>>>>>> received it so I hope I'll be able to release a patch soon (right
>>>>>>>>>
>>>>>>>>>                  
>>> after I
>>>
>>>      
>>>>>>>>> finish my ranger interface collective bugfix), so stay tuned.
>>>>>>>>>
>>>>>>>>> Paul
>>>>>>>>>
>>>>>>>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>> Hi all,
>>>>>>>>>>
>>>>>>>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>>>>>>>
>>>>>>>>>> I use Player 2.1.3.
>>>>>>>>>>
>>>>>>>>>> I would like to capture the camera with player and control the
>>>>>>>>>> pan/tilt/zoom.
>>>>>>>>>>
>>>>>>>>>> I have tried with the sphere driver, config file:
>>>>>>>>>>
>>>>>>>>>> driver
>>>>>>>>>> (
>>>>>>>>>>  name "sphere"
>>>>>>>>>>  provides ["ptz:0" "camera:0"]
>>>>>>>>>>  port "/dev/video0"
>>>>>>>>>>  size [800 600]
>>>>>>>>>>  mode "RGB24"
>>>>>>>>>>  automatic_wb "fl"
>>>>>>>>>>  framerate 30
>>>>>>>>>>  shutter_speed   64000
>>>>>>>>>>  automatic_gain  10000
>>>>>>>>>>  dump_settings 0
>>>>>>>>>> )
>>>>>>>>>>
>>>>>>>>>> player runs properly, but I cannot subscribe to the camera. I get
>>>>>>>>>>
>>>>>>>>>>                    
>>> the
>>>
>>>      
>>>>>>>>>> error
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> accepted TCP client 0 on port 6665, fd 7
>>>>>>>>>> Setting up sphere driver
>>>>>>>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>>>>>>>> fg_open(): get memory buffer: Invalid argument
>>>>>>>>>> error   : Setup():  unable to open
>>>>>>>>>> warning : subscription failed for device camera:0
>>>>>>>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>>>>>>>
>>>>>>>>>> If instead of the sphere plugin I use "camerauvc" it works properly,
>>>>>>>>>>
>>>>>>>>>>                    
>>> but
>>>
>>>      
>>>>>>>>>> I cannot control ptz.
>>>>>>>>>>
>>>>>>>>>> Some advice?? Why "sphere" does not work??
>>>>>>>>>>
>>>>>>>>>> Thanks in advance.
>>>>>>>>>>
>>>>>>>>>> --Alberto.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>> ----------------------------------------------------------------------------
>>> --
>>>
>>>      
>>>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>>>
>>>>>>>>>>                    
>>> your
>>>
>>>      
>>>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>>>
>>>>>>>>>>                    
>>> stay
>>>
>>>      
>>>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register
>>>>>>>>>>
>>>>>>>>>>                    
>>> now!
>>>
>>>      
>>>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Playerstage-users mailing list
>>>>>>>>>> Playerstage-users@...
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>> ----------------------------------------------------------------------------
>>> --
>>>
>>>      
>>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>>
>>>>>>>>>                  
>>> your
>>>
>>>      
>>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>>
>>>>>>>>>                  
>>> stay
>>>
>>>      
>>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>>> _______________________________________________
>>>>>>>>> Playerstage-users mailing list
>>>>>>>>> Playerstage-users@...
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>> ----------------------------------------------------------------------------
>>> --
>>>
>>>      
>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>
>>>>>>>>                
>>> your
>>>
>>>      
>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>
>>>>>>>>                
>>> stay
>>>
>>>      
>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>> _______________________________________________
>>>>>>>> Playerstage-users mailing list
>>>>>>>> Playerstage-users@...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>> ----------------------------------------------------------------------------
>>> --
>>>
>>>      
>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>
>>>>>>>              
>>> your
>>>
>>>      
>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>
>>>>>>>              
>>> stay
>>>
>>>      
>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>> _______________________________________________
>>>>>>> Playerstage-users mailing list
>>>>>>> Playerstage-users@...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>> ----------------------------------------------------------------------------
>>> --
>>>
>>>      
>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>
>>>>>>            
>>> stay
>>>
>>>      
>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>> http://p.sf.net/sfu/devconference
>>>>>> _______________________________________________
>>>>>> Playerstage-users mailing list
>>>>>> Playerstage-users@...
>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>> ----------------------------------------------------------------------------
>>> --
>>>
>>>      
>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>> http://p.sf.net/sfu/devconference
>>>>> _______________________________________________
>>>>> Playerstage-users mailing list
>>>>> Playerstage-users@...
>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>
>>>>>
>>>>>          
>>> ----------------------------------------------------------------------------
>>> --
>>>
>>>      
>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>>>
>>>>        
>>> 30-Day
>>>
>>>      
>>>> trial. Simplify your report design, integration and deployment - and focus
>>>>
>>>>        
>>> on
>>>
>>>      
>>>> what you do best, core application coding. Discover what's new with
>>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>>
>>>>        
>>> ----------------------------------------------------------------------------
>>> --
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus
>>> on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>>      
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>>    
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>  


--
Elvina Motard
Robotics Engineer

Space Applications Services
Leuvensesteenweg 325, B-1932 Zaventem, Belgium
Tel: +32 2 721 54 84 Fax: +32 2 721 54 44
URL: http://www.spaceapplications.com


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users

Re: sphere driver error

by Paul Osmialowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Elvina,

With the 2.6.31 kernel it should work. Also, if you can see live image
from Player's camerauvc driver it gives a clue that kernel-side driver
operates camera properly. Did you try guvcview utility? Can it be compiled
properly on your system? My sphereptz driver uses the same code for ptz
operations.

Paul

On Mon, 9 Nov 2009, Elvina Motard wrote:

> Dear Paul,
>
> The version of my kernel is 2.6.31-14; my camera is able to work with my
> kernel, since using player I can visualize the images.
> I have tried to unplug and the plug again the camera several times, but
> I still can't get it to work.
>
> Elvina
>
>
> Paul Osmialowski wrote:
>> On Fri, 6 Nov 2009, Elvina Motard wrote:
>>
>>
>>> Dear Rich, Paul,
>>>
>>> I created a player 2.1.1 plugin from the patch which compiles properly.
>>> Then I launch player with a configuration file containing the sphereptz
>>> driver and the camerauvc driver for my camera. I am able to visualize
>>> the images from the camera through playercam, but when I try to
>>> subscribe to the sphereptz through playerv, I get the following error:
>>> warning : V4L2_CAP_READWRITE check failed (ignored)
>>> error: VIDIOC_S_EXT_CTRLS failed for device ptz:0
>>> warning: subscription failed for device ptz:0.
>>>
>>> Sounds like it can not send commands to the camera. Do you have an idea
>>> why ?
>>> Thanks,
>>> Elvina
>>>
>>>
>>
>> What kernel version are you using? I have experienced "VIDIOC_S_EXT_CTRLS
>> failed" in two cases:
>> 1. when I was using Scientific Linux with 2.6.18 kernel
>> 2. when camera firmware haned up
>>
>> For the first case, no help, this drivers works for me on my Gentoo Linux
>> with 2.6.30-gentoo-r8 kernel which is rather new. If you're not sure if
>> your camera is able to work with your kernel, try to compile and run
>> guvcview application, if it can't compile or if it can't work it means
>> your Linux kernel is too old.
>>
>> For the second case the solution was to disconnect camera USB cable for a
>> half a minute and plug it in again.
>>
>>> From what you wrote I assume I don't have to prepare separate plugin
>> anymore?
>> I have made some patch for this driver that solves compilation problems on
>> older 2.6 kernels but since you were able to compile it, this patch seems
>> to be irrelevant for you.
>>
>> Paul
>>
>>
>>> Rich Mattes wrote:
>>>
>>>> You can probably get away with changing the names of the functions back to
>>>> 2.1 API style:
>>>> 3.0                   2.1
>>>> void MainSetup()      int Setup()
>>>> void MainQuit()       int Shutdown()
>>>>
>>>> And then change the class inheritance from
>>>> public: ThreadedDriver
>>>> to
>>>> public: Driver
>>>>
>>>> After that you have to add a call to StartThread() at the end of Setup(),
>>>> and StopThread() in Shutdown().
>>>>
>>>> To get it to compile as a plugin driver for player 2.1, you also need some
>>>> extra driver registration code.  Look in ${prefix}/share/player/examples for
>>>> the example plugin driver, and use that as a template.  There will be one
>>>> function you have to add to the source file, the one that's contained in
>>>> extern "C".  Then you can use the makefile in that directory as a template
>>>> for building as a plugin.
>>>>
>>>> http://playerstage.sourceforge.net/wiki/Writing_a_Player_plugin_driver also
>>>> contains a more complicated way to compile a plugin driver for 2.1, using
>>>> automake.
>>>>
>>>> -----Original Message-----
>>>> From: Paul Osmialowski [mailto:newchief@...]
>>>> Sent: Friday, November 06, 2009 8:22 AM
>>>> To: playerstage-users@...
>>>> Subject: Re: [Playerstage-users] sphere driver error
>>>>
>>>> Comparing to Player 3, adding new drivers to the main Player tree is not
>>>> that simple on older Players. It would be easier to release this as a
>>>> plugin, however, I'd have to remind myself if threaded drivers were
>>>> already introduced to Player 2.1. For now I don't remember how it was done
>>>> then, fortunately, I can use Player 2.1 camerav4l driver as a template.
>>>>
>>>> Since I'm extremely busy this week, I'd be able to do that in the middle
>>>> of next week.
>>>>
>>>> Paul
>>>>
>>>> On Fri, 6 Nov 2009, Elvina Motard wrote:
>>>>
>>>>
>>>>
>>>>> Dear Paul,
>>>>>
>>>>> Thanks for fixing the sphere driver. However, I am working on player
>>>>> 2.1.1 and I can't get the patch to work. Is it possible to have a patch
>>>>> for this version ?
>>>>>
>>>>> Elvina
>>>>>
>>>>> Paul Osmialowski wrote:
>>>>>
>>>>>
>>>>>> New working driver (sphereptz) is waiting on a patch tracker.
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>> On Sun, 25 Oct 2009, Paul Osmialowski wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Some news:
>>>>>>> 1. Good: camerauvc drivers is not buggy, it works fine for me with
>>>>>>> Sphere camera on two dramatically different kernels: RedHat's 2.6.18 for
>>>>>>> Scientific Linux 5.x and vanilla kernel 2.6.30 for Gentoo Linux.
>>>>>>> 1. Bad: sphere driver code designed for old-V4L API cannot be reused to
>>>>>>> write new sphere driver, headers it uses (for PTZ ioctl's definitions)
>>>>>>> just cannot be mixed with V4L2 API.
>>>>>>> 2. Good news is that finally I've found a program that is able to
>>>>>>>
>>>>>>>
>>>> operate
>>>>
>>>>
>>>>>>> PTZ capabilities of this camera. It is free, open source and use V4L2
>>>>>>>
>>>>>>>
>>>> API.
>>>>
>>>>
>>>>>>> Its name is guvcview and is available in official Gentoo portage tree
>>>>>>>
>>>>>>>
>>>> (it
>>>>
>>>>
>>>>>>> is ~x86 masked, fortunately it works stable, tested on 2.6.30 kernel
>>>>>>> with its built-in uvc driver). The plan is to use this source code as a
>>>>>>> hint how to write new sphere2 driver (I guess we should leave old sphere
>>>>>>> driver in Player tree for those who stick with old-V4L API - old 2.6.1x
>>>>>>> kernels for embedded computers may still provide it).
>>>>>>>
>>>>>>> Paul
>>>>>>>
>>>>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> I hope it would be easier to add ptz interface (not provided by
>>>>>>>>
>>>>>>>>
>>>> default)
>>>>
>>>>
>>>>>>>> to camerauvc driver (which itself seems need some bugfixing).
>>>>>>>> Paul
>>>>>>>>
>>>>>>>> On Sun, 18 Oct 2009, Paul Osmialowski wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> BAD NEWS: I've looked at the code of sphere driver, it uses old V4L
>>>>>>>>>
>>>>>>>>>
>>>> API
>>>>
>>>>
>>>>>>>>> (actually it includes headers from old-API camerav4l driver) while
>>>>>>>>> uvc kernel module offers only new V4L2 API (I've tried ekiga
>>>>>>>>>
>>>>>>>>>
>>>> application
>>>>
>>>>
>>>>>>>>> which can easily switch between new and old API, sphere camera can be
>>>>>>>>> opened only using new API functions). I guess this driver might have
>>>>>>>>>
>>>>>>>>>
>>>> been
>>>>
>>>>
>>>>>>>>> tested with 2.4 kernels some time ago, it won't work with any recent
>>>>>>>>>
>>>>>>>>>
>>>> Linux
>>>>
>>>>
>>>>>>>>> distro. Basically, this driver must be rewritten (to look like
>>>>>>>>>
>>>>>>>>>
>>>> camerauvc
>>>>
>>>>
>>>>>>>>> driver which itself uses new V4L2 API), however, as I quickly looked
>>>>>>>>>
>>>>>>>>>
>>>> at
>>>>
>>>>
>>>>>>>>> it, it seems it uses extended old-V4L API funcions to control ptz
>>>>>>>>> capabilities of the camera. This can make rewriting job harder to
>>>>>>>>> complete. I can try to do that, however, for me it won't be a task of
>>>>>>>>>
>>>>>>>>>
>>>> high
>>>>
>>>>
>>>>>>>>> priority, earning money have higher priority nowadays.
>>>>>>>>>
>>>>>>>>> Paul
>>>>>>>>>
>>>>>>>>> On Fri, 16 Oct 2009, Paul Osmialowski wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> The "broken sphere camera driver" topic returns from time to time, so
>>>>>>>>>>
>>>>>>>>>>
>>>> I
>>>>
>>>>
>>>>>>>>>> decided to buy one for my lab and see what the situation is. I've
>>>>>>>>>>
>>>>>>>>>>
>>>> just
>>>>
>>>>
>>>>>>>>>> received it so I hope I'll be able to release a patch soon (right
>>>>>>>>>>
>>>>>>>>>>
>>>> after I
>>>>
>>>>
>>>>>>>>>> finish my ranger interface collective bugfix), so stay tuned.
>>>>>>>>>>
>>>>>>>>>> Paul
>>>>>>>>>>
>>>>>>>>>> On Thu, 15 Oct 2009, Alberto Valero Gomez wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Hi all,
>>>>>>>>>>>
>>>>>>>>>>> I have a Sphere Logitech camera working properly on Ubuntu 9.10
>>>>>>>>>>>
>>>>>>>>>>> I use Player 2.1.3.
>>>>>>>>>>>
>>>>>>>>>>> I would like to capture the camera with player and control the
>>>>>>>>>>> pan/tilt/zoom.
>>>>>>>>>>>
>>>>>>>>>>> I have tried with the sphere driver, config file:
>>>>>>>>>>>
>>>>>>>>>>> driver
>>>>>>>>>>> (
>>>>>>>>>>>  name "sphere"
>>>>>>>>>>>  provides ["ptz:0" "camera:0"]
>>>>>>>>>>>  port "/dev/video0"
>>>>>>>>>>>  size [800 600]
>>>>>>>>>>>  mode "RGB24"
>>>>>>>>>>>  automatic_wb "fl"
>>>>>>>>>>>  framerate 30
>>>>>>>>>>>  shutter_speed   64000
>>>>>>>>>>>  automatic_gain  10000
>>>>>>>>>>>  dump_settings 0
>>>>>>>>>>> )
>>>>>>>>>>>
>>>>>>>>>>> player runs properly, but I cannot subscribe to the camera. I get
>>>>>>>>>>>
>>>>>>>>>>>
>>>> the
>>>>
>>>>
>>>>>>>>>>> error
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> accepted TCP client 0 on port 6665, fd 7
>>>>>>>>>>> Setting up sphere driver
>>>>>>>>>>> fg_open(): get framebuffer failed; ignoring: Invalid argument
>>>>>>>>>>> fg_open(): get memory buffer: Invalid argument
>>>>>>>>>>> error   : Setup():  unable to open
>>>>>>>>>>> warning : subscription failed for device camera:0
>>>>>>>>>>> warning : skipping subscription to unknown device blobfinder:0
>>>>>>>>>>>
>>>>>>>>>>> If instead of the sphere plugin I use "camerauvc" it works properly,
>>>>>>>>>>>
>>>>>>>>>>>
>>>> but
>>>>
>>>>
>>>>>>>>>>> I cannot control ptz.
>>>>>>>>>>>
>>>>>>>>>>> Some advice?? Why "sphere" does not work??
>>>>>>>>>>>
>>>>>>>>>>> Thanks in advance.
>>>>>>>>>>>
>>>>>>>>>>> --Alberto.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>> ----------------------------------------------------------------------------
>>>> --
>>>>
>>>>
>>>>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>>>>
>>>>>>>>>>>
>>>> your
>>>>
>>>>
>>>>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>>>>
>>>>>>>>>>>
>>>> stay
>>>>
>>>>
>>>>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register
>>>>>>>>>>>
>>>>>>>>>>>
>>>> now!
>>>>
>>>>
>>>>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Playerstage-users mailing list
>>>>>>>>>>> Playerstage-users@...
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>> ----------------------------------------------------------------------------
>>>> --
>>>>
>>>>
>>>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>>>
>>>>>>>>>>
>>>> your
>>>>
>>>>
>>>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>>>
>>>>>>>>>>
>>>> stay
>>>>
>>>>
>>>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Playerstage-users mailing list
>>>>>>>>>> Playerstage-users@...
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>> ----------------------------------------------------------------------------
>>>> --
>>>>
>>>>
>>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>>
>>>>>>>>>
>>>> your
>>>>
>>>>
>>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>>
>>>>>>>>>
>>>> stay
>>>>
>>>>
>>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>>> _______________________________________________
>>>>>>>>> Playerstage-users mailing list
>>>>>>>>> Playerstage-users@...
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>> ----------------------------------------------------------------------------
>>>> --
>>>>
>>>>
>>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>>> is the only developer event you need to attend this year. Jumpstart
>>>>>>>>
>>>>>>>>
>>>> your
>>>>
>>>>
>>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>>
>>>>>>>>
>>>> stay
>>>>
>>>>
>>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>>> _______________________________________________
>>>>>>>> Playerstage-users mailing list
>>>>>>>> Playerstage-users@...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>> ----------------------------------------------------------------------------
>>>> --
>>>>
>>>>
>>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>>>> developing skills, take BlackBerry mobile applications to market and
>>>>>>>
>>>>>>>
>>>> stay
>>>>
>>>>
>>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>>> http://p.sf.net/sfu/devconference
>>>>>>> _______________________________________________
>>>>>>> Playerstage-users mailing list
>>>>>>> Playerstage-users@...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>> ----------------------------------------------------------------------------
>>>> --
>>>>
>>>>
>>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>>> http://p.sf.net/sfu/devconference
>>>>>> _______________________________________________
>>>>>> Playerstage-users mailing list
>>>>>> Playerstage-users@...
>>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>>
>>>>>>
>>>>>>
>>>> ----------------------------------------------------------------------------
>>>> --
>>>>
>>>>
>>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>>>>
>>>>>
>>>> 30-Day
>>>>
>>>>
>>>>> trial. Simplify your report design, integration and deployment - and focus
>>>>>
>>>>>
>>>> on
>>>>
>>>>
>>>>> what you do best, core application coding. Discover what's new with
>>>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>>>> _______________________________________________
>>>>> Playerstage-users mailing list
>>>>> Playerstage-users@...
>>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>>
>>>>>
>>>>>
>>>> ----------------------------------------------------------------------------
>>>> --
>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>>> trial. Simplify your report design, integration and deployment - and focus
>>>> on
>>>> what you do best, core application coding. Discover what's new with
>>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>>> trial. Simplify your report design, integration and deployment - and focus on
>>>> what you do best, core application coding. Discover what's new with
>>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>>> _______________________________________________
>>>> Playerstage-users mailing list
>>>> Playerstage-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Playerstage-users mailing list
>>> Playerstage-users@...
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>
>
> --
> Elvina Motard
> Robotics Engineer
>
> Space Applications Services
> Leuvensesteenweg 325, B-1932 Zaventem, Belgium
> Tel: +32 2 721 54 84 Fax: +32 2 721 54 44
> URL: http://www.spaceapplications.com
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users