
TECHNICAL NOTE – Axis Communications Notification messages
2.2 Go to PTZ preset position when a door is opened
In this example, a door sensor is connected to one of the AXIS P8221 I/O ports. When the
door is opened, AXIS P8221 sends a command to AXIS P5534 PTZ Dome Network Camera
to go to a preset position.
To accomplish this, a triggered event is set up in AXIS P8221. The event is triggered by a
signal from the I/O port. When the event is triggered, AXIS P8221 sends an HTTP
notification to AXIS P5534. The HTTP notification is a VAPIX command instructing AXIS
P5534 to go to the preset position.
2.2.1 Preparations
Before following this example, you should:
• Set up the PTZ preset position in AXIS P5534
Refer to the online help or the AXIS P5534 User’s Manual.
• Configure the AXIS P8221 I/O port as an Input port
Refer to the online help or the AXIS P8821 User’s Manual.
2.2.2 Set up an event server in AXIS P8221
1. Open the AXIS P8221 Setup pages in a web browser
2. Go to Setup > Events > Event Server
3. Click Add HTTP
4. Enter a Name, for example AXIS P5534
5. In the URL field, enter
http://<IP>/axis-cgi/com/ptz.cgi
6. Enter the user name and password for AXIS P5534
7. Click OK
Figure 3. Setting up an event server in AXIS P8221. Replace “IP” with the IP address of AXIS P5534.
2.2.3 Set up a triggered event in AXIS P8221
1. Open the AXIS P8221 Setup pages in a web browser
2. Go to Setup > Events > Event Types
3. Click Add triggered
4. Enter a Name, for example Go to preset
5. Select the Input ports trigger from the Triggered by drop-down list.
6. Under When Triggered, select Send HTTP notification.
Rev: 1.1, Last updated: 19/08/2011 6