|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgps.mvc.MtkController
public class MtkController
Controller for MTK based device (Transystem Type logger currently included). Refactoring ongoing.
Field Summary | |
---|---|
static int |
CMD_AUTOLOG_OFF
|
static int |
CMD_AUTOLOG_ON
|
static int |
CMD_CANCEL_GETLOG
Cancel downloading the log. |
static int |
CMD_COLDSTART
To perform a cold start on the device. |
static int |
CMD_EPO_CLEAR
Clear the EPO data. |
static int |
CMD_ERASE_LOG
Erase the log. |
static int |
CMD_FACTORYRESET
To perform a full cold start on the device. |
static int |
CMD_HOTSTART
To perform a hot start on the device. |
static int |
CMD_SET_DEVICE_NAME
Takes String value for the device name. |
static int |
CMD_SET_GPS_FIX_INTERVAL
Set the GPS fix interval (1Hz fix/5Hz fix/...). |
static int |
CMD_SET_LOG_DISTANCE_INTERVAL
Takes int value in 1 meters. |
static int |
CMD_SET_LOG_OVERWRITE
Sets overwrite or stop mode for the log. |
static int |
CMD_SET_LOG_SPEED_INTERVAL
Takes int value in 0.1 km/h. |
static int |
CMD_SET_LOG_TIME_INTERVAL
Takes int value in 0.1 seconds. |
static int |
CMD_SET_POWERSAVE_ENABLED
Enables internal power saving mode. |
static int |
CMD_SET_SBAS_ENABLED
Enables the use of the SBAS sats. |
static int |
CMD_SET_SBAS_TEST_ENABLED
Enables the use of the test SBAS sats. |
static int |
CMD_STARTLOG
Start logging on the device. |
static int |
CMD_STOP_WAITING_FOR_ERASE
Stop waiting for the erase to finish. |
static int |
CMD_STOPLOG
Stop logging on the device. |
static int |
CMD_WARMSTART
To perform a warm start on the device. |
Method Summary | |
---|---|
boolean |
cmd(int cmd)
Perform a command. |
boolean |
cmd(int cmd,
CmdParam param)
Perform a command. |
void |
getLog(BT747Path log)
|
void |
getLogInit(int startAddr,
int endAddr,
int requestStep,
BT747Path fileName,
boolean isSmart,
boolean disableLogging)
|
MtkModel |
getMtkModel()
|
boolean |
isSupportedCmd(int cmd)
Check if a command is supported. |
void |
logImmediate(int value)
|
void |
notifyDisconnected()
The environment indicates a disconnect happened. |
void |
notifyRun()
Called regularly so that the controller can notify the log download handler for instance. |
void |
recoveryEraseLog()
A 'recovery Erase' attempts to recover memory that was previously identified as 'bad'. |
void |
replyToOkToOverwrite(boolean isOkToOverwrite)
The GpsModel is waiting for a reply to the question if the currently existing log with different data can be overwritten. |
boolean |
reqData(int dataType)
Request specific data from the device. |
void |
sendMtkBin(MtkBinTransportMessageModel msg)
|
void |
setAgpsData(byte[] agpsData)
|
void |
setBinMode()
Sets the device to binary mode. |
void |
setBtMacAddr(java.lang.String btMacAddr)
Sets the current mac address for bluetooth (Holux 241 devices). |
void |
setDatumMode(int mode)
|
void |
setDGPSMode(int mode)
|
void |
setFlashUserOption(boolean lock,
int updateRate,
int baudRate,
int GLL_Period,
int RMC_Period,
int VTG_Period,
int GSA_Period,
int GSV_Period,
int GGA_Period,
int ZDA_Period,
int MCHN_Period)
|
void |
setLogFormat(int newLogFormat)
Set the logging format of the device. |
void |
setLogRequestAhead(int logRequestAhead)
|
void |
setNMEADefaultPeriods()
|
void |
setNmeaMode()
Set the device to Nmea mode. |
void |
setNMEAPeriods(int[] periods)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CMD_HOTSTART
public static final int CMD_WARMSTART
public static final int CMD_COLDSTART
public static final int CMD_FACTORYRESET
public static final int CMD_STARTLOG
public static final int CMD_STOPLOG
public static final int CMD_AUTOLOG_OFF
public static final int CMD_AUTOLOG_ON
public static final int CMD_SET_LOG_TIME_INTERVAL
public static final int CMD_SET_LOG_DISTANCE_INTERVAL
public static final int CMD_SET_LOG_SPEED_INTERVAL
public static final int CMD_SET_DEVICE_NAME
public static final int CMD_STOP_WAITING_FOR_ERASE
public static final int CMD_ERASE_LOG
public static final int CMD_SET_GPS_FIX_INTERVAL
public static final int CMD_SET_LOG_OVERWRITE
public static final int CMD_SET_SBAS_TEST_ENABLED
public static final int CMD_SET_SBAS_ENABLED
public static final int CMD_SET_POWERSAVE_ENABLED
public static final int CMD_CANCEL_GETLOG
public static final int CMD_EPO_CLEAR
Method Detail |
---|
public final MtkModel getMtkModel()
public final void sendMtkBin(MtkBinTransportMessageModel msg)
public final void setBinMode()
public final void setNmeaMode()
public final void setLogFormat(int newLogFormat)
newLogFormat
- The format to set.public boolean cmd(int cmd)
cmd
- Command identification.
public boolean reqData(int dataType)
public void setAgpsData(byte[] agpsData)
public boolean isSupportedCmd(int cmd)
cmd
- Command identification.
public boolean cmd(int cmd, CmdParam param)
cmd
- Command identification.
public final void setDGPSMode(int mode)
public final void setDatumMode(int mode)
public final void setBtMacAddr(java.lang.String btMacAddr)
btMacAddr
- The Mac address to set in the following format:public final void setNMEAPeriods(int[] periods)
public final void setNMEADefaultPeriods()
public final void setFlashUserOption(boolean lock, int updateRate, int baudRate, int GLL_Period, int RMC_Period, int VTG_Period, int GSA_Period, int GSV_Period, int GGA_Period, int ZDA_Period, int MCHN_Period)
public final void logImmediate(int value)
public final void setLogRequestAhead(int logRequestAhead)
public final void recoveryEraseLog()
public final void replyToOkToOverwrite(boolean isOkToOverwrite) throws BT747Exception
isOkToOverwrite
- If true, the existing log can be overwritten
BT747Exception
public final void getLogInit(int startAddr, int endAddr, int requestStep, BT747Path fileName, boolean isSmart, boolean disableLogging)
public void notifyRun() throws BT747Exception
BT747Exception
public void notifyDisconnected()
public void getLog(BT747Path log)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |