Orbit AF/MP/Pro 9000

Post here to indicate any hardware you have used and which is known to work with ZoneMinder. Not for questions.
Post Reply
JTheDoc
Posts: 11
Joined: Sun Aug 28, 2016 8:08 pm

Orbit AF/MP/Pro 9000

Post by JTheDoc » Sun Aug 28, 2016 9:43 pm

I've got little experience in Linux, and Zoneminder, so I hope someone with my level of understanding will find this useful.

You can use uvcdynctrl -cv to view the available list of commands that you can control the camera with.

For example, for my Orbit AF I get a list of settings I can change:

Code: Select all

sudo uvcdynctrl -cv
Listing available controls for device video0:
  Brightness
    ID      : 0x00000001,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 255, step size: 1 ],
    Default : 128
  Contrast
    ID      : 0x00000002,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 255, step size: 1 ],
    Default : 32
  Saturation
    ID      : 0x00000004,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 255, step size: 1 ],
    Default : 32
  White Balance Temperature, Auto
    ID      : 0x00000009,
    Type    : Boolean,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 1, step size: 1 ],
    Default : 1
  Gain
    ID      : 0x00000003,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 255, step size: 1 ],
    Default : 0
  Power Line Frequency
    ID      : 0x0000000d,
    Type    : Choice,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : { 'Disabled'[0], '50 Hz'[1], '60 Hz'[2] },
    Default : 2
  White Balance Temperature
    ID      : 0x00000008,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 10000, step size: 10 ],
    Default : 4000
  Sharpness
    ID      : 0x00000007,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 255, step size: 1 ],
    Default : 224
  Backlight Compensation
    ID      : 0x0000000c,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 2, step size: 1 ],
    Default : 1
  Exposure, Auto
    ID      : 0x0000000f,
    Type    : Choice,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : { 'Manual Mode'[1], 'Aperture Priority Mode'[3] },
    Default : 3
  Exposure (Absolute)
    ID      : 0x00000011,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 1 .. 10000, step size: 1 ],
    Default : 166
  Exposure, Auto Priority
    ID      : 0x00000010,
    Type    : Boolean,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 1, step size: 1 ],
    Default : 0
  Pan (relative)
    ID      : 0x0000001d,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ -4480 .. 4480, step size: 0 ],
    Default : 0
  Tilt (relative)
    ID      : 0x0000001f,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ -1920 .. 1920, step size: 0 ],
    Default : 0
  Pan Reset
    ID      : 0x00000023,
    Type    : Button,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 0, step size: 0 ],
    Default : 0
  Tilt Reset
    ID      : 0x00000024,
    Type    : Button,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 0, step size: 0 ],
    Default : 0
  Focus
    ID      : 0x00000015,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE },
    Values  : [ 0 .. 255, step size: 1 ],
    Default : 0
  LED1 Mode
    ID      : 0x046d0003,
    Type    : Choice,
    Flags   : { CAN_READ, CAN_WRITE, IS_CUSTOM },
    Values  : { 'Off'[0], 'On'[1], 'Blinking'[2], 'Auto'[3] },
    Default : 3
  LED1 Frequency
    ID      : 0x046d0004,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE, IS_CUSTOM },
    Values  : [ 0 .. 255, step size: 1 ],
    Default : 0
  Disable video processing
    ID      : 0x046d0005,
    Type    : Boolean,
    Flags   : { CAN_READ, CAN_WRITE, IS_CUSTOM },
    Values  : [ 0 .. 1, step size: 1 ],
    Default : 0
  Raw bits per pixel
    ID      : 0x046d0006,
    Type    : Dword,
    Flags   : { CAN_READ, CAN_WRITE, IS_CUSTOM },
    Values  : [ 0 .. 1, step size: 1 ],
    Default : 0
To execute these and set them, you use the uvcdynctrl command.
For example:

Code: Select all

sudo uvcdynctrl -s 'Tilt (relative)' -- 1280 
which successfully moves the camera.
When going into negative settings, such as -1280, please use -- -1280 so that the negative isn't seen as a command.

I still haven't got a clue how to incorporate this into a script that will allow Zoneminder to control the device, so I would like some help on that. But as far as I can see, no one has posted a "For dummies" guide on how to operate the logitech cameras. Maybe most don't, but it took me a while.

If someone could respond with how to though, I would love to use it, and allow others to see how.
Thanks! :)

More information about camera operation can be found here:
http://www.sphaero.org/blog:2012:0727_c ... mmand_line

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests