如何监控串口 [英] how to monitor serial port

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

问题描述

亲爱的所有朋友!



我想用MFC写一个监控串口程序。

但是我搜索了网上的信息,我找不到它。



在我的工作中使用了Serialmonitor 3.16。

但是这个程序在一个重要的项目中不起作用,我不知道为什么。

所以我想自己写一个MFC。



Plz所有朋友帮忙!



非常感谢!

Dear all my friends!

I want to write a monitoring serial port program using MFC.
But i searched information on Web,i could not find it.

Serialmonitor 3.16 is used in my work.
but this program was not working in a important project,i didn't know why.
So i want to write a MFC by myself.

Plz all friends help!

Thank you very much!

推荐答案

MFC中没有专门用于串行通信的类。这意味着如果您愿意,可以使用win32并编写自己的包装。



本文将向您展示如何进行串行I / O.



Windows中的串行通信 [ ^ ]





这是一个可立即使用的库的链接:



http://www.naughter.com/serialport.html [ ^ ]





更好的方法是使用.net SerialPort类。



Basic串口侦听应用程序 [ ^ ]
There are no classes in MFC specifically for serial communications. This means you use win32 and write your own wrapper if you wish.

This article will show you how to do serial I/O.

Serial Communication in Windows[^]


Here is a link to a ready to use library:

http://www.naughter.com/serialport.html[^]


A better way may be to use .net SerialPort class.

Basic serial port listening application[^]


这篇关于如何监控串口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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