Cypress技术william hill官网
直播中

刘欣

7年用户 210经验值
私信 关注
[问答]

CX3:提交缓冲区后立即提交缓冲区

大家好,
我想知道如果我可以提交一个缓冲后立即另一直致力于(我知道我不能犯同样的缓冲区),情况如下:当我收到第一帧缓冲区,我想把另一个独立的帧缓冲器中的接收。然后我想把收到的寄出去。
这是类似于在一个缓冲区的开头添加页眉和uvcaddheader() UVC EOF函数。虽然主要有两点不同:一,正如已经提到的,必须独立于。其次,是犯了两次:在一帧的开始和结束,框架。
任何输入是赞赏。
马克

以上来自于百度翻译


     以下为原文
  Hello people,

I was wondering if I can commit a buffer immediately after another has been committed (I know I can't commit the SAME buffer).The scenario is the following one: when I received the first frame buffer, I want to send another indepently from the frame buffer received. Then I want to sent the received one.
This is similar to the UVCAddHeader() function used to add the UVC Header and EOF at the beginning of a buffer. Although there are two main differences: one, as already mention, must be indepently committed. The second one, is that is committed twice: at the beginning of a frame and at the end of that frame.

Any input is appreciated.
Marc

回帖(7)

徐睫郁

2018-8-31 09:26:06
贾景晖
你真的在发送第一缓冲后最后一个缓冲区需要一个充分的缓冲区?或者你想要几个字节的数据之前和开始帧后发送?
请让我们知道,在每一帧后,这个额外的数据的意义是什么。
你想这样的流视频的决议是什么?

以上来自于百度翻译


     以下为原文
  Marc,
 
Do you actually need one full buffer before sending the first buffer and after last buffer? or you want a few bytes of data to send before and after the start a frame?
 
Please let us know what is the significance of this additional data before and after every frame.
What are all video resolutions that you want to stream in this way?
举报

刘欣

2018-8-31 09:35:37
引用: yahan52 发表于 2018-8-31 09:26
贾景晖
你真的在发送第一缓冲后最后一个缓冲区需要一个充分的缓冲区?或者你想要几个字节的数据之前和开始帧后发送?
请让我们知道,在每一帧后,这个额外的数据的意义是什么。

你好,
是的,如果我想正确地实现USB视觉标准。使用这种标准的设备必须发送数据单独两个额外的包。起初被称为领袖,最后叫拖车。
我想流任何可用的投资回报率。
不管怎样,你可以告诉如果有人能够实现这个标准使用CX3单片机?

马克

以上来自于百度翻译


     以下为原文
  Hi,
 
Yes, if I want to correctly implement USB Vision standard. Using this standard the device must sent two extra packets of data individually. At the beginning which is called Leader and at the end, called Trailer.
 

I want to stream any ROI available.
 
Anyway, could you tell if someone has being able to implement this standard using CX3 MCU?
 
BR
Marc
举报

徐睫郁

2018-8-31 09:48:24
引用: 60user198 发表于 2018-8-31 09:35
你好,
是的,如果我想正确地实现USB视觉标准。使用这种标准的设备必须发送数据单独两个额外的包。起初被称为领袖,最后叫拖车。
我想流任何可用的投资回报率。

贾景晖
请尝试以下实现上述。
1。从GPIF到CPU创建DMA手册
2。创建一个从CPU到USB的DMA手工操作通道
三。根据GPIF到CPU DMA通道的数据流识别帧和帧的开始,然后通过CPU向USB DMA通道发送引导和预告器到USB。
4。发送有效数据,因为它是在领导者和拖车之间
还有另一种方法来实现这一点。
使用FPGA / ASIC获取传感器的数据,并向负载添加领导者和预告器。连接此FPGA并行接口与FX3GPIF II接口,以将数据传输到USB。

以上来自于百度翻译


     以下为原文
  Marc,
 
Please try the following to implement the above.
1. Create a DMA Manual_IN channel from GPIF to CPU
2. Create a DMA Manual_Out Channel from CPU to USB
3. Identify the start of the frame and end of the frame as per the data flow through GPIF to CPU DMA Channel then send the leader and trailer to USB via CPU to USB DMA Channel.
4. Send the payload data as it is in between the leader and trailer
 
There is another method to implement this.
Use an FPGA/ASIC which gets the data from the sensor and adds leader and trailer to the payload. Connect this FPGA parallel interface with FX3 GPIF II interface to transfer data to USB.
举报

刘欣

2018-8-31 10:06:06
引用: yahan52 发表于 2018-8-31 09:48
贾景晖
请尝试以下实现上述。
1。从GPIF到CPU创建DMA手册

你好,
我试着用这个方法,但在我的情况下是不适用的,因为我有(需要)控制dmachannel。CX3禁止从CPU到CPU有两个DMAChan.
关于第二建议:我们已经考虑和选择。(我们正在调查可能的FPGA解决方案)但是我们目标的一个廉价的解决方案,从而避免了使用FPGA。
还有一个好消息,我设法流速度图像。几乎正确。问题是,我欺骗u3v标准告诉它我流VGA(30fps)的形象,但实际上我流少一点。换句话说,第一个和最后一个有效载荷数据转化为领导和有效载荷数据包。
还有一些问题与DMA的大小,GPIF的大小和传感器,但一个好的开始。

以上来自于百度翻译


     以下为原文
  Hello,
 
I tried using this method but is not applicable at my case, because I have (and need) a Control DMAChannel. And CX3 forbids having two dmachannels from and to the CPU.
 
About the second suggestion: We have already think about it and its an option. (We are looking into the possible FPGA solutions) But we are targetting a cheap solution, therefore avoiding using FPGA.
 
And the good news, I managed to stream images at good speed. Almost correct. The thing is that I am tricking the U3V standard by telling it that I am streaming a VGA(30fps) image, but really I am streaming a bit less. In plain words, first and last payload data are changed into Leader and Payload packets.
There still some issues with DMA size, GPIF size and sensor, but its a good start.
举报

徐睫郁

2018-8-31 10:16:25
引用: 60user198 发表于 2018-8-31 10:06
你好,
我试着用这个方法,但在我的情况下是不适用的,因为我有(需要)控制dmachannel。CX3禁止从CPU到CPU有两个DMAChan.
关于第二建议:我们已经考虑和选择。(我们正在调查可能的FPGA解决方案)但是我们目标的一个廉价的解决方案,从而避免了使用FPGA。

你好,贾景晖,
太棒了。请让我们知道你的实现细节和你当前面临的问题。

以上来自于百度翻译


     以下为原文
  Hello Marc,
 
It's great. Please let us know your implementation details and the current issues that you are facing.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分