4919
- 收藏
- 点赞
- 分享
- 举报
hi3516cv200+ar0237 VI无中断无数据
各位大神,目前我在接入16CV200+ar0237,目前sensor的I2C通信已经正常,能够读写寄存器,但是起来后看了下VI信息,全是空的,没有任何数据,现将VI设备属性和mipi配置贴上来,求大神给予帮助。
/* interface mode */
stViDevAttr.enIntfMode = VI_MODE_HISPI;
/* 1-, 2- , 4-channel multiplex mode */
stViDevAttr.enWorkMode = VI_WORK_MODE_1Multiplex;
/* component mask */
stViDevAttr.au32CompMask[0] = 0x0FFF0000;
stViDevAttr.au32CompMask[1] = 0x0;
/*input scanning mode */
stViDevAttr.enScanMode = VI_SCAN_PROGRESSIVE;
/* AD channel ID */
stViDevAttr.s32AdChnId[0] = -1;
stViDevAttr.s32AdChnId[1] = -1;
stViDevAttr.s32AdChnId[2] = -1;
stViDevAttr.s32AdChnId[3] = -1;
/* Input data sequence (only the YUV format is supported) */
stViDevAttr.enDataSeq = VI_INPUT_DATA_YUYV;
/* Sync timing */
stViDevAttr.stSynCfg.enVsync = VI_VSYNC_PULSE;
stViDevAttr.stSynCfg.enVsyncNeg = VI_VSYNC_NEG_LOW;
stViDevAttr.stSynCfg.enHsync = VI_HSYNC_VALID_SINGNAL;
stViDevAttr.stSynCfg.enHsyncNeg = VI_HSYNC_NEG_HIGH;
stViDevAttr.stSynCfg.enVsyncValid = VI_VSYNC_VALID_SINGAL;
stViDevAttr.stSynCfg.enVsyncValidNeg = VI_VSYNC_VALID_NEG_HIGH;
stViDevAttr.stSynCfg.stTimingBlank.u32HsyncHfb = 0;
stViDevAttr.stSynCfg.stTimingBlank.u32HsyncAct = 1920;
stViDevAttr.stSynCfg.stTimingBlank.u32HsyncHbb = 0;
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVfb = 0;
if(VMP_PIC_SIZE_1080P == vmpGlbGetVmpMaxPicSize())
{
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVact = 1080;
}
else
{
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVact = 720;
}
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVbb = 6;
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVbfb = 0;
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVbact = 0;
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVbbb = 0;
/*ISP enable or bypass */
stViDevAttr.enDataPath = VI_PATH_ISP;
/* RGB: CSC-709 or CSC-601, PT YUV444 disable; YUV: default yuv CSC coef PT YUV444 enable */
stViDevAttr.enInputDataType = VI_DATA_TYPE_RGB;
/* Data reverse */
stViDevAttr.bDataRev = HI_FALSE;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
combo_dev_attr_t HISPI_4lane_SENSOR_AR0237_12BIT_1080p_NOWDR_ATTR =
{
/* input mode */
.input_mode = INPUT_MODE_HISPI,
{
.lvds_attr = {
.img_size = {1920, 1080},
HI_WDR_MODE_NONE,
LVDS_SYNC_MODE_SOL,
RAW_DATA_12BIT,
LVDS_ENDIAN_LITTLE,
LVDS_ENDIAN_LITTLE,
.lane_id = {0, 1, 2, 3, -1, -1, -1, -1},
.sync_code = {
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane0
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane1
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane2
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane3
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane0
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane1
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane2
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane3
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
}
}
}
};
求帮助。我们是做的并行数据传输的。
/* interface mode */
stViDevAttr.enIntfMode = VI_MODE_HISPI;
/* 1-, 2- , 4-channel multiplex mode */
stViDevAttr.enWorkMode = VI_WORK_MODE_1Multiplex;
/* component mask */
stViDevAttr.au32CompMask[0] = 0x0FFF0000;
stViDevAttr.au32CompMask[1] = 0x0;
/*input scanning mode */
stViDevAttr.enScanMode = VI_SCAN_PROGRESSIVE;
/* AD channel ID */
stViDevAttr.s32AdChnId[0] = -1;
stViDevAttr.s32AdChnId[1] = -1;
stViDevAttr.s32AdChnId[2] = -1;
stViDevAttr.s32AdChnId[3] = -1;
/* Input data sequence (only the YUV format is supported) */
stViDevAttr.enDataSeq = VI_INPUT_DATA_YUYV;
/* Sync timing */
stViDevAttr.stSynCfg.enVsync = VI_VSYNC_PULSE;
stViDevAttr.stSynCfg.enVsyncNeg = VI_VSYNC_NEG_LOW;
stViDevAttr.stSynCfg.enHsync = VI_HSYNC_VALID_SINGNAL;
stViDevAttr.stSynCfg.enHsyncNeg = VI_HSYNC_NEG_HIGH;
stViDevAttr.stSynCfg.enVsyncValid = VI_VSYNC_VALID_SINGAL;
stViDevAttr.stSynCfg.enVsyncValidNeg = VI_VSYNC_VALID_NEG_HIGH;
stViDevAttr.stSynCfg.stTimingBlank.u32HsyncHfb = 0;
stViDevAttr.stSynCfg.stTimingBlank.u32HsyncAct = 1920;
stViDevAttr.stSynCfg.stTimingBlank.u32HsyncHbb = 0;
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVfb = 0;
if(VMP_PIC_SIZE_1080P == vmpGlbGetVmpMaxPicSize())
{
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVact = 1080;
}
else
{
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVact = 720;
}
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVbb = 6;
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVbfb = 0;
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVbact = 0;
stViDevAttr.stSynCfg.stTimingBlank.u32VsyncVbbb = 0;
/*ISP enable or bypass */
stViDevAttr.enDataPath = VI_PATH_ISP;
/* RGB: CSC-709 or CSC-601, PT YUV444 disable; YUV: default yuv CSC coef PT YUV444 enable */
stViDevAttr.enInputDataType = VI_DATA_TYPE_RGB;
/* Data reverse */
stViDevAttr.bDataRev = HI_FALSE;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
combo_dev_attr_t HISPI_4lane_SENSOR_AR0237_12BIT_1080p_NOWDR_ATTR =
{
/* input mode */
.input_mode = INPUT_MODE_HISPI,
{
.lvds_attr = {
.img_size = {1920, 1080},
HI_WDR_MODE_NONE,
LVDS_SYNC_MODE_SOL,
RAW_DATA_12BIT,
LVDS_ENDIAN_LITTLE,
LVDS_ENDIAN_LITTLE,
.lane_id = {0, 1, 2, 3, -1, -1, -1, -1},
.sync_code = {
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane0
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane1
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane2
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane3
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane0
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane1
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane2
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane3
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
}
}
}
};
求帮助。我们是做的并行数据传输的。
我来回答
回答4个
时间排序
认可量排序
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2021-03-05 17:09:29
-
2016-10-12 11:17:17
-
2016-09-29 20:25:44
-
2016-07-18 10:01:59
-
2016-10-12 16:08:22
-
2021-10-29 17:04:58
-
2016-10-06 13:16:37
-
2018-10-18 16:59:16
-
2019-04-25 15:37:44
-
2016-08-22 22:42:48
-
2016-11-03 12:01:38
-
2016-09-28 17:41:41
-
2020-11-12 11:17:09
-
2021-01-02 10:29:54
-
2019-07-10 10:56:51
-
2016-11-17 20:05:13
-
2017-06-12 15:06:48
-
2017-04-17 17:15:17
-
2019-01-21 14:38:49
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5SS928的emmc有32GB,bootargs设置使用16GB,但是为啥能用的只有rootfs的大小
-
33SS928怎样烧写ubuntu系统
-
10ToolPlatform下载rootfs提示网络失败
-
10谁有GK7205V500的SDK
-
5Hi3516CV610 烧录不进去
-
10Hi3559AV100 芯片硬解码h265编码格式的视频时出现视频播放错误,解码错误信息 s32PackErr:码流有错
-
5海思SS928 / SD3403的sample_venc.c摄像头编码Demo中,采集到的摄像头的YUV数据在哪个相关的函数中?
-
5海鸥派openEuler无法启动网卡,连接WIFI存在问题
-
66有没有ISP相关的巨佬帮忙看看SS928对接IMX347的图像问题
-
50求助hi3559与FPGA通过SLVS-EC接口对接问题
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认