net.sf.bt747.test
Class IBlue747Model

java.lang.Object
  extended by net.sf.bt747.test.IBlue747Model

public class IBlue747Model
extends java.lang.Object

Implement a model of the BT747 (to run on PC).

Author:
Mario De Weerd

Nested Class Summary
static class IBlue747Model.DeviceMode
          Possible communication modes the device is in.
static class IBlue747Model.MtkDataModel
           
 
Field Summary
 GPSrxtx gpsRxTx
           
 IBlue747Model.MtkDataModel mtkData
           
 
Constructor Summary
IBlue747Model()
           
 
Method Summary
 int analyseNMEA(java.lang.String[] p_nmea)
           
static void main(java.lang.String[] args)
          This class's main in case it is run independently.
 void onStart()
          Main entry code of class.
 int replyLogNmea(java.lang.String[] p_nmea)
          Respond to log specific functionality (PMTK182).
 void replyMTK_Ack(java.lang.String[] p_nmea)
           
 void replyMTK_Log_Ack(java.lang.String[] p_nmea)
           
 void sendPacket(java.lang.String p)
           
 void setDeviceMode(IBlue747Model.DeviceMode mode)
          Set the communication mode of the device.
static void setGpsPort(GPSPort port)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gpsRxTx

public GPSrxtx gpsRxTx

mtkData

public final IBlue747Model.MtkDataModel mtkData
Constructor Detail

IBlue747Model

public IBlue747Model()
Method Detail

setGpsPort

public static final void setGpsPort(GPSPort port)

onStart

public void onStart()
             throws java.io.FileNotFoundException,
                    java.io.IOException
Main entry code of class. Should be called after instantiation.

Throws:
java.io.IOException
java.io.FileNotFoundException

setDeviceMode

public final void setDeviceMode(IBlue747Model.DeviceMode mode)
Set the communication mode of the device. The device can communicate in NMEA mode or MTKBIN mode.

Parameters:
mode -

replyMTK_Ack

public void replyMTK_Ack(java.lang.String[] p_nmea)

replyMTK_Log_Ack

public void replyMTK_Log_Ack(java.lang.String[] p_nmea)

replyLogNmea

public int replyLogNmea(java.lang.String[] p_nmea)
Respond to log specific functionality (PMTK182).

Parameters:
p_nmea -
Returns:
0 if all went ok.

analyseNMEA

public int analyseNMEA(java.lang.String[] p_nmea)

sendPacket

public final void sendPacket(java.lang.String p)

main

public static void main(java.lang.String[] args)
This class's main in case it is run independently.

Parameters:
args -