I written android app using bluetooth's RFCOMM. I am sending 1 MB data to android app via same RFCOMM UUID.
I noticed that 1 L2CAP packet data has missed in my app. See below information for more details.
My android mobile bluetooth supporting maximum RFCOMM payload is 990 bytes, So the remote device is sending each L2CAP packet with payload of 990 bytes. Whenever I am sending data of 1K from remote device it has been divided into 2 L2CAP packets of 990 and 34 bytes each.
After receiving data in my android app, I checked each 1K data, there I noticed 1 L2CAP packet i.e., 990 bytes has been skipped in android.
I checked all data sending from remote device using analyzers. It is perfectly sending 1 MB data without any fail.
But In my android app only, I am not able to receive. This is not problem with my app, because I used Bluetooth Chat example code here.
I tested this several times, the 990 bytes of data lost is not at same index in 1MB data each time I run the test.
I tested this with 3 mobiles of android 2.2, 2.3.3 and 2.3.6 versions each mobile facinf same problem
But I am not getting any exceptions while receiving data from RFCOMM socket's InputStream also.
If anybody faced and solved my problem please help me.