org.openaltimeter
Class Altimeter

java.lang.Object
  extended by org.openaltimeter.Altimeter

public class Altimeter
extends java.lang.Object


Nested Class Summary
 class Altimeter.DownloadTimeoutException
           
 class Altimeter.NotAnOpenaltimeterException
           
 
Field Summary
 java.lang.String firmwareVersion
           
static int FLASH_MEMORY_SIZE
           
 int loggingPeriod
           
 Settings settings
           
 
Constructor Summary
Altimeter()
           
 
Method Summary
 java.lang.String connect(java.lang.String comPortName, int baudRate)
           
 void disconnect()
           
 FlightLog downloadData()
           
 java.lang.String erase()
           
 java.lang.String getFileInfo()
           
 void readSettings()
           
 void reset()
           
 void upload(java.lang.String dataToUpload)
           
 void wipeSettings()
           
 void writeSettings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLASH_MEMORY_SIZE

public static final int FLASH_MEMORY_SIZE
See Also:
Constant Field Values

settings

public Settings settings

firmwareVersion

public java.lang.String firmwareVersion

loggingPeriod

public int loggingPeriod
Constructor Detail

Altimeter

public Altimeter()
Method Detail

connect

public java.lang.String connect(java.lang.String comPortName,
                                int baudRate)
                         throws NoSuchPortException,
                                PortInUseException,
                                UnsupportedCommOperationException,
                                java.io.IOException,
                                Altimeter.NotAnOpenaltimeterException,
                                java.util.TooManyListenersException
Throws:
NoSuchPortException
PortInUseException
UnsupportedCommOperationException
java.io.IOException
Altimeter.NotAnOpenaltimeterException
java.util.TooManyListenersException

getFileInfo

public java.lang.String getFileInfo()
                             throws java.io.IOException
Throws:
java.io.IOException

disconnect

public void disconnect()

reset

public void reset()

downloadData

public FlightLog downloadData()
                       throws java.io.IOException,
                              Altimeter.DownloadTimeoutException
Throws:
java.io.IOException
Altimeter.DownloadTimeoutException

erase

public java.lang.String erase()
                       throws java.io.IOException
Throws:
java.io.IOException

readSettings

public void readSettings()
                  throws java.io.IOException
Throws:
java.io.IOException

writeSettings

public void writeSettings()
                   throws java.io.IOException
Throws:
java.io.IOException

wipeSettings

public void wipeSettings()
                  throws java.io.IOException
Throws:
java.io.IOException

upload

public void upload(java.lang.String dataToUpload)
            throws java.io.IOException
Throws:
java.io.IOException