Toybrick

TB-rv1126D板子怎么获取摄像头图像(官方淘宝购买摄像头)

hankyao

注册会员

积分
79
楼主
发表于 2021-7-21 09:52:15    查看: 19319|回复: 12 | [复制链接]    打印 | 显示全部楼层
板子如何获取sensor raw数据,或者yuv
回复

使用道具 举报

hankyao

注册会员

积分
79
沙发
 楼主| 发表于 2021-7-22 17:28:02 | 显示全部楼层
sudo media-ctl -d /dev/media1 --set-v4l2 '"rkisp-isp-subdev":0[crop0,0)/3840x2160]'输入这个命令总是报错。
Unable to setup formats: Invalid argument (22)
回复

使用道具 举报

hankyao

注册会员

积分
79
板凳
 楼主| 发表于 2021-7-23 14:23:58 | 显示全部楼层
toybrick@debian10:~$ sudo media-ctl -p -d /dev/media1
[sudo] password for toybrick:
Media controller API version 4.19.172

Media device information
------------------------
driver          rkisp-vir0
model           rkisp0
serial
bus info
hw revision     0x0
driver version  4.19.172

Device topology
- entity 1: rkisp-isp-subdev (4 pads, 10 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev4
        pad0: Sink
                [fmt:SRGGB10_1X10/1920x1080 field:none
                 crop.bounds0,0)/1920x1080
                 crop0,0)/1920x1080]
                <- "rkisp-csi-subdev":1 [ENABLED]
                <- "rkisp_rawrd0_m":0 [ENABLED]
                <- "rkisp_rawrd2_s":0 [ENABLED]
                <- "rkisp_rawrd1_l":0 [ENABLED]
        pad1: Sink
                <- "rkisp-input-params":0 [ENABLED]
        pad2: Source
                [fmt:YUYV8_2X8/1920x1080 field:none colorspace:smpte170m quantization:full-range
                 crop.bounds0,0)/1920x1080
                 crop0,0)/1920x1080]
                -> "rkisp-bridge-ispp":0 [ENABLED]
                -> "rkisp_mainpath":0 []
                -> "rkisp_selfpath":0 [ENABLED]
        pad3: Source
                -> "rkisp-statistics":0 [ENABLED]
                -> "rkisp-mipi-luma":0 [ENABLED]

- entity 6: rkisp-csi-subdev (6 pads, 6 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev5
        pad0: Sink
                [fmt:SRGGB10_1X10/1920x1080 field:none]
                <- "rockchip-mipi-dphy-rx":1 [ENABLED]
        pad1: Source
                [fmt:SRGGB10_1X10/1920x1080 field:none]
                -> "rkisp-isp-subdev":0 [ENABLED]
        pad2: Source
                [fmt:SRGGB10_1X10/1920x1080 field:none]
                -> "rkisp_rawwr0":0 [ENABLED]
        pad3: Source
                [fmt:SRGGB10_1X10/1920x1080 field:none]
                -> "rkisp_rawwr1":0 [ENABLED]
        pad4: Source
                [fmt:SRGGB10_1X10/1920x1080 field:none]
                -> "rkisp_rawwr2":0 [ENABLED]
        pad5: Source
                [fmt:SRGGB10_1X10/1920x1080 field:none]
                -> "rkisp_rawwr3":0 [ENABLED]

- entity 13: rkisp-bridge-ispp (1 pad, 1 link)
             type V4L2 subdev subtype Unknown flags 0
        pad0: Sink
                <- "rkisp-isp-subdev":2 [ENABLED]

- entity 17: rkisp_mainpath (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video5
        pad0: Sink
                <- "rkisp-isp-subdev":2 []

- entity 23: rkisp_selfpath (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video6
        pad0: Sink
                <- "rkisp-isp-subdev":2 [ENABLED]

- entity 29: rkisp_rawwr0 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video7
        pad0: Sink
                <- "rkisp-csi-subdev":2 [ENABLED]

- entity 35: rkisp_rawwr1 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video8
        pad0: Sink
                <- "rkisp-csi-subdev":3 [ENABLED]

- entity 41: rkisp_rawwr2 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video9
        pad0: Sink
                <- "rkisp-csi-subdev":4 [ENABLED]

- entity 47: rkisp_rawwr3 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video10
        pad0: Sink
                <- "rkisp-csi-subdev":5 [ENABLED]

- entity 53: rkisp_rawrd0_m (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video11
        pad0: Source
                -> "rkisp-isp-subdev":0 [ENABLED]

- entity 59: rkisp_rawrd2_s (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video12
        pad0: Source
                -> "rkisp-isp-subdev":0 [ENABLED]

- entity 65: rkisp_rawrd1_l (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video13
        pad0: Source
                -> "rkisp-isp-subdev":0 [ENABLED]

- entity 71: rkisp-statistics (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video14
        pad0: Sink
                <- "rkisp-isp-subdev":3 [ENABLED]

- entity 77: rkisp-input-params (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video15
        pad0: Source
                -> "rkisp-isp-subdev":1 [ENABLED]

- entity 83: rkisp-mipi-luma (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video16
        pad0: Sink
                <- "rkisp-isp-subdev":3 [ENABLED]

- entity 89: rockchip-mipi-dphy-rx (2 pads, 2 links)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev6
        pad0: Sink
                [fmt:SRGGB10_1X10/1920x1080@10000/300000 field:none]
                <- "m01_f_imx317 1-001a":0 [ENABLED]
        pad1: Source
                [fmt:SRGGB10_1X10/1920x1080@10000/300000 field:none]
                -> "rkisp-csi-subdev":0 [ENABLED]

- entity 92: m01_f_imx317 1-001a (1 pad, 1 link)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev7
        pad0: Source
                [fmt:SRGGB10_1X10/1920x1080@10000/300000 field:none]
                -> "rockchip-mipi-dphy-rx":0 [ENABLED]
回复

使用道具 举报

hankyao

注册会员

积分
79
地板
 楼主| 发表于 2021-7-23 15:43:34 | 显示全部楼层
rkispp0: waiting on params stream on event timeout
rkisp rkisp-vir0: can not get first iq setting in stream on
rkisp-bridge-ispp: bridge_stop timeout ret:0
报这个错误可能是什么问题
回复

使用道具 举报

hankyao

注册会员

积分
79
5#
 楼主| 发表于 2021-8-5 17:27:02 | 显示全部楼层
[root@RV1126_RV1109:/]# pa -aux|grep isp
-/bin/sh: pa: not found
回复

使用道具 举报

hankyao

注册会员

积分
79
6#
 楼主| 发表于 2021-8-6 17:09:20 | 显示全部楼层
[29428.848468] rkispp0: waiting on params stream on event timeout
[29428.869206] rkisp rkisp-vir0: can not get first iq setting in stream on
报这个错误是什么原因
回复

使用道具 举报

hankyao

注册会员

积分
79
7#
 楼主| 发表于 2021-8-6 17:10:22 | 显示全部楼层
[root@RV1126_RV1109:/]# ps -aux | grep isp
root      659  0.0  0.0   2056   224 ttyFIQ0  S+   08:13   0:00 grep isp
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表