Open Marco0034 opened 10 months ago
try this. Did you set the network device to NAT or Bridge mode? It would be better if you could set in bridge mode, so the camera can be found via unicast discover command.
However test this code:
hostname = "10.42.230.185" tlf = pylon.TlFactory.GetInstance() ptl = pylon.TlFactory.GetInstance() empty_camera_info = pylon.DeviceInfo() empty_camera_info.SetPropertyValue('IpAddress', hostname) camera_device = tlf.CreateDevice(empty_camera_info) camera = pylon.InstantCamera(camera_device)
@SMA2016a I tried the proposed code with network NAT mode and also in bridge mode. In bridge mode I cant even ping the device. In NAT mode I can ping the device but get the following error:
Traceback (most recent call last):
File "...", line 143, in
set the virtualBox in braidge mode and make sure that you have disabled the IP filter as written in pylon's README.
if then camera not visual, create a tcpdump file in VirtualBox and upload it. While capturing the log, open ipconfig tool and press refresh button
Hello, I have an issue to connect to my ace2 camera out of a virtualBox ubuntu environment. I am able to ping the device but get the following error:
Traceback (most recent call last): File "...", line 117, in
cam = pylon.InstantCamera(tlf.CreateDevice(cam_info))
File "...", line 1632, in CreateDevice
return _pylon.TlFactory_CreateDevice(self, *args)
_genicam.RuntimeException: Failed to discover GigE device '10.42.230.185:3956' : RuntimeException thrown (file 'BaslerGigETl.cpp', line 680)
Thank you for your help! Kind regards Marco