Skip to main content

Network Radar Pairing

The VAPIX® Network Radar Pairing API makes it possible to add a radar sensor input to cameras with no built-in hardware support. The camera can then be used to configure radar sensor settings.

The radar will appear just like a built-in hardware radar sensor and can be interacted with through the common platform events/action interface available on the camera.

Identification

  • API Discovery: id=network-radar-pairing

Limitations

This API is not supported by all devices.

The radar view video stream doesn't have a separate image source for the radar view stream when active on a camera. Instead, the radar view is drawn as an overlay above the image video stream and will not mask the image.

Use cases

Configure and activate a network radar pairing

The following examples will show you how to configure the address and settings required for the camera to use an Axis radar as a radar sensor. Additional examples can be found in the API Specifications chapter below.

  1. Send a setRadarConnection request with credentials for the radar connection.
  2. Send a setActive request to activate the connection.
  3. Send a getRadarConnection request to check the state.

API Specifications

getRadarConnection

Retrieve the network radar pairing configuration and all of its setting information.

Request

POST /networkradarpairing.cgi#getRadarConnection
{
"apiVersion": "1.0",
"context": "my context",
"method": "getRadarConnection"
}

Responses

Successful response

{
"apiVersion": "1.0",
"context": "my context",
"method": "getRadarConnection",
"data": {
"address": "192.168.0.90",
"user": "john",
"state": "ok",
"tls": false,
"tls-verify": false
}
}

Error response

{
"apiVersion": "1.0",
"context": "my context",
"method": "getRadarConnection",
"error": {
"code": 2101,
"message": "Invalid JSON."
}
}

See Parameter descriptions for a detailed parameter list.

setRadarConnection

Set the network radar pairing configuration and its information.

Request

POST /networkradarpairing.cgi#setRadarConnection
{
"apiVersion": "1.0",
"context": "my context",
"method": "setRadarConnection",
"params": {
"address": "192.168.0.90",
"user": "john",
"state": "ok",
"tls": false,
"tls-verify": false
}
}

Responses

Successful response

{
"apiVersion": "1.0",
"context": "my context",
"method": "setRadarConnection",
"data": {}
}

Error response

{
"apiVersion": "1.0",
"context": "my context",
"method": "setRadarConnection",
"error": {
"code": 2101,
"message": "Invalid JSON."
}
}

See Parameter descriptions for a detailed parameter list.

clearConfiguration

Clear all stored configurations from the network radar pairing. The request will fail if the function is active.

Request

POST /networkradarpairing.cgi#clearConfiguration
{
"apiVersion": "1.0",
"context": "my context",
"method": "clearConfiguration"
}

Responses

Successful response

{
"apiVersion": "1.0",
"context": "my context",
"method": "clearConfiguration",
"data": {}
}

Error response

{
"apiVersion": "1.0",
"context": "my context",
"method": "clearConfiguration",
"error": {
"code": 2101,
"message": "Invalid JSON."
}
}

See Parameter descriptions for a detailed parameter list.

getActive

Retrieve the activation state of the network radar pairing. The method will fail is no configuration can be located.

Request

POST /networkradarpairing.cgi#getActive
{
"apiVersion": "1.0",
"context": "my context",
"method": "getActive"
}

Responses

Successful response

{
"apiVersion": "1.0",
"context": "my context",
"method": "getActive",
"data": {
"active": true
}
}

Error response

{
"apiVersion": "1.0",
"context": "my context",
"method": "getActive",
"error": {
"code": 2101,
"message": "Invalid JSON."
}
}

See Parameter descriptions for a detailed parameter list.

setActive

Activate an already configured network radar pairing. The method will fail is no configuration can be located. If the active state of the network radar pairing already matches the state in the request, it will succeed.

Request

POST /networkradarpairing.cgi#setActive
{
"apiVersion": "1.0",
"context": "my context",
"method": "setActive",
"params": {
"active": true
}
}

Responses

Successful response

{
"apiVersion": "1.0",
"context": "my context",
"method": "setActive",
"data": {}
}

Error response

{
"apiVersion": "1.0",
"context": "my context",
"method": "setActive",
"error": {
"code": 2101,
"message": "Invalid JSON."
}
}

See Parameter descriptions for a detailed parameter list.

getSupportedVersions

Retrieve a list containing all major and minor API versions supported by the device.

Request

/networkradarpairing.cgi#getSupportedVersions
{
"apiVersion": "1.0",
"context": "my context",
"method": "getSupportedVersions"
}

Responses

Successful response

{
"apiVersion": "1.0",
"context": "my context",
"method": "getSupportedVersions",
"data": {
"apiVersions": [
"<Major1>.<Minor1>",
"<Major2>.<Minor2>"
]
}
}

Error response

{
"apiVersion": "1.0",
"context": "my context",
"method": "getSupportedVersions",
"error": {
"code": 2101,
"message": "Invalid JSON."
}
}

See Parameter descriptions for a detailed parameter list.

Parameter descriptions

getRadarConnection parameters

Request

ParameterExample valueDescription
apiVersion=<string>1.0The API version that is used in the request.
context=<string>
Optional
my contextThe user sets this value in the request and the application will echo it back in the response.
method="getRadarConnection"The API method that is called in the request.

Response

ParameterExample valueDescription
apiVersion=<string>1.0The API version used in the request.
context=<string>
Optional
my contextThe context set by the user in the request.
method="getRadarConnection"The requested API method.
address=<string>192.168.0.90The IP address.
user=<string>"john"The user name.
state=<string>failedThe current state of the network radar pairing.
Valid values:
failed: Catch all failure statuses.
address-failed: Address resolution failed.
connect-failed: Connecting to the radar device failed.
authentication-failed: Authentication to the radar device failed.
transfer-failed: Data transfer failed.
not-configured: There is no configured Network Radar Pairing.
not-active: The Network Radar Pairing is not active.
ok: Configured, active and no error.
tls=<boolean>falseValid values:
true, false
tls-verify=<boolean>falseValid values:
true, false

setRadarConnection parameters

Request

ParameterExample valueDescription
apiVersion=<string>1.0The API version that is used in the request.
context=<string>
Optional
my contextThe user sets this value in the request and the application will echo it back in the response.
method="setRadarConnection"The API method that is called in the request.
address=<string>192.168.0.90The IP address.
user=<string>"john"The user name.
password=<string>"doe"The remote radar account password.
Minimum: 1
Maximum: 64
tls=<boolean>falseValid values:
true, false

Response

ParameterExample valueDescription
apiVersion=<string>1.0The API version used in the request.
context=<string>
Optional
my contextThe context set by the user in the request.
method="setRadarConnection"The requested API method.

clearConfiguration parameters

Request

ParameterExample valueDescription
apiVersion=<string>1.0The API version that is used in the request.
context=<string>
Optional
my contextThe user sets this value in the request and the application will echo it back in the response.
method="clearConfiguration"The API method that is called in the request.

Response

ParameterExample valueDescription
apiVersion=<string>1.0The API version used in the request.
context=<string>
Optional
my contextThe context set by the user in the request.
method="clearConfiguration"The requested API method.

getActive parameters

Request

ParameterExample valueDescription
apiVersion=<string>1.0The API version that is used in the request.
context=<string>
Optional
my contextThe user sets this value in the request and the application will echo it back in the response.
method="getActive"The API method that is called in the request.

Response

ParameterExample valueDescription
apiVersion=<string>1.0The API version used in the request.
context=<string>
Optional
my contextThe context set by the user in the request.
method="getActive"The requested API method.
active=<boolean>trueValid values:
true, false

setActive parameters

Request

ParameterExample valueDescription
apiVersion=<string>1.0The API version that is used in the request.
context=<string>
Optional
my contextThe user sets this value in the request and the application will echo it back in the response.
method="setActive"The API method that is called in the request.
active=<boolean>trueValid values:
true, false

Response

ParameterExample valueDescription
apiVersion=<string>1.0The API version used in the request.
context=<string>
Optional
my contextThe context set by the user in the request.
method="setActive"The requested API method.

getSupportedVersions parameters

Request

ParameterExample valueDescription
apiVersion=<string>1.0The API version that is used in the request.
context=<string>
Optional
my contextThe user sets this value in the request and the application will echo it back in the response.
method="getSupportedVersions"The API method that is called in the request.

Response

ParameterExample valueDescription
apiVersion=<string>1.0The API version used in the request.
context=<string>
Optional
my contextThe context set by the user in the request.
method="getSupportedVersions"The requested API method.
apiVersions=<string>1.0A list containing all supported major versions along with their highest minor version, such as 1.0 and 1.2.

Error response parameters

ParameterExample valueDescription
apiVersion=<string>2.0The API version used in the request.
context=<string>
Optional
my contextThe context set by the user in the request.
method=<string>The requested API method.
error.code=<integer>1100The error code.
error.message=<string>Internal error.The error message for the corresponding error code.

Error codes

JSON codeError codeError message
2100API version not supported.
400 Bad request2101Invalid JSON.
2102Method not supported.
2103Required parameter missing.
2104Invalid parameter value specified.
401 Authentication failed2106Authentication failed.
403 Authorization failed2105Authorization failed.
405 Method not allowed2107Transport level error.
411 Length required2107Transport level error.
413 Payload too large2107Transport level error.
2200Configuration cannot be changed or removed while enabled.
2201Missing configuration.
2202Usability test of the configuration failed.
500 Internal error1100Internal error.