Part Number: CC2642R
Other Parts Discussed in Thread: SYSCONFIG
Hi,
Sorry for the inconvenience, but, I have a problem that I spending days solving. It's two, but the second one I think it's a problem on the Android Application side.
First Problem: Data Throughput
I have a communication protocol implemented on a device, that has the FOTA. The firmware is downloaded over Bluetooth and stored in flash memory.
So, the average speed of the download is around 330 Bytes/second. I know, I have a protocol implemented, encryption, a flash writing time, and a response time (because the communication is synced by a OK, the next block is only sent when an OK is returned). But, I have measured in ms the time of the reception of the packet and it's around 60ms, and each block has a length of 160 bytes (firmware data) and 201 bytes (for all data with a header, etc).
And I have tested a bunch of configurations on connection parameters, that which the speed is more influenced.
The script that uploads the firmware, looks at the speed
Look, below, I will post the code on the simple peripheral for send and receive. The application script on the Windows, is fast, when the response reaches, the next packet was fastly ended. But, the timing between the next packet, measured on the microcontroller, is 300-400ms.
Receive data from the Application.
Transmit data to the Application.
So, I can't think that the problem is here, but, let's go to the sysconfig configuration;
So, about this is that I can't figure out, so, if you can give me documentation, a road, or some tips to find to improve this communication speed.
Second Problem: BLE connection from App
When I try to connect from the app to the device, 25% of the connections failed :( but I think it's a problem with the Android Application and the advertising interval of the device.
But, it's that, if anyone can help, I will be very happy.