Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Showing Information Messages. SET_STATE  Telemetry control via IIDK Next page


Get live video

To get live video from Camera 1 send the following message to port 900:

CAM|1|START_VIDEO|compress<1>

Here compress<> is compression ratio, from 0 to 5. Video frames will be received as a response to this message. The example of how to process incoming frames is given in Demo kit available for download at the page of Axxon PSIM software integration Guide (HTTP API, IIDK, ActiveX).

Get archived video

To get archived video from Camera 1 send the following messages to port 900:

CAM|1|ARCH_FRAME_TIME|time<dd-mm-yy HH:MM:SS.FFF> (to specify start time for viewing the archive) or CAM|1|PLAY|compress<> (to get archived video. Archived video is handled the same way as live video)

Get the list of time intervals

In order to get the full list of time intervals with video recordings for exact date, send the following message to port 900:

CAM|id|ARCH_GET_INTERVALSREC|date<>,time_with_milliseconds<1>,with_filenames<1>

The date<> parameter can take the date<dd-mm-yy|> value or it can be left blank. In the first case, the intervals for the specified date will be requested, in the second case, the dates for which the archive is present will be requested.

If the time_with_milliseconds<1> parameter is set, then the intervals will be received with milliseconds (for example, 14:08:55.677 14:09:55.641). If the with_filenames<1> parameter is set, then the message will contain filenames (for example, 'C:\VIDEO\26-04-21 14\0._01'). These parameters are optional.

As a result the following message is received:

Event: CAM|id|SET_INTERVALSREC|intervals<>,date<>,timezone<>

The value of intervals<> parameter looks like this: intervals<begin1 end1\nbegin2 end2…\nbeginN endN|date1\ndate2…\ndateN\n>

The time of beginning and ending are one blank separated (0x20 code), intervals are line break separated ‘\n’(0x0A code).

  • begin1, begin2, ... beginN – time of interval beginnings in the HH:MM:SS format (returns if the exact date was requested).
  • end1, end2, ... endN – time of interval endings in the  HH:MM:SS format (returns if the exact date was requested).
  • date1, date2, ... dateN – dates at which there are recordings in the archive (returns if the date field in the request is blank or there is no such field).

date<dd-mm-yy|> parameter represents date for which the intervals were requested or blank value (date<>) if dates for the entire period were requested.

timezone<> shows time shift on the client (IIDK) relative to Server time, in minutes. Examples:

  • If Server is in -1 UTC time zone, the response to the CAM|1|ARCH_GET_INTERVALSREC| command will have parameter timezone<60>
  • If Server is in +3 UTC time zone, the response to the CAM|1|ARCH_GET_INTERVALSREC| command will have parameter timezone<-180>

Request example:

CAM|1|ARCH_GET_INTERVALSREC|date<26-04-21>,time_with_milliseconds<1>,with_filenames<1>

Response example:

CAM|1|SET_INTERVALSREC|time_with_milliseconds<1>,intervals<14:07:55.659 14:08:55.637 - - file:'C:\VIDEO\26-04-21 14\0._01'
14:08:55.677 14:09:55.641 - - file:'C:\VIDEO\26-04-21 14\1._01'
14:09:55.681 14:10:35.667 - - file:'C:\VIDEO\26-04-21 14\2._01'
14:17:12.444 14:18:09.553 - - file:'C:\VIDEO\26-04-21 14\3._01'
14:29:41.132 14:29:41.292 - - file:'C:\VIDEO\26-04-21 14\4._01'
14:29:41.432 14:29:51.363 - - file:'C:\VIDEO\26-04-21 14\5._01'
14:34:38.788 14:35:03.117 - - file:'C:\VIDEO\26-04-21 14\6._01'
14:35:03.267 14:36:19.151 - - file:'C:\VIDEO\26-04-21 14\7._01'
>,timezone<-180>,module<iidk_client_test_x64.exe>,_TRANSPORT_ID<>,with_filenames<1>,date<26-04-21>,SLAVE_id<VDESKTOP.2A180FE5-BA8E-420C-B80E-90DC20516A26>,durationMS<0>
  • No labels