How do I calculate the packet delay for a GigE Vision camera to prevent dropped frames?
Show older comments
I am using a GigE Vision compliant camera with the Image Acquisition Toolbox GigE Vision adaptor. However, after a number of frames are acquired the acquisition stops and the following error message is displayed:
ERROR: gige: Block/frame 23 is being dropped because a lost packet is unable to be resent.There are several possible causes for packets being lost. See the troubleshooting information in the "Configuring GigE Vision Devices" section of the Image Acquisition Toolbox documentation.
How can I calculate the recommended packet delay corresponding to my camera settings?
Accepted Answer
More Answers (1)
On my camera (Basler ACE2500 14gm), packetSize setting behaves in a manner opposite to what's been described here. The default packetSize is 2000 and when I increase it to 8192 (with Jumbosize set to 9014) the CPU usage still remains very high (over 90% for 8fps Mono8). Hence, increasing the PackDelay setting even to 10000 as next step doesn't help much (The vendor software does 8fps while not using CPU above 25%). However, if I reduce packetSize to 500 it helps the CPU usage magically. The packetDelay setting then kicks in to reduce CPU load even further. With packetSize of 300 and delay of 8000 I'm able to closely match vendor software performance. I don't know if these guidelines and settings work for anyone or the general recommendations here depend of camera/driver, etc but they certainly didn't work for me and, worse, are misguiding. The attached utility files often suggest packetDelay values that make camera return no images. E.g. With 10fps and the settings aforementioned, the packetDelay suggested was 250, an unusable value.
Categories
Find more on GigE Vision Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!