Hiseeu PTZ MODEL:N817XP

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
whoop
Posts: 22
Joined: Fri Sep 04, 2020 7:08 pm

Hiseeu PTZ MODEL:N817XP

Post by whoop »

Hi guys, I'm new to the forum, and new to Zoneminder.

Got v1.34.20 running on CentOS 8 just to test it out. Very cool.
Wanted to test PTZ. Got a cheap PTZ camera:
Hiseeu PTZ MODEL:N817XP https://aliexpress.com/item/4001161556100.html

Managed to get some live view from it on rtsp://ip:554//user=admin_password=tlJwpbo6_channel=0_stream=0.sdp?real_stream

PTZ works fine using some Chinese plugin for Internet Explorer (tried that inside a VM) but I was wondering what the best approach would be to see if I could get some interaction via Zoneminder. If that is even possible.

Maybe somebody already tried to get this working with this hardware and got some results. Maybe there is some way of troubleshooting this stuff that I don't know about.

I tried some options in the "control" tab of the camera but I figured I definitely don't know what I am doing there.
Could somebody push me in the right direction (if that is even possible).

Thanks a bunch..
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Hiseeu PTZ MODEL:N817XP

Post by rockedge »

Some times taking a known working control script and modifying it to work on this camera will get one started down the right path. Is it possible to use the PTZ method with IE and look at the URL's it sends to the camera to move it pan and tilt?

Is this camera a clone of another type?
whoop
Posts: 22
Joined: Fri Sep 04, 2020 7:08 pm

Re: Hiseeu PTZ MODEL:N817XP

Post by whoop »

Thank you very much for your reply, indeed.
IE seems to be using some binary blob for this camera. I can't even make heads or tails out of the communication using WireShark (but that could be just me).

I've gotten quite a bit further though (I think) but I am stuck again. I noticed port 8899 was open using nmap and I tried the windows tool "Onvif device manager"
The URI seems to be: http://ip:8899/onvif/device_service
And I can pan, tilt (not zoom) using this onvif tool.

Under Profiles in this tool I can see stuff about ptz configuration.

I do not understand how to use this information to make zoneminder make use of this though.


So I hope I made some progress and that somebody can help me a bit further..

Thank you!
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Hiseeu PTZ MODEL:N817XP

Post by rockedge »

I think you have made some progress! Have you attempted to set up this camera using onvif in Zoneminder?
I could try to help you modify a script if we can identify one that is close. Can you locate the PERL control scripts for the different cameras in your ZM installation? Can you post the info you found to me please? I then could look for a script to start with. Once we have something we can push the control script to zoneminder for inclusion in the master
whoop
Posts: 22
Joined: Fri Sep 04, 2020 7:08 pm

Re: Hiseeu PTZ MODEL:N817XP

Post by whoop »

Wow! Cheers for the quick response!!

I got live view using the: rtsp://ip:554//user=admin_password=tlJwpbo6_channel=0_stream=0.sdp?real_stream URI under "Source path" under the Source tab of the camera.
I tried some tinkering adding the onvif URI (http://ip:8899/onvif/device_service) in the "control" tab of the camera but I am just guessing stuff. Also "probing" or the "ONVIF" link don't seem to work form me: they don't give any camera's back.

I looked around on the CentOS filesystem and stumbled upon: /usr/share/perl5/vendor_perl/ZoneMinder/Control/
It seems to contain some *.pm files with camera brand names if I am not mistaken.
Could this be what you are referring to?

Thanks man...
whoop
Posts: 22
Joined: Fri Sep 04, 2020 7:08 pm

Re: Hiseeu PTZ MODEL:N817XP

Post by whoop »

Here is the ptz info from the Onvif device manager. Sorry for the crappy resolution (Virtualising Windows).
Hope this was what you needed. It also says it is onvif version 17.12
whoop
Posts: 22
Joined: Fri Sep 04, 2020 7:08 pm

Re: Hiseeu PTZ MODEL:N817XP

Post by whoop »

I got the ptz functionality working for this camera in ISPY as well.
http://ip:8899/onvif/device_service

So the camera is working flawlessly in odm and ISPY

When I try this ip in zoneminder under the control tab using ONVIF Camera control type and trying to move the camera i get the following errors in the log:

Code: Select all

'zmcontrol.pl --id=4' exited abnormally, exit status 255
decoder_control.cgi?command=6 not object from ZoneMinder::Control::onvif:68
'zmcontrol.pl --id=4' already running at 20/09/24 22:24:40, pid = 197181
When I try this ip in zoneminder under the control tab using Netcat ONVIF control type and trying to move the camera i get the following errors in the log:

Code: Select all

After sending PTZ command, camera returned the following error:'500 Can't connect to [http:]:80 (Name or service not known)'MSG:<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Stop xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>onvif/device_service</ProfileToken><PanTilt>true</PanTilt><Zoom>false</Zoom></Stop></s:Body></s:Envelope>Response:Can't connect to [http:]:80 (Name or service not known)Name or service not known at /usr/share/perl5/vendor_perl/LWP/Protocol/http.pm line 50.
I am willing to try analyzing traffic with wireshark but I am not clear what to look for. I can get wireshark running but I can't figure out what to search for and how to search for it.

Please help!!
Kind regards
Post Reply