I have developed OTA for my stm32 controller. The UART1 Tx, Rx pins are connected to the Tx, Rx pins of DA14531 MOD. I have made all the hardware connections good. Now i have connected to the BLE module through Smart Console android application which is available in the play store. I have initiated the Binary mode by sending AT+BINREQACK command. After turning on to binary mode i have selected a hex file to flash to my controller ( The BLE should receive the data in hex file over air and it should transmit to STM32 through UART pins.)
I have set chunk size to 30, time interval of 1second and baud rate of 57600bps on the Smart console application.
While seeing the received data from BLE to STM32, I have noticed two things as below.1) The received data is in ASCII format.2) The BLE is sending 6 to 12 bytes (sometimes STM32 receiving 6 and sometimes 12 bytes.
3) Receiving of same data for 2 times (eg: receiving of same 6 byte data even it is not present in hex file)I have verified the internal logic which i have written for receiving and verifying packets, by sending data through real term application( its working efficiently).I request you to say a application which send the hex file as hex values. If not then please help me to overcome the repeating of same data and receiving of data where the chunk is 6 to 12 bytes.My file size is around 250KB and i made the my own format (Header, LOP, TOP, data, checksum) and prepared as chunks, where each chunk size is 30 bytes.