basler / pypylon

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

Enumerating devices on Mac taking too long when ace 2 GigE camera is connected #426

Open djalusic opened 3 years ago

djalusic commented 3 years ago

When an ace 2 camera is connected to the laptop, the device enumeration lasts around 2.5 minutes (tested on several Macs).

time python3 -c ‘from pypylon import pylon; print([p.GetFriendlyName() for p in pylon.TlFactory.GetInstance().EnumerateDevices()])’
[‘Basler a2A1920-51gcPRO (40135655)’]
python3 -c   0.44s user 0.24s system 0% cpu 2:30.78 total

This occurs only with ace 2 cameras. However, Pylon viewer instantly recognizes the camera. When working on Linux, the enumeration is fast (as usual, with any camera).

Specifications: pylon Release 6.2.0.21487 pylon C++ SDK 6.2.0.18677 pypylon==1.7.2 MacOS 10.15.7

SMA2016a commented 3 years ago

do you use autoIP on camera? would you post the IP address if the camera and NIC, please?

djalusic commented 3 years ago

No, I use DHCP. When I use Auto IP, the camera is not found in PyPylon (the function returns an empty tuple almost instantly). I copied this information from the IP configurator:   Vendor: | Basler Model Name: | a2A1920-51gcPRO Device User ID: |   Serial Number: | 40135655 MAC Address: | 00:30:53:36:6D:3C IP Configuration: | DHCP IP Address: | 192.168.254.254 Subnet Mask: | 255.255.255.0 Gateway: | 192.168.254.1

SMA2016a commented 3 years ago

would you able to send me tcpdump caupure

-start tcpdump cupature -Open pylon ip config tool

save the file in pcap format.