在Windows上使用C ++进行串行编程 [英] Serial Programming on windows using c++

查看:78
本文介绍了在Windows上使用C ++进行串行编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows串行编程中使用C ++启用/禁用回显模式?

How to enable / disable echo mode in windows serial programming for RS232 using C++?
Can somebody help me out?

推荐答案

没有什么比在串行端口上启用/禁用回显模式更容易了. 您必须有一个已打开串行端口的程序,并且在接收到数据后,程序会将其发送回去.

如果要进行测试以检查串行端口是否正常工作,则可以购买插入到串行端口的串行回送适配器.
There is nothing like enable/disable echo mode on a serial port.
You have to have a program that has opened the serial port and when data is received the program sent it back.

If it is for testing to check if the serial port works, you can buy a serial loop back adapter that you plug in to the serial port.


这篇关于在Windows上使用C ++进行串行编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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