OTAFirmwareUpdate
Public Member Functions | List of all members
com.hobby.smart.bluetoothcomm.BltManager Class Reference
Inheritance diagram for com.hobby.smart.bluetoothcomm.BltManager:
Inheritance graph
[legend]
Collaboration diagram for com.hobby.smart.bluetoothcomm.BltManager:
Collaboration graph
[legend]

Public Member Functions

 BltManager ()
 
 BltManager (Context cnt)
 
void enableBluetooth ()
 
void openBluetooth (BluetoothDevice device) throws IOException
 
void closeBluetooth ()
 
void listenForData ()
 
void sendData (byte data)
 
ArrayAdapter< BluetoothDevice > getmAdapter ()
 
ArrayAdapter< String > getmAdapterList ()
 
BluetoothAdapter getmBluetoothAdapter ()
 
- Public Member Functions inherited from com.hobby.smart.bluetoothcomm.SystemStates
void runStateMachine (int currentState)
 
void resetBinaryFileData ()
 
void sendHeader () throws IOException
 
void sendBinary () throws IOException
 
void setOutputStream (OutputStream mmOutStream)
 
void sendData (int data)
 
- Public Member Functions inherited from com.hobby.smart.bluetoothcomm.ReadHexFile
void readHex (String path) throws IOException
 
void setStartEndPICFlashAddress (long strt, long end)
 
int getFileStartIndex ()
 
int getFileEndIndex ()
 
long getStartAddress ()
 
int getTotalNumberOfPackets ()
 
void craeteBinData ()
 
byte [] getFileData ()
 

Additional Inherited Members

- Static Public Attributes inherited from com.hobby.smart.bluetoothcomm.SystemStates
static final int SYS_CONFIG_CMND = 0x01
 
static final int SYS_SEND_FIRMWARE_HEADER = 0x02
 
static final int SYS_FIRMWARE_HEADER_POS_ACK = 0x03
 
static final int SYS_FIRMWARE_HEADER_NEG_ACK = 0x04
 
static final int SYS_SEND_CHUNK = 0x05
 
static final int SYS_ADDRESS_RANGE_RCV = 0x06
 
static final int SYS_ADDRESS_RANGE_RQT = 0x07
 

Detailed Description

Created by Mallikarjun Tirlapur on 20-06-2016. BltManager class inherits the properties of class SystemStates. The class establishes the bluetooth communication link. CExchanges command with the PIC

Constructor & Destructor Documentation

◆ BltManager() [1/2]

com.hobby.smart.bluetoothcomm.BltManager.BltManager ( )

default empty constructor

◆ BltManager() [2/2]

com.hobby.smart.bluetoothcomm.BltManager.BltManager ( Context  cnt)

Constructor initializes all the instances decalred in the class

Member Function Documentation

◆ closeBluetooth()

void com.hobby.smart.bluetoothcomm.BltManager.closeBluetooth ( )

Function closes the Bluettoth port and cuts the link

Here is the caller graph for this function:

◆ enableBluetooth()

void com.hobby.smart.bluetoothcomm.BltManager.enableBluetooth ( )

Function enables the Bluettoth

Here is the caller graph for this function:

◆ listenForData()

void com.hobby.smart.bluetoothcomm.BltManager.listenForData ( )

Function defines the thread which listens data from the PIC

Here is the call graph for this function:
Here is the caller graph for this function:

◆ openBluetooth()

void com.hobby.smart.bluetoothcomm.BltManager.openBluetooth ( BluetoothDevice  device) throws IOException

Function Opens the Bluettoth port and establishes communication link

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendData()

void com.hobby.smart.bluetoothcomm.BltManager.sendData ( byte  data)

Function is called to send the data to PIC

Parameters
datadata tobe sent out to PIC
Here is the caller graph for this function:

The documentation for this class was generated from the following file: