完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
亲爱的PSoCo开发者
我正在尝试建立PSoC 3和PC之间的通信。我使用的是来自主机端的LIUSB总线1。 我能够找到设备(PSoC 3)并从设备中获取USB解析器,但是我不能改变PSoC的USB描述符(例如供应商ID、产品ID、接口数量)。 我正试图通过使用USB PSoC Creator(USB全速)组件来改变USB描述符。但是在主机(PC)中,我总是得到相同的USB描述符。我的目的是发送和接收来自PSoC的SOM数据。 为什么我总是得到相同的描述符,即使我在UBFS组件中改变它? 如果有人能帮助我,我将非常感激。 最好的问候, 古尔根 以上来自于百度翻译 以下为原文 Dear PSoCDevelopers I'm trying to establish communication between PSoC 3 and PC. I'm using libu*** 1.0 from Host side. I was able to find the device (PSoC 3) and get USB descritors from the device, but I cannot change the USB descriptors of the PSoC (for example Vendor ID, Product ID, number of interfaces). I'm trying to change USB descriptors using PSoC Creator by programming USBFS (USB full speed) component. But in the host (PC) I'm always getting the same USB descriptors. My purpose to send and receive som data from the PSoC. What can be the reason that I'm always getting the same descriptors, even I'm changing it in the USBFS component? I'd really appreciate, if someone could help me Best regards, Gurgen |
|
相关推荐
27个回答
|
|
谢谢你的按摩。
是的,我走了,这就是我的脚步。 1。从PSoC Creator 2中,我为PSoC 3打开了示例项目,TimeBfsHID HID(这是鼠标程序)。 然后我建造它 2。我把PSoC连接到电脑上,然后按程序进行编程。结果表明PSOC成功地进行了移植。 然后打开USB控制中心。我总是在那里得到相同的结果(PID,VID,接口数),在设备管理器中我可以看到同样的结果。(我在上面的图片2上发布的结果)看起来我没有对这个设备进行编程。即使我尝试没有UBFS(USB全速)组件和编程任何CAPSENSE程序,我再次得到相同的结果。 以上来自于百度翻译 以下为原文 Thank you for your massage. Yes I did, here is my steps. 1. From PSoC Creator 2.0, I opened example projects, then [size=11.199999809265137px]USBFS_HID for PSoC 3 (this is mouse program). [size=11.199999809265137px]Then I build it [size=11.199999809265137px]2. I connected PSoC to the PC by the wire and press programming. It shows that PSoC pragrammed successfully. Then I turn on the USB Control center. And I always there the same result (PID, VID, number of interface), the same I can see in device manager. (the result I posted by picture 2 massages above) It seems I have not programmed the device. Even I tried without USBFS (USB full speed) component and programmed any capSense programm, again I am getting the same result. [size=11.199999809265137px] |
|
|
|
是的,我尝试过,未修改过的UBFS-HID示例,但似乎不起作用。
我正在移动PSoC 3,但是鼠标光标什么也没发生。 以上来自于百度翻译 以下为原文 Yes I tried, [size=11.199999809265137px]unmodified USBFS-HID example, but it seems not working. I am moving the PSoC 3 but nothing happening with the mouse cursor. |
|
|
|
谢谢你的帮助。
我只有一根电缆。我只使用了与PSoC3兼容的电缆,我用一根电缆将PC与PSoC 3连接起来。 对于使用第二根电缆和如何连接它? 以上来自于百度翻译 以下为原文 Thank you for your help. I have only one cable. I only used the cable that is comming with the PSoC3 and I have connected PC with the PSoC 3 with one cable. For what used the second cable and how to connect that? |
|
|
|
今天,我因为我的问题而筋疲力尽。所以我可以简单地说。1)什么是FTK03-SIM?我假定这是PSoC程序员或ICE,请在尝试连接PSoC USB时断开它。2)在尝试改变PID之前,先做“不变”的例子。3)如果PSoC鼠标开始移动,你可以改变PID。这就是我的想法。谢谢您。
以上来自于百度翻译 以下为原文 Today, I'm exhausted cause with a problem of mine. So I might say as simple. 1) What is FTK03-SIM? I presume that is a PSoC Programmer or ICE, Please disconnect it when you try to connect your PSoC-USB. 2) Before you try to change the PID, Do the Example "as is" with no change. 3) If your PSoC-Mouse is start moving, You may change the PID. That is my thought. Thank you. |
|
|
|
PSOC3套件有2个USB连接器。一个连接到程序板上的程序员。另一个到PSoC3本身。用一根电缆,你很可能把它连接到程序员。但这意味着PSoC3根本没有连接到PC…因此,您要么需要第二个电缆,要么在PSCO3板上的两个USB端口之间进行更改。
请参阅您的PSoC3工具包的文档。 之后,你应该让演示工作正常,也应该看到改变的PID。 以上来自于百度翻译 以下为原文 The PSoC3 kit has 2 USB connectors. One is connected to the programmer on the board. the other one to the PSoC3 itself. With a single cable, you most likely have it connected to the programmer. But that means the PSoC3 is never connected to the PC at all... So you either need a second cable, or change it between the two USB ports on the PSoC3 board. Please also refer to the documentation of your PSoC3 kit about that. After that, you should get the demo to work properly, and should also see the changed PID. |
|
|
|
亲爱的PSoC03和HLI
非常感谢你,你真的帮了我很多,现在我能理解很多事情。 以上来自于百度翻译 以下为原文 Dear PSoC73 and hli Thank you very much, you really help me a lot, now I can understand many things |
|
|
|
不客气。但是当你工作的时候请报告,所以其他人也可以从你的经验中学到…
谢谢你,HLI 以上来自于百度翻译 以下为原文 You're welcome. But please report back when you got it working, so other can learn from your experiences too... Thanks, hli |
|
|
|
谢谢
最后我终于成功了。 这个问题与我的PSoC 3连接,它是初学者工具包,所以我订购了新的PSoC 5,并且能够改变所有的描述符。 谢谢你的帮助。 以上来自于百度翻译 以下为原文 Thanks Finally I was able to make it work. The problem was connected with my PSoC 3, it was starter kit, so I ordered new PSoC 5 and was able to change all the descriptors. Thank you for your help. |
|
|
|
你有PSoC3触控起动器套件吗?是的,那个不能用于USB设备,因为它的PSoC3上的USB线被用作调试引脚…
以上来自于百度翻译 以下为原文 You had a PSoC3 first touch starter kit? Yes, that one cannot be used for USB stuff, since the USB lines on its PSoC3 are used as debugging pins... |
|
|
|
是的,我使用PSoC 3启动套件,这就是我无法改变描述者的原因。
现在我订购并正在使用CY8CKIT-01开发套件,我们上面的讨论真的很有帮助。 谢谢。 以上来自于百度翻译 以下为原文 Yes, I was using PSoC 3 starter kit, that's was the reason that I was unable to change the descripptors. Now I ordered and am working with CY8CKIT-001 development kit, and the discussion that we had above was really helpful. Thanks for that. |
|
|
|
为了澄清最后一句话:你完全可以改变USB描述符,并且它已经正常工作了。问题是,你永远不能创建一个USB连接到PSOC3的YOUT启动器套件,因为它的USB线不被暴露。你总是只看到初学者工具包上的程序员,而你不能操纵那个…
以上来自于百度翻译 以下为原文 To clarify that last statement: you were perfectly able to change the USB descriptor, and it have has worked properly. The problem was that you never ever could create an USB connection to the PSoC3 on yout starter kit, since its USB lines are not exposed. You always saw only the programmer on the starter kit - and you cannot manipulate that one... |
|
|
|
设备是否使用自定义VID、PID在设备管理器(Linux中的LSUB)中列出?你得到的VIP/PID是什么?
以上来自于百度翻译 以下为原文 does the device is listed in the device manager (lsu*** in linux) using your custom VID, PID? what is the VIP/PID you are getting? |
|
|
|
确切地说,我试图改变描述符,但总是在主机中得到相同的描述符。当我用新的描述符编程PSoC 3启动器套件时,在PSoC创建者中,我没有得到任何ErRRS。
以上来自于百度翻译 以下为原文 Exactly, I was trying to change the descriptors, but always in a Host I was getting the same descriptors. When I was programming the PSoC 3 starter kit with new descriptors, in Psoc creator I wasn't getting any erorrs. |
|
|
|
你从来没有USB连接到你编程的PSoC3。那是你的问题。你对它的编程并不重要(我猜你从一开始就做得很好)。这与你的程序无关,这是硬件问题。
以上来自于百度翻译 以下为原文 You never got a USB connection to the PSoC3 you programmed. That was your problem. It just did not matter what you programmed on it (and I guess you did it the right way from the beginning). This had nothing to do with your program, it was a hardware problem. |
|
|
|
当你想改变VID/PID时,基本过程是1)在USB配置对话框-设备描述符列表中改变。2)更改驱动程序信息文件中的VID/PID。这就是全部。构建成功,从而完成了所有。当你连接USB设备时,系统可以识别它。这可以在设备管理器上看到。在你的主机程序连接之前。并可以通过设备管理器验证VID/PID。这是Windows中的一个过程,有些不同于Linux,但也一样。好啊?
以上来自于百度翻译 以下为原文 When you want to change the VID/PID, Basic process is 1) Change at USB configuration dialog - device descriptor list. 2) Change the VID/PID in driver information file. That's all. the Build was successed so that completed all. When you connect that USB device, the system could be recognize it. This can see on device manager. before your host program connect with that. and can verify the VID/PID by device manager. That is a process in Windows, something be different with Linux, but same same. OK? |
|
|
|
谢谢你的回答。
我使用Windows 7 是的,设备在设备管理器中列出。在我的驱动程序和设备管理器中,我总是得到相同的VID和PID。 VID 0x4B4 PID 0xF11A 我试图通过改变USPFS组件中的设备描述符来改变描述符,但我再次得到相同的结果。 以上来自于百度翻译 以下为原文 Thanks for your answers. I'm using windows 7 Yes the device is listed in device manager. In my driver program and in the device manager I'm getting the same VID and PID all the time. VID 0x4B4 PID 0xF11A I'm trying to change descriptors by changing device descriptors in USBFS component, but again I'm getting the same result. |
|
|
|
这很奇怪,好的,一个接一个。
假设你的VID/PID是04B4/ABCD; 1)在USB配置器上进行更改。 2)建立和检查驱动程序信息。 在Proj/EngdiabyOrths/PSoC3目录中, 找到驱动程序INF文件“UBS.CDC.INF”。 打开文本编辑器,找到这条线。 [ Deimelelist.Ntx86] %描述%=驱动器安装,USB VIDY04B4和PIDYABCD 和相同的PID描述线。 3)将设备连接到PC并在设备管理器中找到它。 4)右键单击USB设备并查看“属性详细信息”选项卡-硬件ID 你能看到这样吗? USB VIDY04B4&PIDYABCD 5)如果不是; 在相同的属性页-驱动程序选项卡中 [删除驱动程序]按钮。这样做。 再尝试3)。 一切都会好起来的,加油 以上来自于百度翻译 以下为原文 It's very odd, OK ensure one by one. Assume your VID/PID is 04B4/ABCD; 1) Change that on USB configurator. 2) Build and check your driver information. In your project /Generated_source/psoc3 directory, Find the driver inf file "USB_cdc.inf". Open it text editor, find this line. [DeviceList.NTx86] %DESCRIPTION%=DriverInstall, USBVID_04B4&PID_ABCD And same PID discription lines. 3) Connect the device to PC and Find it in device manager. 4) Right-click that USB device and see the property - detail TAB – Hardware ID Can you see like this. USBVID_04B4&PID_ABCD 5) IF NOT; In the same property page – driver TAB [delete driver] button. Do this. And TRY from 3) again. It will be going well, cheer |
|
|
|
非常感谢你的帮助和时间。
为了不犯错误,我从PSOC 3的示例项目UBFSH HID中获取。 我分别改变了VID/PID 04B4/ABCD。这里是来自USPFS11*CDC.IF文件的结果 [ Deimelelist.Ntx86] %描述%=驱动器安装,USB VIDY04B4&PIDYF222 无论我正在改变VID和PID,我得到相同的结果,即使对于我自己写的项目,我也得到同样的结果。 然后我使用ZADEG来替换驱动程序,在设备管理器属性/细节/硬件ID中,我得到VIDA04B4和PIDYF11A。 我觉得有些奇怪的事情发生了。 以上来自于百度翻译 以下为原文 Thank you very much for your help and time. For not making mistake, I took from example projects USBFS_HID for PSoC 3. I changed VID/PID 04B4/ABCD respectively. and here is the result from USBFS_1_cdc.inf file [DeviceList.NTx86] %DESCRIPTION%=DriverInstall, USBVID_04B4&PID_F232 Whatever I'm changing VID and PID I'm getting the same result, even for my own written project I'm getting the same. Then I'm using zadig to replace the driver, in device manager properties/detail/hardware-IDs I'm getting VID_04B4 and PID_F11A. I think some strange things happening. |
|
|
|
好的,我以前的帖子是关于批量传输的。
我错过了,但这是正确的散装。 您的接口类型是HID。 有些奇怪,有3个PID数。 1)VID/PID 04B4/ABCD:假设。 2)VIDY04B4&PIDY-F222:INF文件 做错了吗? 3)VIDY04B4 PIDY-F11A:实际数 这是什么? 答案在这里 2)HID过程可能产生伪数 3)有许多同名装置, 所以你查错了设备,检查所有的HID设备。 第一张图片是原创的。 第二张图片改变了。 好啊? HID1.JPG 105.8 K 以上来自于百度翻译 以下为原文 OK, My previous post was regarding of BULK Transfer. I missed but that's correct on BULK. Your Interface type is HID. Something strange, there are 3 PID number. 1) VID/PID 04B4/ABCD : your assumed. 2) VID_04B4&PID_F232 : inf file Was build wrong? 3) VID_04B4 PID_F11A : actual number What is this? Answer is here 2) Perhaps, HID process make pseudo number 3) There are many device of same name, So you had look wrong device, Check all HID devices. First picture is original. Second picture is changed. OK?
|
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2113 浏览 1 评论
1861 浏览 1 评论
3673 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1794 浏览 6 评论
1540 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
582浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
434浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
445浏览 2评论
393浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
1025浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-31 06:25 , Processed in 1.154184 second(s), Total 80, Slave 75 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号