DFM 22BUC03-ML

110 views
Skip to first unread message

Pablo Marín

unread,
Sep 25, 2013, 4:03:13 AM9/25/13
to tisc...@googlegroups.com
Hello,

I am trying this device DFM 22BUC03-ML under ubuntu 12.04. I follow the steps described here: https://code.google.com/p/tiscamera/wiki/GettingStartedCMOSUVC and load the firmware dfk22uc03_135.euvc and switch to uvc mode. The result is this:

Manufacturer String: The Imaging Source Europe GmbH
Product String: DFM 22BUC03-ML
Serial Number String: 3xxxxxxx
PID: 8302
Flags: 1

All looks great. My main problem is when I try the colordisplay.py example. I configure the device (/dev/video0) and the height(744) and width(480). I start the program with the follow command:

$ python colordisplay.py

And the output is this:

Starting video pipeline
Starting display pipeline

And nothing happens. I push ctr-C and:

^CTraceback (most recent call last):
  File "colordisplay.py", line 58, in <module>
    loop.run()
KeyboardInterrupt

That is all. What am I doing wrong? There are some problems with the firmware for linux of this device?

Thanks and best regards

Edgar Thier

unread,
Sep 25, 2013, 5:13:30 AM9/25/13
to tisc...@googlegroups.com
Hi,

Assuming your camera is the only one connected to your computer: it shows up as /dev/video0 and dmesg reports it as a uvc device, right? If that is the case the problem is not with the camera.

What is more likely is that the camera does not like the resolution. Does it work with 640x480?
Many cameras only support a defined set of resolutions.



Examine the output of lsusb in a terminal, to find a line describing a webcam:

$ lsusb
Bus 001 Device 006: ID 199e:8307 The Imaging Source Europe GmbH 
...

Then use the Bus and Device numbers to get more information on that device:

$ lsusb -s 001:006 -v | egrep "Width|Height"
        wWidth                           2592
        wHeight                          1944
        wWidth                           1920
        wHeight                          1080
        wWidth                           1280
        wHeight                           720
        wWidth                            640
        wHeight                           480

...

This list describes the 4 possible resolutions of the camera. Everything else will not work.

If you need a reliable way to try if a camera can display a video at all, try guvcview. It is a reliable way to determine if the camera works.

If there is something unclear, please say so.

Cheers,

Edgar

Pablo Marín

unread,
Sep 25, 2013, 6:02:19 AM9/25/13
to tisc...@googlegroups.com
Ok, I think the problem is the firmware. I try this command and appears the cam is not giving any format pixel:

$ v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
    Index       : 0
    Type        : Video Capture
    Pixel Format: ''
    Name        : 4xxxxx-xxxxx-xxxxx-xxxx

In all examples I see the formats can be:

 - YUYV
- H264
- MJPG

In this device it is imposible to know the format pixel because the device don't give the information to the driver. Something is missing. It is posible the problem was because I load the firmware from other camera? Is there expecific firmware for this camera for ubuntu? Thank you for all.

Pablo Marín

unread,
Sep 26, 2013, 10:45:21 AM9/26/13
to tisc...@googlegroups.com

Ok I see the problem.

I load the last firmware update not from this camera but from dfk22uc03_135.euvc.

I will need dfm22BUC03_xx.euvc

Do you have it? Where can I get it?

I can access to grayscale mono8 format with the firmware from the camera DFK which is monocrome. I need color and I try with all .euvc inside tiscamera/tools/euvccam-fw/files but without luck.

I appreciate any help.

Thank you and best regads

Edgar Thier

unread,
Oct 29, 2013, 9:01:09 AM10/29/13
to tisc...@googlegroups.com
Sorry for the far to late reply, I thought Arne already took care of your problem.


I will need dfm22BUC03_xx.euvc
 
No, you do not. DFM and DFK are just naming schemes but basically the same, so that is not your problem.

I have made the same mistake myself. If we look at the guide (GettingStartedCMOSUVC), section "Switch camera interface mode and color format" you will notice the sentence mentioning that color cameras have to use the monochrome firmware.
This is due to a "miscommunication" between drivers which prohibits the correct reading of bayer patterns through v4l2. The camera still emits a color image but is simply interpreted the wrong way.

This leads to the following solution:

1. Get the DMK firmware for your camera.
2. Interpret the monochrome signal you receive from color camera as color.
3. Take joy in your color image.

If you use gstreamer we have a gstelement in the repository that should automatically recolorize the image for you.
Reply all
Reply to author
Forward
0 new messages