访问windows ce中的串行端口 [英] access serial port in windows ce

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

问题描述

我有掌上电脑有Windows CE 5



它有一根电缆连接到它和usb在电脑里



i必须将它连接到usb到串口转换器然后将它连接到计算机的串口并使用它发送和接收数据



将它连接到串口端口转换器是我的工作



i想知道如何知道连接usb电缆的输出端口以及如何通过它发送数据。 />


手持设备称为intermec c70

i have handheld has Windows CE 5

it has a cable connect to it and usb in the computer

i have to connect it to usb to serial converter then connect it to the serial of a computer and send and receive data using it

connecting it to the serial port converter is my work

i want to know how to know the port of the output of it that connect to the usb cable and how to send data through it.

it is handheld called intermec c70

推荐答案

对于USB串行转换器,由用户知道他插入设备的端口。因此,您必须提供一个UI来选择要使用的端口。 System.IO.Ports.SerialPort.GetPortNames() [ ^ 这将是一个很好的起点。



提供改变波特率,奇偶校验等功能也是一个好主意。
For USB-serial converters, it's up to the user to know which port he plugged the device in. So you will have to provide a UI to select what port to use. System.IO.Ports.SerialPort.GetPortNames()[^] would be a good place to start.

Providing the ability to change baud rate, parity and so on could be a good idea, too.


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

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