HebiRobotics / HebiCam

MATLAB utility for streaming video acquisition (h264, mjpeg, etc.)
Other
12 stars 5 forks source link

How can I avoid losing connection to the video source? #6

Open vertebot opened 5 years ago

vertebot commented 5 years ago

Hello

I'm using HebiCam to acquire video from RAK5206 wifi camera modules. I have 5 cameras connected to 5 different laptops running Matlab 2018a/Windows 10. Acquisition works fine most of the time (thank you for the excellent work) but every 2-5 min or so I get this error: 'Connection to video source was lost. Acquisition stopped.'. When this happens I have to stop my acquisition GUI and create a new HebiCam object (the Windows wifi connection to the camera remains intact however).

How can I avoid these disconnects? What's causing them? All wifi camera modules are <3m from their host laptop at all times. The wifi protocol is 802.11g/2.4 GHz. I've tried to increase the HebiCam timeout to 5 s but it doesn't seem to make any difference. Is there any other parameter in HebiCam that I should try to adjust? I'm happy to sacrifice frame rate and image quality.

Thank you

ennerf commented 5 years ago

That should only happen if the frame grabber wasn't able to read an image within the timeout period.

How did you verify that the connection to the camera stays intact? Do you have a second connection to the camera that displays images without issues or stutters?

vertebot commented 5 years ago

Thank you for the quick response. Does the frame grabber try multiple times to get an image, or does it go to the error right away?

Re the wifi connection: I just meant that the wifi icon in the system tray doesn't change to 'not connected' (as it does for example if the wifi camera loses power). However, I am able to stream video for long periods without interruption in Visview for Windows (an app based on VLC Player library).