Bluetooth Low Energy based Firmware Over The Air with Mbed. Mbed part is a external processor of the IoT devices and communicate with a Bluetooth module. The Bluetooth module have to support BLE and implement BLE FOTA profile designed by ours. BLE FOTA profile specification is available from our GIT hub wiki(https://github.com/sevencore/BLEFOTA).
Dependencies: mbed
Fork of mbed_fota by
Bluetooth Low Energy based Firmware Over The Air with Mbed. Mbed part is a external processor of the IoT devices and communicate with a Bluetooth module. The Bluetooth module have to support BLE and implement BLE FOTA profile designed by ours. BLE FOTA profile specification is available from our GIT hub wiki.
Diff: ext_fota/BleMsgHandler.h
- Revision:
- 6:8dd20294b2aa
- Parent:
- 5:e11b23f9aacc
- Child:
- 8:9eec2c246a85
--- a/ext_fota/BleMsgHandler.h Mon Jul 13 06:32:05 2015 +0000 +++ b/ext_fota/BleMsgHandler.h Fri Jul 17 14:04:12 2015 +0000 @@ -8,7 +8,9 @@ #include "gapm_task.h" namespace sevencore_fota{ - + +#define FIRMWARE_DATA_FRAGMENT_SIZE 1024 + typedef struct { unsigned short bType; unsigned short bDstid; @@ -29,6 +31,8 @@ void BleMsgHandle(void); void HostPcPrint(char *str); void ReceiveToSerialTest(void); + void FirmwareDataReceive(unsigned short code_size, char *version); + private: @@ -40,6 +44,7 @@ SerialManager* SerialM; MsgQueue* MsgQ; unsigned char recv_msg[512]; + FILE *fp; }; }//namespace