Loading...
求助,3519a 接 bt656,有中断,但是全当错误帧
Ryan_L  发布于 06/24 11:25
浏览 142

3519av100 接 bt656, 收到数据时一直报中断错误,数据也当错误帧丢弃了
以下是部分信息

~ # cat /proc/umap/vi

[VI] Version: [Hi3519AV100_MPP_V2.0.2.0 B050 Release], Build Time[Aug  2 2019, 17:42:54]


-------------------------------MODULE PARAM ---------------------------------------------------------------------------
      DetectErrFrame        DropErrFrame            VbSource
                   0                   0              Common

-------------------------------VI MODE --------------------------------------------------------------------------------
  Pipe0Mode   Pipe1Mode   Pipe2Mode   Pipe3Mode   Pipe4Mode   Pipe5Mode
    offline     offline     offline     offline     offline     offline
-------------------------------VPSS MODE ------------------------------------------------------------------------------
  Pipe0Mode   Pipe1Mode   Pipe2Mode   Pipe3Mode   Pipe4Mode   Pipe5Mode
    offline     offline     offline     offline     offline     offline

-------------------------------VI STITCH GRP ATTR----------------------------------------------------------------------
  StitchGrp bStitch    Mode MaxPTSGap PipeNum              PipeId

-------------------------------VI DEV ATTR1----------------------------------------------------------------------------
  DevID   DevEn  BindPipe     Width    Height               IntfM     WkM     ComMsk0     ComMsk1   ScanM
      3       Y         Y       720       624               BT656    1Mux      ff0000           0       P

-------------------------------VI DEV ATTR2----------------------------------------------------------------------------
  DevID   AD0   AD1   AD2   AD3     Seq  DataType   DataRev    BasW    BasH   HReph   VReph   WDRMode  CacheLine  DataRate
      3    -1    -1    -1    -1    UYVY       YUV         N     720     624    NONE    NONE      None        624        X1

-------------------------------VI BIND ATTR----------------------------------------------------------------------------
   DevID PipeNum              PipeId
       3       1                   2

-------------------------------VI DEV TIMING ATTR----------------------------------------------------------------------
  DevID DevTimingEn  DevFrmRate  DevWidth   DevHeight

-------------------------------VI PIPE ATTR1---------------------------------------------------------------------------
  PipeID  BypassMode YuvSkip IspBypass     Width    Height    PixFmt  BitWidth    NrEn SharpenEn  CompressMode
       2  BypassNone       Y         Y       720       624     SP422         8       N         N          None

-------------------------------VI PIPE ATTR2---------------------------------------------------------------------------
  DiscProPic    SrcFRate    DstFRate FrameSource  RepeatMode   VCNum     IntType EarlyLine  VbPoolId
           N          -1          -1         DEV        NONE       0       START         0        -1

-------------------------------VI PIPE CROP ATTR-----------------------------------------------------------------------
  PipeID CropEn    CoorX   CoorY   Width  Height

-------------------------------VI PIPE NR ATTR-------------------------------------------------------------------------
  PipeID        BitWidth    CompressMode          PixFmt          RefSrc            Intf         Version         OptMode

-------------------------------VI PIPE USER PIC ATTR-------------------------------------------------------------------
  PipeID  Enable   ChnID    Mode BgColor   PicID   Width  Height  Stride  PixFmt  PoolID         PhyAddr

-------------------------------VI PIPE DUMP ATTR-----------------------------------------------------------------------
  PipeID    Enable     Depth  DumpType

-------------------------------VI PIPE BNR DUMP ATTR-------------------------------------------------------------------
  PipeID    Enable     Depth

-------------------------------VI CHN ATTR1----------------------------------------------------------------------------
  PipeID   ChnID   Width    Height    Mirror    Flip    SrcFRate    DstFRate    PixFmt      VideoFmt  DynamicRange
       2       0     720       624         N       N          -1          -1     SP420        LINEAR          SDR8

-------------------------------VI CHN ATTR2----------------------------------------------------------------------------
  CompressMode     Depth     Align  VbPoolId
          None         0         0        -1

-------------------------------VI EXTCHN ATTR1-------------------------------------------------------------------------
  PipeID   ChnID  Source  SrcChn   Width    Height    SrcFRate    DstFRate    PixFmt  DynamicRange  CompressMode     Depth

-------------------------------VI EXTCHN ATTR2-------------------------------------------------------------------------
  Align  VbPoolId

-------------------------------VI CHN EARLY INTERRUPT INFO-------------------------------------------------------------
  PipeID   ChnID  Enable  LineCnt
       2       0       N        0

-------------------------------VI CHN LOW DELAY ATTR-------------------------------------------------------------------
  PipeID   ChnID  Enable  LineCnt   Effect
       2       0       N        0        N

-------------------------------VI CHN CROP INFO------------------------------------------------------------------------
  PipeID   ChnID  CropEn  CoorType   CoorX   CoorY   Width  Height   TrimX   TrimY TrimWid TrimHgt
       2       0       N       RIT       0       0       0       0       0       0       0       0

-------------------------------VI CHN ROTATION INFO--------------------------------------------------------------------
  PipeID   ChnID    Rotation
       2       0           0

-------------------------------VI CHN LDC INFO-------------------------------------------------------------------------
  PipeID   ChnID  Enable  Aspect  XRatio  YRatio   XYRatio   XOffset   YOffset     DistortionRatio
       2       0       N       N       0       0         0         0         0                   0

-------------------------------VI CHN LDCV2 INFO-------------------------------------------------------------------------

-------------------------------VI CHN ROTATIO_EX INFO------------------------------------------------------------------
  PipeID   ChnID  Enable  ViewType   Angle   XOffset   YOffset     Width    Height
       2       0       N       ALL       0         0         0         0         0

-------------------------------VI CHN SPREAD INFO----------------------------------------------------------------------
  PipeID   ChnID  Enable    OutW    OutH      Coef
       2       0       N       0       0         0

-------------------------------VI EXTCHN FISHEYE ATTR------------------------------------------------------------------
  PipeID   ChnID  Enable  MntMode  RgnNum  BgEnable  BgColor  LMF  HOffset  VOffset  TCoef   FStrength

-------------------------------VI EXTCHN FISHEYE REGION ATTR-----------------------------------------------------------
  PipeID   ChnID  RgnIndex  ViewMode  InRadius  OutRadius  Pan  Tilt  HorZoom  VerZoom  OutX  OutY  OutW  OutH

-------------------------------VI DIS CONFIG INFO1---------------------------------------------------------------------
  PipeID   ChnID        Mode  Motion PdtType  BufNum CropRatio FrmRate   GyroRange  GyroBitWidth   CamSteady   Scale

-------------------------------VI DIS ATTR INFO------------------------------------------------------------------------
  PipeID   ChnID  DisChn    Enable GdcBypass      MovSub      Roef     Timelag   ViewAngle  bStillCrop    HorLimit    VerLimit    Strength

-------------------------------ISP 2DofDIS INFO------------------------------------------------------------------------
  PipeID  Enable
       2       N

-------------------------------VI SNAP ATTR INFO-----------------------------------------------------------------------
  PipeID    Type  bLoadCCM  FrameCnt  rptTimes    bZSL  FrmDepth  RollbaskMs  Interval

-------------------------------VI SNAP STATUS INFO---------------------------------------------------------------------
  Status bDoublePipe VideoPipe  SnapPipe     VcNum ProDelayInt

-------------------------------VI CHN OUTPUT RESOLUTION----------------------------------------------------------------
  PipeID   ChnID  Enable  Mirror    Flip   Width  Height  PixFmt  VideoFmt  DynamicRange  CompressMode FrameRate
       2       0       Y       N       N       0       0   SP420    LINEAR          SDR8          None         0

-------------------------------VI PIPE STATUS--------------------------------------------------------------------------
  PipeID  Enable    IntCnt FrameRate LostFrame  VbFail   Width  Height
       2       Y       440         0       438       0     720     624

-------------------------------VI CHN STATUS---------------------------------------------------------------------------
  PipeID   ChnID  Enable FrameRate LostFrame  VbFail   Width  Height
       2       0       Y         0         0       0       0       0

-------------------------------VI PIPE Statistic-----------------------------------------------------------------------
  PipeID     RecvPic     LostCnt      BufCnt   CurSoftTm   MaxSoftTm   CurTaskTm   MaxTaskTm   LowBandWidth  BeBufNum
       2           0           0           0           0           0           0           0              0         0

-------------------------------VI HW STATISTIC-------------------------------------------------------------------------
  ProcIdx    HWCostTm MaxHWCostTm    CycleCnt MaxCycleCnt
        0           0           0           0           0

-------------------------------VI PROC OFFLINE IRQ STATISTIC----------------------------------------------------------
 ProcIdx       SubmitCnt          IntCnt         ListCnt  TmOutCnt BusErrCnt  DcmpErrCnt StartErrCnt  NodeIdErrCnt
       0               0               0               0         0         0           0           0             0

-------------------------------VI PROC ONLINE IRQ STATISTIC-----------------------------------------------------------
 ProcIdx          IntCnt     FrmStartCnt FrmErrCnt  FrmFlowCnt BusErrCnt    DcmpErrCnt  CfgLossCnt   FirstIntPts
       0               0               0         0           0         0             0           0             0

-------------------------------VI PROC COST TIME STATISTIC-----------------------------------------------------------
 ProcIdx    IntCntPerSec MaxIntCntPerSec  CurIntCostTm  MaxIntCostTm  TotalIntCostTm   IntTmPerSec  MaxIntTmPerSec
       0               0               0             0             0               0             0               0

-------------------------------VI DEV DETECT INFO----------------------------------------------------------------------
   DevID  ValidWidth ValidHeight  TotalWidth
       3         720         601        1728

-------------------------------VI BAS DETECT INFO----------------------------------------------------------------------
   DevID  ValidWidth ValidHeight  TotalWidth

-------------------------------VI ISP DETECT INFO----------------------------------------------------------------------
   ISPID  ValidWidth ValidHeight  TotalWidth
       2         720         601       19199



~ # cat /dev/logmpp
terupt status:0x8011 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[    vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:2 err intterupt status:0x8011 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[    vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:2 err intterupt status:0x8011 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[    vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:2 err intterupt status:0x8011 !! EOF:0 BUFOVF:0 DATATHROW:0 .
<3>[    vi] [func]:vi_drv_cap_is_wrong_int [line]:10676 [info]:pipe:2 err intterupt status:0x8011 !! EOF:0 BUFOVF:0 DATATHROW:0 .
收藏0
6个回答
Ryan_L 回答于 06/24 11:26

有大佬知道这是什么原因吗?不好定位问题出在哪里

0
micro-:) 回答于 06/24 15:30

时钟频率,单边还是双边。检查下

0
Ryan_L 回答于 06/24 16:48

时钟频率,单边还是双边。检查下
目前 sensor 数据传输过来需要下降沿采样的,但是海思端并没有看到设置单或双边沿采样的模式,只有设置垂直同步脉冲模式的

0
Ryan_L 回答于 06/24 16:54

时钟频率,单边还是双边。检查下
```c
//这是目前 vi 的配置
VI_DEV_ATTR_S DEV_ATTR_CPIB_120P_BASE =
{
VI_MODE_BT656,
VI_WORK_MODE_1Multiplex,
{0x00ff0000, 0x0},
VI_SCAN_PROGRESSIVE,//VI_SCAN_INTERLACED,隔行 //VI_SCAN_PROGRESSIVE, 逐行
{-1, -1, -1, -1},
VI_DATA_SEQ_UYVY, //VI_DATA_SEQ_YUYV//VI_DATA_SEQ_UVUV

{
/port_vsync port_vsync_neg port_hsync port_hsync_neg /

VI_VSYNC_PULSE,         //垂直同步脉冲模式,即一个脉冲到来表示新的一帧或一场
VI_VSYNC_NEG_LOW,         //表示 vsync 同步脉冲为负脉冲。
VI_HSYNC_NEG_HIGH,        //水平同步数据有效信号。
VI_HSYNC_NEG_HIGH,        //正脉冲表示同步脉冲。
VI_VSYNC_VALID_SINGAL,    //表示垂直同步时序行有效信号
VI_VSYNC_VALID_NEG_HIGH,//表示高电平为有效信号。

/*hsync_hfb    hsync_act    hsync_hhb*/
{0,            720,        0,
/*vsync0_vhb vsync0_act vsync0_hhb*/
 0,            624,        0,
/*vsync1_vhb vsync1_act vsync1_hhb*/
 0,            0,            0}

},
VI_DATA_TYPE_YUV,
HI_FALSE,
{720 , 624},
{
{
{720 , 624},
},
{
VI_REPHASE_MODE_NONE,
VI_REPHASE_MODE_NONE
}
},
{
WDR_MODE_NONE,
624
},
DATA_RATE_X1

};
```

0
GoodMan 回答于 06/26 13:57

分辨率有点怪哦,这个是是什么分辨率 720x624?

0
QQ820270087 回答于 07/08 16:54

时许出了问题了,可以联系原厂FAE qq877789857

0
代理MAXIM Hisilicon
内容存在敏感词
添加附件:文件小于20M 文件格式必须为doc,docx,xls,xlsx,pdf,ppt,pptx,txt,zip,rar,tar,7z
上传
文件格式必须为doc,docx,xls,xlsx,pdf,ppt,pptx,txt,zip,rar,tar,7z
确定要删除此文章、专栏、评论吗?
确定
取消

详细的问题描述有助于平台快速解决问题

屏幕截图
问题描述