|
OTAFirmwareUpdate
|


Public Member Functions | |
| 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 () |
Created by Mallikarjun Tirlapur on 30-06-2016. SystemStates class inherits the properties of class ReadHexFile. The class handles various state of the system. Based on the command received from the PIC, Class responds with a command.
| void com.hobby.smart.bluetoothcomm.SystemStates.resetBinaryFileData | ( | ) |
Function initializes the variables filestartindex, fileEndIndex, binLength, fileData, fileStartAddress


| void com.hobby.smart.bluetoothcomm.SystemStates.runStateMachine | ( | int | currentState | ) |
Function executes different states of the system
| currentState | state to be executed |


| void com.hobby.smart.bluetoothcomm.SystemStates.sendBinary | ( | ) | throws IOException |
Function sends the binary data out in a packet, each of size 64 bytes


| void com.hobby.smart.bluetoothcomm.SystemStates.sendData | ( | int | data | ) |
Function sends out the data byte
| data | data to be sent |

| void com.hobby.smart.bluetoothcomm.SystemStates.sendHeader | ( | ) | throws IOException |
Function sends out the firmware header o the PIC


| void com.hobby.smart.bluetoothcomm.SystemStates.setOutputStream | ( | OutputStream | mmOutStream | ) |
Function initializes an instance of OutputStream
| mmOutStream | instance of OutputStream |

1.8.13