This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-TDA4VM: How to use frame counter control(FCC)

Part Number: SK-TDA4VM

Hi guys,

I have a camera(ar0144) on CSI1 port with ds90ub960 and ds90ub953.

it can streaming by gsteamer now.

gst-launch-1.0 v4l2src device=/dev/video2 io-mode=2 ! video/x-raw,width=1280,height=800, format=UYVY ! videoconvert ! waylandsink &

I try to using CSI_RX_IF_VBUS2APB_STREAM0_FCC_CTRL Register to check current frame number.

devmem2 0x04504124 w 0x01 //FFC_VC=channel 0, FCC_EN=enable FCC

but it not work, can you tell me where I am doing wrong?

Best regards
Dennis Tseng
  • Hi Dennis,

    This might require to use Monitor module, but it has not been validated, so not supported as of now in the SDK. 

    Regards,

    Brijesh

  • Hi Brijesh,

    Thanks your reply, so the monitor module has not been validated is meanig CSI_RX_IF_VBUS2APB_MONITOR_IRQS Register (Offset = 18h) also not work right?

    In addition, may I using CSI_RX_IF_VBUS2APB_ERROR_IRQS Register (Offset = 28h) to check frame data error?

    I actually sometimes get frame break or pixel data loss with my streaming.

    I want to understand that data frame is correct or error for SOM ? and want to konw how many error frame in total frame count.

  • Hi Dennis,

    Yes, in general, not just IRQs, but also other configuration is not validated for Monitor IRQs

    Yes, if you are using RTOS driver, you can register callback for these error IRQs. Not sure about Linux driver, it should also be registering interrupt handlers for these IRQs.

    Please check if there are any errors reported in these IRQs or if you are receiving short/long frames from the receiver itself.. 

    Regards,

    Brijesh

  • Hi Brijesh,

    I always received FRONT_TRUNC_HDR_IRQ(bit 12) when camera streaming.

    But ds90ub960 and ds90ub953 driver didn't  send out any error log.

    May I skip it or give me more description about this error bit ?

    Best regards
    Dennis Tseng
  • Hi Dennis,

    That means the received signal is not correct and so CSIRX is not able to complete correct header, and so it is not able to detect correct frame.

    Regards,

    Brijesh