FriconiX
Free collection of beautiful vector icons for your web pages.

D-Link DCS-5222L

Introduction

The D-Link DCS-5222L is a wireless pan/tilt IP Camera. The camera can be interfaced via a CGI API. This page reports some of the known CGI commands. Each command has been tested, if you think some are missing, please contact me, I'll update the page.

In the following, we assume

D-Link DCS-5222L IP Camera

Snapshot

The simplest command to test is getting a snapshot from the camera. The camera send a JPG image to the browser:

HTTP without authentification

http://<IP of the camera>:<HTTP port>/dms

HTTP with authentification

http://<username>:<password>@<IP of the camera>:<HTTP port>/dms

This command returns a 640 x 360 pixels image:

Snapshot in browser of a D-Link 5222L IP camera

Snapshot in browser of a D-Link 5222L IP camera by night

Video stream

The second command is for getting live video stream.

HTTP without authentification

https://<IP of the camera>:<HTTP port>/video/mjpg.cgi

HTTP with authentification

http://<username>:<password>@<IP of the camera>:<HTTP port>/video/mjpg.cgi

This command returns a 1280 x 720 pixel live video stream. The stream can be a mpeg or a h.264 according to the configuration of the camera.

Pan / Tilt

The following command performs an auto pan:

https://<IP of the camera>:<HTTP port>/config/auto_pan.cgi?act=go

You can easily set the pan/tilt position of the camera with the following command:

https://<IP of the camera>:<HTTP port>/config/ptz_move.cgi?t=20&p=170

Information

The following commands allow the user to get informations about the camera:

Get general information about the camera:

http://<IP of the camera>:<HTTP port>/common/info.cgi

Retreive information on live stream:

http://<IP of the camera>:<HTTP port>/config/stream_info.cgi

Get network configuration:

http://<IP of the camera>:<HTTP port>/common/network.cgi

Get motion information:

http://<IP of the camera>:<HTTP port>/common/motion.cgi

I/O information:

http://<IP of the camera>:<HTTP port>/common/io.cgi

See also


Last update : 01/15/2021