bartbutenaers / node-red-contrib-onvif-nodes

Node Red nodes for communicating with OnVif compliant IP devices
Apache License 2.0
65 stars 25 forks source link

Preset positions wiping out after some time #17

Open sheminasalam opened 3 years ago

sheminasalam commented 3 years ago

I have a China made PTZ wireless camera which is working fine with this node except the following issue. With this node I am able to set different Presets and the camera also responds well when we call particular presets. Also we get the list of presets using the get reset functions. but after some time these presets gets erased and if we use the get presets function we get the message as "empty". Again i have noticed that if we set the presets through the camera app or browser, it doesn't get listed while using the get presets function and also is not erased after some time. Why is this happening? Is it an issue with the camera or my deployment? The camera uses Pelco P PTZ protocols.

bartbutenaers commented 3 years ago

Hi @sheminasalam,

Cannot explain that at the moment... My node uses the agsh/onvif library behind the scenes.

As soon as you call getPresets my nodes immediately calls that library, which sends a http request to the IP camera (to get the available presets):

image

Which means we can visualize it like this:

image

So it seems to me that every time you try to get the presets via my node, a http-request is send to the IP camera to get the presets. As a result I would expect it to behave like this:

  1. You should be able to restart or deploy your Node-RED flow without the presets getting 'erased'.
  2. When you create new presets via your camera IP app/webinterface, those should become available to my nodes.

Can you provide some extra information? For example:

  1. I assume the presets are not erased in your camera app/webinterface ?
  2. Other info that might help me understand this issue...

The camera uses Pelco P PTZ protocols.

I had never heard about that. What is the relation with Onvif?

sheminasalam commented 3 years ago

Hi, Thanks for the response.

  1. The android app for this camera is iCsee. The presets which are set with the camera app/webinterface does not get erased. But these are never available in your nodes. The only nodes which are available to your nodes are the ones which are set with the setpresets function of your nodes.

  2. Pelco protocols are PTZ communication protocols but used in serial communication through wires which is not having an impact with our nodes.

  3. Other than this I dont have too much info. This is the third PTZ wifi camera in my home and the first two works perfectly with your nodes. I have also noticed that this camera webinterface is not supported by chrome or any other browsers but only internet explorer. When I try to connect to connect it with chrome it says Your browser is too new. So that is peculiar with this camera.

bartbutenaers commented 3 years ago

I have forwarded your question to the team of the library that I'm using behind the scenes: see here

sanyafifa commented 3 years ago

Hi, Thanks for the response.

  1. The android app for this camera is iCsee. The presets which are set with the camera app/webinterface does not get erased. But these are never available in your nodes. The only nodes which are available to your nodes are the ones which are set with the setpresets function of your nodes.
  2. Pelco protocols are PTZ communication protocols but used in serial communication through wires which is not having an impact with our nodes.
  3. Other than this I dont have too much info. This is the third PTZ wifi camera in my home and the first two works perfectly with your nodes. I have also noticed that this camera webinterface is not supported by chrome or any other browsers but only internet explorer. When I try to connect to connect it with chrome it says Your browser is too new. So that is peculiar with this camera.

Did you manage to solve the problem? My camera is similar to yours in description. It does not jump to a preset.