类 SerialPortExample

java.lang.Object
net.sf.marineapi.example.SerialPortExample
所有已实现的接口:
EventListener, SentenceListener

public class SerialPortExample extends Object implements SentenceListener
Serial port example using GNU/RXTX libraries (see readme.txt). Scans through all COM ports and seeks for NMEA 0183 data with default settings (4800 baud, 8 data bits, 1 stop bit and no parity). If NMEA data is found, starts printing out all sentences the device is broadcasting. Notice that on Linux you may need to set read/write privileges on correct port (e.g. sudo chmod 666 /dev/ttyUSB0) or add your user in dialout group before running this example.
作者:
Kimmo Tuukkanen