Line 522: |
Line 522: |
| | | |
| ===== Prepare ===== | | ===== Prepare ===== |
− | Take MV-MIPI-IMX178M, 3088*2064 as an example.
| |
− |
| |
| <code>v4l2-ctl --set-ctrl roi_x=0</code> | | <code>v4l2-ctl --set-ctrl roi_x=0</code> |
| | | |
Line 530: |
Line 528: |
| <code>v4l2-ctl --set-ctrl low_latency_mode=1</code> | | <code>v4l2-ctl --set-ctrl low_latency_mode=1</code> |
| | | |
− | <code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY</code> | + | <code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY</code> |
| + | |
| + | If useMV-MIPI-IMX178M, 3088*2064: |
| | | |
| <code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code> | | <code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code> |
Line 541: |
Line 541: |
| <code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code> | | <code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code> |
| ======Start acquisition====== | | ======Start acquisition====== |
− | <code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code> | + | |
| + | * MV-MIPI-IMX178M |
| + | |
| + | <code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code> |
| + | |
| + | * MV-MIPI-SC130M |
| + | |
| + | <code>v4l2-ctl --set-fmt-video=width=1280,height=1024,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-1280x1024.raw</code> |
| ====== Perform soft trigger operation ====== | | ====== Perform soft trigger operation ====== |
| In other shell terminals, you can execute the following command multiple times for multiple triggers. | | In other shell terminals, you can execute the following command multiple times for multiple triggers. |
Line 579: |
Line 586: |
| <code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code> | | <code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code> |
| ======Start acquisition====== | | ======Start acquisition====== |
| + | |
| + | * MV-MIPI-IMX178M |
| + | |
| <code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code> | | <code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code> |
| + | |
| + | * MV-MIPI-SC130M |
| + | |
| + | <code>v4l2-ctl --set-fmt-video=width=1280,height=1024,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-1280x1024.raw</code> |
| | | |
| ====== Perform hardware trigger operation ====== | | ====== Perform hardware trigger operation ====== |