Home arrow static arrow Java Programming [Archive] - COM Port Detection.
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - COM Port Detection.
This topic has 1 reply on 1 page.

Registered: 6/29/00
COM Port Detection.  
Jun 15, 2004 12:52 AM

I have been using CommPortIdentifier.getPortIdentifiers() to get a list of ports. This call gives me the correct list of available ports at the time the program started up. However if I add or remove any ports (using a USB to Serial bridge) whilst the program is running this list is NOT updated! How can I get CommPortIdentifier to return an updated list? As you can imagine I don't want to have to force users to exit the program and to restart it everytime a USB device is connected.

Many thanks in advance!

Registered: 99-04-02
Re: COM Port Detection.  
Jun 16, 2004 2:55 PM (reply 1 of 1)

if it doesn't rescan the ports list, then there is probably no way to do it.
This topic has 1 reply on 1 page.