• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    java.io.IOException: jssc.SerialPortException

    Mango Automation general Discussion
    2
    4
    416
    Loading More Posts
    • 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.
    • H
      hayden_AUS
      last edited by

      Hi,

      I'm hoping someone still monitors this forum!

      I am running the latest version.
      Windows 11, with a decent USB to 485 converter polling 5 sensors on COM3.

      Getting error, and stopping polling:

      java.io.IOException: jssc.SerialPortException: Port name - COM3; Method name - setEventsMask(); Exception type - Can't set mask.
      

      Can anyone help? I can find anything on this.

      Hayden

      M 1 Reply Last reply Reply Quote 0
      • M
        mwright @hayden_AUS
        last edited by

        @hayden_AUS

        Hello Hayden,

        We did some research into your question and found that this issue seems to be isolated to the port or driver not allowing java to set the mask of the port. I set up a Prolific PL2303 USB to Serial device using v4300 drivers and tried to reproduce the issue you are seeing. I was unable to get the error to occur.

        Have you tried different drivers for your USB to Serial device?

        Additionally, you can reach Mango support directly at support@radixiot.com.

        H 2 Replies Last reply Reply Quote 0
        • H
          hayden_AUS @mwright
          last edited by

          @mwright Thanks for your response.

          I will try updating the drivers, and/or the USB to 485 adapter, and ensure Windows UAC, or update isn't causing issues.

          The weird thing is that it runs for weeks, then gets this error, and stops polling. It's almost
          like Windows just grabs the port back for some test, like update or something.

          1 Reply Last reply Reply Quote 0
          • H
            hayden_AUS @mwright
            last edited by

            @mwright Further to this, "restarting of Mango fixes the issue", without doing anything with Windows. Suggesting that if Windows did grab the COM port for some process, it re-released it
            after.

            I'm not asking for anything, but future updates might include attempts to re-open the COM ports once this error is encountered, as this error just kills the data source.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post