完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
最近,我打开了另一个关于使用CX3和DeNBORA工具包,使用OV5640图像传感器的原始数据流的问题。
这是前一步使用索尼IX219PQ图像传感器与CX3。我遵循了前面讨论的指令,因为它们与OV5640传感器一起工作,但我不能将数据流到PC主机应用程序。 我配置了IMX219工作在RAW101080P@ 30FPS,MIPI时钟显示30Hz信号。MIPI数据通道显示大约1080个脉冲,我猜想每行都有信号,接下来是我认为行的MIPI数据。 我用这种方式配置了CX3: MIPI:RAW10,HDIFACE=1920GPIF总线:16比特探针:视频帧大小在字节=1920×1080×5 /4USB描述符:16BPP,RGB565,帧大小=1200×1080 我还添加了一个字节计数器,它添加了“DMABUFFER计数”的DMA的每个生产者事件,然后在发送帧时重置(EOF被添加到报头)。我得到的字节总数不稳定,但大部分时间是2755824字节,而我应该得到1920x1080x5/ 4=2592000。我不知道为什么我得到的字节比我应该多。 我尝试使用RAW8中的相机,因为这是使用OV5640时所使用的格式,但我得到的字节数远低于预期。 我做错什么了?我没有改变时间和时钟,因为我不必使用OV5640。 此外,想法,以成功地调试这一点,将不胜感激。 编辑:我一直在尝试检查时钟是否被正确配置,因为它是我唯一没有修改过的东西。但我没有足够的信息。我应该改变MIPI时钟配置吗?为什么?不同的时钟配置有什么不同? 以上来自于百度翻译 以下为原文 Recently I opened another question about streaming RAW data using CX3 and the Denebola kit, which uses the OV5640 image sensor. That was the previous step to using a Sony IMX219PQ image sensor with the CX3. I followed the instructions given in the discussion linked before since they worked with the OV5640 sensor, but I can't stream data to the PC host application. I configured the IMX219 to work in RAW10 1080p@30fps, and the MIPI clock shows a 30Hz signal. The MIPI data lane shows around 1080 pulses, which I guess signal every row, followed by what I think is the MIPI data for the row. I configured the CX3 this way:
I have also added a byte counter that adds the "DmaBuffer.count" each Producer Event of the DMA, then resets when the frame is sent (EOF is added to header). The total byte count I get is not stable, but most of the time is 2755824 bytes, while I should be getting 1920x1080x5/4 = 2592000. I don't know why I am getting more bytes than I should. I have tried using the camera in RAW8 since that is the format that worked when using the OV5640, but the byte count I get is much lower than expected. What am I doing wrong? I have not changed the timing and clocks because I didn't have to when using the OV5640. Also, ideas to succesfully debug this would be appreciated. EDIT: I have been trying to check if the clocking is not correctly configured since it is the only thing I have not modified. But I don't have enough information. Should I change the MIPI clocks configuration? Why? What is the difference between different clock configurations? |
|
相关推荐
19个回答
|
|
嗨,凯阿, 请在这个项目中感谢您的帮助。请你回答我的问题好吗? 以上来自于百度翻译 以下为原文 Hi keaj, Please, your help would be appreciated in this project. Could you answer my questions, please? |
|
|
|
CX3可以支持每车道的最大带宽是1Gbps。由于MIPI CSI时钟是DDR时钟,支持的最大CSI时钟频率为500兆赫。 根据您的响应,CSI时钟是1368 MHz,不支持CX3。请减少CSI时钟并再次重复测试。 你也可以探索MIPI数据通道和测量的准备和零计时?这将是好的,如果你可以附加屏幕截图这里。 以上来自于百度翻译 以下为原文 The maximum bandwidth that CX3 can support per lane is 1Gbps. As the MIPI CSI clock is DDR clock, the maximum CSI clock frequency supported is 500MHz. As per your response the CSI clock is 1368MHz which is not supported by CX3. Please reduce the CSI clock and repeat the test again. Also can you please probe the MIPI data lanes and measure the THS prepare and THS zero timings? It will be good if you can attach the screenshots here. |
|
|
|
60user50 发表于 2018-9-13 12:10 谢谢KeaJ, 我改变了CSI频率到448兆赫,它现在是流视频。然而,发送的信息似乎是错误的。我希望您的帮助设置时钟在Cx3 MIPI块,以确保问题不存在。 为了澄清,现在正在发送的流只在相机设置为RAW10并且MIPI块设置为RAW8时工作,并且在主机应用程序中得到的帧似乎是错误的。如预期的那样,将其全部设置为RAW10,则不起作用。 我不知道如何测量准备和零计时。我会附上截图。黄色信号是MIPI时钟,蓝色信号是MIPI数据0通道。 在第二张和第三张照片中,可以看出,在41.6MS期间,每384U发生一次脉冲。这意味着总共有大约1080个脉冲,这是帧的高度。 以上来自于百度翻译 以下为原文 Thanks keaj, I changed the CSI frequency to 448MHz and it is now streaming video. However, the information sent seems to be wrong. I would like your help setting the clocks on the CX3 MIPI block to ensure the problem is not there. Just to clarify, the stream that is being sent right now only work when the camera is set to RAW10 and the MIPI block is set to RAW8, and the frames I get in the host app seem to be wrong. Setting it all for RAW10 as expected, it is not working. I don't know how to measure THS prepare and zero timings. I will attach screenshots. The yellow signal is the MIPI clock, and the blue one is the MIPI data 0 lane. In the second and third pictures it can be seen that during 41.6ms, a pulse takes place once every 38.4us. This means a total of around 1080 pulses, which is the frame height. |
|
|
|
60user50 发表于 2018-9-13 12:10 这是我尝试过的MIPI接收器配置文件,但它不起作用,因为在CYU3MIPICSI.C中没有任何东西可以显示。 我正在使用的配置是这个,但是只有0x3f3EE8字节离开DMA,而0x3F400应该被发送。这个配置有什么问题? 此配置不工作。 CYU3PMIPICSICFGYT CFGUVC1080P30NOMLCK= CYUU3PYCSIIODFYRAW10,/*DATAL格式*/ 2,/*NUDATALLANE** 1,/*PLLPRD */ 62,/*PLLFBD*/ CYU-U3PYCSILPLLYFLSY500,100M,/*PLLFRS*/ CYU-U3PYCSIIPLLKLKYDIVAY8,/*CSIRXCLKDIV** CyuU3Pycsil PLLKCLYDIVAY8,/*PARCKDIV** 0x00,/*MCLKCTL*/ CYU-U3PYCSILPLLKLKYDIVAY8,/*MCLKRIFDIV* 1920,/*Held** 0x0A/*FIFOSTRIP** }; 以上来自于百度翻译 以下为原文 This is the MIPI receiver configuration file that I tried, but it is not working, since there is nothing to show in "cyu3mipicsi.c". The configuration I'm using is this one, but only 0x3F3EE8 bytes are leaving the DMA, while 0x3F4800 should be sent. What is wrong with this configuration? This configuration is not working. CyU3PMipicsiCfg_t cfgUvc1080p30NoMclk = { CY_U3P_CSI_DF_RAW10, /* dataFormat */ 2, /* numDataLanes */ 1, /* pllPrd */ 62, /* pllFbd */ CY_U3P_CSI_PLL_FRS_500_1000M, /* pllFrs */ CY_U3P_CSI_PLL_CLK_DIV_8, /* csiRxClkDiv */ CY_U3P_CSI_PLL_CLK_DIV_8, /* parClkDiv */ 0x00, /* mclkCtl */ CY_U3P_CSI_PLL_CLK_DIV_8, /* mClkRefDiv */ 1920, /* hResolution */ 0x0A /* fifoDelay */ }; |
|
|
|
zbinxiang 发表于 2018-9-13 12:28 请使用API“CYU3PMIPICSIGETEATION”打印UART上的MIPI CSI错误计数。检查是否有任何错误计数为非零。请更改“Cyu3PMIPICSeTeSimeTelaye())API的“thsStultRelay'”参数,以检查传感器是否为任何延迟值流。请将第一个参数保持为0x01。您可以一起探索D0+和D0线,并在LP和GT过渡附近进行放大吗?我们可以从波形中测量THSH准备和THSZ0。 以上来自于百度翻译 以下为原文
|
|
|
|
你好,安德烈斯,
1。MIPI时钟是选通还是连续?如果传感器以连续时钟模式流动,遵循以下链接的问题13中提到的步骤: HTTP://www. CyPress .COM/知识基础文章/CX3-HARDICE频繁提问-KBA91295 2。使用API“CYU3PMIPICSIGETEATION”打印UART上的MIPI CSI错误计数。检查错误计数是否为非零。如果是,请仔细检查传感器配置。 三。改变“Cyu3PMIPICSeTeTimeDelaye()”API的“thsStultRelay'”参数,以检查传感器是否为任何延迟值流。始终保持第一个参数为0x01。 4。如果您能够获得零MIPI错误,如果视频仍然没有流探测以下测试点 CX3 PIN 测试信号名称 H8 PCLK测试信号 G6 HSYNC测试信号 H5 VSYNC测试信号 如果只有H8切换,而不是其他引脚,那么MIPI CSI配置可能不正确。在工具中输入MIPI CSI图像传感器输出的正确值,并适当配置PLL除法器,以使工具不会产生任何错误。确保使用最新的CX3配置工具插件。 5。确保所有未使用的MIPI数据通道都接地。 6。你能分享你的MIPI CSI 2配置工具的屏幕截图吗? 以上来自于百度翻译 以下为原文 Hello Andres, 1. Is the MIPI clock gated or continuous? If the sensor is streaming in continuous clock mode, follow the steps mentioned in question 13 of the following link: http://www.cypress.com/knowledge-base-article/cx3-hardware-frequently-asked-questions-kba91295 2. Print the MIPI CSI error counts over UART by using the API “CyU3PMipicsiGetErrors”. Check if any of the error count is non-zero. If yes, double check the sensor configuration. 3. Vary the ‘thsSettleDelay’ parameter of “CyU3PMipicsiSetPhyTimeDelay()” API to check if the sensor is streaming for any of the delay value. Keep the first parameter as 0x01 always. 4. If you were able to get zero MIPI errors and if the video is still not streaming probe the following test points
5. Ensure that all the unused MIPI data lanes are grounded. 6. Can you please share the screenshot of your MIPI CSI 2 configuration tool? |
|
|
|
zbinxiang 发表于 2018-9-13 12:48 我发现有误会。传感器每4个像素使用5个字节发送RAW10数据,但是当我为RAW10配置MIPI块时,期望的格式是每像素2个字节,有6个空白位。这是真的吗?这可能是我的问题的主要原因。 我已经尝试改变参数来匹配这个新的信息:MIPI是RAW8和H归结=2400。我已经尝试了GPIF总线8和16位,但它不工作。至少,发送的字节(2591368)与实数(2592000)非常相似。知道这个信息有什么不对吗? 我会尝试你的解决方案以上。 以上来自于百度翻译 以下为原文 I found out there was a misunderstanding. The sensor sends RAW10 data using 5 bytes per 4 pixels, but it seems that when I configure the MIPI block for RAW10, the expected format is 2 bytes per pixel, with 6 blank bits. Is this true? This may be the main cause for my problem. I have tried changing the parameters to match this new information: MIPI is RAW8 and hResolution=2400. I have tried GPIF bus both 8 and 16 bits but it doesn't work. At least, the bytes sent (2591368) is very similar to the real number (2592000). Any idea of what could be wrong with this information? I will try your solutions above now. |
|
|
|
zbinxiang 发表于 2018-9-13 12:48 我看到MIPI时钟通道改变,当它是低的MIPI数据通道是活动的。时钟信号的频率为30Hz,MIPI数据的有效时间为20.5Ms。 我猜这意味着时钟被关闭了。 以上来自于百度翻译 以下为原文 I see the MIPI clock lane changing, when it is low the MIPI data lanes are active. The frequency of the clock signal is 30Hz as expected, and the active time of the MIPI data is 20.5ms. I guess this means the clock is gated. |
|
|
|
zbinxiang 发表于 2018-9-13 12:48 我已经介绍了“CYU3PMIPICSIGETError”API,并可以确认“CYU3PMIPICSIRACRONTURSHTT”变量是满零点的。 我还尝试了不同的值在“CYU3PMIPICSIGTeTimeTimes延迟”中,从0到0x7f作为API指南。当值在0x04到0x09的范围内时,它总是工作,但是如果数字不同,发送的字节就低得多,不稳定。 以上来自于百度翻译 以下为原文 I have introduced the "CyU3PMipicsiGetErrors" API and can confirm that the "CyU3PMipicsiErrorCounts_t" variable is full of zeros. I have also tried different values in the "CyU3PMipicsiSetPhyTimeDelay", from 0 to 0x7F as the API guide. When the value is in the range 0x04 to 0x09, it works as always, but if the number is different, the bytes sent is much lower and not stable. |
|
|
|
zbinxiang 发表于 2018-9-13 12:48 我还没有使用MIPI CSI 2配置工具,我用过这个: CYU3PMIPICSICFGYT CFGUVC1080P30NOMLCK= CYUU3PYCSIIODFYRAW8,/*DATAL格式*/ 2,/*NUDATALLANE** 1,/*PLLPRD */ 62,/*PLLFBD*/ CYU-U3PYCSILPLLYFLSY500,100M,/*PLLFRS*/ CYU-U3PYCSIIPLLKLKYDIVAY8,/*CSIRXCLKDIV** CyuU3Pycsil PLLKCLYDIVAY8,/*PARCKDIV** 0x00,/*MCLKCTL*/ CYU-U3PYCSILPLLKLKYDIVAY8,/*MCLKRIFDIV* 2400,// 1920,/*Held** 0x01/*FIFOSTRIP** }; 以上来自于百度翻译 以下为原文 I haven't used the MIPI CSI 2 configuration tool, I used this: CyU3PMipicsiCfg_t cfgUvc1080p30NoMclk = { CY_U3P_CSI_DF_RAW8, /* dataFormat */ 2, /* numDataLanes */ 1, /* pllPrd */ 62, /* pllFbd */ CY_U3P_CSI_PLL_FRS_500_1000M, /* pllFrs */ CY_U3P_CSI_PLL_CLK_DIV_8, /* csiRxClkDiv */ CY_U3P_CSI_PLL_CLK_DIV_8, /* parClkDiv */ 0x00, /* mclkCtl */ CY_U3P_CSI_PLL_CLK_DIV_8, /* mClkRefDiv */ 2400,//1920, /* hResolution */ 0x01 /* fifoDelay */ }; |
|
|
|
zbinxiang 发表于 2018-9-13 12:48 对于其他2个问题,我没有一个容易获得的H5,H8和G6引脚。 其他的MIPI车道连接到CX3设备。 以上来自于百度翻译 以下为原文 For the other 2 questions, I don't have an easy access to H5, H8 and G6 pins. The other MIPI lanes are connected to the CX3 device. |
|
|
|
60user50 发表于 2018-9-13 13:07 我对RAW10格式有疑问。 我知道传感器用4个像素的5个字节发送图像。这是MIPI在RAW10配置下读取它的方式吗?如果MIPI用同样的方式读取,那么H归结必须是1920,不是吗? 此外,我知道传感器以特定的格式发送数据,包括页眉、页脚、行消隐和帧消隐。我认为这是MIPI标准,CX3考虑了这一点。 以上来自于百度翻译 以下为原文 I have a doubt regarding the RAW10 format. I know the sensor is sending the image using 5 bytes per 4 pixels. Is that how the MIPI reads it when configured to RAW10? If MIPI reads it the same way, then hResolution must be 1920, isn't it? Also, I know the sensor is sending the data in a specific format with header, footer, line blanking and frame blanking. I assume this is the MIPI standard and CX3 is taking it into consideration. |
|
|
|
zbinxiang 发表于 2018-9-13 13:51 请提供以下细节: MIPI CSI时钟准备 我们可以从上面的值中找到合适的MIPI桥设置。 以上来自于百度翻译 以下为原文 Please provide the following details:
We can find the appropriate MIPI bridge settings from the above values. |
|
|
|
我找不到你问的信息,应该在传感器数据表里,不是吗? 还有其他方法来获取这些信息吗? RIFCK为19.2MHz。 以上来自于百度翻译 以下为原文 I can't find the information you asked, it should be in the sensor datasheet, isn't it? Is there another way to get that information? REFCLK is 19.2MHz. |
|
|
|
我已经找到了一些要求的信息: 准备:47 零:87 HLBLKIN:1528 VBLUCKIN:683 以上来自于百度翻译 以下为原文 I have found some of the information requested: THS Prepare: 47 THS Zero: 87 HBlanking: 1528 VBlanking: 683 |
|
|
|
我正在使用的数据表可以在这里找到,我在那里找到的。 我无法获得CSI时钟的正确计算。 以上来自于百度翻译 以下为原文 The datasheet I am using can be found here, where I found it. I can't get the correct calculation for the CSI clock. |
|
|
|
嗨,Keaj, 我找到了获取时钟的方法。相机的MIPI输出时钟为1368 MHz。所以,回答你的最后一个问题: MIPI CSI时钟=1368 MHZTES准备=47秒零=8HBLIKGIN=1528 VBLIKEN=63ReFLK=19.2 MHZI尝试在CX3 MIPI接收机配置中使用这些值,但它有错误。 我不知道如何填写正确的栏目。您的帮助将不胜感激。 我不断得到“错误:并行输出不能完成1行。使用更快的输出像素时钟和/或更宽的H消隐,但所有参数似乎正确,并在正确的范围内。我没有一个红色的值(除了显示的其他配置),但仍然会得到错误。怎么了? 以上来自于百度翻译 以下为原文 Hi Keaj, I found the way to obtain the clocks. MIPI output clock of the camera is 1368 MHz. So, to answer your last question:
I don't know how to fill the right column. Your help would be appreciated. I keep getting "ERROR: Parallel output cannot finish within 1 line. Use faster Output Pixel clock and/or wider H-blanking", but all the parameters seem right and in the correct range. I don't have a single value in red (with other configuration than showed), but still get the error. What is wrong? |
|
|
|
zbinxiang 发表于 2018-9-13 15:25 我有一些关于这些参数的问题。 由于我不能使应用程序工作,我想知道更多关于这些参数对MIPI配置的影响,以及如何从这些参数中获得MIPI配置。我找不到关于他们的很多信息。 您的帮助将不胜感激。 以上来自于百度翻译 以下为原文 I have some questions regarding these parameters. Since I can't make the application work, I would like to know more about what impact do these parameters on the MIPI configuration, and how to obtain the MIPI configuration from these parameters. I can't find much information about them. Your help would be appreciated. |
|
|
|
在改变相机上的一些时钟参数之后,我通过USB发送了几乎相同数量的字节。而不是4147200,我发送4144872。HSYNC、VSYNC和PCLK看起来不错。
问题似乎是MIPI配置:相机发送的信息太快,CX3得到。 我只是设法得到一帧,但我试图流视频。我不知道那帧要发送什么,它只有一次。 我错过了什么? 以上来自于百度翻译 以下为原文 After changing some clock parameters on the camera, I have managed to send almost the same amount of bytes through the USB. Instead of 4147200, I am sending 4144872. HSYNC, VSYNC and PCLK look good. The problem seemed to be the MIPI configuration: the camera sent the information too fast for the CX3 to get. I only managed to get one frame, but I am trying to stream video. I don't know what happened for that frame to be sent, it was only once. What am I missing? |
|
|
|
只有小组成员才能发言,加入小组>>
740个成员聚集在这个小组
加入小组1976 浏览 1 评论
1733 浏览 1 评论
3501 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1665 浏览 6 评论
1444 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
211浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
116浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
314浏览 2评论
266浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
451浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-16 04:31 , Processed in 1.182682 second(s), Total 114, Slave 98 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号