完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我是新来的柏树世界所以我不知道我的问题在下面一直问的地方尽管我做这个话题先搜索论坛开幕。 我寻找一个Linux主机通信的PSoC 050开发套件5lp通过USBUART方式。当主机发送RTS(请求发送)的开发板,它预计CTS(清除发送)信号发送回来的板。从公司的董事会,我能知道当线控制的变化,检查是否有RTS从主机或不。但是我找不到任何方式把主机发送回主机。 任何意见,想法,等样本,从你们将高度赞赏。 最佳托尼 以上来自于百度翻译 以下为原文 Hello everyone, I am new to Cypress world so I don't know whether my question below has been asked somewhere yet though I did search this forum before opening this topic. I am finding a way for a linux host to communicate to a PSoC 5LP 050 development kit via USBUART. When the host sends a RTS (Request To Send) to the development board, it expects a CTS (Clear To Send) signal sent back from the board. From the PSoC board, I am able to know when the line control changes and check whether there is a RTS from the host or not. But I could not find any way to send back to the host a CTS. Any suggestion, sample, idea, etc. from you guys would be highly appreciated. Best Tony |
|
相关推荐
5个回答
|
|
欢迎来到PSOCS的迷人世界!
UBUART没有CTS和RTS信号。相反,它需要一个(标准)的驱动程序,模拟一个串行接口使用的数据来自USB。该驱动程序是用Windows和Linux,只是给谷歌一个机会为你找到它。 鲍勃 以上来自于百度翻译 以下为原文 Welcome in the fascinating world of PSoCs! USBUART does not have got CTS and RTS - signals. Instead it needs a (standard) driver which emulates a serial interface using the data coming from the USB. This driver is availlable for windows and for linux, just give google a chance to find it for you. Bob |
|
|
|
嗨,鲍伯,
谢谢你的回复。 事实上,我知道司机和我可以得到它的工作板下的设备名为TTYACM0或TTYACM1。董事会如果控制线路状态RTS关闭接收数据。如果RTS,董事会不能从主机接收数据。我猜当主机发送一个RTS的板,它等待一个CTS从板才开始发送数据。我看看线控制的变化发生在为(;;)在main() viau***uart_islinechanged()环 到目前为止,我所能做的是在主机上的电源,我需要拔掉USB电缆和插头的时候BIOS初始化后(或在OS加载。)在这种情况下,RTS是关闭的,董事会可以从主机接收数据。如果我如果USB线插上电时,RTS永远是对的。我不知道BIOS做的USB接口,但这可能是另一个问题。 最好的问候,托尼 以上来自于百度翻译 以下为原文 Hi Bob, Thanks for your reply. Actually, I know the driver and I can get it works with the board under the device names as ttyACM0 or ttyACM1. The board can receive data if the control line state RTS is off. If the RTS is on, the board cannot receive any data from the host. I guess when the host sends an RTS to the board, it waits for a CTS from the board before beginning to send data. I can check if line control changes happen in the for (;;) loop in main() via USBUART_IsLineChanged() Up to now, what I can do is before powering on the host, I need to unplug the USB cable and plug it back on after the BIOS initialization (or during the OS is being loaded.) In this case, the RTS is off and the board can receive data from the host. If I if the USB cable plugged when powering on, the RTS is always on. I don't know what the BIOS do to the USB interface, but this might be another issue. Best Regards, Tony |
|
|
|
RTS仅用于半双工。你能确保你的主机被定义为全双工吗?
鲍勃 以上来自于百度翻译 以下为原文 RTS is used for half duplex only. Can you make sure that your host is defined for full duplex? Bob |
|
|
|
对不起,迟到了。
主机支持全双工和半双工模式。它看起来像主机尝试失败后就切换到半双工全双工。 我的研究使我的地方,让我觉得RTS不应该是一个问题。这个问题可以依靠USB总线初始化BIOS,因为如果我将USB电缆插在OS加载它会好的。但是,我有其他的设备进行通信,以及与主机连USB电缆插在主机上电。我仍然不知道什么是错与PSoC板或如果我做错了什么。 这里是USBUART配置: ==============================设备描述符:设备类:CDC设备类:没有子类设备协议:0配置描述符:D·杰尼斯(马):100装置功率:自供电的远程唤醒:禁用 疾病预防控制中心CDC接口描述符:1:通信备用设置0头bcdacd 272摘要控制管理bmcapabilities 2联盟bcontrolinterface 0 bsubordinateinterface字节数组[ ] [ 0 ] 1呼叫管理bmcapabilities 0 bdatainterface 1端点描述符endpointnum EP1方向transfertype int区间10最大包大小8 CDC接口2:数据交替设置0个端点描述符endpointn嗯,EP2方向transfertype散装区间最大包大小64端点描述符endpointnum EP3方向transfertype散装区间最大包大小64 ============================== 谢谢托尼 以上来自于百度翻译 以下为原文 Sorry for late response. The host supports both full-duplex and half-duplex modes. It looks like the host tries to switch to half-duplex after it failed with full-duplex. My investigation leads me to somewhere that makes me think that RTS should not be an issue. The issue could rely on USB bus initialized by BIOS because if I plug the USB cable during the OS loading it would be fine. However, I have other devices that communicate well with the host even the USB cable is plugged before the host is powered on. I still don't know what wrong with the PSoC board or what if I did anything wrong. Here are the USBUART configuration: ============================== Device Descriptor: Device Class: CDC Device Subclass: No subclass Device Protocol: 0 Configuration Descriptor: Max Power (mA): 100 Device Power: Self Powered Remote Wakeup: Disabled CDC Descriptor: CDC Interface 1: Communication Alternate Setting 0 Header bcdACD 272 Abstract Control Management bmCapabilities 2 Union bControlInterface 0 bSubordinateInterface Byte[] Array [0] 1 Call Management bmCapabilities 0 bDataInterface 1 Endpoint Descriptor EndpointNum EP1 Direction IN TransferType INT Interval 10 Max Packet Size 8 CDC Interface 2: Data Alternate Setting 0 Endpoint Descriptor EndpointNum EP2 Direction IN TransferType BULK Interval 10 Max Packet Size 64 Endpoint Descriptor EndpointNum EP3 Direction OUT TransferType BULK Interval 10 Max Packet Size 64 ============================== Thanks Tony |
|
|
|
考虑提交一个技术案例。这样做,在这页的顶部支持&;社区>;技术支持- >;创建一个例如我
鲍勃 以上来自于百度翻译 以下为原文 Consider filing a technical case. To do so, at topof this page Support & Community -> Technical Support -> Create a MyCase Bob |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2100 浏览 1 评论
1846 浏览 1 评论
3664 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1782 浏览 6 评论
1532 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
559浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
410浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
433浏览 2评论
379浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
905浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-19 14:39 , Processed in 1.135384 second(s), Total 85, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号
|