Recently, I started to do something related to serial communication. Because I don't have a physical serial port on my computer, but to test whether my writing can work normally, I must have a serial port, therefore, the software of virtual serial ports is used again. In short, several serial ports are virtualized in your system, and you can "Connect" them virtually, just like connecting the physical serial port of your computer to the physical serial port of another computer in reality, you can conveniently view the sent and received items on the local computer.
The two virtual serial ports I have used are virtual serial ports driver XP and taltech TCP-com, but I feel that the previous interface is more friendly and easier to use.
For example, if there is no physical serial port on your computer, you can use the software mentioned above to virtualize A COM1 and com2 (and "Connect" them "), then you use the one you wrote.CodeSend something to com1. then you can open software such as "serial debugging assistant" and check the content received on com2 to check whether the software you write is normal. In many cases, such software is very useful.