sophgo / cvi_alios_open

22 stars 16 forks source link

milk-v duo 的gc2083拉不出rtsp流 #2

Open yview-develop opened 4 months ago

yview-develop commented 4 months ago

我将milk-v duo中的“duo-buildroot-sdk\middleware\v2\component\isp\sensor\cv180x\gcore_gc2083”的驱动移到alios中,在milk-v duo板子上使用nor flash启动,现在gc2083的iic能够正常访问,但是rtsp拉流时总是connect一段时候后自动disconnect掉了。

在duo板子上用linux环境下拉取gc2083的rtsp流量是正常。

系统启动的LOG如下:

C.SCS/0/0.WD.URPL.USBI.USBS/686b.USBS/686b.USBS/686b.USBW/10000.USBL.BS/NOR.PS.PE.BS.BE.J.j 0x80040000

YoC###[Apr 22 2024,14:02:14]

spinor: ID = 1c 70 18 g_phy_shift=0x0 WDR_MODE_NONE i2c r 0x3f0 = 0x20 i2c r 0x3f1 = 0x83 i2c w 0x3fe = 0xf0 i2c w 0x3fe = 0xf0 i2c w 0x3fe = 0xf0 i2c w 0x3fe = 0x 0 i2c w 0x3f2 = 0x 0 i2c w 0x3f3 = 0x 0 i2c w 0x3f4 = 0x36 i2c w 0x3f5 = 0xc0 i2c w 0x3f6 = 0x24 i2c w 0x3f7 = 0x 1 i2c w 0x3f8 = 0x32 i2c w 0x3f9 = 0x43 i2c w 0x3fc = 0x8e i2c w 0x381 = 0x 7 i2c w 0xd7 = 0x29 i2c w 0xd6d = 0x18 i2c w 0xd5 = 0x 3 i2c w 0x82 = 0x 1 i2c w 0xdb3 = 0xd4 i2c w 0xdb0 = 0x d i2c w 0xdb5 = 0x96 i2c w 0xd03 = 0x 2 i2c w 0xd04 = 0x 2 i2c w 0xd05 = 0x 5 i2c w 0xd06 = 0xc9 i2c w 0xd07 = 0x 0 i2c w 0xd08 = 0x11 i2c w 0xd09 = 0x 0 i2c w 0xd0a = 0x 2 i2c w 0xb = 0x 0 i2c w 0xc = 0x 2 i2c w 0xd0d = 0x 4 i2c w 0xd0e = 0x40 i2c w 0xf = 0x 7 i2c w 0x10 = 0x90 i2c w 0x17 = 0x c i2c w 0xd73 = 0x92 i2c w 0xd76 = 0x 0 i2c w 0x76 = 0x 0 i2c w 0xd41 = 0x 4 i2c w 0xd42 = 0x65 i2c w 0xd7a = 0x10 i2c w 0xd19 = 0x31 i2c w 0xd25 = 0xcb i2c w 0xd20 = 0x60 i2c w 0xd27 = 0x 3 i2c w 0xd29 = 0x60 i2c w 0xd43 = 0x10 i2c w 0xd49 = 0x10 i2c w 0xd55 = 0x18 i2c w 0xdc2 = 0x44 i2c w 0x58 = 0x3c i2c w 0xd8 = 0x68 i2c w 0xd9 = 0x14 i2c w 0xda = 0xc1 i2c w 0x50 = 0x18 i2c w 0xdb6 = 0x3d i2c w 0xd2 = 0xbc i2c w 0xd66 = 0x42 i2c w 0x8c = 0x 7 i2c w 0x8d = 0xff i2c w 0x7a = 0x50 i2c w 0xd0 = 0x 0 i2c w 0xdc1 = 0x 0 i2c w 0x102 = 0xa9 i2c w 0x158 = 0x 0 i2c w 0x107 = 0xa6 i2c w 0x108 = 0xa9 i2c w 0x109 = 0xa8 i2c w 0x10a = 0xa7 i2c w 0x10b = 0xff i2c w 0x10c = 0xff i2c w 0x428 = 0x86 i2c w 0x429 = 0x86 i2c w 0x42a = 0x86 i2c w 0x42b = 0x68 i2c w 0x42c = 0x68 i2c w 0x42d = 0x68 i2c w 0x42e = 0x68 i2c w 0x42f = 0x68 i2c w 0x430 = 0x4f i2c w 0x431 = 0x68 i2c w 0x432 = 0x67 i2c w 0x433 = 0x66 i2c w 0x434 = 0x66 i2c w 0x435 = 0x66 i2c w 0x436 = 0x66 i2c w 0x437 = 0x66 i2c w 0x438 = 0x62 i2c w 0x439 = 0x62 i2c w 0x43a = 0x62 i2c w 0x43b = 0x62 i2c w 0x43c = 0x62 i2c w 0x43d = 0x62 i2c w 0x43e = 0x62 i2c w 0x43f = 0x62 i2c w 0x77 = 0x 1 i2c w 0x78 = 0x65 i2c w 0x79 = 0x 4 i2c w 0x67 = 0xa0 i2c w 0x54 = 0xff i2c w 0x55 = 0x 2 i2c w 0x56 = 0x 0 i2c w 0x57 = 0x 4 i2c w 0x5a = 0xff i2c w 0x5b = 0x 7 i2c w 0x26 = 0x 1 i2c w 0x152 = 0x 2 i2c w 0x153 = 0x50 i2c w 0x155 = 0x93 i2c w 0x410 = 0x16 i2c w 0x411 = 0x16 i2c w 0x412 = 0x16 i2c w 0x413 = 0x16 i2c w 0x414 = 0x6f i2c w 0x415 = 0x6f i2c w 0x416 = 0x6f i2c w 0x417 = 0x6f i2c w 0x4e0 = 0x18 i2c w 0x192 = 0x 4 i2c w 0x194 = 0x 4 i2c w 0x195 = 0x 4 i2c w 0x196 = 0x38 i2c w 0x197 = 0x 7 i2c w 0x198 = 0x80 i2c w 0x201 = 0x27 i2c w 0x202 = 0x53 i2c w 0x203 = 0xce i2c w 0x204 = 0x40 i2c w 0x212 = 0x 7 i2c w 0x213 = 0x80 i2c w 0x215 = 0x12 i2c w 0x229 = 0x 5 i2c w 0x237 = 0x 3 i2c w 0x23e = 0x99 i2c w 0xd03 = 0x 0 i2c w 0xd04 = 0x46 i2c w 0xd0 = 0x 0 i2c w 0x155 = 0x 3 i2c w 0x410 = 0x11 i2c w 0x411 = 0x11 i2c w 0x412 = 0x11 i2c w 0x413 = 0x11 i2c w 0x414 = 0x6f i2c w 0x415 = 0x6f i2c w 0x416 = 0x6f i2c w 0x417 = 0x6f i2c w 0xb8 = 0x 1 i2c w 0xb9 = 0x 0 i2c w 0x31d = 0x2e i2c w 0xdc1 = 0x 0 i2c w 0x31d = 0x28 i2c w 0xb1 = 0x 1 i2c w 0xb2 = 0x 0 i2c w 0xd41 = 0x 4 i2c w 0xd42 = 0x65 ViPipe:0,===GC2083 1080P 30fps 10bit LINE Init OK!=== weak MISC_WaitVideoStep1 get_buffer_alig_64 tmp = 0x8213b528, addr = 0x8213b540 csi codec open success [cviaudio][info] CviAud algo interface[Aud_AlgoInterface_ver20211202] [cviaudio][info] CviAud algo lib[CVITEK_AEC_Algo_20211202] [cvi3aVersion:CVITEK_AEC_Algo_20211202] get_buffer_alig_64 tmp = 0x82157ee0, addr = 0x82157f00 csi_i2s_format format->rate = 8000 csi_codec_output_config ch->period = 320 csi_i2s_tx_set_period ch->period = 320 csi_i2s_tx_set_period ch->period = 320

output_db2idx [16] = 0.00 -------------------------code init ok set spkMute = 1 alios media audio set adc vol 12, dac vol 32 alios audio init success [Ethernet][INFO]csi_eth_phy_initialize():(697) - connect phy id: 0x435649 =============== usb reset =============== DevEnumSpeed:0 ============ enum speed done ============ [Ethernet][INFO]genphy_update_link():(590) - CVITEK,CV181X waiting for PHY auto negotiation to complete... [Ethernet][INFO]genphy_update_link():(613) - auto negotiation Done! [Ethernet][INFO]designware_adjust_link():(212) - Speed: 100M, duplex: full [ 2.404]app app_main.c[149]: app start........(cli-uart)#

ether device register success APP_CustomEventStart 12. rtsp Change ip : 172.20.6.73 ourSocket is 20 rtsp://172.20.6.73:544/live0 rtsp_sendProc: no Frame got! rtsp_sendProc: no Frame got! rtsp_sendProc: no Frame got! rtsp_sendProc: no Frame got! rtsp_sendProc: no Frame got! rtsp_sendProc: no Frame got! rtsp_sendProc: no Frame got! rtsp_sendProc: no Frame got! rtsp_sendProc: no Frame got! rtsp_sendProc: no Frame got!

rtsp connect: 172.20.6.64 rtsp disconnect: 172.20.6.64

请问如何往下调试?如何查看vi是否已经缓冲了sensor的视频帧数据? 谢谢!

Yo-gurts commented 1 month ago

可以 proc_vi,proc_vi_dbg 看看VI 是否正常处理了数据,日志看起来sensor有正常初始化,可以看下 proc_vpss, proc_venc 等