Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Interfacing (DSI, CSI, I2C, etc.) • Re: Raspberry PI4 and FPD Link ds90ub954 in ds90ub933 bundle, capturing and displaying test pattern

$
0
0
Good day 6by9.
Thank you very
My datasheet from Sony says it only has a CSI2 output, and has no mention of a DVP variant.
much for your reply.

We have experience integrating ds90ub954 - ds90ub953 with imx477 camera on nVidia platform.
Driver used from here https://github.com/InES-HPMM/FPD-LinkIII_ds90ub95x

Now what we want to get.
ds90ub954 can work with ds90ub933.
ds90ub933 is FPD-Link III Serializer for 1-MP/60-fps Cameras 10/12 Bits, 100 MHz
If you take a camera with a DVP interface and connect it to ds90ub933
Then connect ds90ub933 via RF to ds90ub954, you should get a DVP – CSI converter
For example, Raspberry does not have a DVP interface, but you can connect a DVP camera to CSI

We have a board of our own design for such an adapter.
The hardware is fully configured via I2C from the driver.
Now you need to capture data on the CSI bus.
The essence of the problem is my limited knowledge of v4l2.
The ds90ub954 has a color Pattern Generator.

The first step is to get them on the screen.
Today I tried all day to get them to work, but to no avail.
In the ds90ub954 registers you can set up data types 0x2b or 0x2c
I wanted to adjust them to the imx477 sensor format
On our nVidia platform (jetson nano) color stripes with ds90ub954 work fine.

In all cases, when trying to capture an image, we get a timeout.
There is a signal coming from the ds90ub954 deserializer, I can see it with an oscilloscope.

Is there a way to understand what libcamera doesn't like?
Are there any debug output options?

Running with the -v parameter doesn't help much.

Code:

qdicam@qdicam:~ $ libcamera-vid -t 100000 -o test.h264 --mode 4056:3040:12 -v[0:00:31.786152424] [1756]  INFO Camera camera_manager.cpp:326 libcamera v0.5.0+59-d83ff0a4[0:00:31.829266794] [1759]  WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise[0:00:31.831574609] [1759]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/qdicam512@30 to Unicam device /dev/media0 and ISP device /dev/media2[0:00:31.831710590] [1759]  INFO RPI pipeline_base.cpp:1121 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'Options:    verbose: 2    info_text:#%frame (%fps fps) exp %exp ag %ag dg %dg    timeout: 99999ms    width: 640    height: 480    output: test.h264    post_process_file:    post_process_libs:    preview: default    qt-preview: 0    transform: identity    roi: all    metering: centre    exposure: normal    ev: 0    awb: auto    flush: false    wrap: 0    brightness: 0    contrast: 1    saturation: 1    sharpness: 1    framerate: 30    denoise: auto    viewfinder-width: 0    viewfinder-height: 0    tuning-file: (libcamera)    lores-width: 0    lores-height: 0    lores-par: 0    autofocus-range: normal    autofocus-speed: normal    autofocus-window: all    hdr: off    mode: 4056:3040:12:P    viewfinder-mode: unspecified    metadata:    metadata-format: json    bitrate: 0kbps    profile:    level:    intra: 0    inline: 0    save-pts:    codec: h264    quality (for MJPEG): 50    keypress: 0    signal: 0    initial: record    split: 0    segment: 0    circular: 0    sync: 0Made X/EGL preview windowOpening camera...Acquired camera /base/soc/i2c0mux/i2c@1/qdicam512@30Configuring video...Mode selection for 4056:3040:12:P    SRGGB10_CSI2P,1332x990/0 - Score: 10552.2    SRGGB12_CSI2P,2028x1080/0 - Score: 8179.84    SRGGB12_CSI2P,2028x1520/0 - Score: 7096    SRGGB12_CSI2P,4056x3040/0 - Score: 0[0:00:32.320854609] [1756]  INFO Camera camera.cpp:1205 configuring streams: (0) 640x480-YUV420 (1) 4056x3040-SBGGR12_CSI2P[0:00:32.321675405] [1759]  INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/qdicam512@30 - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCCCamera streams configuredAvailable controls:    AeExposureMode : [0..3]    Contrast : [0.000000..32.000000]    AeConstraintMode : [0..3]    ExposureTimeMode : [0..1]    HdrMode : [0..4]    AeMeteringMode : [0..3]    AeFlickerPeriod : [100..1000000]    AnalogueGainMode : [0..1]    AnalogueGain : [1.000000..22.260870]    StatsOutputEnable : [false..true]    Brightness : [-1.000000..1.000000]    SyncFrames : [1..1000000]    ExposureTime : [114..694422939]    AwbEnable : [false..true]    ColourGains : [0.000000..32.000000]    AwbMode : [0..7]    ColourTemperature : [100..100000]    Saturation : [0.000000..32.000000]    CnnEnableInputTensor : [false..true]    AeFlickerMode : [0..1]    SyncMode : [0..2]    FrameDurationLimits : [100000..694434742]    ScalerCrop : [(0, 0)/64x64..(0, 0)/4056x3040]    NoiseReductionMode : [0..4]    Sharpness : [0.000000..16.000000]    AeEnable : [false..true]    ExposureValue : [-8.000000..8.000000]Buffers allocated and mappedVideo setup completeOpened H264Encoder on /dev/video11 as fd 36Got 6 output buffersGot 12 capture buffersCodec streaming startedRequests createdUsing crop (main) (2, 0)/4053x3040Camera started![0:00:37.472089143] [1759]  WARN V4L2 v4l2_videodevice.cpp:2150 /dev/video0[13:cap]: Dequeue timer of 5000000.00us has expired![0:00:37.472204031] [1759] ERROR RPI pipeline_base.cpp:1358 Camera frontend has timed out![0:00:37.472234161] [1759] ERROR RPI pipeline_base.cpp:1359 Please check that your camera sensor connector is attached securely.[0:00:37.472264531] [1759] ERROR RPI pipeline_base.cpp:1360 Alternatively, try another cable and/or sensor.ERROR: Device timeout detected, attempting a restart!!!Camera stopped!Requests createdUsing crop (main) (2, 0)/4053x3040Camera started!

Statistics: Posted by vvn66 — Wed Jun 11, 2025 11:59 pm



Viewing all articles
Browse latest Browse all 8041

Trending Articles