Code Monkey home page Code Monkey logo

Comments (11)

jimudall avatar jimudall commented on August 18, 2024 1

I can confirm I have similar problems as described above. I have two NIC's. This was perplexing because the very first time I ran, I discovered my (only) camera running on my ethernet connection. However all subsequent runs failed. I did try the patch suggested by @gregksurveillus - binding to my ethernet NIC. Again it worked once but never again.

I have resorted to @patrickmichalina solution (thank you for that!)

from node-onvif.

gregksurveillus avatar gregksurveillus commented on August 18, 2024 1

@jimudall How did the ONVIF Device Manager work? Did you try it?

@patrickmichalina We did like your implementation. I am suspicious there is something going on between libraries that neither of us control, or other unusual behavior that was causing us problems. We've come down to pinning versions of everything such that we never get a different version of a module unless we want to change it. I have built node from source, but I haven't had time to look for specific things within it at run time like putting out a request on all the ports (which is what is documented in the node documentation, but not what is observed).

from node-onvif.

patrickmichalina avatar patrickmichalina commented on August 18, 2024

Would you happen to know why Wi-Fi connected devices fail to appear on ONVIF WS-Discovery? I am not able to figure it out. In order to detect wifi cameras I had to implement IP scanning in conjunction with WS-Discovery.

Any help not having to use ip scanning would be lovely :)

https://github.com/patrickmichalina/onvif-probe-rx

from node-onvif.

gregksurveillus avatar gregksurveillus commented on August 18, 2024

Make sure all the right ports and protocols are enabled on your Wi-Fi router.

We are probably going to roll our own implementation. This implementation does not appear robust enough to use in a production environment (we have installations with a large number of cameras).

We have had other issues that we can't specifically pin on this module, but when we remove it, the issues don't appear (things having to do with cameras on the network we're not trying to use, etc.).

from node-onvif.

patrickmichalina avatar patrickmichalina commented on August 18, 2024

@gregksurveillus do you mean open port 3702? I wonder why it works fine for ethernet connected devices but not WiFi...

from node-onvif.

gregksurveillus avatar gregksurveillus commented on August 18, 2024

Don't open ports to the outside on your router. Your firewalls on your computers need those ports open so the packets can get out. There are UDP AND TCP ports involved in ONVIF.

This is where the discovery service is documented on Wikipedia: https://en.wikipedia.org/wiki/WS-Discovery

To see if your network is set up right and working, you can use the ONVIF Device Manager (which is what the ONVIF standards suggests in some places within their own documentation -- it's a pretty rough standard when they have to write an implementation guide). https://sourceforge.net/projects/onvifdm/

from node-onvif.

patrickmichalina avatar patrickmichalina commented on August 18, 2024

Hmm thanks. I am developing cross-platform to support mac/windows. I looked at that source code and can't see anything special. I think my WS-Discovery is correct, but maybe my router needs some adjustments or the cameras change ONVIF ports when in WiFi mode. I will broadcast to all the ONVIF ports now and see if that helps at all.

from node-onvif.

gregksurveillus avatar gregksurveillus commented on August 18, 2024

The ONVIF Device Manager is your friend. If you can see it and manipulate it with this tool, your software should work if it's written correctly.

from node-onvif.

patrickmichalina avatar patrickmichalina commented on August 18, 2024

@jimudall if you find any issues with that library please file an issues ticket. Thanks for checking it out!

from node-onvif.

madwax avatar madwax commented on August 18, 2024

Are your problems on Windows or Linux. Windows is a pain when it comes to multicast and which adapter to use. Under Linux you can bind to All but windows you have to bind to an IP/adapter. In effect you have to workout the "best" adapter/IP to use or bind an instance on each adapter/IP.

from node-onvif.

defaliz avatar defaliz commented on August 18, 2024

works great !!! thanks a lot !!!

from node-onvif.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.