完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我正在使用“PSoC 3开发工具包”。在我的项目中,我想把一个SPI从我的PC机接收到的数据发送给我的PC机。 我试着用超终端使用UBJUART,我工作了,但是我要慢下来。我至少需要一个100千字节/秒的数据结构。现在,我尝试使用USB套件在大容量模式下与UBFS建立数据传输。用CySalk我可以读出端点,但是每次我想读取数据时,我都要按下“传输数据”按钮。但我需要连续的数据流。程序“拖缆”不起作用。有没有人知道如何读取一个连续的USB数据流? 我附上了我的计划。 当做, 亚历克斯 以上来自于百度翻译 以下为原文 Hi, I´m using the "PSOC 3 Development Kit". In my project I would like to transmit data that has been received by a SPI SLAVE to my PC. I tried to use USB_UART with Hyperterminal and I did work, but i was to slow. I need at least a datarate of 100 kByte/s. Now I'm trying to establish the data transfer with the USBFS in the Bulk mode using USB Suite. With CyConsole I´m able to read out the endpoint, but every time I want to read the data I have to press the button " transfer data" . But i need a continuous stream of data. The programm "streamer" does not work. Does anybody know how its possible to read out an store a continuous stream of USB data? I attached my project.Pease help me out. Regards, Alex |
|
相关推荐
4个回答
|
|
你好,亚历克斯,CyCOSOL,CyPrand和Telever是单个事务的测试程序。BulkLoop怎么样?当你需要合适的主机程序时,必须自己制作主机程序。使用CysB.DLL或CYAPI,USB套件3.4.7中有C样本,BulkCurror和CyCurror的CurCE样本。
以上来自于百度翻译 以下为原文 Hi Alex, CyConsol, CyControl and Streamer is test program for single transaction. How's BulkLoop? When you need proper Host program, have to make own Host program. That using CyUSB.dll or CyAPi, There are C# samples in USB Suit 3.4.7, Of cource sample of BulkLoop and CyControl. |
|
|
|
谢谢你的回答。BulkLoop也不工作。但这可能是因为我不使用BulkRoad中指定的端点插件。你知道如何改变端点地址吗?我还有一个问题:有没有可能用MATLAB直接读出数据?
非常感谢你的帮助, 亚历克斯 以上来自于百度翻译 以下为原文 Thanks for the answer. BulkLoop doesn´t work too. But thats maybe because I dont use the endpoint adresses specified in BulkLoop. Do you know how to change the endpoint adress? I have another question:Is there maybe a possibility to read out the data directly by Matlab? Thanks a lot for the help, Alex |
|
|
|
好的,小菜一碟。如您所知,UBFS的开放式配置对话框[[设备描述符标签] /端点描述符/端点编号-EP1到EP8是EP编号,设置为输入或输出,传输类型为散装,间隔=0,马克斯包=64;当添加新的EP时,单击[++Dead Posit]。第二个问题:我正在使用另一个工具,但是我没有Matlab。通常,这种工具具有脚本语言,如VB或Java。如果是这样,控制PSoC USB由那些。呵呵?
以上来自于百度翻译 以下为原文 OK, Piece of cake. As you know, Open Configure dialog of USBFS, [Device Descriptor TAB] / Endpoint Descriptor / Endpoint Number - EP1 to EP8 is EP number, Set IN or OUT, Transfer type is BULK, Interval=0, Max Packet=64; When add new EP, Click [+Add Endpoint]. Second question: I'm using another tool, I haven't have MATLAB however. Usually, This kind of tool has Script Language, like VB or Java. If so, Control PSoC USB by those. huh? |
|
|
|
你好。
谢谢你的回答。我试着用它们来解决我的问题。以下是结果: 1。我已经做过了,但仍然很慢。我需要以40千赫的速率传输16位值。这意味着我需要每秒至少640比特… 2。当我按下传输文件按钮时,我可以像你所说的那样把数据存储到.txt文件中。但是在.txt中,总是只有一个值。我需要的是源源不断的河流。我试图改变“长度”和“十六进制字节”,但它不会改变任何东西。 我还用VisualStudio改变了“控制中心”,所以当我现在按下“数据传输”按钮时,我从端点得到100个值。但是这些值通常是错误的,有时软件完全停止了通信。(错误代码997)你知道如何解决这些问题吗? 谢谢您。 亚历克斯 以上来自于百度翻译 以下为原文 Hi. thanks for the answers. i tried to use them to solve my problems. Here are the results: 1. I`ve already done that, but its still to slow. I need to transfer 16 bit values with a rate of 40 kHz . This means that i need at least 640.000 Bits per second... 2. When I press the Transfer File Button I´m able store data to a .txt-file like you said. But in the .txt there´s always only one value. What i need is a continous stream. I tried to change "length" and "hex bytes" but it doesn´t change anything. I also changed "Control Center" with Visual studio, so when i now press the "data transfer" button I get 100 values from the endpoint. but the values are often in a wrong order and sometimes the software stops the communication completely.(Error code 997) Do you have an idea how to solve these problems ? Thank you. Alex |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2070 浏览 1 评论
1826 浏览 1 评论
3639 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1761 浏览 6 评论
1513 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
511浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
361浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
858浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 23:22 , Processed in 0.864448 second(s), Total 85, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号