Inquiries
VISCA inquiries read the current state or value of a camera setting.
An inquiry returns one data-bearing completion message. It does not return a separate acknowledgement. See Responses for the general reply and error formats.
Packet Notation
| Symbol | Meaning |
|---|---|
81 | Controller-to-camera header used by these PTZOptics examples. It addresses camera 1; VISCA over IP fixes the VISCA destination at 1. |
09 | Identifies the packet as an inquiry. |
y | Reply-address nibble. y is 9 for VISCA over IP and the camera address plus 8 for serial VISCA. |
50 | An inquiry does not allocate a VISCA command socket and does not return a separate ACK. A successful inquiry returns its data directly in a completion reply whose socket-number field is 0: y0 50 ... FF |
p, q, r, s | Hexadecimal value nibbles. Each placeholder represents one hexadecimal digit. |
0p | One byte whose high nibble is zero and whose low nibble is the value of p. |
FF | Packet terminator. |
When a reply contains 0p 0q 0r 0s, concatenate the four low nibbles to recover the value pqrs. For example, 90 50 01 02 03 04 FF contains p=1, q=2, r=3, and s=4, so the returned value is 0x1234.
The packets below use concrete 81 inquiry headers and symbolic y0 response headers. For VISCA over IP, replace y0 with 90.
State and Mode Inquiries
| Inquiry | Inquiry packet | Response packet | Returned value |
|---|---|---|---|
CAM_PowerInq | 81 09 04 00 FF | y0 50 02 FF | On |
| * | 81 09 04 00 FF | y0 50 03 FF | Off (standby) |
| * | 81 09 04 00 FF | y0 50 04 FF | Internal power circuit error |
CAM_FocusAFModeInq | 81 09 04 38 FF | y0 50 02 FF | Auto focus |
| * | 81 09 04 38 FF | y0 50 03 FF | Manual focus |
CAM_WBModeInq | 81 09 04 35 FF | y0 50 00 FF | Auto |
| * | 81 09 04 35 FF | y0 50 01 FF | Indoor |
| * | 81 09 04 35 FF | y0 50 02 FF | Outdoor |
| * | 81 09 04 35 FF | y0 50 03 FF | One Push |
| * | 81 09 04 35 FF | y0 50 05 FF | Manual |
| * | 81 09 04 35 FF | y0 50 20 FF | Color Temperature |
CAM_AEModeInq | 81 09 04 39 FF | y0 50 00 FF | Full Auto |
| * | 81 09 04 39 FF | y0 50 03 FF | Manual |
| * | 81 09 04 39 FF | y0 50 0A FF | Shutter Priority |
| * | 81 09 04 39 FF | y0 50 0B FF | Iris Priority |
| * | 81 09 04 39 FF | y0 50 0D FF | Bright |
CAM_ExpCompModeInq | 81 09 04 3E FF | y0 50 02 FF | On |
| * | 81 09 04 3E FF | y0 50 03 FF | Off |
CAM_BacklightModeInq | 81 09 04 33 FF | y0 50 02 FF | On |
| * | 81 09 04 33 FF | y0 50 03 FF | Off |
CAM_Noise2DModeModeInq | 81 09 04 50 FF | y0 50 02 FF | Auto |
| * | 81 09 04 50 FF | y0 50 03 FF | Manual |
CAM_FlickerModeInq | 81 09 04 55 FF | y0 50 00 FF | Off |
| * | 81 09 04 55 FF | y0 50 01 FF | 50 Hz |
| * | 81 09 04 55 FF | y0 50 02 FF | 60 Hz |
CAM_ApertureModeInq (Sharpness) | 81 09 04 05 FF | y0 50 02 FF | Auto |
| * | 81 09 04 05 FF | y0 50 03 FF | Manual |
CAM_MenuModeInq | 81 09 06 06 FF | y0 50 02 FF | On |
| * | 81 09 06 06 FF | y0 50 03 FF | Off |
CAM_PictureEffectModeInq | 81 09 04 63 FF | y0 50 02 FF | Off |
| * | 81 09 04 63 FF | y0 50 04 FF | Black and white |
Numeric and Position Inquiries
| Inquiry | Inquiry packet | Response packet | Returned value |
|---|---|---|---|
CAM_ZoomPosInq | 81 09 04 47 FF | y0 50 0p 0q 0r 0s FF | Zoom position pqrs |
CAM_FocusPosInq | 81 09 04 48 FF | y0 50 0p 0q 0r 0s FF | Focus position pqrs |
CAM_RGainInq | 81 09 04 43 FF | y0 50 00 00 0p 0q FF | Red gain pq |
CAM_BGainInq | 81 09 04 44 FF | y0 50 00 00 0p 0q FF | Blue gain pq |
CAM_ColorTempInq | 81 09 04 20 FF | y0 50 pq FF | Color-temperature position pq |
CAM_RTuningInq | 81 09 04 12 FF | y0 50 00 00 0p 0q FF | Red tuning pq, from 0x00 through 0x14 |
CAM_BTuningInq | 81 09 04 13 FF | y0 50 00 00 0p 0q FF | Blue tuning pq, from 0x00 through 0x14 |
CAM_ShutterPosInq | 81 09 04 4A FF | y0 50 00 00 0p 0q FF | Shutter position pq |
CAM_IrisPosInq | 81 09 04 4B FF | y0 50 00 00 0p 0q FF | Iris position pq |
CAM_BrightPositionInq | 81 09 04 4D FF | y0 50 00 00 0p 0q FF | Bright position pq |
CAM_ExpCompPosInq | 81 09 04 4E FF | y0 50 00 00 0p 0q FF | Exposure-compensation position pq |
CAM_Noise2DLevel | 81 09 04 53 FF | y0 50 0p FF | 2D noise-reduction level p, from 0 through 5 |
CAM_Noise3DLevel | 81 09 04 54 FF | y0 50 0p FF | 3D noise-reduction level p, from 0 through 8 |
Compatibility
Inquiry support and value ranges can vary by PTZOptics model and firmware version. Confirm availability against the documentation for the target camera.