完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
FX2LP是在SlaveFIFO模式图像传感器接口,显示图像在PC端,我们开发的GUI控制中心应用的帧同步,我们包括8bytes头在FX2LP固件。这个标题时加用框架有效利用FX2LP ISR中断。当框架E有效得到断言的图像传感器,这将被称为ISR。我犯这个8bytes头当它进入ISR函数在批量端点6和一头看起来在控制中心显示连续两头bytes.frame有效之间的图像得到断言每360960字节的image.image传感器具有每秒和752x480 resolution.we 60frames能够接收图像数据在Windows但我们发现有361480个字节的连续两headers.that之间额外的512字节加上因为我们在插入8bytes头手动模式和批量端点缓冲区的大小是512bytes。FX2LP(8051)可以支持水平敏感(低或高),只能是下降沿触发interrupt.currenty我下降沿触发interrupt.that是当框架有效变高到低过渡,我加入这头,最后阿F架有效。我有疑问,对于这头插入时间/位置问题在Windows要我不this.previous框架部分当然也显示在当前帧。因为这头位置的?还是因为512个额外字节即将到来?请帮我解决这个问题了。我附上图片屏的拍摄(视频)。 有时图像转移的发生是由于这些原因不知道这。 1)有些时候没有准确的360960 + 512字节连续两头之间,可能更少或更多 * FX2LP不精确发送360960 + 512字节 * Windows不完全接收360960 + 512字节 * FX2LP中的数据丢失 * Windows侧的数据丢失 *在FX2LP和Windows之间的边界数据丢失。 2)帧有效性未在适当的时间内被断言。 请帮帮我 当做, 吉萨 以上来自于百度翻译 以下为原文 Hello, fx2lp is interfaced with image sensor in slavefifo mode .to diplay image on the pc side,we are developed GUI in control center application.for frame synchronisation ,we are included 8bytes header in the fx2lp firmware.This header is added when fx2lp is interrupted by frame valid using ISR.When frame valid is get asserted by image sensor ,this isr will get called.I am commiting this 8bytes header when it enters to the isr function in the bulk endpoint 6 and same header is looked in the control center and displaying image between two consecutive header bytes.frame valid get asserted for every 360960 bytes of image.image sensor is having 60frames per second and 752x480 resolution.we are able to recieve the image data in the windows side.but we found that there is 361480 bytes between two consecutive headers.that is extra 512 bytes are adding because we are inserting 8bytes hearder in the manual mode and bulk endpoint buffer size is 512bytes.fx2lp(8051) can support level sensitive(low or high) and only be falling edge trigger interrupt.currenty i made falling edge trigger interrupt.that is when frame valid becomes high to low transistion,i am adding this header that is at the end of frame valid.i am having doubt regarding this header inserted time/position matters in the windows side.so i am not sure about this.previous frame portion is also displaying in the current frame.is it because of this header posistion?or because of 512 extra bytes are coming ?please help me to sort out this problem.i have attached the screeen shot of images(video stream). some times imges shifting is happening because of these reasons.we are not sure about this. 1)some times there is no exactly 360960+512 bytes between two consecutive headers,may be less or more *fx2lp is not transmitting exactly 360960+512 bytes *windows is not recieving exactly 360960+512 bytes *data loss in fx2lp *data loss in windows side *data loss in the boundary between fx2lp and windows. 2)frame valid is not getting asserted in proper time. please help me regards, geetha. |
|
相关推荐
12个回答
|
|
|
|
|
|
你好,Geethanjali, 扭曲的图像信号在每一行的开始是因为8字节的头被添加到每一帧的开始。为了克服这一点,在宿主应用程序中的数据后,只有头和显示忽略这个标题数据。 最好的问候, 斯里纳斯 以上来自于百度翻译 以下为原文 Hello Geethanjali, The distorted image signal at the start of every line is because of the 8 byte header that is added to the beginning of every frame. In order to overcome this, neglect this header data in the host application and display only the data after the header. Best regards, Srinath S |
|
|
|
wangcong12138 发表于 2018-8-27 08:59 你好,克里斯纳特, 我加入整数计数在ISR如下。 包括“FX2.H” 包括“FX2RES.H” 包括“fx2sDel.h” 包括“Syculd.h” int count = 0;//这是算我加入 / /无效fx2lpserial_xmitstring(char * str)折返; isr_extr1虚空(void)中断2 { 计数+ +;/ /增量计数中断发生时 fiforeset = 0x80;/ /激活nak-all避免竞争条件 同步延迟; ep6fifocfg = 0x00;//切换到手动模式 同步延迟; FippET= 0x86. 同步延迟; EP6FIFOBUF〔503〕=0x4D; EP6FIFOBUF〔504〕=0x49; EP6FIFOBUF〔505〕=0x4e; EP6FIFOBUF〔506〕=0x44; EP6FIFOBUF〔507〕=0x46; EP6FIFOBUF〔508〕=0x4C; EP6FIFOBUF〔509〕=0x4f; ep6fifobuf [ 510 ] = 0x57;/ /样本字节的标题模式,可以用来识别帧的开始 EP6FIFOBUF〔511〕=计数; ep6bch = 0x02;/ / 512字节的承诺 同步延迟; EP6BCL=0x00; 同步延迟; ep6fifocfg = 0x08;//切换到自动模式 同步延迟; fiforeset = 0x00;//释放nakall syncdelay; } ep6fifobuf [ 511 ]价值得到控制中心增加适当的5a、5b、5c、5d,5e在Windows7和Windows XP。在2头(mindflow了允许字符串)是360960 + 512在WindowsXP。但这该不是360960 + 512字节,在Windows 7中,这是不同的(多/少比361472bytes)。为什么这类问题的发生? 当做, 该。 以上来自于百度翻译 以下为原文 Hello shrinath, I am adding integer count in the isr as follows. #include "fx2.h" #include "fx2regs.h" #include "fx2sdly.h" #include "syncdly.h" int count=0; //this is the count am adding //void FX2LPSerial_XmitString(char *str) reentrant; void ISR_EXTR1( void ) interrupt 2 { count++; //increment count when interrupt occur FIFORESET = 0x80; // activate NAK-ALL to avoid race conditions SYNCDELAY; EP6FIFOCFG = 0x00; //switching to manual mode SYNCDELAY; FIFORESET = 0x86; SYNCDELAY; EP6FIFOBUF[503] = 0x4D; EP6FIFOBUF[504] = 0x49; EP6FIFOBUF[505] = 0x4E; EP6FIFOBUF[506] = 0x44; EP6FIFOBUF[507] = 0x46; EP6FIFOBUF[508] = 0x4C; EP6FIFOBUF[509] = 0x4F; EP6FIFOBUF[510] = 0x57; // sample Byte header pattern that can be used to identify the start of frame EP6FIFOBUF[511] = count; EP6BCH=0x02; //512 bytes committed SYNCDELAY; EP6BCL=0x00; SYNCDELAY; EP6FIFOCFG = 0x08; //Switching to Auto mode SYNCDELAY; FIFORESET = 0x00; //Release NAKALL SYNCDELAY; } EP6FIFOBUF[511] value recieved in the control center is incrementing properly 5A,5B,5C,5D,5E in both windows 7 and windows xp. The databytes between 2 header(MINDFLOW string) is 360960+512 in windowsxp.But this databyte is not exactly 360960+512 bytes in windows 7,it is varying(more/less than 361472bytes).why this kind of problem is happening? regards, geetha. |
|
|
|
你好,盖萨, -如果数据的字节数不是每帧361472字节,或者偶尔出错,请让我们知道。 此外,FX2LP只是连接在USB总线上的设备,还是连接其他设备?由于设备使用大容量端点,因此没有保证分配的带宽。 最好的问候, 斯里纳斯 以上来自于百度翻译 以下为原文 Hello Geetha, - Please let know if the number of bytes of data is not 361472 bytes on every frame or is it occasionally erroneous. - Also, is the FX2LP only device connected on the USB bus or are there other devices connected? Since the device uses BULK endpoints, there is no guaranteed bandwidth allotted. Best regards, Srinath S |
|
|
|
wangcong12138 发表于 2018-8-27 09:29 你好,克里斯纳特, 请让我知道的数据的字节数是361472字节的每一帧,或是偶尔的错误。 - & gt;数据的字节数为361471字节,在WindowsXP的每一帧。(算是适当增加) - & gt;数据的字节数不是361471字节对Windows7的每一帧。(算是适当增加)。 而且,是唯一的设备连接FX2LP USB总线上是否有其他设备连接?由于该设备采用批量端点,没有保证的带宽分配。 - >;有没有其他USB设备连接。(除鼠标、键盘HID设备)。 当做, 吉萨 以上来自于百度翻译 以下为原文 Hello shrinath, Please let know if the number of bytes of data is not 361472 bytes on every frame or is it occasionally erroneous. ->number of bytes of data is 361471 bytes on every frame on windowsxp.(count is properly incrementing) ->number of bytes of data is not 361471 bytes on every frame on windows7.(count is properly incrementing). Also, is the FX2LP only device connected on the USB bus or are there other devices connected? Since the device uses BULK endpoints, there is no guaranteed bandwidth allotted. ->yes.there is no other u*** devices are connected.(other than mouse,keyboard hid devices). regards, geetha. |
|
|
|
不cdvdhgdh 发表于 2018-8-27 09:45 你好,盖萨, 在Windows 7的情况下,让我知道那是在连续的头捕获的数据的字节数。 最好的问候, 斯里纳斯 以上来自于百度翻译 以下为原文 Hello Geetha, In case of Windows 7, let me know the number of bytes of data that is captured between successive headers. Best regards, Srinath S |
|
|
|
你好,克里斯纳特, 我如何在这里附加文件? 雷亚德斯, 吉萨 以上来自于百度翻译 以下为原文 Hello shrinath, how can i attached file here? regadrs, geetha. |
|
|
|
你好,盖萨, -高级编辑器可用于附加文件。 -请确保您使用的是CyPress(1.2.3.20)的最新驱动程序。 在宿主应用程序,确保没有不必要的陈述,即如果您的应用程序的语句,不到终点,是用来读取相关数据,删除那些。 最好的问候, 斯里纳斯 以上来自于百度翻译 以下为原文 Hello Geetha, - The advanced editor can be used to attach file. - Please make sure that you are using latest drivers from Cypress (1.2.3.20). - On the host application, ensure that there are no unnecessary statements, i.e in case your application has statements that are not relevant to the endpoint that is used to read the data, delete those. Best regards, Srinath S |
|
|
|
你好,该, 请找到下面的附件包含数据行。 当做, 该。 eeprom.txt.zip 1.3 MB 以上来自于百度翻译 以下为原文 Hello shrinath, please find the below attachement that contains the data recieved. regards, geetha.
|
|
|
|
你好,克里斯纳特, 请确保您使用的是Cypress最新的驱动程序(1.2.3.20)。 你能为驱动程序1.2.3.20提供链接吗? 当做, 吉萨 以上来自于百度翻译 以下为原文 Hello shrinath, Please make sure that you are using latest drivers from Cypress (1.2.3.20). ->can you provide link for driver 1.2.3.20. regards, geetha. |
|
|
|
你好,盖萨, 请找到司机的附件。 最好的问候, 斯里纳斯 Win 7.RAR 3.3兆字节 以上来自于百度翻译 以下为原文 Hello Geetha, Please find the attachment for the driver. Best regards, Srinath S
|
|
|
|
你好,克里斯纳特, 更新1.2.3.20 Windows7版后,问题是相同的。 请查收附件。 当做, 吉萨 WI1.2.3.20.TXT.ZIP 1.4兆字节 以上来自于百度翻译 以下为原文 Hello shrinath, After updating windows7 version 1.2.3.20 also,the problem is same. please find the attached doc. regards, geetha.
|
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2111 浏览 1 评论
1858 浏览 1 评论
3673 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1792 浏览 6 评论
1540 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
579浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
432浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
441浏览 2评论
391浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
968浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-29 02:31 , Processed in 1.339418 second(s), Total 103, Slave 86 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号