Unknown PTZ API

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Unknown PTZ API

Post by jogo »

I've just installed a somewhat older 5MP camera with optical zoom. It looks as if it is a Uniview camera, but it has been rebranded to something else. The stickers say Allnet ALL-CAM2496-LEFN and, of course, I have not docs whatsoever.

The video has a more or less standard rtsp path and by capturing the communication with Wireshark I can now zoom, focus and go home again with curl scripts. Does someone happen to know this API and where there are some docs about it?
PUT LAPI/V1.0/Channel/0/PTZ/PTZCtrl
and the credentials need digest authentication.

Does someone know whether one of the predefined cameras use the same API?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Unknown PTZ API

Post by Magic919 »

Have a search in the control files.
-
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Unknown PTZ API

Post by jogo »

None of the .pm files come close to this API, but I managed to download the Uniview SDK with some useful information.
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Unknown PTZ API

Post by iconnor »

I had started on one, but only needed camera reboot so far.
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Unknown PTZ API

Post by jogo »

I could start to write some commands for my camera. The only thing to pay attention to would be to use PUT with a json body. It might be useful for a couple of more users.

Two reasons speak against doing this, The first is that I cannot test the functions not provided by my camera. The second is that Uniview falls into the same political category as Hikvision.

On the other hand nothing speaks against such a generic json interface as might be useful for other APIs as well.

Let me know whether you are interested in this small piece of code. Like real programmers I am currently using shell scripts with cURL commands inside to change the camera settings, so it would basically only be a few lines of perl code for me.
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Unknown PTZ API

Post by iconnor »

I'll commit mine to master. It is a copy of hikvision I think, so most of it is irrelevant. It can be a starting point though.
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Unknown PTZ API

Post by jogo »

I'll grab it and see what I can do with it.
Post Reply