Ports
May 25, 2013, 11:57:56 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: Need a way of finding the last comm ports added (via USB)  (Read 1092 times)
GlennP
Frequent Contributor
****
Posts: 126


« on: February 24, 2012, 09:29:36 am »

Hi All,
The project I have been involved with for a few weeks is coming to a conclusion and I have a few issues.  Firstly with USB comm ports is it (easy) to tell if one has been added using GetPortNames() I can see a way of using the data that returned and comparing it to a previous list and seeing any change i.e. a list of COM1, COM3 & COM8 if I run the test again COM9 appears, is reasonable to assume this is the item or is there a betterway of doing it? Also should this question be in USB or Serial Ports? (it is about how USB emulates serial)

Glenn   
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1631


WWW
« Reply #1 on: February 24, 2012, 10:14:01 am »

Yes, GetPortNames will show any new ports, and any previously existing ports will have the same numbers.

It's a Serial Port question.

Jan
Logged
GlennP
Frequent Contributor
****
Posts: 126


« Reply #2 on: February 24, 2012, 10:29:13 am »

Right Thanks for that
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!