CY8C68013A date send issue?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

hi  Cypress:

     使用CY8C68013A的问题,上位机需要发送512Byte 或者其整数倍的数据才能接受到; 如果发小于512Byte 的数据

则无法接受到, USB的相关协议中应该是需要发送相关操作指令才可以实现非512byte 接受, 客户需要知道怎么进行操作? 是否有相关的

建议; TKS;

0 Likes
1 Solution
4 Replies
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted

上位机是如何发送小于512 Byte的数据的,请具体说明。

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

Dear Yang:

问题描述:请建议操作; TKS;

1、68013 通过USB往上位机,如果只发16Byte的数据,上位机读不到数据, 上位机调用读数据,会超时,读取不到数据;

在PC上用的是端点6,调用的是CYAPI 的异步读取接口

2、上位机往68013 发数据,必须是512字节的整数倍, 如果不是少于512 字节的数据,按照实际数据长度发送;

David w zhang;

Arrow FAE;

18823369318;

E-mail: DavidW.Zhang@arrowasia.com<mailto:DavidW.Zhang@arrowasia.com>

Addr: No.2, 3/F, Changpin, Honghua Rd.,99 Futian Free Trading Zone,Shenzhen

发件人: YangyangC_06 <community-manager@cypress.com>

发送时间: 2019年7月4日 16:28

收件人: David W Zhang <DavidW.Zhang@arrowasia.com>

主题: Re: - CY8C68013A date send issue?

CAUTION: This email originated from outside of the organization. This message might not be safe, use caution in opening it. If in doubt, do not open the attachment nor links in the message.

<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cypress.com&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7C92b1f9cffcb94e5398cf08d700598cff%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636978256935096778&sdata=eo3%2Bqgaz2XnmgBzXZJGgYmmV0KQek5202qd3%2FFrqV8c%3D&reserved=0>

Cypress Developer Community <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.cypress.com%2F%3Fet%3Dwatches.email.thread&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7C92b1f9cffcb94e5398cf08d700598cff%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636978256935096778&sdata=1NrqrWJz3qfN1QeBBNOEDuVmjddmLYkZlu4FYIghKqM%3D&reserved=0>

CY8C68013A date send issue?

reply from YangyangC_06<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.cypress.com%2Fpeople%2FYangyangC_06%3Fet%3Dwatches.email.thread&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7C92b1f9cffcb94e5398cf08d700598cff%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636978256935106777&sdata=lh4YEFhWJDSXKy6yAwxmmxZ3lfDcFvV0WV%2FkbB4bWjA%3D&reserved=0> in USB Low-Full-High Speed Peripherals - View the full discussion<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.cypress.com%2Fmessage%2F201412%3Fet%3Dwatches.email.thread%23201412&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7C92b1f9cffcb94e5398cf08d700598cff%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636978256935106777&sdata=pTmCNs%2BLcMBxCYBVX36e3hNOVx1XGDNtv2xkAojbl28%3D&reserved=0>

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

hi  Yang:

     1.是68013通过usb发给上位机,如果只发送非512字节整数倍比如16字节,那么上位机会读不到数据。是必须要512、1024、2048这样的字节数上位机才能读到。异常就是上位机会出现读数据超时; 不足512字节的数据按照实际数据发送;在PC上用的是端点6,调用的是CYAPI 的异步读取接口

2.上位机发给68013任意字节都可以。

目前需求:我们希望68013发任意字节长度给上位机能收到;

0 Likes
0 Likes