[purejavacomm] Re: Version 0.0.17 released

  • From: iain macdonnell <dseven@xxxxxxxxxx>
  • To: purejavacomm@xxxxxxxxxxxxx
  • Date: Sun, 19 May 2013 16:45:36 -0700

Hi Kusti,

My application seems unhappy with 0.0.17. If I revert to 0.0.16, all
is well. I'm using notifyOnDataAvailable() and have a
SerialPortEventListener with a basic read() loop. It seems to read() a
just handful of bytes, then gets stuck at:

"COM1" daemon prio=6 tid=0x000000000a79e800 nid=0x37d4 waiting on
condition [0x000000000c1bf000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
        at java.lang.Thread.sleep(Native Method)
        at java.lang.Thread.sleep(Thread.java:302)
        at jtermios.windows.JTermiosImpl.nanoSleep(JTermiosImpl.java:326)
        at jtermios.windows.JTermiosImpl.select(JTermiosImpl.java:893)
        at jtermios.JTermios.select(JTermios.java:438)
        at purejavacomm.PureJavaSerialPort$2.read(PureJavaSerialPort.java:866)
        at purejavacomm.PureJavaSerialPort$2.read(PureJavaSerialPort.java:714)
        at 
org.dseven.mlelecraftutils.MLElecraftSerialClient$comPortReader.serialEvent(MLElecraftSerialClient.java:403)
        at 
purejavacomm.PureJavaSerialPort.sendDataEvents(PureJavaSerialPort.java:96)
        at purejavacomm.PureJavaSerialPort.access$28(PureJavaSerialPort.java:93)
        at purejavacomm.PureJavaSerialPort$3.run(PureJavaSerialPort.java:1221)
        at java.lang.Thread.run(Thread.java:662)


Problem occurs on both Windows Vista and Windows 7. Serial port is an
EdgePort USB/Serial.

Thanks,

    ~iain



On Thu, May 9, 2013 at 5:26 AM, Kustaa Nyholm
<feedback2@xxxxxxxxxxxxxxxxx> wrote:
> Hi PureJavaComm fans,
>
> Version 0.0.17 is out!
>
> Contains numerous fixes for various small/rare problems,
> see ChangeLog for details.
>
>
> br Kusti
>
>
>
>
> ---------------------------------------------------------------
>
>
> Version 0.0.17
>
> * Ignore error for TIOCGSERIAL/TIOCSSERIAL when setting standard
>   baudrates
>
> * Improved port enumeration on Linux
>
> * Fixed sendBreak "timeout value is negative" error
>
> * Fixed WinAPI.SetCommBreak mistakenly called CloseHandle on Windows
>
> * Fixed random "port not locked" caused by problem in JTermiosImpl.lock()
>
> * Fixed WaitCommEvent returns an 87: bad parameter, error code on Windows
>

Other related posts: