Line 242: |
Line 242: |
| | | |
| We provide a series of scripts to implement this functionality, saved in the rpi5_scripts directory. | | We provide a series of scripts to implement this functionality, saved in the rpi5_scripts directory. |
− | <br /> | + | |
| + | * ./find_entity.sh |
| + | |
| + | <code>$ ./find_entity.sh</code> |
| + | |
| + | <code>Found mvcam @ i2c-4 entity on /dev/media3</code> |
| + | |
| + | <code>Plese get frame from /dev/video0 and use /dev/v4l-subdev2 for camera setting.</code> |
| + | |
| + | <code>Found mvcam @ i2c-6 entity on /dev/media0</code> |
| + | |
| + | <code>Plese get frame from /dev/video8 and use /dev/v4l-subdev5 for camera setting.</code><br />After a reboot of Raspberry Pi 5, the media node and video node of the camera may change. Therefore, it is recommended to execute <code>./find_entity.sh</code> before performing subsequent operations to identify the device nodes. |
| + | |
| + | The above prompt shows that the system has detected two cameras and their corresponding device nodes. |
| + | |
| + | <code>i2c-4</code> corresponds to the CAM1 port on the board, and <code>i2c-6</code> corresponds to the CAM0 port on the board. |
| + | |
| + | * media_setting_rpi5.sh |
| + | |
| + | <code>./media_setting_rpi5.sh</code> |
| + | |
| + | <code>Usage: ./media_setting_rpi5.sh veyecam2m/csimx307/cssc132/mvcam -fmt [UYVY/RAW8/RAW10/RAW12] -w [width] -h [height]</code> |
| + | |
| + | <code>This shell script is designed to detect the connection of a camera on Raspberry Pi 5.</code> |
| + | |
| + | <code> It utilizes media-ctl and v4l2-ctl commands to configure the linking relationships and data formats of the media pad.</code> |
| + | |
| + | <code> Once completed, you can directly use /dev/video0 or /dev/video8 to obtain image data</code> |
| + | |
| + | Before proceeding with further operations, it is '''necessary''' to execute this script to complete the configuration of parameters. |
| + | |
| + | For instance,RAW-MIPI-AR0234M: |
| + | |
| + | <code>./media_setting_rpi5.sh mvcam -fmt RAW8 -w 1920 -h 1200</code> |
| + | |
| ==== v4l2-ctl application examples ==== | | ==== v4l2-ctl application examples ==== |
| | | |
Line 281: |
Line 315: |
| <small><code> Size: Discrete 3088x2064</code></small> | | <small><code> Size: Discrete 3088x2064</code></small> |
| | | |
− | <small><code> [5]: 'UYVY' (UYVY 4:2:2)</code></small> | + | <br /> |
− | | |
− | <small><code> Size: Discrete 3088x2064</code></small>
| |
− | | |
− | Note: UYVY data format is for debugging use only.
| |
| | | |
| ====== List the configurable parameters of the camera implemented in the driver ====== | | ====== List the configurable parameters of the camera implemented in the driver ====== |