Other Serial Port (COM) library in Java
-
Hello the standard RXTX (http://rxtx.qbang.org/[^]) communication library is not suitable because priory to occupying the specified port it lists all available ports is the system. This is time consuming because sometimes it delays up to 4 (four) minutes to list the ports. Is there any other library which lets to assign (occupy) the specified port directly by giving its name without listing all the ports in the system?
-
Hello the standard RXTX (http://rxtx.qbang.org/[^]) communication library is not suitable because priory to occupying the specified port it lists all available ports is the system. This is time consuming because sometimes it delays up to 4 (four) minutes to list the ports. Is there any other library which lets to assign (occupy) the specified port directly by giving its name without listing all the ports in the system?
The rxtx library code is available so you could always modify it. There might also be an option or execution path to avoid your problem area. Here is another product (you pay money for) that I found after a short search. http://serialio.com/products/serialport/serialport.php[^] I am also curious what "sometimes" means? Does that mean on one computer this sometimes happens? Or that on many computers this sometimes happens?
-
The rxtx library code is available so you could always modify it. There might also be an option or execution path to avoid your problem area. Here is another product (you pay money for) that I found after a short search. http://serialio.com/products/serialport/serialport.php[^] I am also curious what "sometimes" means? Does that mean on one computer this sometimes happens? Or that on many computers this sometimes happens?
jschell wrote:
I am also curious what "sometimes" means? Does that mean on one computer this sometimes happens? Or that on many computers this sometimes happens?
No, it does not depends on computer but on ports. I had installed bluetooth which occupied few ports for which listing (identifying: more precisely an instruction
CommPortIdentifier.getPortIdentifiers();
) RXTX took around four minutes. But when I uninstalled bluetooth and manually deleted (from Device Manager) the ports, the newly installed port for communication with my microcontroller could be identified "in a moment".
-
jschell wrote:
I am also curious what "sometimes" means? Does that mean on one computer this sometimes happens? Or that on many computers this sometimes happens?
No, it does not depends on computer but on ports. I had installed bluetooth which occupied few ports for which listing (identifying: more precisely an instruction
CommPortIdentifier.getPortIdentifiers();
) RXTX took around four minutes. But when I uninstalled bluetooth and manually deleted (from Device Manager) the ports, the newly installed port for communication with my microcontroller could be identified "in a moment".
Kujtim Hyseni wrote:
I had installed bluetooth which occupied few port
So it is the bluetooth discovery process itself which is taking a long time. Presumably you only intend to eliminate the discovery process after the port is initially configured. Also presumably you only allow fixed ports because otherwise without the discovery confirmation your application will fail in unexpected ways if the port disappears.