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

Not seeing ONVIF device if on different subnet #17

Open
jimudall opened this issue Feb 7, 2019 · 2 comments
Open

Not seeing ONVIF device if on different subnet #17

jimudall opened this issue Feb 7, 2019 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@jimudall
Copy link

jimudall commented Feb 7, 2019

I honestly don't know if this is an issue, or something more nuanced. The context is this:

  1. My interface is on CIDR block 10.10.0.255/24
  2. I have an ONVIF camera that has been assigned a static IP of 192.168.56.147

I start the probe - which sends out a UDP packet on the multicast channel. The camera responds by sending a packet back to my machine's IP address. However, of course it's source address is not on my subnet. I see all this using wireshark on my machine. But I don't receive that device in my callback handler on discovery.

I can run the ONVIF device manager tool and he performs a similar sequence (i.e. broadcast, camera responds) and subsequently it shows up in that tool

Because the node-onvif package doesn't predictably support discovery when I have more than one NIC installed, I can't double check what should happen with that package.

This is a funny scenario, but a realistic one since I'm working in the context of a deployment tool that can discover, identify and ultimately repair issues on site with multiple cameras. In other words I know that answer is 'put the camera on the same subnet'. However, I need to be able to diagnose the situation in order to rectify it.

Do you have any insight you might offer me?

Thanks in advance

@patrickmichalina
Copy link
Member

patrickmichalina commented Feb 7, 2019

Hi @jimudall,

You mentioned "ONVIF device manager", are you talking about onvifdm? I will check out their source code to see how they handle this. I am not really too familiar with router and networking scenarios. Thanks for sharing though, I suspected my testing setup would not replicate all the common use-cases.

To be clear. You said in WireShark you do see the response from your camera @ 192.168.56.147? It just doesn't end up in the discovery callback?

Are you talking about WS-Discovery response or the IP Scan response? Guessing the WS-Discovery since your subnet interface is on 10.10.0.255/24

@patrickmichalina patrickmichalina self-assigned this Feb 12, 2019
@patrickmichalina patrickmichalina added the bug Something isn't working label Feb 12, 2019
@patrickmichalina
Copy link
Member

@jimudall I have made some improvements to the ip address scanning feature. Give it a shot and let me know if it helps at all. Now iterates over all network interfaces and pings the entire network. See #19

@patrickmichalina patrickmichalina added enhancement New feature or request help wanted Extra attention is needed labels Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants