16620
- 收藏
- 点赞
- 分享
- 举报
mipi 时序以及lane如何与硬件匹配
本帖最后由 hanfei69882 于 2017-3-22 16:37 编辑
两个问题:
1、自己板子电源是直接供电的,sensor直接打开使能脚直接操作,问题:电源没有按照mipi时序初始化会不会影响mipi初始化失败
2、mipi lane的配置软件上文档比较少,怎么看软件的配置与硬件是否匹配
看了好多资料、代码,头疼好几天了,有朋友遇到过指点一下:handshake :handshake
现在状况描述,采用一条link 两lane,读ID正常,配置情况:
[code]combo_dev_attr_t mipi_cmos3v3_attr =
{
.input_mode = INPUT_MODE_MIPI,
{
.mipi_attr =
{
RAW_DATA_10BIT, //sensor support raw8/10
{0, -1, -1, -1, -1, -1, -1, -1} //one lane,这点不确定如何跟硬件匹配
}
}
};[/code]
采用raw虚拟通道获取图像,错误提示为 0xA010800E HI_ERR_VI_BUF_EMPTY 视频输入缓存为空,vi log如下
[code]# cat /proc/umap/vi
[VIU] Version: [Hi3518EV200_MPP_V1.0.4.0 B050 Release], Build Time: [Nov 25 2016, 21:56:16]
VI-VPSS is offline.
-----MODULE PARAM--------------------------------------------------------------
detect_err_frame drop_err_frame stop_int_level
10 0 0
-----VI DEV ATTR---------------------------------------------------------------
Dev IntfM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2 AD3 Seq DPath DType DRev CapX CapY CapW CapH
0 MIPI 1Mux ff0000 0 P -1 -1 -1 -1 N/A ISP RGB N 0 0 1600 1200
-----VI HIGH DEV ATTR---------------------------------------------------------------
Dev InputM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2 AD3 Seq CombM CompM ClkM Fix FldP DPath DType DRev CapX CapY CapW CapH
-----VI PHYCHN ATTR------------------------------------------------------------
PhyChn CapX CapY CapW CapH DstW DstH CapSel Mirror Flip IntEn PixFom SrcRat DstRat Comp
0 0 0 1600 1200 1600 1200 both N N Y SP420 -1 -1 N
-----VI PHYCHN STATUS 1----------------------------------------------------------
PhyChn Dev IntCnt VbFail LosInt TopLos BotLos BufCnt IntT SendT Field Stride
0 0 0 0 0 0 0 0 0 0 (null) 0
-----VI PHYCHN STATUS 2---------------------------------------------------------
PhyChn MaxIntT IntGapT MaxGapT LIntCnt ThrCnt AutoDis CasAutD TmgErr ccErrN IntRat
0 0 0 0 0 0 0 0 0 0 0
-----VI OTHER ATTR------------------------------------------------------------
LDC Mode Ratio COffX COffY Enable
-- All 0 0 0 N
Flash Mode StartTime DuraTime InterVal CapIdx Enable FlashedNum
-- Once 0 0 0 0 N 0
CSC Type HueVal ContrVal LumaVal StatuVal TVMode
-- 709 50 50 50 50 N
DCI En BlackGain ContrGain LightGain
-- Y 32 32 32
DIS En
-- N
-----VI WDR ATTR---------------------------------------------------------------
Mode BufNum DstW DstH PoolId VcNum DesNum State bCompress
NONE 0 1600 1200 -1 0 0 Init N
-----VI WDR DES STATUS----------------------------------------------------------
Idx IntGap IntCnt CcErrCnt
-----VI WDR SRC STATUS----------------------------------------------------------
Idx IntGap IntCnt CcErrCnt
-----VI WDR COMBINE STATUS--------------------------------------------------------
IntGap IntCnt CcErrCnt
0 0 0
-----VI EXTCHN ATTR------------------------------------------------------------
ExtChn BindChn CropEn CropX CropY CropW CropH DstW DstH PixFom SrcRat DstRat Depth Comp
-----VI CHN STATUS-------------------------------------------------------------
ViChn bEnUsrP FrmTime FrmRate SendCnt SwLost Rotate Depth
0 N 0 0 0 0 NONE 0
-----VI CHN CALL VGS STATUS 1-------------------------------------------------
ViChn UsrBgnNOk UsrCancel UsrEndOk UsrCbOk CovBgnNOk CovCancel CovEndOk CovCbOk
-----VI CHN CALL VGS STATUS 2-------------------------------------------------
ViChn OsdBgnNOk OsdCancel OsdEndOk OsdCbOk ScaleNOk SclCancel SclEndOk SclCbOk
-----VI CHN CALL VGS STATUS 3-------------------------------------------------
ViChn RotateNOk RotCancel RotEndOk RotCbOk LDCNOk LDCCancel LDCEndOk LDCCbOk[/code]
另外mipi配置如下
[code]# cat /proc/driver/hi_mipi
Module: [MIPI], Build Time: [Feb 28 2017, 11:46:49]
-----mipi DEV ATTR-----------------------------------------------------------------
LaneNum Vc0 Vc1 Vc2 Vc3 DataType PhyMode
1 0 0 0 0 RAW10 MIPI
-----mipi detect info-----------------------------------------------------------------
link_id width height data
0 0 0 0x0
1 0 0 0x0
-----MIPI int error info-----------------------------------------------------------
link HeaderCnt vc0CRC vc1CRC vc2CRC vc3CRC vc0OrderErr vc1OrderErr vc2OrderErr vc3OrderErr
0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
link vc0NMatCnt vc1NMatCnt vc2NMatCnt vc3NMatCnt vc0DtErr vc1DtErr vc2DtErr vc3DtErr
0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
-----mipi timeout and fifo error info---------------------------------------------
link clkTOutCnt d0TOutCnt d1TOutCnt d2TOutCnt d3TOutCnt clkEscCnt d0EscCnt d1EscCnt d2EscCnt d3EscCnt SynErrcCnt
0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0
-----LVDS/SUBLVDS/HISPI phy and lane state info--------------------------------------
link p0LineErrCnt p0FrameErrCnt p1LineErrCnt p1FrameErrCnt L0ErrCnt L1ErrCnt L2ErrCnt L3ErrCnt L4ErrCnt L5ErrCnt L6ErrCnt L7ErrCnt
0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0
[/code]
两个问题:
1、自己板子电源是直接供电的,sensor直接打开使能脚直接操作,问题:电源没有按照mipi时序初始化会不会影响mipi初始化失败
2、mipi lane的配置软件上文档比较少,怎么看软件的配置与硬件是否匹配
看了好多资料、代码,头疼好几天了,有朋友遇到过指点一下:handshake :handshake
现在状况描述,采用一条link 两lane,读ID正常,配置情况:
[code]combo_dev_attr_t mipi_cmos3v3_attr =
{
.input_mode = INPUT_MODE_MIPI,
{
.mipi_attr =
{
RAW_DATA_10BIT, //sensor support raw8/10
{0, -1, -1, -1, -1, -1, -1, -1} //one lane,这点不确定如何跟硬件匹配
}
}
};[/code]
采用raw虚拟通道获取图像,错误提示为 0xA010800E HI_ERR_VI_BUF_EMPTY 视频输入缓存为空,vi log如下
[code]# cat /proc/umap/vi
[VIU] Version: [Hi3518EV200_MPP_V1.0.4.0 B050 Release], Build Time: [Nov 25 2016, 21:56:16]
VI-VPSS is offline.
-----MODULE PARAM--------------------------------------------------------------
detect_err_frame drop_err_frame stop_int_level
10 0 0
-----VI DEV ATTR---------------------------------------------------------------
Dev IntfM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2 AD3 Seq DPath DType DRev CapX CapY CapW CapH
0 MIPI 1Mux ff0000 0 P -1 -1 -1 -1 N/A ISP RGB N 0 0 1600 1200
-----VI HIGH DEV ATTR---------------------------------------------------------------
Dev InputM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2 AD3 Seq CombM CompM ClkM Fix FldP DPath DType DRev CapX CapY CapW CapH
-----VI PHYCHN ATTR------------------------------------------------------------
PhyChn CapX CapY CapW CapH DstW DstH CapSel Mirror Flip IntEn PixFom SrcRat DstRat Comp
0 0 0 1600 1200 1600 1200 both N N Y SP420 -1 -1 N
-----VI PHYCHN STATUS 1----------------------------------------------------------
PhyChn Dev IntCnt VbFail LosInt TopLos BotLos BufCnt IntT SendT Field Stride
0 0 0 0 0 0 0 0 0 0 (null) 0
-----VI PHYCHN STATUS 2---------------------------------------------------------
PhyChn MaxIntT IntGapT MaxGapT LIntCnt ThrCnt AutoDis CasAutD TmgErr ccErrN IntRat
0 0 0 0 0 0 0 0 0 0 0
-----VI OTHER ATTR------------------------------------------------------------
LDC Mode Ratio COffX COffY Enable
-- All 0 0 0 N
Flash Mode StartTime DuraTime InterVal CapIdx Enable FlashedNum
-- Once 0 0 0 0 N 0
CSC Type HueVal ContrVal LumaVal StatuVal TVMode
-- 709 50 50 50 50 N
DCI En BlackGain ContrGain LightGain
-- Y 32 32 32
DIS En
-- N
-----VI WDR ATTR---------------------------------------------------------------
Mode BufNum DstW DstH PoolId VcNum DesNum State bCompress
NONE 0 1600 1200 -1 0 0 Init N
-----VI WDR DES STATUS----------------------------------------------------------
Idx IntGap IntCnt CcErrCnt
-----VI WDR SRC STATUS----------------------------------------------------------
Idx IntGap IntCnt CcErrCnt
-----VI WDR COMBINE STATUS--------------------------------------------------------
IntGap IntCnt CcErrCnt
0 0 0
-----VI EXTCHN ATTR------------------------------------------------------------
ExtChn BindChn CropEn CropX CropY CropW CropH DstW DstH PixFom SrcRat DstRat Depth Comp
-----VI CHN STATUS-------------------------------------------------------------
ViChn bEnUsrP FrmTime FrmRate SendCnt SwLost Rotate Depth
0 N 0 0 0 0 NONE 0
-----VI CHN CALL VGS STATUS 1-------------------------------------------------
ViChn UsrBgnNOk UsrCancel UsrEndOk UsrCbOk CovBgnNOk CovCancel CovEndOk CovCbOk
-----VI CHN CALL VGS STATUS 2-------------------------------------------------
ViChn OsdBgnNOk OsdCancel OsdEndOk OsdCbOk ScaleNOk SclCancel SclEndOk SclCbOk
-----VI CHN CALL VGS STATUS 3-------------------------------------------------
ViChn RotateNOk RotCancel RotEndOk RotCbOk LDCNOk LDCCancel LDCEndOk LDCCbOk[/code]
另外mipi配置如下
[code]# cat /proc/driver/hi_mipi
Module: [MIPI], Build Time: [Feb 28 2017, 11:46:49]
-----mipi DEV ATTR-----------------------------------------------------------------
LaneNum Vc0 Vc1 Vc2 Vc3 DataType PhyMode
1 0 0 0 0 RAW10 MIPI
-----mipi detect info-----------------------------------------------------------------
link_id width height data
0 0 0 0x0
1 0 0 0x0
-----MIPI int error info-----------------------------------------------------------
link HeaderCnt vc0CRC vc1CRC vc2CRC vc3CRC vc0OrderErr vc1OrderErr vc2OrderErr vc3OrderErr
0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
link vc0NMatCnt vc1NMatCnt vc2NMatCnt vc3NMatCnt vc0DtErr vc1DtErr vc2DtErr vc3DtErr
0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
-----mipi timeout and fifo error info---------------------------------------------
link clkTOutCnt d0TOutCnt d1TOutCnt d2TOutCnt d3TOutCnt clkEscCnt d0EscCnt d1EscCnt d2EscCnt d3EscCnt SynErrcCnt
0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0
-----LVDS/SUBLVDS/HISPI phy and lane state info--------------------------------------
link p0LineErrCnt p0FrameErrCnt p1LineErrCnt p1FrameErrCnt L0ErrCnt L1ErrCnt L2ErrCnt L3ErrCnt L4ErrCnt L5ErrCnt L6ErrCnt L7ErrCnt
0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0
[/code]
我来回答
回答15个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2018-12-11 18:31:27
-
2019-06-21 11:43:52
-
2019-08-13 10:39:59
-
2019-12-18 10:12:29
-
2021-01-09 16:14:45
-
2021-01-14 17:34:54
-
2019-11-14 10:25:59
-
2018-12-29 16:28:21
-
2018-05-11 14:24:38
-
2015-02-11 09:58:53
-
2023-07-06 09:21:29
-
2021-05-01 08:11:49
-
2023-07-22 10:01:27
-
2016-03-24 10:19:07
-
2024-02-23 17:56:55
-
2019-04-01 21:09:56
-
2022-11-29 17:21:33
-
2018-10-29 22:47:07
-
2023-12-21 16:50:35
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认