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/SerialManager.h
- Revision:
- 9:fcf91f563147
- Parent:
- 6:8dd20294b2aa
diff -r 9eec2c246a85 -r fcf91f563147 ext_fota/SerialManager.h --- a/ext_fota/SerialManager.h Thu Aug 20 05:16:55 2015 +0000 +++ b/ext_fota/SerialManager.h Mon Aug 24 02:29:16 2015 +0000 @@ -1,22 +1,78 @@ +/** + * @file SerialManager.h + * @brief Serial Communication Management + * Copyright 2015 SEVENCORE Co., Ltd. + * + * @author HyeongJun Kim + * @version 1.0.0 + * @date 2015-08-19 +*/ #ifndef SERIALMANAGER_H #define SERIALMANAGER_H #include "mbed.h" - +/** + **************************************************************************************** + * @addtogroup ext_fota module + * @brief Serial Manager Class Header. + * + * @{ + **************************************************************************************** + */ namespace sevencore_fota{ class SerialManager { public: + /** + **************************************************************************************** + * @brief Serial Manager constructor only connected Device + **************************************************************************************** + */ SerialManager(Serial *_device); + /** + **************************************************************************************** + * @brief Serial Manager constructor with connected Device & HostPC + **************************************************************************************** + */ SerialManager(Serial *_device,Serial *_hostpc); + /** + **************************************************************************************** + * @brief Serial Manager destructor + **************************************************************************************** + */ ~SerialManager(void); + /** + **************************************************************************************** + * @brief Send ble message to serial port + **************************************************************************************** + */ int SendToSerial(uint8_t *data,unsigned short size); + /** + **************************************************************************************** + * @brief Receive ble message from serial port + **************************************************************************************** + */ int ReceiveToSerial(unsigned char *receive_msg); - void ReceiveToSerialTest(void); + /** + **************************************************************************************** + * @brief Receive data for size + **************************************************************************************** + */ void DataReceive(uint8_t *databuf, unsigned short size); - + /** + **************************************************************************************** + * @brief Receive data test function + **************************************************************************************** + */ + void ReceiveToSerialTest(void); + private: + /** + **************************************************************************************** + * @brief Serial Manager Start title print function. + **************************************************************************************** + */ void PrintSerialManager(void); bool print_flag; @@ -34,4 +90,5 @@ }//namespace +/// @} ext_fota module #endif//SERIALMANAGER_H