TheImagingSource / tiscamera

The Linux SDK for The Imaging Source cameras.
https://www.theimagingsource.com
Apache License 2.0
299 stars 148 forks source link

Is there a DFK31BU camera driver available for the Raspberry Pi? #542

Open Noz0mizore opened 9 months ago

Noz0mizore commented 9 months ago

I'm trying to connect a camera to a Raspberry Pi 4 for a project, but I don't see any compatible drivers. Is there any way to connect this camera to the Raspberry Pi in some way and get the trigger to work?

As for the OS version, it doesn't matter what version you use as long as you can get the camera to work.

TIS-Stefan commented 9 months ago

There is no driver needed, but the camera does not identify itself as UVC/V4l2 device. I made a manual including the rules file at The Imaging Source Knowledgebase

Noz0mizore commented 9 months ago

There is no driver needed, but the camera does not identify itself as UVC/V4l2 device. I made a manual including the rules file at The Imaging Source Knowledgebase

So how do I use the camera's external trigger? Oh, and when I browse the device with the lsusb command, it outputs the model name fine, but it doesn't actually work?

TIS-Stefan commented 9 months ago

You must enable the trigger mode. I suggest to install tcam-capture from https://www.theimagingsource.com/en-de/support/download/ (see tiscamera-library) and see, which properties you get. Trigger mode is no standard v4l2 property and I must admit, I am not sure, whether it is added by the udev rules for your camera.

Noz0mizore commented 9 months ago

tcam-capture 2024-02-05T11:30:01 - unknown:0: warning libpng warning: iCCP: known incorrect sRGB profile 2024-02-05T11:30:01 - unknown:0: warning QXcbConnection: XCB error: 148 (Unknown), sequence: 191, resource id: 0, major code: 140 (Unknown), minor code: 20 2024-02-05T11:30:26 - unknown:0: info device selected: --

When I run tcam, I get this error ls /dev/video0 is recognized normally

And the device is recognized differently on lsusb

lsusb Bus 001 Device 004: ID 199e:8101 The Imaging Source Europe GmbH DFx 21BU04 Camera

TIS-Stefan commented 9 months ago

Hello The quoted messages are warnings. Are you sure, you have a 31BU and not a 21BU with 640x480 resolution only? Can you please give me the serial number of your camera, so I can check? Does tcam-capture show a live video?

Noz0mizore commented 9 months ago

1707272051292

TIS-Stefan commented 9 months ago

Hello

I may is possible, Linux list this 16 years old camera as 21BU model. So, you get an image from the camera? Only you do not have a trigger property?