Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preset positions wiping out after some time #17

Open
sheminasalam opened this issue Nov 12, 2020 · 4 comments
Open

Preset positions wiping out after some time #17

sheminasalam opened this issue Nov 12, 2020 · 4 comments

Comments

@sheminasalam
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@sanyafifa
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants