When I send GetLogicalPositionPtzCommand command to a camera, 500 error is returned.

Answered

Comments

6 comments

  • Avatar
    Anton Babinov

    Hi Makoto,

    do you get 500 response only for GetLogicalPositionPtzCommand command or any ptz command returns internal error? Is this specific to one camera model?

    Some of the cameras may not be capable of reporting its position. In that case, server will return internal error status code 500. Could you please share output of the API call /ec2/getCamerasEx for the camera in question?

    http://login:password@XXX.XXX.X.X:7001/ec2/getCamerasEx?deviceId=<cameraId>

     

    0
    Comment actions Permalink
  • Avatar
    Makoto Ogata

    Hi Anton.

     

    >do you get 500 response only for GetLogicalPositionPtzCommand command

    Yes. But it seems AbsoluteLogicalMovePtzCommand command is not working. Response is 200, but the camera head is not moved.

    > Is this specific to one camera model?

    Yes.

    > Could you please share output of the API call /ec2/getCamerasEx for the camera in question?

    Unfortunately, the camera is leaved from my hand. I can't share that with for now. If I can get it I will share with you.

    If possible, could you tell me how to identify this camera is not capable of reporting its position?

     

    Also, GetDevicePositionPtzCommand and AbsoluteDeviceMovePtzCommand are working it seems.

    If possible, could you tell me the detail of above end points? I read the API document but I have to say there is not enough information to use them.

    For example,

    1. What's difference of Device Position and Logical Position?
    2. How can I get range of each params(xPos, yPos, zPos) for Device Position commands?

    are missing. In my understanding, they are clearly required info to use them.

     

    Kind Regards,

    Makoto Ogata.

    0
    Comment actions Permalink
  • Avatar
    Makoto Ogata

    Hi Anton.

    I succeed to get the resonse for the camera.

    Could check that on below?

    Kind Regards,

    Makoto Ogata.

    {
    "addParams": [
    {
    "name": "DeviceUrl",
    "value": "http://10.10.10.2/onvif/device_service"
    },
    {
    "name": "VideoLayout",
    "value": ""
    },
    {
    "name": "bitrateInfos",
    "value": "{\"streams\":[{\"actualBitrate\":3.7086896896362305,\"actualFps\":29.97897720336914,\"averageGopSize\":27.272727966308594,\"bitrateFactor\":1,\"bitratePerGop\":false,\"encoderIndex\":\"primary\",\"fps\":29,\"isConfigured\":true,\"numberOfChannels\":1,\"rawSuggestedBitrate\":9.7587890625,\"resolution\":\"1920x1080\",\"suggestedBitrate\":3.7086896896362305,\"timestamp\":\"2021-06-17T04:35:47Z\"},{\"actualBitrate\":0.0690155029296875,\"actualFps\":5.003001689910889,\"averageGopSize\":25.5,\"bitrateFactor\":1,\"bitratePerGop\":false,\"encoderIndex\":\"secondary\",\"fps\":5,\"isConfigured\":true,\"numberOfChannels\":1,\"rawSuggestedBitrate\":0.361328125,\"resolution\":\"640x360\",\"suggestedBitrate\":0.1875,\"timestamp\":\"2021-06-17T04:36:40Z\"}]}"
    },
    {
    "name": "bitratePerGOP",
    "value": "0"
    },
    {
    "name": "cameraAdvancedParams",
    "value": "{\"groups\":[{\"aux\":\"\",\"description\":\"\",\"groups\":[{\"aux\":\"\",\"description\":\"\",\"groups\":[],\"name\":\"Primary\",\"params\":[{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Enumeration\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"primaryStream.codec\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Codec\",\"notes\":\"\",\"range\":\"H264,H265\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Enumeration\",\"dependencies\":[{\"conditions\":[{\"paramId\":\"primaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"}],\"id\":\"80b18033-d6f7-8188-1fb2-0605c26761a8\",\"internalRange\":\"\",\"range\":\"320x180,640x360,1280x720,1920x1080\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"primaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"}],\"id\":\"d3be7d79-fbc9-58d4-3d85-b0b84b2b5421\",\"internalRange\":\"\",\"range\":\"320x180,640x360,1280x720,1920x1080\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]}],\"description\":\"\",\"group\":\"\",\"id\":\"primaryStream.resolution\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Resolution\",\"notes\":\"\",\"range\":\"\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"Are you sure you want to set defaults for this stream?\",\"dataType\":\"Button\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"primaryStream.resetToDefaults\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Reset to Defaults\",\"notes\":\"\",\"range\":\"\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":true,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"String\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"Primary.multicast.address\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Multicast Address\",\"notes\":\"\",\"range\":\"\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"Primary.multicast.port\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Port\",\"notes\":\"\",\"range\":\"1024,65535\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"Primary.multicast.ttl\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"TTL\",\"notes\":\"\",\"range\":\"0,255\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"}]},{\"aux\":\"\",\"description\":\"\",\"groups\":[],\"name\":\"Secondary\",\"params\":[{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Enumeration\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"secondaryStream.codec\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Codec\",\"notes\":\"\",\"range\":\"H264,H265\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Enumeration\",\"dependencies\":[{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"}],\"id\":\"ca5cf50d-bf85-bce6-5853-d975a3726ef3\",\"internalRange\":\"\",\"range\":\"320x180,640x360,1280x720,1920x1080\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"}],\"id\":\"f88eb85b-8229-2107-ee02-89dae686decd\",\"internalRange\":\"\",\"range\":\"320x180,640x360,1280x720,1920x1080\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]}],\"description\":\"\",\"group\":\"\",\"id\":\"secondaryStream.resolution\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Resolution\",\"notes\":\"\",\"range\":\"\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"1280x720\"}],\"id\":\"b4bc17e4-1414-ff30-098c-31c5a640599e\",\"internalRange\":\"\",\"range\":\"192,4042\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"1920x1080\"}],\"id\":\"ab59b6a9-e7a0-6512-34a6-a4cd20717846\",\"internalRange\":\"\",\"range\":\"192,7130\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"320x180\"}],\"id\":\"ea9343ab-6221-2749-410e-a0413e4ca7d4\",\"internalRange\":\"\",\"range\":\"192,580\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"640x360\"}],\"id\":\"c80de95f-bd95-3f81-59e6-f028b001f43f\",\"internalRange\":\"\",\"range\":\"192,1531\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"1280x720\"}],\"id\":\"40416684-2307-dd63-9a68-b248aa100f3b\",\"internalRange\":\"\",\"range\":\"192,3233\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"1920x1080\"}],\"id\":\"8dfc8abe-d59f-c51d-a1f3-a894d76548a8\",\"internalRange\":\"\",\"range\":\"192,5704\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"320x180\"}],\"id\":\"2c34d6a6-a862-c1c9-1732-6088f80319fb\",\"internalRange\":\"\",\"range\":\"192,464\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"640x360\"}],\"id\":\"7bd262be-db89-aaa3-025c-85932cddf830\",\"internalRange\":\"\",\"range\":\"192,1225\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]}],\"description\":\"\",\"group\":\"\",\"id\":\"secondaryStream.bitrateKbps\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Bitrate\",\"notes\":\"\",\"range\":\"1,100000\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"Kbps\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"1280x720\"}],\"id\":\"6ccf13fb-f280-501e-f10d-47d6a3645dff\",\"internalRange\":\"\",\"range\":\"1,30\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"1920x1080\"}],\"id\":\"441e8df6-824e-3c6f-9c59-7121c985120c\",\"internalRange\":\"\",\"range\":\"1,30\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"320x180\"}],\"id\":\"bdc40c6b-d42c-c1d8-4807-1b84f66ea4ac\",\"internalRange\":\"\",\"range\":\"1,30\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H264\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"640x360\"}],\"id\":\"02a0dcf3-81a7-a177-4c9a-eb5d07063b04\",\"internalRange\":\"\",\"range\":\"1,30\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"1280x720\"}],\"id\":\"003e59d5-912d-d4e5-ee2a-c9d8b25f215c\",\"internalRange\":\"\",\"range\":\"1,30\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"1920x1080\"}],\"id\":\"27c41dcf-a541-065a-c8fc-065b38bc6997\",\"internalRange\":\"\",\"range\":\"1,30\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"320x180\"}],\"id\":\"ce1c6919-67d1-8249-4418-22b92398b0fb\",\"internalRange\":\"\",\"range\":\"1,30\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]},{\"conditions\":[{\"paramId\":\"secondaryStream.codec\",\"type\":\"value\",\"value\":\"H265\"},{\"paramId\":\"secondaryStream.resolution\",\"type\":\"value\",\"value\":\"640x360\"}],\"id\":\"b53a2ed3-5065-1a25-0954-d9af26b6fb02\",\"internalRange\":\"\",\"range\":\"1,30\",\"type\":\"Range\",\"valuesToAddToRange\":[],\"valuesToRemoveFromRange\":[]}],\"description\":\"\",\"group\":\"\",\"id\":\"secondaryStream.fps\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"FPS\",\"notes\":\"\",\"range\":\"1,100\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"Frames per Second\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"Are you sure you want to set defaults for this stream?\",\"dataType\":\"Button\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"secondaryStream.resetToDefaults\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Reset to Defaults\",\"notes\":\"\",\"range\":\"\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":true,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"String\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"Secondary.multicast.address\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Multicast Address\",\"notes\":\"\",\"range\":\"\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"Secondary.multicast.port\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Port\",\"notes\":\"\",\"range\":\"1024,65535\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"Secondary.multicast.ttl\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"TTL\",\"notes\":\"\",\"range\":\"0,255\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"}]}],\"name\":\"Video Streams Configuration\",\"params\":[]},{\"aux\":\"\",\"description\":\"\",\"groups\":[{\"aux\":\"\",\"description\":\"\",\"groups\":[],\"name\":\"Focus\",\"params\":[{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Enumeration\",\"dependencies\":[],\"description\":\"Mode of Auto Focus\",\"group\":\"\",\"id\":\"ifAuto\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Auto Focus\",\"notes\":\"\",\"range\":\"Auto,Manual\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"ifSpeed\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Default Speed\",\"notes\":\"\",\"range\":\"4,4\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"ifNear\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Near Limit\",\"notes\":\"\",\"range\":\"1.5,1.5\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"ifFar\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Far Limit\",\"notes\":\"\",\"range\":\"0,0\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"}]},{\"aux\":\"\",\"description\":\"\",\"groups\":[],\"name\":\"Wide Dynamic Range\",\"params\":[{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Enumeration\",\"dependencies\":[],\"description\":\"Wide dynamic range mode.\",\"group\":\"\",\"id\":\"iwdrMode\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Mode\",\"notes\":\"\",\"range\":\"Off,On\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"Level of wide dynamic range.\",\"group\":\"\",\"id\":\"iwdrLevel\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Level\",\"notes\":\"\",\"range\":\"0,31\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"}]},{\"aux\":\"\",\"description\":\"\",\"groups\":[],\"name\":\"White Balance\",\"params\":[{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Enumeration\",\"dependencies\":[],\"description\":\"White Balance.\",\"group\":\"\",\"id\":\"iwbMode\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Mode\",\"notes\":\"\",\"range\":\"Auto,Manual\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"iwbYrGain\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Yr Gain\",\"notes\":\"\",\"range\":\"0,255\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"\",\"group\":\"\",\"id\":\"iwbYbGain\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Yb Gain\",\"notes\":\"\",\"range\":\"0,255\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"}]}],\"name\":\"Imaging\",\"params\":[{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"Image brightness.\",\"group\":\"\",\"id\":\"iBri\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Brightness\",\"notes\":\"\",\"range\":\"0,127\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"Color saturation of the image.\",\"group\":\"\",\"id\":\"iCS\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Color Saturation\",\"notes\":\"\",\"range\":\"0,255\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"Contrast of the image.\",\"group\":\"\",\"id\":\"iCon\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Contrast\",\"notes\":\"\",\"range\":\"0,255\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Enumeration\",\"dependencies\":[],\"description\":\"Infrared Cutoff Filter settings.\",\"group\":\"\",\"id\":\"iIrCut\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Ir Cut Filter Mode\",\"notes\":\"\",\"range\":\"On, Off, Auto\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":false,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"\",\"dataType\":\"Number\",\"dependencies\":[],\"description\":\"Sharpness of the Video image.\",\"group\":\"\",\"id\":\"iSha\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Sharpness\",\"notes\":\"\",\"range\":\"0,31\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"}]},{\"aux\":\"\",\"description\":\"\",\"groups\":[],\"name\":\"Maintenance\",\"params\":[{\"aux\":\"\",\"availableInOffline\":true,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"Are you sure you want to reboot the device?\",\"dataType\":\"Button\",\"dependencies\":[],\"description\":\"This operation reboots the device.\",\"group\":\"\",\"id\":\"mReboot\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"System Reboot\",\"notes\":\"\",\"range\":\"\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":true,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"Are you sure you want to reset all settings (except network) to default?\",\"dataType\":\"Button\",\"dependencies\":[],\"description\":\"This operation reloads all parameters on the device to their factory default values, except basic network settings like IP address, subnet and gateway or DHCP settings.\",\"group\":\"\",\"id\":\"mSoftReset\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Soft Factory Reset\",\"notes\":\"\",\"range\":\"\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"},{\"aux\":\"\",\"availableInOffline\":true,\"bindDefaultToMinimum\":false,\"compact\":false,\"confirmation\":\"Are you sure you want to reset all settings (including network) to default?\",\"dataType\":\"Button\",\"dependencies\":[],\"description\":\"This operation reloads all parameters on the device to their factory default values.\",\"group\":\"\",\"id\":\"mHardReset\",\"internalRange\":\"\",\"keepInitialValue\":false,\"name\":\"Hard Factory Reset\",\"notes\":\"\",\"range\":\"\",\"readCmd\":\"\",\"readOnly\":false,\"resync\":false,\"showRange\":false,\"tag\":\"\",\"unit\":\"\",\"writeCmd\":\"\"}]}],\"name\":\"primaryStreamConfiguration, secondaryStreamConfiguration, ONVIF, Primary Multicast Parameters, Secondary Multicast Parameters\",\"packet_mode\":false,\"unique_id\":\"971009D8-384D-43C1-85BF-44A2B99253D5, 971009D8-384D-43C1-85BF-44A2B99253D5, 53148996-d4d8-4e90-985e-24c6c63c5150, , \",\"version\":\"1.0, 1.0, 1, , \"}"
    },
    {
    "name": "cameraCapabilities",
    "value": "720984"
    },
    {
    "name": "compatibleAnalyticsEngines",
    "value": "[]"
    },
    {
    "name": "credentials",
    "value": "admin:******"
    },
    {
    "name": "defaultCredentials",
    "value": "admin:******"
    },
    {
    "name": "defaultPreferredPtzPresetType",
    "value": "system"
    },
    {
    "name": "dontRecordPrimaryStream",
    "value": "0"
    },
    {
    "name": "dontRecordSecondaryStream",
    "value": "0"
    },
    {
    "name": "driverClass",
    "value": "QnPlOnvifResource"
    },
    {
    "name": "firmware",
    "value": "4.00"
    },
    {
    "name": "hasDualStreaming",
    "value": "1"
    },
    {
    "name": "ioSettings",
    "value": "[{\"autoResetTimeoutMs\":0,\"iDefaultState\":\"Open Circuit\",\"id\":\"AUX\",\"inputName\":\"\",\"oDefaultState\":\"Open Circuit\",\"outputName\":\"Output AUX\",\"portType\":\"Output\",\"supportedPortTypes\":\"Unknown\"},{\"autoResetTimeoutMs\":0,\"iDefaultState\":\"Open Circuit\",\"id\":\"1\",\"inputName\":\"Input 1\",\"oDefaultState\":\"Open Circuit\",\"outputName\":\"\",\"portType\":\"Input\",\"supportedPortTypes\":\"Unknown\"},{\"autoResetTimeoutMs\":0,\"iDefaultState\":\"Open Circuit\",\"id\":\"2\",\"inputName\":\"Input 2\",\"oDefaultState\":\"Open Circuit\",\"outputName\":\"\",\"portType\":\"Input\",\"supportedPortTypes\":\"Unknown\"}]"
    },
    {
    "name": "isAudioSupported",
    "value": "1"
    },
    {
    "name": "mediaCapabilities",
    "value": "{\"hasAudio\":false,\"hasDualStreaming\":false,\"streamCapabilities\":[{\"key\":\"primary\",\"value\":{\"defaultBitrateKbps\":0,\"defaultFps\":30,\"maxBitrateKbps\":7130,\"maxFps\":30,\"minBitrateKbps\":192}},{\"key\":\"secondary\",\"value\":{\"defaultBitrateKbps\":0,\"defaultFps\":30,\"maxBitrateKbps\":1531,\"maxFps\":30,\"minBitrateKbps\":192}}]}"
    },
    {
    "name": "mediaStreams",
    "value": "{\"streams\":[{\"codec\":28,\"customStreamParams\":{},\"encoderIndex\":0,\"resolution\":\"1920x1080\",\"transcodingRequired\":false,\"transports\":[\"rtsp\",\"hls\"]},{\"codec\":28,\"customStreamParams\":{},\"encoderIndex\":1,\"resolution\":\"640x360\",\"transcodingRequired\":false,\"transports\":[\"rtsp\",\"hls\"]}]}"
    },
    {
    "name": "motionStream",
    "value": ""
    },
    {
    "name": "overrideAr",
    "value": ""
    },
    {
    "name": "ptzCapabilities",
    "value": "135224951"
    },
    {
    "name": "ptzPresets",
    "value": "{}"
    },
    {
    "name": "rotation",
    "value": ""
    },
    {
    "name": "rtpTransport",
    "value": ""
    },
    {
    "name": "streamUrls",
    "value": "{\n \"1\": \"rtsp://10.10.10.2/ONVIF/MediaInput?profile=def_profile1\",\n \"2\": \"rtsp://10.10.10.2/ONVIF/MediaInput?profile=def_profile2\"\n}\n"
    },
    {
    "name": "trustCameraTime",
    "value": "0"
    },
    {
    "name": "userEnabledAnalyticsEngines",
    "value": "[]"
    },
    {
    "name": "userPreferredPtzPresetType",
    "value": "undefined"
    }
    ],
    "audioEnabled": false,
    "backupType": "CameraBackupDefault",
    "controlEnabled": true,
    "dewarpingParams": "{\"enabled\":false,\"fovRot\":0,\"hStretch\":1,\"radius\":0.5,\"viewMode\":\"1\",\"xCenter\":0.5,\"yCenter\":0.5}",
    "disableDualStreaming": false,
    "failoverPriority": "Medium",
    "groupId": "",
    "groupName": "",
    "id": "{e84fe1c9-2cb2-839d-af48-617a33ab2bbd}",
    "licenseUsed": false,
    "logicalId": "",
    "mac": "BC-C3-42-D2-CB-F1",
    "manuallyAdded": false,
    "maxArchiveDays": -30,
    "minArchiveDays": -1,
    "model": "Panasonic_WV-S6130",
    "motionMask": "5,0,0,44,32",
    "motionType": "2",
    "name": "Panasonic_WV-S6130",
    "parentId": "{50189a33-89c4-d959-9c57-27ed7f34ed9b}",
    "physicalId": "BC-C3-42-D2-CB-F1",
    "preferredServerId": "{50189a33-89c4-d959-9c57-27ed7f34ed9b}",
    "recordAfterMotionSec": 5,
    "recordBeforeMotionSec": 5,
    "scheduleEnabled": true,
    "scheduleTasks": [
    {
    "bitrateKbps": 0,
    "dayOfWeek": 1,
    "endTime": 86400,
    "fps": 30,
    "recordingType": "RT_Always",
    "startTime": 0,
    "streamQuality": "normal"
    },
    {
    "bitrateKbps": 0,
    "dayOfWeek": 2,
    "endTime": 86400,
    "fps": 30,
    "recordingType": "RT_Always",
    "startTime": 0,
    "streamQuality": "normal"
    },
    {
    "bitrateKbps": 0,
    "dayOfWeek": 3,
    "endTime": 86400,
    "fps": 30,
    "recordingType": "RT_Always",
    "startTime": 0,
    "streamQuality": "normal"
    },
    {
    "bitrateKbps": 0,
    "dayOfWeek": 4,
    "endTime": 86400,
    "fps": 30,
    "recordingType": "RT_Always",
    "startTime": 0,
    "streamQuality": "normal"
    },
    {
    "bitrateKbps": 0,
    "dayOfWeek": 5,
    "endTime": 86400,
    "fps": 30,
    "recordingType": "RT_Always",
    "startTime": 0,
    "streamQuality": "normal"
    },
    {
    "bitrateKbps": 0,
    "dayOfWeek": 6,
    "endTime": 86400,
    "fps": 0,
    "recordingType": "RT_Never",
    "startTime": 0,
    "streamQuality": "highest"
    },
    {
    "bitrateKbps": 0,
    "dayOfWeek": 7,
    "endTime": 86400,
    "fps": 0,
    "recordingType": "RT_Never",
    "startTime": 0,
    "streamQuality": "highest"
    }
    ],
    "status": "Recording",
    "statusFlags": "CSF_NoFlags",
    "typeId": "{9a55ee6b-a595-5807-a5ba-d4aff697dc12}",
    "url": "http://10.10.10.2/onvif/device_service",
    "userDefinedGroupName": "",
    "vendor": "WV-S6130"
    }

    0
    Comment actions Permalink
  • Avatar
    Anton Babinov

    Hi Makoto,

    Yes. But it seems AbsoluteLogicalMovePtzCommand command is not working. Response is 200, but the camera head is not moved.

    In some cases, VMS can't determine the result of the command, so it responses with 200 as an indication that input data is valid. 

    {
    "name": "ptzCapabilities",
    "value": "135224951"
    }

    Values 135224951 represents combination of binary flags. Internally, ptz capabilities flags are declared like this:

            NoPtzCapabilities = 0x00000000,
            ContinuousPanCapability = 0x00000001,
            ContinuousTiltCapability = 0x00000002,
            ContinuousZoomCapability = 0x00000004,
            ContinuousFocusCapability = 0x00000008,
            ContinuousRotationCapability = 0x20000000,
            AbsolutePanCapability = 0x00000010,
            AbsoluteTiltCapability = 0x00000020,
            AbsoluteZoomCapability = 0x00000040,
            AbsoluteRotationCapability = 0x40000000,
            RelativePanCapability = 0x00000400,
            RelativeTiltCapability = 0x00000800,
            RelativeZoomCapability = 0x00004000,
            RelativeRotationCapability = 0x00008000,
            RelativeFocusCapability = 0x00800000,
            ViewportPtzCapability = 0x00000080,
            FlipPtzCapability = 0x00000100,
            LimitsPtzCapability = 0x00000200,
            DevicePositioningPtzCapability = 0x00001000,
            LogicalPositioningPtzCapability = 0x00002000,
            PresetsPtzCapability = 0x00010000,
            ToursPtzCapability = 0x00020000,
            ActivityPtzCapability = 0x00040000,
            HomePtzCapability = 0x00080000,
            AsynchronousPtzCapability = 0x00100000,
            SynchronizedPtzCapability = 0x00200000,
            VirtualPtzCapability = 0x00400000,
            AuxiliaryPtzCapability = 0x01000000,
            NativePresetsPtzCapability = 0x08000000,

    Performing logical AND operation will show us if the device can support operation:

    135224951 AND 8192(LogicalPositioningPtzCapability) = 0
    135224951 AND 4096(DevicePositioningPtzCapability) = 4096

    It seems that this specific camera doesn't support LogicalPositioningPtzCapability.

     

    Also, GetDevicePositionPtzCommand and AbsoluteDeviceMovePtzCommand are working it seems.

    If possible, could you tell me the detail of above end points? I read the API document but I have to say there is not enough information to use them.

    For example,

    1. What's difference of Device Position and Logical Position?

    2. How can I get range of each params(xPos, yPos, zPos) for Device Position commands?

    Here is more detailed description, it is also available via help tooltip in the API documentation:

         *     %value ContinuousMovePtzCommand Start PTZ continues move. Parameters xSpeed, ySpeed and
         *         zSpeed are used in range [-1.0..+1.0]. To stop moving use value 0 for all
         *         parameters.
         *     %value ContinuousFocusPtzCommand Start PTZ focus in or out. Parameter speed defines
         *         speed and focus direction in range [-1.0..+1.0].
         *     %value AbsoluteDeviceMovePtzCommand Move camera to absolute position. Parameters xPos,
         *         yPos and zPos are used in range defined by camera. Parameter speed is used in range
         *         [0..1.0].
         *     %value AbsoluteLogicalMovePtzCommand Move camera to absolute position. Parameters xPos,
         *         yPos range are: [-180..+180]. Parameter zPos range is: [0..180] (field of view in
         *         degree). Parameters speed range is: [0..1.0].
         *     %value GetDevicePositionPtzCommand Read camera current position. Return parameters xPos,
         *         yPos and zPos in range defined by camera.
         *     %value GetLogicalPositionPtzCommand Read camera current position. Return parameters
         *         xPos, yPos in range [-180..+180]. Return parameter zPos in range [0..180] (field of
         *         view in degree).
         *     %value CreatePresetPtzCommand Create PTZ preset. Parameter presetId defines internal
         *         preset name. Parameter presetName defines display preset name.
         *     %value UpdatePresetPtzCommand Update PTZ preset display name. Parameter presetId defines
         *         internal preset name. Parameter presetName defines display preset name.
         *     %value RemovePresetPtzCommand Update PTZ preset display name. Parameter presetId defines
         *         internal preset name
         *     %value ActivatePresetPtzCommand Go to PTZ preset. Parameter presetId defines internal
         *         preset name. Parameter speed defines move speed in range [0..1.0.]
         *     %value GetPresetsPtzCommand Read PTZ presets list.
         *     %value GetToursPtzCommand Read PTZ tours list.
         *     %value ActivateTourPtzCommand Activate PTZ tour. Parameter tourId defines defines internal
         *         tour name. Parameter tourName defines display preset name.

     

    0
    Comment actions Permalink
  • Avatar
    Makoto Ogata

    Hi Anton,

    Thank you for inform me about  "ptzCapabilities" param.

    I will look into it.

    Here is more detailed description, it is also available via help tooltip in the API documentation:

    I saw that in the API Document but there is no info that tells me about below.

    How can I get range of each params(xPos, yPos, zPos) for Device Position commands?

    Could you tell me how to get it?

     

    Kind Regards,

    Makoto Ogata.

     

    0
    Comment actions Permalink
  • Avatar
    Anton Babinov

    Hi Makoto,

    at the moment range of possible values for AbsoluteDeviceMovePtzCommand is defined by the camera. VMS learns it during camera initialization when camera reports its ptz capabilities. Unfortunately, I don't see a way for you to read this with API.

    Could you please provide some details about the project you developing? Perhaps we'll be able to provide you with alternative solution.  

    0
    Comment actions Permalink

Please sign in to leave a comment.