访问 Windows 商店应用程序的串行端口 [英] Access to serial port for windows store apps

查看:67
本文介绍了访问 Windows 商店应用程序的串行端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种将转义序列发送到 Windows 商店应用程序中的串行端口的解决方案.

I am looking for a solution to send an escape sequence to a serial port in a windows store app.

也许我对 windows store 应用程序的理解是错误的.我不想在 Windows RT 设备上运行此应用程序,而是在普通的 Windows 8 PC 上运行.我知道,windows RT 设备只支持与连接设备的通信很少,但不支持串行端口.

Maybe my understanding of windows store apps is wrong. I don't want to run this app on a windows RT device, but on a normal windows 8 PC. I know, that windows RT devices do only support very less communication with connected devices, but not serial ports.

推荐答案

您可以使用 USB 到 UART 桥接设备来完成此操作,但需要一些工作和 USB 的基本知识才能启动和运行.

You can do this with a USB to UART Bridge device, but it will require some work and basic knowledge of USB to get it up and running.

查看 Windows.Devices.usb 命名空间.有了这个,您可以使用 USB 到串行设备的定义协议来传输数据.如果您搜索,可以使用大量 USB 转 UART 桥接器.例如,使用带有 CP210x 设备 使用 Windows.Devices.Usb.您的应用程序可以通过控制请求配置设备,并可以通过批量管道传输数据,以便从 USB 到 UART 桥接器另一端的 RS232 端口读取/写入.

Have a look at the Windows.Devices.Usb namespace. With this you can use a defined protocol for a USB to serial device to transmit data. There are plenty of USB to UART Bridges available if you search. For example use the CP210x interface specification with a CP210x device using Windows.Devices.Usb. Your application can configure the device through control requests and can transmit data over the bulk pipes to read/write from the RS232 port on the other side of the USB to UART Bridge.

这篇关于访问 Windows 商店应用程序的串行端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆