Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8170123

DIO VTS 1.1 sqe/uart/functional/index.html#UARTReadWrite test fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • None
    • embedded
    • None
    • dio
    • generic
    • generic

      On dio-1.1-b41-linux-armv6hf.jar executed with DIO VTS 1.1 test
      sqe/uart/functional/index.html#UARTReadWrite
      fails.

      In the output console of RPI board there is following output:
      1479724281642: AGENT STARTED, maxThreads=1
      [Dynamic-linking native method java.net.InetAddress.init ... JNI]
      [Dynamic-linking native method java.net.InetAddressImplFactory.isIPv6Supported ... JNI]
      [Dynamic-linking native method java.net.Inet4Address.init ... JNI]
      [Dynamic-linking native method java.net.PlainSocketImpl.initProto ... JNI]
      [Dynamic-linking native method java.net.PlainSocketImpl.socketCreate ... JNI]
      [Dynamic-linking native method java.net.PlainSocketImpl.socketConnect ... JNI]
      [Dynamic-linking native method java.net.Inet6Address.init ... JNI]
      [Dynamic-linking native method java.net.SocketInputStream.init ... JNI]
      [Dynamic-linking native method java.net.SocketOutputStream.init ... JNI]
      [Dynamic-linking native method java.net.SocketOutputStream.socketWrite0 ... JNI]
      [Dynamic-linking native method java.net.SocketInputStream.socketRead0 ... JNI]
      1479724282156: Agent has been registered:c0b5d95b
      1479724282161: New registration ticket: [RegistrationTicket: id=c0b5d95b validity=true created=1479724282156 duration=120sec validUntil=1479724402156]
      [Dynamic-linking native method java.lang.System.identityHashCode ... JNI]
      1479724282183: EXECUTOR c0b5d95b:0 STARTED com.sun.tck.j2me.execution.client.Agent
      1479724282195: EXECUTOR:c0b5d95b:0: starts (ExecutionRequest: id=sqe/uart/functional/index.html#UARTReadWrite_uart0, name=com.sun.tck.cdc.lib.ExecCLDCTestOnCDCSameJVMCmd args=sqe.uart.functional.UARTReadWrite -uart {"shareable":"false","stopBits":["1"],"flowcontrol":["0"],"externalDevice":"No","performanceDataLengthPerRound":"128","parity":["0"],"session":[],"dataBits":["8"],"deviceId":"100","baudRate":["9600"],"uartType":"UART","performanceThreshold":"130000","performanceDataAmount":"2","loopbackControl":"Yes","intfClassName":"jdk.dio.uart.UART"} isRemote=true)
      [Dynamic-linking native method java.io.UnixFileSystem.getLength ... JNI]
          OK - In writeRead() ...
      [Dynamic-linking native method java.lang.Class.isInstance ... JNI]
      [Dynamic-linking native method com.oracle.dio.uart.impl.UARTImpl.openUARTByConfig0 ... JNI]
          OK - Test Thread started: taskID = Read
      [Dynamic-linking native method com.oracle.dio.uart.impl.UARTImpl.read0 ... JNI]
          OK - Waiting for 0 second(s) ...
          OK - Test Thread started: taskID = Write
      [Dynamic-linking native method com.oracle.dio.uart.impl.UARTImpl.write0 ... JNI]
      [Dynamic-linking native method com.oracle.dio.impl.EventQueue.setNativeEntries ... JNI]
      [Dynamic-linking native method com.oracle.dio.uart.impl.UARTImpl.setEventListener0 ... JNI]

      Taking into account that almost all VTS test for reading and writing passed, it looks like problem is that UART event INPUT_DATA_AVAILABLE is not generated for reading from given UART.

      Please find attached used interview and jre example.

      Following tests also fail due to INPUT_DATA_AVAILABLE listener doesn't get this event:
      sqe/uart/functional/index.html#UARTListenerDataAvailableByTrigger
      sqe/uart/functional/index.html#UARTListenerBufferOverrun
      sqe/uart/functional/index.html#UARTListenerDataAvailableByTimeout

            bkvartsk Boris Kvartskhava
            mpakhnus Marina Pakhnusheva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: