OTA application loses incoming packets
Hi.
Based on the OTA example, I created an application. The only difference is the use of MTU = 256.
The length of the characteristic is equal to MTU android pixel (126)
The problem is that when sending firmware from a custom application to an Android Pixel, all packages very rarely arrive. A lot is lost.
At the same time, when testing on Android Nexus 7, all packages come.
At first, I decided that a Pixel transmits data faster than a Nexus and reduced the transmission speed by delay. Only a delay of 100ms between the transfer of packets allowed to receive all packets.
But at the Nexus, packets are transmitted approximately every 20ms and everything comes.
Then I limited the length of the characteristic to 20 bytes and nothing changed, when transferring from a Pixel, data is lost.
The next step, on the chip side, I removed the code that writes to the flash and bingo!, with a characteristic length of 126, without using the delay, all the data comes.
Question to the respected community and STM engineers: why can this be? Will you throw any other ideas?
Regards,
Vyacheslav.