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 KIM HyoengJun

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.

Revision:
3:1e70387e1337
Parent:
2:dba344c91bce
Child:
5:e11b23f9aacc
--- a/ext_fota/SerialManager.cpp	Mon Jun 22 09:43:13 2015 +0000
+++ b/ext_fota/SerialManager.cpp	Tue Jun 23 06:32:40 2015 +0000
@@ -100,7 +100,7 @@
                 break;
             case 2:
                 if(print_flag == 1)
-                    hostpc->printf("R-%02X ",tmp);
+                    hostpc->printf("R+%02X ",tmp);
                 wDataLength += tmp;
                 if( wDataLength > MAX_PACKET_LENGTH )
                     bReceiveState = 0;
@@ -113,17 +113,17 @@
                 break;
             case 3:
                 if( print_flag == 1 )
-                    hostpc->printf("R-%02X ",tmp);
+                    hostpc->printf("R=%02X ",tmp);
                 wDataLength += (unsigned short) (tmp*256);
                 if( wDataLength > MAX_PACKET_LENGTH )
                 {
                     if( print_flag == 1 )
-                        hostpc->printf("\n[Receiver] Over SIZE: %d ", wDataLength);
+                        hostpc->printf("\n[Receiver] Over SIZE: %d \n", wDataLength);
                     bReceiveState = 0;
                 }else if (wDataLength == 0)
                 {
                     if( print_flag == 1 )
-                        hostpc->printf("\n[Receiver] Zero SIZE: %d ", wDataLength);
+                        hostpc->printf("\n[Receiver] Zero SIZE: %d \n", wDataLength);
                     memcpy(receive_msg,bReceiveElementArr,wReceivePos);
                     ret = wReceivePos;
                     bReceiveState = 0;
@@ -136,7 +136,7 @@
                 break;
             case 4:
                 if( print_flag == 1 )
-                    hostpc->printf("R-%02X ",tmp);
+                    hostpc->printf("R~%02X ",tmp);
                 bReceiveElementArr[wReceivePos] = tmp;
                 wReceivePos++;
                 // 9 = 1(first byte = FE_MSG_PACKET_TYPE) + 2(type) +2(dstid) +2(srcid) +2(length size)
@@ -146,7 +146,7 @@
                     ret = wReceivePos;
                     bReceiveState = 0;
                     if( print_flag == 1 )
-                        hostpc->printf("\n[Receiver] Rcv Data SIZE: %d ", wDataLength);
+                        hostpc->printf("\n[Receiver] Rcv Data SIZE: %d \n", wDataLength);
                 }
                 break;
             default: