org.mbari.siam.operations.utils
Class GlobalstarPowerControl

java.lang.Object
  extended by org.mbari.siam.operations.utils.GlobalstarPowerControl
All Implemented Interfaces:
gnu.io.SerialPortEventListener, java.util.EventListener

public class GlobalstarPowerControl
extends java.lang.Object
implements gnu.io.SerialPortEventListener

This class properly shuts down the Qualcomm 1620 (Globalstar) modem, per instructions in the Qualcomm users manual.


Field Summary
static int BAUD
           
static int MAX_WAIT_SEC
           
 
Constructor Summary
GlobalstarPowerControl(java.lang.String portName)
           
 
Method Summary
protected  void initializeSerialPort(java.lang.String portName, int baud)
          Initialize the serial port.
static void main(java.lang.String[] args)
           
protected  void powerDown()
          Initiate modem power-down
protected  void powerUp()
          Initiate modem power-up
protected  void printLineStatus()
          Print out serial line status
 void serialEvent(gnu.io.SerialPortEvent event)
          Propagate serial port event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BAUD

public static final int BAUD
See Also:
Constant Field Values

MAX_WAIT_SEC

public static final int MAX_WAIT_SEC
See Also:
Constant Field Values
Constructor Detail

GlobalstarPowerControl

public GlobalstarPowerControl(java.lang.String portName)
                       throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

powerDown

protected void powerDown()
                  throws java.lang.Exception
Initiate modem power-down

Throws:
java.lang.Exception

powerUp

protected void powerUp()
                throws java.lang.Exception
Initiate modem power-up

Throws:
java.lang.Exception

initializeSerialPort

protected void initializeSerialPort(java.lang.String portName,
                                    int baud)
                             throws java.lang.Exception
Initialize the serial port.

Throws:
java.lang.Exception

serialEvent

public void serialEvent(gnu.io.SerialPortEvent event)
Propagate serial port event

Specified by:
serialEvent in interface gnu.io.SerialPortEventListener

printLineStatus

protected void printLineStatus()
Print out serial line status


main

public static void main(java.lang.String[] args)


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.