Which API, how to do?
CodePudding user response:
For your reference, I hope it can help you at http://www.cnblogs.com/wgforward/archive/2009/12/27/1633521.htmlCodePudding user response:
By way of command line mode. Exe com1 similar way return informationCodePudding user response:
Consider using a try and then open the serial port, if open the failure, and then opens the nextCodePudding user response:
Comm can be a file open, and,,, then failed to open the comm file means that this port is occupied,, if successful, can use the current port, and, of course, if you use this method, operation comm is not, that depends on the situation, and see you use which kinds of operation mode,,,CodePudding user response:
Each com polling again, can open is working