Am 3/18/23 um 13:26 schrieb Damien Douxchamps:
> Hello Alois,
>
> On Wed, 2023-03-08 at 18:50 +0100, Alois Schlögl wrote:
>> Am 3/8/23 um 04:53 schrieb Damien Douxchamps:
>>> Hello Alois,
>>>
>>> On Mon, 2023-03-06 at 19:14 +0100, Alois Schlögl wrote:
>>>> Hello Damien,
>>>>
>>>> Am 3/6/23 um 09:58 schrieb Damien Douxchamps:
>>>>> Hello Alois,
>>>>>
>>>>> On Mon, 2023-03-06 at 09:31 +0100, Alois Schlögl wrote:
>>>>>> To whom it my concern,
>>>>>>
>>>>>>
>>>>>> I'm trying to use the Hamatsu Camera ORCA-ER C4742-80-12AG with
>>>>>> Micro-mananger [1] on Debian11, but run into problems that the camera is
>>>>>> not recognized. When search the list of supported cameras [2], there are
>>>>>> several ORCA cameras listed, but not
>>>>>> ORCA-ER C4742-80-12AG
>>>>>>
>>>>>> Specifically, I used micromanager 2.0 and libdc1394, libraw1394,
>>>>>> gscanbus, dvgrab, Debian11, linux-kernel 5.10. The firewire card is
>>>>>> identified, and /dev/fw0 becomes available and permissions are set.
>>>>>> dc1394_reset_bus shows this message:
>>>>>> /usr/bin/dc1394_reset_bus
>>>>>> Using camera with GUID 90060415610105
>>>>>> Reseting bus...
>>>>>> but dvgrab can not find the camera. The output from testlibraw and
>>>>>> gscanbus is attached. Micromanager 2.0 can be started, and the hardware
>>>>>> configuration is performed, trying to configure with IIDC or with dc1394
>>>>>> fail with an error that no camera is found.
>>>>>>
>>>>>>
>>>>>> Do you know a solution how to make this camera useful again ?
>>>>>> Do you have any suggestions what I've been missing, and what else I
>>>>>> could try ?
>>>>>> Is it feasible in support this camera in libdc1394 ?
>>>>> Yes, it should work with libdc1394 and coriander (but the latter may not
>>>>> work on recent debian/ubuntu). This part of gscanbus output says it's an
>>>>> IIDC camera that supports the 1.30 version of the protocol:
>>>>>
>>>>> Unit Spec ID: 0x0000A02D # IIDC
>>>>> Unit SW Version: 0x00000102 # 1.30
>>>>>
>>>>> I'm not sure why it's not properly detected. I've used Hamamatsu cameras
>>>>> in the past and they usually work quite well.
>>>>>
>>>>> It could be interesting to add debug prints in identify_unit() in
>>>>> dc1394/enumeration.c:90 to see what condition fails. Is it something you
>>>>> can do?
>>>>>
>>>>> Regarding dvgrab: it will not work with IIDC cameras; it is made for
>>>>> camcorders and other video/playback devices.
>>>>>
>>>>> Interesting that you found a camera not listed on my website. It's
>>>>> obsolete but if we can make it work I'll add it posthumously! ;-)
>>>>>
>>>>> Best,
>>>>>
>>>>> Damien
>>>>>
>>>> thanks for your reply.
>>>>
>>>> I've added more debugging information in dc1394/enumeration.c
>>>> The patch (debug.log) and the extra output of dc1394_reset_bus is attached.
>>>> Overall, dc1394_reset_bus seems to run ok,
>>>>
>>>> When configure the hardware with dc1394 in MM, it crashes (see
>>>> mm_patched_dc1394).
>>>> There errorr suggest that it could not handle some camera features.
>>>> Maybe that provides a hint.
>>> Thanks, that is helpful although I have to admit the error is puzzling.
>>> Here's a patch to give us an idea of which feature fails. It also dumps
>>> more data and doesn't stop on error. This last point may make your
>>> camera work or at least be detected. Let me know what kind of output you
>>> get.
>>>
>>> Damien
>>>
>>>
>> Hello Damien,
>>
>> the following is shown (due to your patch to register.c)
>>
>> Base 0xF00000, Offset 0x400
>> Value: 0x40001000
>> Base 0xF00000, Offset 0x60C
>> Value: 0x02000000
>> Base 0xF00000, Offset 0x608
>> Value: 0xE0000000
>> Base 0xF00000, Offset 0x604
>> Value: 0x00000000
>> Base 0xF00000, Offset 0x600
>> Value: 0x00000000
>>
>> It seems that dc1394_feature_get() gets only called by grab_gray_image.
>> So, I checked also all executables in the example directory; the output
>> logs of these are also attached.
>> I've added more debug information, it should not be too difficult to
>> filter these (e.g. grep -v DBG *log)
>>
>> When searching for "error" in these output logs, I see these:
>>
>> basler_sff_extended_data.log:libdc1394 error: Generic failure: in
>> dc1394_basler_sff_feature_enable (basler.c, line 221): Cannot read SFF
>> feature CSR register
>> basler_sff_extended_data.log:libdc1394 error: Generic failure: in main
>> (basler_sff_extended_data.c, line 167): cannot enable Extended_Data_Stream
>> dc1394_multiview.log:libdc1394 error: No suitable Xv adaptor found
>> ladybug5capture.log:libdc1394 error: Function not supported by this
>> camera: in main (ladybug5capture.c, line 146): Could not set B mode
>> ladybug.log:libdc1394 error: Function not supported by this camera: in
>> main (ladybug.c, line 93): Could not set B mode
> These errors are expected since you're not using a Basler or Ladybug
> camera. The Xv adapter error is unrelated.
>
> The fact that helloworld.c runs without trouble means that your camera
> may be detected properly with the current patched code? Also,
> grab_gray_image captured an image (image.pgm), can you check if it's a
> valid image?
>
> Damien
>
Thanks, I tested this again. It seems it is a valid image. I tested now
again with micromanager.
Trying to configure the camera with IIDC crashed the camera controller,
which could be resolved only by a power reset (turning off and on) the
camera controller.
When configuring the camera with dc1394, micromanager is able to access
the camera.
I did several tests and rebooted the computer, and tested also stock
version of libdc1394 from debian11, and it seems that this is working now.
At the moment, I assume that the earlier issues were do to the fact,
that the camera controller was crashed, and the tools from libdc1394 did
not work because of that.
The upshot of this story seems to be:
1) the hardware configuration in micromanager need to be configured with
the dc1394.
2) the IIDC driver in Micromanager 2.0-dev seem buggy, and would crash
the camera controller.
Sorry for the noise, and thanks for your support.
Best,
Alois
|