ESCAM QH002 working

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
andrewdmcg
Posts: 2
Joined: Fri Aug 25, 2017 1:32 pm

ESCAM QH002 working

Post by andrewdmcg »

Simple wired IP 1080 resolution camera, cost less than £20 from China

http://www.escam.cn/product/showproduct.php?id=115

As normal with these things the documentation directed to some ActiveX control I can't use, or dodgy third-party android apps.

It claims ONVIF but the zoneminder probe didn't find it, possibly because of my weird network structure, possibly because I'm still on 1.30.4.

The answer for Linux users is https://github.com/quatanium/python-onvif

The thing insisted on being 192.168.1.189 when I plugged it in. I suspect it will only work out of the box on a network that's 192.168.1.0/24 or 192.168.0.0/24 . However, it can then be reconfigured

Code: Select all

$ virtualenv onvif
$ . onvif/bin/activate
$ cd onvif
$ git clone https://github.com/quatanium/python-onvif.git
$ cd python-onvif
$ python setup.py install
I wanted to set it to use DHCP so I could control its IP address from my router, that was:

Code: Select all

$ onvif-cli --host 192.168.1.189 -u admin -a 123456 devicemgmt SetNetworkInterfaces "{'InterfaceToken': 'eth0', 'NetworkInterface': { 'Enabled': 'true', 'IPv4': { 'Enabled': 'true', 'DHCP': 'true' } } }"
It's also possible to set a static IP address, that would be something like:

Code: Select all

$ onvif-cli --host 192.168.1.189 -u admin -a 123456 devicemgmt SetNetworkInterfaces "{'InterfaceToken': 'eth0', 'NetworkInterface': { 'Enabled': 'true', 'IPv4': { 'Enabled': 'true', 'Manual': [ { 'Address': '192.168.1.67', 'PrefixLength': 24 } ] } } }"
It set the time to 1970, again you can set NTP addresses to use or just tell it to use DHCP:

Code: Select all

$ onvif-cli --host 192.168.1.189 -u admin -a 123456 devicemgmt SetNTP "{ 'FromDHCP': 'true' }"
And, to get the all-important streaming URL:

Code: Select all

$ onvif-cli --host 192.168.1.189 -u admin -a 123456 media GetStreamUri "{'StreamSetup': {'Stream':'RTP-Unicast', 'Transport':{'Protocol':'TCP'}}, 'ProfileToken': 'CH01'}"
So for me my ZM setup using libvlc ended up
  • Source Path: rtsp://192.168.1.67:554/ch01.264?dev=1
  • Remote Method: TCP
  • Target colorspace: 32 bit colour
  • Capture Width: 1920
  • Capture Height: 1080
dzek69
Posts: 1
Joined: Sun Jul 14, 2019 9:27 am

Re: ESCAM QH002 working

Post by dzek69 »

Had the same issue with QH002 - I even wanted to allow ActiveX scripts, but... the camera came with broken software (javascript errors in the console) and Internet Explorer wasn't even able to get to the point of running these scripts.

Also I wasn't able to change default networking settings.

As setting up Python was always pain for me - I choosed Windows machine and found "Onvif device manager" app (this is exactly how it is named). With it I am able to change some basic settings of the camera, at least everything to make it work.

So if you aren't a heavy Linux user - use app mentioned above.

Also keep in mind that QH002 (as many other chearp/chinese cameras) has only partially implemented ONVIF - so without web interface access you have no access to some of the camera settings (like pretty advanced in this model motion detection, cover zones, etc).
Post Reply