用c ++编写程序将RS485转换为USB。 [英] Do write a program in c++ to convert RS485 to USB.

查看:119
本文介绍了用c ++编写程序将RS485转换为USB。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个应用程序,它与COM端口上的设备通信。

现在这个应用程序需要一个RS485到RS232转换器和一个脑盒(连接到PC的USB端口)。



我的问题是我是否编写了一个c ++程序来删除转换器依赖并直接连接到PC。



请指导我这个。

我对这个概念很新,不太了解这个。

Hi,

I have one application and that communicates with device on COM port.
Now this application required one RS485 to RS232 converter and one brainbox (connect to PC's USB port).

My question is do I write a c++ program to remove convertor dependency and directly connect to PC.

Please guide me on this.
I am very new in this concept don't know much about this.

推荐答案

这不是软件问题。 EIA-485,EIA-232和USB都是串行接口。在软件方面,您通常有一个COM端口。对于特定设备,访问端口不会有所不同。有两种方法可以减少外部硬件的数量:



  • 使用EIA-485接口卡
  • 使用EIA-485到USB转换器
This is not a software problem. EIA-485, EIA-232, and USB are all serial interfaces. At the software side you usually have a COM port. Accessing the port will not differ for a specific device. There are two options to reduce the amount of external hardware:

  • Use an EIA-485 interface card
  • Use an EIA-485 to USB converter


这篇关于用c ++编写程序将RS485转换为USB。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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