Class SerialPortLockTest


  • public class SerialPortLockTest
    extends java.lang.Object
    Test the Serial Port locking
    Since:
    Ptolemy II 11.0
    Version:
    $Id$
    Author:
    Christopher Brooks
    Pt.AcceptedRating:
    red (cxh)
    Pt.ProposedRating:
    red (cxh)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Test for a locking problem
      static gnu.io.CommPort openPort()
      Open the first non-Bluetooth and non-cu Serial port.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SerialPortLockTest

        public SerialPortLockTest()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Test for a locking problem

        Usage:

         java -classpath ${PTII}:${PTII}/lib/nrjavaserial-3.11.0.devel.jar ptolemy.actor.lib.jjs.modules.serial.test.SerialPortLockTest
         
        Parameters:
        args - Ignored
        Throws:
        java.lang.Exception - Not thrown
      • openPort

        public static gnu.io.CommPort openPort()
                                        throws java.lang.Throwable
        Open the first non-Bluetooth and non-cu Serial port.
        Returns:
        the port that was opened
        Throws:
        java.lang.Throwable - If looking up a port failed.