esrf-bliss / Lima-camera-basler

Lima basler plugin
lima.blissgarden.org
GNU General Public License v3.0
4 stars 26 forks source link

mamba installation of Lima on windows 10 can't connect to Basler acA640-100gm #36

Closed keale closed 8 months ago

keale commented 8 months ago

Dear all, related to issue esrf-bliss/Lima-camera-basler#37.

I have installed Lima on a Windows 10 PC with mamba (lima-camera-basler 1.10.9 lima-camera-basler-tango 1.10.10 0 lima-core 1.9.15 lima-tango-server 1.9.20).

The DB device server is runing on a Ubuntu 22.04 VM, see esrf-bliss/Lima-camera-basler#37. When I try to start a device server for acA640-100gm on windows pc, I get the error message:

(basler) C:\Users\AlexK>LimaCCDs 1
basler camera_id: ip://192.168.50.220
[2024/01/15 12:31:46.707438] 1e8ace3c270     *Camera*lima::Basler::Camera::Camera (\BaslerCamera.cpp:310)-Always: No Camera found!
[2024/01/15 12:31:46.708412] 1e8ace3c270     *Camera*lima::Basler::Camera::Camera (\BaslerCamera.cpp:324)-Error: Exception(Error):  [thrown]
*********     No device is available or no device contains the provided device info properties.
-------> Received a DevFailed exception: DevFailed[
DevError[
    desc = limacore.Exception: Hardware: lima::Basler::Camera::Camera(C:\Mambaforge\conda-bld\lima-camera-basler_1698770569337\work\src\BaslerCamera.cpp, 324): Error: No device is available or no device contains the provided device info properties.

I can start LimaCCD for the cam on the VM and a LimaViewer on Windows.

P.S. In general, everything from TANGO (show and refresh in jive, LimaCCDs in Terminal) reacts very slowly on Windows, as if some timeout must occur first. In the VM they react immediately.

laurent-claustre commented 8 months ago

I do not understand, acA640-100gm is the model reference of an ACE camera not a SCOUT one ??? Could you try to connect to the camera either with the serial number or a user_name instead of the ip address? camera_id: sn:// or camera_id: uname:// To set a user name you can use the ipconfigurator tool.

keale commented 8 months ago

Sorry, it is of course an ACE camera, not a SCOUT. It's the cam that works on Linux in issue esrf-bliss/Lima-camera-basler#37. I can't test your suggestions now, but for me the connection via IP is the most basic. The camera can of course be pinged from Windows, works with NI-Vision and Pylon-Viewer.

keale commented 8 months ago

One question: The ACE camera (IP 192.168.50.220) is connected to an Ethernet adapter, which has several IP addresses: 192.168.50.222, 192.168.2.222. Can Lima deal with this situation?

laurent-claustre commented 8 months ago

Lima does not manage the camera access but relies on the Pylon SDK. could you make a screen shot of ipconfigurator with your camera connected on the adapter 192.168.50.222, please?

keale commented 8 months ago

I can't find pylonviewer or the IP configurator in Mamba envs. But here is a screenshot of the IP-Configurator V5 installed directly under Windows. So old because it was not possible to change the IP of the camera with newer versions.

SS-IPConfig-V5

laurent-claustre commented 8 months ago

ok thanks. Finally I did a test on a windows computer and get the same issue as you. So I gonna investigate now and I will come back to you once I can propose the fix.

keale commented 8 months ago

Thank You Laurent!

laurent-claustre commented 8 months ago

Ok I find the pb, it comes from the conda package pylon6-sdk version 6.3.0 (made by us) to redistribute the pylon libraries, there are missing dll. I will prepare a new version 6.3.1 and remove the previous one from anaconda esrf-bcu channel. coming soon ...

laurent-claustre commented 8 months ago

So I did push a new package pylon6-sdk 6.3.1 on anaconda esrf-bcu channel and remove 6.3.0 (only for windows).

Simply remove your basler environment and create a new one:

(base) C:\Users\opid00> mamba create -n basler lima-camera-basler-tango -c esrf-bcu

You should get the following (lima) package installed:

(basler) C:\Users\opid00>conda list lima
# packages in environment at C:\Miniconda3\envs\basler:
#
# Name                    Version                   Build  Channel
lima-camera-basler        1.10.10          py39h2e52968_0    esrf-bcu
lima-camera-basler-tango  1.10.10                       0    esrf-bcu
lima-core                 1.9.23           py39h2e52968_0    esrf-bcu
lima-tango-server         1.9.20                     py_0    esrf-bcu
(basler) C:\Users\opid00>conda list pylon
# packages in environment at C:\Miniconda3\envs\basler:
#
# Name                    Version                   Build  Channel
pylon6-sdk                6.3.1                         0    esrf-bcu

Sorry for the inconvenience.

Ps: for faster installation we recommend to use mamba instead of the default conda tool.

keale commented 8 months ago

Thanks a lot, it works now!