public class FSApplication extends CommonApplication
Constructor and Description |
---|
FSApplication(PacketManager packetManager) |
Modifier and Type | Method and Description |
---|---|
CommandPacket |
abortLogging()
Aborts all logging process.
|
FileCountPacket |
appendFile()
Starts current logging process in append mode.
|
CommandPacket |
deleteConfigFile()
Deletes config file.
|
CommandPacket |
disableConfigLog()
Disables config log.
|
void |
downloadFile(java.lang.String filename,
java.io.File file)
Download specified file from the device.
|
void |
downloadFile(java.lang.String filename,
java.io.File file,
ProgressCallback progressCallback)
Download specified file from the device.
|
<any> |
downloadFileChunk(java.lang.String filename,
short retransmitType,
short pageRollOver,
short pageChunkNumber,
int pageNumber)
Download specified chunk, used for downloading missing packets.
|
CommandPacket |
enableConfigLog()
Enables config log.
|
CommandPacket |
format()
Format the entire file system.
|
FileCountPacket |
getFileCount()
Returns a packet containing number of file present on the device.
|
CommandPacket |
getStatus()
Returns current logging status.
|
FSStreamStatusPacket |
getStreamStatus(Stream stream)
Returns specified stream status information.
|
Stream[] |
getSupportedStreams()
List all supported streams for FS Application.
|
CommandPacket |
injectKeyValuePair(java.lang.String valueID)
Inject Key Value Pair into the log.
|
LSResponsePacket[] |
ls()
List all the files present on the device.
|
CommandPacket |
mount()
Mounts the File system.
|
CommandPacket |
startLogging()
Starts current logging process.
|
LoggingPacket |
stopLogging()
Stops current logging process.
|
StreamPacket |
subscribeStream(Stream stream)
Subscribe to the specified stream.
|
StreamPacket |
unsubscribeStream(Stream stream)
UnSubscribe to the specified stream.
|
VolumeInfoPacket |
volumeInfo()
Returns file system volume information.
|
CommandPacket[] |
writeConfigFile(java.io.File file)
Writes user config file to FS.
|
setTimeout
public int DOWNLOAD_EVENT
public int CRC_CHECK_EVENT
public int SEQUENCE_CHECK_EVENT
public int JOIN_FILE_EVENT
public Stream STREAM_BIA
public Stream STREAM_ECG
public Stream STREAM_EDA
public Stream STREAM_PPG
public Stream STREAM_SQI
public Stream STREAM_ADXL
public Stream STREAM_AD7156
public Stream STREAM_ADPD1
public Stream STREAM_ADPD2
public Stream STREAM_ADPD3
public Stream STREAM_ADPD4
public Stream STREAM_ADPD5
public Stream STREAM_ADPD6
public Stream STREAM_ADPD7
public Stream STREAM_ADPD8
public Stream STREAM_ADPD9
public Stream STREAM_ADPD10
public Stream STREAM_ADPD11
public Stream STREAM_ADPD12
public Stream STREAM_SYNC_PPG
public Stream STREAM_PEDOMETER
public Stream STREAM_TEMPERATURE1
public Stream STREAM_TEMPERATURE2
public Stream STREAM_TEMPERATURE3
public Stream STREAM_TEMPERATURE4
public Stream STREAM_TEMPERATURE5
public Stream STREAM_TEMPERATURE6
public Stream STREAM_TEMPERATURE7
public Stream STREAM_TEMPERATURE8
public Stream STREAM_TEMPERATURE9
public Stream STREAM_TEMPERATURE10
public Stream STREAM_TEMPERATURE11
public Stream STREAM_TEMPERATURE12
public Stream STREAM_STATIC_AGC
public Stream STREAM_DYNAMIC_AGC
public Stream STREAM_HRV
public Stream STREAM_BATTERY
public FSApplication(PacketManager packetManager)
public Stream[] getSupportedStreams()
public CommandPacket abortLogging()
public CommandPacket deleteConfigFile()
public CommandPacket disableConfigLog()
public CommandPacket[] writeConfigFile(java.io.File file) throws java.lang.Exception
file
- Binary file to write.java.lang.Exception
- File IO Exception.public LoggingPacket stopLogging()
public CommandPacket enableConfigLog()
public CommandPacket startLogging()
public FileCountPacket getFileCount()
public FileCountPacket appendFile()
public CommandPacket format()
public FSStreamStatusPacket getStreamStatus(Stream stream)
stream
- stream to obtain status information, use getSupportedStreams()
to list all supported streams.public CommandPacket injectKeyValuePair(java.lang.String valueID)
valueID
- Key Value pair to inject in log.public LSResponsePacket[] ls()
public CommandPacket mount()
public CommandPacket getStatus()
public void downloadFile(java.lang.String filename, java.io.File file, ProgressCallback progressCallback) throws java.lang.Exception
filename
- Filename from watch, use ls() to get the list of files to download.file
- Output file for the download File.progressCallback
- Progress callback.java.lang.Exception
public <any> downloadFileChunk(java.lang.String filename, short retransmitType, short pageRollOver, short pageChunkNumber, int pageNumber)
filename
- Filename from watch, use ls() to get the list of files to download.retransmitType
- Retransmit Type.pageRollOver
- Page Roll Over.pageChunkNumber
- Page Chunk Number.pageNumber
- Page Number.public void downloadFile(java.lang.String filename, java.io.File file) throws java.lang.Exception
filename
- Filename from watch, use ls() to get the list of files to download.file
- Output file for the download File.java.lang.Exception
public StreamPacket subscribeStream(Stream stream)
stream
- Stream to subscribe.public StreamPacket unsubscribeStream(Stream stream)
stream
- Stream to unsubscribe.public VolumeInfoPacket volumeInfo()