User avatar
HermannSW
Posts: 2709
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

OV5647 spec allows 1-lane mode and selection of default lane, can raspiraw deal with that?

Mon Feb 26, 2018 12:53 am

https://cdn.sparkfun.com/datasheets/Dev ... 7_full.pdf
  1. Can raspiraw use only 1 lane from CSI-2 connector?
  2. Can it work with only lane-1 and only lane-2?
  3. If so, would custom made CSI-2 connectors allow two raspiraw programs running in parallel to capture video on its one lane from two v1 cameras in parallel?
    (2nd camera would need its own MIPI I2C and CLK lines)
  4. Is it correct than 1-lane mode would suffice for 640x480 at 90fps?
    [640*480*(10/8)*90 < 33MB/s = 264Mbit/s < 1Gbps]
  5. If that calculation is right, do all the other v1 modes fit into 1Gbps as well?

    Code: Select all

    $ bc -ql
    1296*730*(10/8)*49/(1024*1024)*8
    442.10357666015625000000
    1296*972*(10/8)*42/(1024*1024)*8
    504.56909179687500000000
    2592*1944*(10/8)*15/(1024*1024)*8
    720.81298828125000000000
    1920*1080*(10/8)*30/(1024*1024)*8
    593.26171875000000000000
    
https://stamm-wilbrandt.de/en/Raspberry_camera.html
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/raspiraw
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9069
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: OV5647 spec allows 1-lane mode and selection of default lane, can raspiraw deal with that?

Mon Feb 26, 2018 9:57 am

  1. Yes. Use the data_lanes field of the MMAL_PARAMETER_CAMERA_RX_CONFIG_T structure
  2. Only lane-1, yes. Only lane-2, no.
  3. An SD card interface can run as 1, 4, or 8 bits wide. Would you expect to be able to wire up 8 SD cards at one bit wide? Simply, no, it won't work.
  4. If your PLL settings are such that it has sufficient pixel clock rate, then potentially.
  5. See 4. How are you setting up the clock structure within the sensor, and is that sufficient for the sensor to be able to clock the CSI at that rate? Does that doubled lane frequency cause you more issues with EMC?
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Camera board”