Class SerialTest
- java.lang.Object
-
- ptolemy.actor.lib.jjs.modules.serial.test.SerialTest
-
public class SerialTest extends java.lang.Object
Test the serial port.Based on https://github.com/NeuronRobotics/nrjavaserial.
See https://wiki.eecs.berkeley.edu/ptexternal/Main/Main/RxTxHanging.
- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Christopher Brooks, based on https://github.com/NeuronRobotics/nrjavaserial
- Pt.AcceptedRating:
- red (cxh)
- Pt.ProposedRating:
- red (cxh)
-
-
Constructor Summary
Constructors Constructor Description SerialTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Read and write to a port.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
Read and write to a port.Usage: To see what ports are available:
java -classpath $PTII:${PTII}/lib/nrjavaserial-3.11.0.jar ptolemy.actor.lib.jjs.modules.serial.test.SerialTest
To connect to a port:
java -classpath $PTII:${PTII}/lib/nrjavaserial-3.11.0.jar ptolemy.actor.lib.jjs.modules.serial.test.SerialTest /dev/tty.usbserial-DA01R74U
- Throws:
java.lang.Exception
-
-