从USB设备读取数据 [英] read data from usb device

查看:337
本文介绍了从USB设备读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是这个项目的新手:

在超级终端中发送命令E/M/R时,我可以从数据记录器接收数据.
接收到的数据,下面是2个数据字符串.....

D,082199,"JOB1",2011/06/05,13:37:37,0.002807,0; A,0,9.826404,4.52324,4.585053,4.591324,9.830238; 0095; 2A03

D,082199,"JOB1",2011/06/05,13:37:38,0.008056,0; A,0,9.827946,4.527934,4.582724,4.592865,9.823358; 0096; 3823


我需要从连接到PC的USB端口的数据记录器读取相同的数据,并将在处拆分的字段值加载到表单上每个文件的预定义的安全文本框中.

请发送相同的代码给我.

在此先感谢.

Ramen.

I am new to this project:

I can receive data from data logger when send command E/M/R in hyperTerminal..

data received, 2 data string as below.....

D,082199,"JOB1",2011/06/05,13:37:37,0.002807,0;A,0,9.826404,4.52324,4.585053,4.591324,9.830238;0095;2A03

D,082199,"JOB1",2011/06/05,13:37:38,0.008056,0;A,0,9.827946,4.527934,4.582724,4.592865,9.823358;0096;3823


I need to read the same data from the data logger connected to USB port of PC and load the field value splited at , into predefined saperate textbox for each filed on form.

please send me the code for the same.

thanks in advance.

Ramen.

推荐答案

尝试以下操作:

http://www.developerfusion.com/article/84338/making-usb-c-friendly / [ ^ ]
Try the following:

http://www.developerfusion.com/article/84338/making-usb-c-friendly/[^]


没有人会向您发送代码.由于您使用的是超级终端,这意味着您正在使用串行通信.您所需要做的就是使用System.Io.Ports.SerialPort类与记录器通信.
Noone is going to send you code for this. Since you used HyperTerminal, that means you''re using serial communication. All you need to do, use the the System.Io.Ports.SerialPort class to communicate with your logger.


这篇关于从USB设备读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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