Home > Mobile >  [for] Android bluetooth transmission cannot receive less than 20 bytes of data
[for] Android bluetooth transmission cannot receive less than 20 bytes of data

Time:02-05

Android mobile phone to receive less than bluetooth transmission of less than 20 bytes of data, but will be accumulated into 20 bytes will callback,
Use library is: com. CLJ. Fastble: FastBleLib: 2.3.4
With the notify method, the callback in onCharacteristicChanged
It's strange!
For example: equipment sent 22 bytes, onCharacteristicChanged will only receive 20 bytes, wait until the next device to resend 22 bytes, onCharacteristicChanged are 20 bytes (before the rest of the two bytes + the second instruction before 18 bytes)
With serial assistants have been tested, if less than 20 bytes of data, send onCharacteristicChanged will not receive the data, such as the next on the sending instructions, and before the instruction length up to 20 bytes, onCharacteristicChanged receives the data, is someone encountered such a problem?
  • Related