Přeskočit obsah

Connecting the hardware

How Protequ reaches it

Over the local network, through the Axxon One server. Protequ uses two services of the server: its Web server (the one the Axxon One web client uses) to read the list of cameras and camera groups, to take snapshots and to receive the events of the cameras (over one WebSocket on the same port), and its video (RTSP) server to read live video. Protequ installs nothing on the Axxon One server and never changes its settings.

This release covers cameras, detectors, sensor inputs and camera groups, live video, snapshots, arming of camera groups in Protequ, and the events of the cameras: motion, line and zone rules, loitering, plates and faces, fire and smoke, picture faults, audio loss, a lost or restored signal, and whether the camera records. A motion or zone event on a camera of an armed camera group is an alarm. It also offers camera control (PTZ), presets and playback of recorded video, which were built from the Axxon One documentation and have not been tried on a real PTZ camera or a real recording (see "Camera control, presets and playback" below). It does not yet show the alarms of Axxon One, changes of sensor inputs or damage to the archive; the capability page lists what works.

This was tried on Axxon One 3.2.2.42 on Windows, with virtual cameras. Other versions, Linux and real cameras have not been tried. Several servers in one Axxon One domain are not supported (see below).

Read this before the first import

  • The connections are not encrypted. The account name and password cross the local network in clear text, on the Web server connection and on the video connection. Use this only on a network you trust, until encrypted connections are supported.
  • The account must see every camera. The import makes Protequ match Axxon One exactly: a camera the account cannot see is deleted from Protequ, with its history. If the account sees fewer cameras than Protequ holds, but not none, the import only warns in the adapter log and then deletes the rest. When the answer of Axxon One looks wrong in a way that would delete cameras by mistake (no cameras at all, a camera without its identifier, a list that does not add up, no single top group, a single top group that Protequ already holds as a camera group, or a server that was renamed or restored), the import stops before it changes anything: see "If the import stops" below. On the very first import nothing is stored in Protequ, so the checks that compare with what Protequ holds have nothing to compare with: an account that sees too little imports what it sees. Check what the account sees (step 4 below) before the first import.
  • Use an Axxon One domain with one server. Several servers in one domain are not supported. The import treats the domain as one server. Axxon One may leave the cameras of an offline server out of its camera list, and the import would then delete them from Protequ. What Axxon One answers in that case has not been tried, so use domains with one server until it has.
  • Camera groups are armed in Protequ only. Nothing is armed in Axxon One. Armed or disarmed is a state that Protequ keeps for each camera group. While the connection to Axxon One is down, arming, disarming and the alarm reset are refused as well, although they change nothing in Axxon One: Protequ refuses every command of a device that is offline.
  • Use the IP address of the server, not localhost and not a computer name the adapter cannot resolve. The adapter runs in a container, so localhost there is the container itself and never reaches Axxon One. A computer name has to resolve from inside the container: on the test run the name of the Axxon One computer did not, and the device worked with its IP address. When Axxon One runs on the same computer as Docker Desktop, Docker's name for that computer is host.docker.internal; it was not tried with this adapter. On some Windows computers every request to localhost also takes about two seconds, because the IPv6 address is tried first.
  • The device restarts by itself after an import, so that it works with the cameras the import created. On the test run Protequ rebuilt the device right after the first import; you do not restart it. Until that restart, the events of a new camera are written as unresolved device events on the Axxon One device, at warning level, and not on the camera. You do not have to do anything before you import again: the checks of an import compare with what Protequ holds when the import starts.
  • Replacing the adapter can reset the armed state once. The adapter keeps the armed state in a data volume, and the adapter image asks for that volume, so a later replacement keeps it. The first replacement of an adapter that is already running puts it on a new, empty volume: every camera group starts disarmed once, and Protequ reports it with a notice. An installer that does not read the image labels from the registry (an offline installation) may not create the volume. Check that the Axxon One adapter has one. None of this has been tried on a real installation.
  • Keep the root device when you import again. The Axxon One device at the top of the tree is the root device: run every import on it. Do not delete it and add it again. A device added again starts with every camera group disarmed, and so does a camera group that is deleted and created again in Axxon One. Protequ reports both with a notice on the device.
  • Do not edit the identifier fields of cameras, detectors, sensor inputs and camera groups. The import fills them in. A changed value is a different device, and the old one is deleted at the next import.

Before you start

  • An Axxon One server that the Protequ server can reach on the network, with a fixed IP address.
  • The Web server component of Axxon One, running. Note its port and, if the server is published behind a path such as /web, that path.
  • The RTSP server of Axxon One. Note its port. It may be switched off.
  • An account for Protequ in Axxon One, with a role that allows web login and gives access to every camera. Use an account made for Protequ, not a personal one. For camera control the role must also allow PTZ control of the cameras you want to move, with a PTZ priority (not "no access"), and for playback it must give access to their archives. Alarms are not used.
  • For playback of recorded video: an archive with recording switched on for the camera. The virtual cameras of the test server had none.
  • Network access from the Protequ server to the Web server port and to the RTSP port, through any firewall. The events use the Web server port as a WebSocket: a firewall or a proxy that does not let a WebSocket through keeps the device offline (the device is online only when the event connection could be opened). This was not tried.

On the equipment

Do these in Axxon One:

  1. Check that the Web server is running and note its port. A Windows installation uses 80 and a Linux installation 8000 unless it was changed. Protequ does not assume either, so you enter the port yourself. On the test server the Web server answered on 80.
  2. Check that the RTSP server is switched on and note its port. A Windows installation uses 554 and a Linux installation 20554 unless it was changed. On the test server it was on from the installation, on 554. If it is off, switch it on in the server settings of Axxon One (the Axxon One documentation describes where). With the RTSP server off, Protequ still accepts the video request and the video window stays blank.
  3. Create the account and its role. The role must allow web login and give access to every camera, including cameras in other camera groups. To use camera control, also allow PTZ control of the PTZ cameras with a PTZ priority, and to use playback, access to their archives. Write down the account name and password.
  4. Check that the account really sees every camera, for example by signing in to the Axxon One web client with it and looking at the camera list.
  5. Make sure the Protequ server can open both ports (Web server and RTSP).

In Protequ

Add the Axxon One device and fill in the connection fields with the values from the steps above:

You set on the equipment You enter in Protequ Notes
IP address of the Axxon One server IP Address (ip_address) An IP address, not localhost and not a name the adapter container cannot resolve.
Web server port, step 1 Port (port) No default is applied. 80 on Windows and 8000 on Linux are the usual values.
Path the Web server is published under web_prefix Leave empty unless the server is published behind a path.
RTSP server port, step 2 RTSP port (rtsp_port) No default is applied. 554 on Windows and 20554 on Linux are the usual values.
Address of the RTSP server, only if it is not the Axxon One server itself rtsp_host Leave empty to read video from the server address.
Account name Username (username) The account of step 3.
Account password Password (password) Kept secret. After you correct a wrong password, restart the device.

The full list of fields is on the configuration page.

Import the cameras

  1. With the connection saved and the device online, run the import (device discovery) on the Axxon One device. It reads the cameras, their detectors and sensor inputs, and the camera groups.
  2. Cameras appear as camera devices, detectors and sensor inputs next to them, and camera groups as groups. Each camera is a member of the groups Axxon One lists for it.
  3. The membership is overwritten. Each import sets the groups of a camera to the groups Axxon One lists for it. A group you added to a camera by hand in Protequ is removed at the next import.
  4. The top group of the Axxon One domain (the group that holds every camera, for example "Domain 1") is not imported as a camera group. Only the groups below it are. There is no single command that arms every camera. Arm the groups below it.
  5. Protequ restarts the device after the import so that it works with the cameras the import created (it did on the test run, once, after a first import). This restart, not a reconnect, is what makes the events of the new cameras appear on the cameras. Import every camera whose events matter: the events of a camera that Axxon One has and Protequ does not hold are written as unresolved device events at warning level on the Axxon One device, and a busy camera of that kind fills the audit with warning rows. A camera that is disabled in Axxon One sends no events at all, not even a lost signal.

If the import stops

The import checks the answer of Axxon One before it changes anything. When the answer looks wrong it stops, and nothing is added, changed or deleted. Protequ shows the import as failed and does not show the reason. The reason is in the adapter log, in the line "Device import failed for root" and the message under it:

The adapter log says What it means What to do
camera list is empty The account sees no camera, or the Axxon One domain has none. Check the camera access of the account. If the cameras were removed from Axxon One on purpose, delete the devices in Protequ by hand.
entry(ies) of the camera list have no access point Axxon One listed a camera without its identifier (the log calls it the access point), so Protequ cannot tell which of its cameras it is. Import again. If it repeats, check the Axxon One server and the account.
camera list incomplete: paged ..., single call ... The list was cut short, or it changed while it was being read. Import again.
none of the ... stored device(s) is in the answer of Axxon One Not one camera, detector or sensor input that Protequ holds is in the new list. Their identifiers start with the name of the Axxon One server, so the server was renamed or restored. See below.
group list is empty, or the group list has ... top-level group(s) instead of one root The account cannot see the top group of the domain, or the answer is not a whole group tree. Give the account access to the top group of the domain, and to every camera, then import again.
the top-level group of the group list (...) is a camera group Protequ holds Axxon One answered with one top group, and Protequ already holds that group as a camera group, so the account probably does not see the real top group of the domain (the group below it came as the top of the answer). Give the account access to the top group of the domain, and to every camera, then import again.
the PQ server gave no persisted tree for this device, or a failure with a status code of the Protequ server The adapter could not read what Protequ holds from the Protequ server, so it cannot compare the answer of Axxon One with it, and nothing is asked of Axxon One. Check that the Protequ server is up and the device is running, then import again. This was tried only against a stand-in for the Protequ server, never a real one.

To confirm a renamed or restored server, so that Protequ takes the cameras it lists now: delete the devices in Protequ first (the cameras, detectors, sensor inputs and camera groups, not the Axxon One device itself), then import again. A camera whose identifier changed is a different camera, which is why Protequ asks you to remove the old ones first. The check compares with what Protequ holds when the import starts, so no restart is needed in between. Deleting the devices and importing again was not tried on a real server.

A camera group that Protequ holds is not part of the check for a renamed or restored server, because groups keep their identifiers when a server is renamed. If the account sees fewer cameras than Protequ holds, but not none, the import does not stop: it warns in the adapter log and deletes the cameras it does not see. When the import goes through, the adapter log has two lines. The first has the numbers found and the numbers held before, for example "Discovery found 2 group(s), 2 camera(s), 3 detector(s) and 0 sensor input(s); Protequ holds 3 group(s), 2 camera(s), 1 detector(s) and 1 sensor input(s)". The second says how many devices of each kind the import deletes and how many it adds, for example "The import will delete 1 group(s), 0 camera(s), 0 detector(s) and 1 sensor input(s) that the answer does not list, and add 0 group(s), 0 camera(s), 2 detector(s) and 0 sensor input(s) that Protequ does not hold"; it is a warning when the import deletes anything. If it says that it deletes groups, detectors or sensor inputs that you did not remove in Axxon One, check what the account sees before you rely on the result.

Confirm it works

  1. After the import and the restart, the device is online and the cameras and camera groups are in the tree.
  2. Open the live video of a camera. The picture appears within a few seconds. If the video window stays blank, the video connection is the first thing to check (see below).
  3. Take a snapshot of a camera. The picture can be up to 30 seconds old.
  4. Arm a camera group in Protequ. The group and its cameras show armed, and disarm brings them back. Nothing changes in Axxon One.
  5. Cause a motion in front of a camera that has a motion detector in Axxon One. A motion event appears for the camera, and the camera shows that it is analysing. On a camera of an armed group the event is an alarm. The events of the test server were only watched while it sent the state it had before the connection: a detection while connected was not tried.
  6. Camera control, presets and playback are not part of this check; they have their own, in the next section.

Camera control, presets and playback

These were built from the Axxon One documentation. They have not been tried on a real PTZ camera or a real recording, because the test server had only virtual cameras, which have no PTZ unit and no archive. Treat them as untested until you have done the first test below, and do not rely on them before.

What they need in Axxon One

  • Camera control and presets: a camera that Axxon One controls through a PTZ unit, and an account whose role allows PTZ control of it with a PTZ priority (not "no access"). Protequ asks for priority 3, where 1 is the highest and 5 the lowest. An Axxon One operator with a higher priority takes the camera over.
  • Playback: an archive with recording switched on for the camera, an account with access to the archive, and the RTSP server, the same one live video uses.
  • Protequ offers all of these commands on every camera, whether or not Axxon One has a PTZ unit or an archive for it. It always asks Axxon One, and the command fails with a text when the answer is no.

What the operator sees

Situation The operator reads
The camera has no PTZ unit in Axxon One (the test server's virtual cameras) Axxon One could not start PTZ control for this camera (no telemetry unit found: Axxon answered HTTP 400, error 2: the parameters are specified incorrectly)
The account has no PTZ rights Axxon One refused the PTZ request (HTTP 403): the account has no PTZ rights
An Axxon One operator with a higher priority holds the camera ... error 3: the PTZ control session is not available (the command is shown as rejected)
Axxon One does not answer within 4 seconds Axxon One did not answer the PTZ request within 4 s
Axxon One is not connected Axxon One is not connected
A preset number outside 1 to 256 Preset 0 is outside 1 to 256, and nothing is sent
Nothing is recorded at or after the requested time, or Axxon One has no archive for the camera No recorded footage at or after the requested time
The account has no archive rights Axxon One refused the archive request (HTTP 403): the account has no archive rights
Axxon One does not know the archive route The archive route was not found on this Axxon One server (HTTP 404 for both request forms)

Any other answer of Axxon One is shown with its status and, for a PTZ request, its error number and the words of the Axxon One documentation. A refusal of a PTZ or archive request fails only that command: the device stays online and Protequ does not wait five minutes.

Two things to know about control. Protequ stops a move when the operator stops it and in any case after 20 seconds, and if the connection to Axxon One is lost while the camera moves, the stop cannot be sent: the camera is left to Axxon One, which ends the session about 10 seconds after the last keep-alive. Whether that stops the camera has not been tried. And if two video channels of one encoder use the same PTZ unit, a stop or a preset on either one stops the unit.

First test on a real PTZ camera

Run it supervised, with an Axxon One client open on the same camera (it can take the camera over at a higher priority, which is part of the test) and the adapter log at Trace level. Write down every result. In this order:

  1. Send a move with pan 0.3 only, then a stop after about 2 seconds. The camera must stop on the move of zero, before the session is released, and every answer of Axxon One must be 200 with no error code.
  2. The same with pan -0.3: which way the camera turns, and whether the values from -1 to 1 are right.
  3. A move that nobody stops: Protequ must stop the camera after 20 seconds.
  4. Zoom 0.3, then a stop.
  5. Store preset 1, move the camera away, go to preset 1. The camera must come back. Protequ preset 1 is position 0 in Axxon One.
  6. Last, with a move running, cut the network between Protequ and Axxon One, or stop the adapter, and time how long the camera keeps moving. Be ready to stop the camera in Axxon One.

The remaining checks, for playback and for the details of control, are the numbered list "Bench checklist" in the field notes.

Not verified until a real PTZ camera and archive were tried

  • How a move really stops, which priority the account is granted, the direction and the value range of a move, whether a preset works right after a move, what storing a preset does to a position that already has one, and whether a lapsed session stops a camera.
  • Which unit Protequ drives when Axxon One lists several for one camera (it takes the first in text order), and that the answer "the parameters are specified incorrectly" to a request for control always means that the camera has no PTZ unit: the text "no telemetry unit found" rests on one answer of the test server.
  • The time format the archive link accepts, whether the speed may be left out, which archive the link plays, what Axxon One does with a start inside a gap, which end of a long history Axxon One cuts, and whether the answer "bad request" to the request for recorded times always means "no archive".
  • That the RTSP server plays archive links into the browser.

If it does not connect

  • The device stays offline and the adapter log says Axxon One is not reachable. Check the IP address and the Web server port, check that the Web server is running, and check the firewall. A wrong path in web_prefix is also answered as "not found" and shows up the same way.
  • The log says Axxon One did not accept the account. Check the account name, the password and the role (web login allowed). After a refusal Protequ waits five minutes before it tries again, so that a mistyped password cannot lock the account. After you correct the password, restart the device. The wait may otherwise run to its end.
  • The import shows as failed. Nothing was changed. Protequ does not show why; read the adapter log and follow "If the import stops" above.
  • Cameras are missing after the import, or were deleted. The account does not see them. Give the account access to every camera and import again.
  • Opening live video fails with "The stream server did not accept the registration of the video stream". The video service of the Protequ server refused the request or did not answer. This is not about Axxon One and not about its RTSP server (a switched-off RTSP server gives no error, only a blank window): check that the video service is running and that the adapter can reach it.
  • The device stays offline and the adapter log says "Opening the Axxon One event feed ... failed". The device is online only when the event connection to the Web server could be opened. Check that the Web server port is the one in the Port field, that a firewall or a proxy lets a WebSocket through, and that the account may sign in to the Web server. If the server answers the event connection with 401, 403 or 404 (an account that may read the camera list but not the events, or a path that does not carry the WebSocket), Protequ treats that as an unreachable server, not as a refused account: it tries again at its usual backoff, reads the whole camera list each time and does not wait five minutes, so fix the cause instead of waiting.
  • The video window stays blank. Check that the RTSP server is on, that its port is the one in the RTSP port field, and that rtsp_host is empty or the address of the RTSP server. A camera that sends H.265 may show no picture in the browser. H.264 is what was tried.
  • A camera shows no sub stream. A camera with only one video stream plays that stream when the small picture is asked for. That is expected.
  • A snapshot fails. The text says whether Axxon One refused the request (check the camera access of the account), did not know the camera (import again), was busy (try again) or did not answer.
  • Moving a camera, a preset or a playback fails. The device is not at fault and stays online. The text is the reason: read the table under "Camera control, presets and playback" above. These functions were built from the documentation and not tried on real equipment, so a failure with an unexpected text is worth recording together with the adapter log at Trace level.