开发者

sending data over RS-232 [closed]

开发者 https://www.devze.com 2023-04-11 06:48 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations开发者_开发问答.

Closed 7 years ago.

Improve this question

I have some application that communicates via a RS-232 serial port.

Is there some application or library that I can use to send data to a local serial port?

I need it to be able to locally debug my application.


If your looking to virtulize a serial port in code, then this will do the trick for you.

http://com0com.sourceforge.net/

As for .NET code, then the "SerialPort" class is incredibly easy to use, a good reference (Iv'e used many times) can be found here.

http://msmvps.com/blogs/coad/archive/2005/03/23/SerialPort-_2800_RS_2D00_232-Serial-COM-Port_2900_-in-C_2300_-.NET.aspx

Using the .NET serial class, you can do what you need in very few lines of code. Be aware though, you WILL need to use delegates to update your UI.


There are plenty of options when it comes to sending through RS232. Here are some applications that may help you to sent data using RS232:

  • RS232 Hex Com Tool -which is a serial software terminal program that can be used to communicate with just about any RS232 peripheral.
  • COM Port Data Emulator -it can create a data flow, wrap it to data packets (RS232, TCP/IP or UDP) and send to a port.
  • Serial Port Monitor - which also may be helpful with your problem. Anyway, its up to you what you will choose. Good luck!
0

精彩评论

暂无评论...
验证码 换一张
取 消