Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Message Syntax  Using the Event and React classes Next page


Messages sent to port 900 are passed to the video subsystem directly; for this reason, such messages have a different syntax.

Messages sent to the video subsystem have the following syntax:

OBJECT TYPE|OBJECT ID|ACTION [|PARAMETER<VALUE>]

Below is the syntax of messages that contain n parameters.

OBJECT TYPE|OBJECT ID|ACTION [|PARAMETER 1<VALUE>,PARAMETER 2<VALUE>,…,PARAMETER N<VALUE>]

Attention!

Port 900 may only be used to manage objects of the GRABBER, CAM, or MONITOR types.

The message parameters are described in the table below.

Parameter

Description

Object type

 Object type (GRABBER, CAM, or MONITOR)

Object ID

The object ID set during creation of the object in Axxon PSIM

Action

Action (command)

Parameter <Value>

Parameter name. The value is enclosed by angle brackets

To check the network, you can use the <trash:N> parameter, where N is the length of the parameter in bytes. As a result, a text string of a given length will be generated in the message, containing numbers and Latin letters. The parameter name can be anything. For example, if you add the following parameter to the message

param1<trash:128>

the following text string will be generated in response

param1<88n9ESCAFyBfHyXzIoPpOF1GirSmlMJ1Ahh9oYZDIQou2RgWY0jXlaL2HhaX9ZY2oKfkQYLuPLg8bGNQK6OumvQjVp1G7BEt1wFsw6FApzIZ3NbBUJNCKnP335OlgEwN>

Example 1. Setting camera 1 to recording mode.

CString msg = “CAM|1|REC”;

SendMsg (id,msg);

Example 2. Saving video from all cameras to local disk C.

CString msg = “GRABBER|1|SET_DRIVES|drives<C:\>” ;

 SendMsg(id,msg);

Note

The SET_DRIVES command includes the ID of any of the video capture cards created in the system.

Note

 The SET_DRIVES command does not change the video archiving settings set in the system.
  • No labels