Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Java
  4. Other Serial Port (COM) library in Java

Other Serial Port (COM) library in Java

Scheduled Pinned Locked Moved Java
javacomquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kujtim Hyseni
    wrote on last edited by
    #1

    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?

    J 1 Reply Last reply
    0
    • K Kujtim Hyseni

      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?

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      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?

      K 1 Reply Last reply
      0
      • J jschell

        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?

        K Offline
        K Offline
        Kujtim Hyseni
        wrote on last edited by
        #3

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

        J 1 Reply Last reply
        0
        • K Kujtim Hyseni

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

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups