因此可以通过Windows文件创建函数打开串口。
Windows files can be created through the open serial port function.
指定了超时当打开串口否则块永远如果没有换行符,收到。
Do specify a timeout when opening the serial port otherwise it could block forever if no newline character is received.
例如,如果一个程序在任何目录中试图去打开“com1”或者甚至“com 1 . txt”,将被系统误解为是尝试和串口通信。
For example, a program that tries to open "com1" or even "com1.txt" in any directory will get stuck trying to talk to a serial connector.
应用推荐