Home > database >  Access to available Comm port
Access to available Comm port

Time:09-22

Call API function, automatically gets the current not occupied the Comm Port (Port)

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.html

CodePudding user response:

By way of command line mode. Exe com1 similar way return information

CodePudding user response:

Consider using a try and then open the serial port, if open the failure, and then opens the next

CodePudding 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
  • Related