12-01-2010 11:52 AM
Hi Eric,
I'm using an old analog video camera connected to an Axis 241 video server. If you aren't seeing the same behavior, I think you are right that it must be specific to my setup. On my end, the behavior is VERY reproducible. I did try your DNS-SD program... I can ping the Axis video server, but when I actually ran "dns-sd -B XXX.XXX.XXX.XXX" (with the actual address of the Axis server, of course), I got:
Browsing for XXX.XXX.XXX.XXX
DNSService call failed -65540
I get this response whether the server is plugged in or unplugged.
Any other thoughts? I've tried everything I can think of at this point... At the end of the day, I can live with the issue if I have to. I can make it so if the app can't find the camera at startup, it posts a dialog asking the user to check the hardware and then shuts down. But I really would prefer a solution that actually allows the app to recover gracefully.
Thanks,
Jason
12-01-2010 02:46 PM
Hi Jason,
Your arguments passed to the dns-sd app are not quite valid.You passed it the -B (browse) argument but with an IP address rather than a DNS-SD service name. If you run it as I described: dns-sd.exe -B "_axis-video._tcp" it should sit there running (until you hit control-c) showing all cameras as they are added and removed from the network. Try that in the same case as your application and see what it does.
It might be possible that your old Axis server has an older version of an mDNS daemon that might be buggy or not fully-compliant. Normally when you plug the camera in it should announce itself. If it weren't, then that would explain the situation you are seeing where if the camera is not around when an initial browse request is sent (when IMAQdx is first started) it might not see the camera added for some amount of time.
As another debugging step, if both MAX and your application are freshly started when the camera is unplugged, then you plug the camera in, does MAX start seeing the camera or does it show the same behavior as your app? I'd be very surprised if they showed different behavior.
Eric
12-02-2010 08:52 AM