Basic example of serial communication with Windows XP/win32

后端 未结 5 1907
遇见更好的自我
遇见更好的自我 2021-02-08 23:30

I am working with a peripheral device that needs to be communicated through serial. I can send it commands using HyperTerminal, but now I need to write programs that will let m

5条回答
  •  梦如初夏
    2021-02-09 00:33

    I believe you will find plenty of sample code for C# as well if you find VC6 too ancient. I think there are also a bunch of "free" serial/COM port wrappers but I just wrote my own when I wrote an RS232 device controller piece of software.

    google C# and serial port or rs232

    I got these:

    http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx

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

    You should have no problem finding suitable code with a google search.

提交回复
热议问题