basler / pypylon

The official python wrapper for the pylon Camera Software Suite
http://www.baslerweb.com
BSD 3-Clause "New" or "Revised" License
564 stars 206 forks source link

Need to restart the camera by resetting the PoE on the switch #783

Open stbnps opened 2 weeks ago

stbnps commented 2 weeks ago

Describe what you want to implement and what the issue & the steps to reproduce it are:

We have this issue where we stop being able to stream frames from the camera. Even though we sometimes can enumerate the camera in pylon viewer and pypylon, we cannot get frames using pylon viewer or pypylon, and this issue is only resolved after we reset PoE on the switch, so that the camera is restarted. Other times, we don't see the camera (and we don't even get ping replies even though it's connected), and we only see it back after we restart the PoE on the switch.

This issue only happens very sparingly, so it's really hard to reproduce. Do you think it's a bug in the camera firmware? A cabling issue? Maybe an issue with our switch? Do you recommend using the DeviceReset function when we can still enumerate the camera?

Thanks!

Is your camera operational in Basler pylon viewer on your platform

No

Hardware setup & camera model(s) used

CPU architecture: x86 64 Operating System: Ubuntu 22.04 RAM: 128 GB

Type in type/model/name of interface cards: NetXtreme-E BCM57504 Switches or hubs used: Netgear M4300 Cable types/lengths: Cat 6A

Runtime information:

python: 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0]
platform: linux/x86_64/5.15.0-119-generic
pypylon: 3.0.1 / 7.4.0.38864
thiesmoeller commented 2 weeks ago

As this should not happen at all.... finding the root cause is better than searching for fixing the symptoms.

Could you list the camera you use? ( Hardware setup & camera model(s) used)

stbnps commented 2 weeks ago

The camera model is a2a1920-51gcpro. The camera is connected to the switch using a Cat 6A cable and, for some of them, we are using the Basler RJ45 with a screw connector.

They are in an industrial environment and, in the past, we've seen some cables having small cuts because of the friction against sharp edges. Can this be related?

thiesmoeller commented 2 weeks ago

Have you run the a cable test on the ports involved ? Something like https://kb.netgear.com/29789/How-to-use-the-Cable-Tester-feature-on-NETGEAR-ProSAFE-Click-Switches