USB 串行/CDC 功能驱动程序
操作系统:Ubuntu Linux 10.10 内核:2.6.35-30
查询:我需要在上述平台上的 Windows 进程和嵌入式设备之间建立可靠的通信。在这种情况下,可能的解决方案是什么?在这种情况下,套接字编程已经被排除。这对您来说可能是一个非常基本的问题,但我是这个领域的新手,非常感谢您的帮助。
OS: Ubuntu Linux 10.10
Kernel: 2.6.35-30
Query: I need to establish a robust communication between a Windows process and an embedded device on the above platform. What can be a possible solution in this case? Socket programming has already been ruled out in this case. It may sound to you as a very fundamental question but I am new to this domain and will really appreciate your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你能澄清一下你的问题吗?
你的完整设置是什么? (例如:
主机系统正在运行 Ubuntu(内核 2.6...),连接到其 USB 端口之一的是 USB 转串行适配器,该适配器连接到嵌入式设备的串行端口。我需要通过我用 C 语言编写的程序与嵌入式设备进行通信。)
Could you clarify your question?
What is your full setup? (For example:
The host system is running Ubuntu (Kernel 2.6...) attached to one of it's USB ports is a USB to serial adapter which is connected to the serial port of an embedded device. I need to communicate with the embedded device through a program I'm writing in C.)
如果您正在讨论 Ubuntu 中 USB 设备的串行通信,那么您的设备名称类似于 /dev/ttyUSB(某个数字)。当您连接设备时,这将出现在您的 ls 命令中。
如果您正在寻找串行设备的模拟器,那么我建议使用 socat。如果您需要 socat 命令的参考,请尝试使用此链接 Linux 中的串行端口模拟器
If you are talking about a serial communication of a USB device in Ubuntu, then your device name is something like /dev/ttyUSB(some number). This will appear in your ls command as and when you connect the device.
If you are looking for a simulator for a serial device then I suggest using socat. If you need a reference for socat command, try using this link serial port simulator in linux