in Education by
I wait for onCharacteristicChanged() callbacks to receive data via BLE. But if the BluetoothDevice sends too many packets of 20 bytes at once I get at most 10 notifications instead of the expected 46 for a 907 byte long message. Smaller amounts of data are notified just fine. In onServicesDiscovered(BluetoothGatt gatt, int status) I register for notifications via: public void onServicesDiscovered(BluetoothGatt gatt, int status) { if (status == BluetoothGatt.GATT_SUCCESS) { mService = mGatt.getService(SERVICE_UUID); mCharacteristic = mService.getCharacteristic(CHARACTERISTIC_UUID); mGatt.setCharacteristicNotification(characteristic, enabled); BluetoothGattDescriptor descriptor = characteristic.getDescriptor(UUID.fromString(CLIENT_CHARACTERISTIC_CONFIG)); descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE); mGatt.writeDescriptor(descriptor); } } Do I have to acknowledge somehow that I got the data in onCharacteristicChanged()? The BluetoothDevice is sending messages that are bigger than 20 bytes by splitting them up into 20 byte chunks. Usually those messages are smaller than 200 bytes. But when the BluetoothDevice sends messages that are over 900 bytes long, the app only gets notifications via onCharacteristicChanged() for 200 of those bytes. These bigger messages are received just fine on iOS. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The BLE stack is is currently kind of broken there is a known bug regarding too many packets and reading multiple characteristics. According to the slide s from the keynote the BT stack will be greatly improved in the L release (including slave AND central mode)

Related questions

0 votes
    It can be a software program or a hardware device that filters all data packets coming through the internet, a ... . it is known as the_______: Antivirus Firewall Cookies Malware...
asked Mar 4, 2021 in Technology by JackTerrance
0 votes
    I don't need so many pins , they are crowding the area. I used the output of kml parser to draw ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Aug 1, 2022 in Education by JackTerrance
0 votes
    What is the problem Here ? I got an error shows ValueError: too many values to unpack This code ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    In a script where I create many figures with fix, ax = plt.subplots(...), I get the warning ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 13, 2022 in Education by JackTerrance
0 votes
    Let's say I have a JSON set of events, each with a start time and end time, and I need to ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 17, 2022 in Education by JackTerrance
0 votes
    _______________________ is gained if you send especially skilled packets to a target machine. (a) Active fingerprinting (b ... questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 4, 2021 in Education by JackTerrance
0 votes
    what is the syllabus of cbse class 10 Foundation of IT board exam ? Are some chapters left or are all chapters coming ? Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    Why shouldn't JavaScript functions not be too long? (a) User friendliness (b) Tie up event loops ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 21, 2021 in Education by JackTerrance
0 votes
    The steam engine requires a _____, where water is turned into steam. Be sure this part does not build too much pressure!! griller boiler steamer evaporator...
asked May 9, 2021 in General by JackTerrance
0 votes
    Choose the correct alternative and complete the following statements. ____________ is an example of a Coming Together' ... India, UK, Portugal) Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    I've got a Debian Etch system running Exim4-daemon-heavy. The system is open to the internet, but ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 20, 2022 in Education by JackTerrance
0 votes
    what is a program or hardware device that filters the info coming through internet connection into your private ... computer system Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    There is a clock which shows false timing ie it shows 20 minutes less for each 1 hour. If the clock shows 12 noon now how ... ) 36 minutes B) 48 minutes C) 35 minutes D) 60 minutes...
asked Feb 14, 2021 in Education by JackTerrance
0 votes
    ___________ is an attack technique where numerous SYN packets are spoofed with a bogus source address which is then sent ... questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 3, 2021 in Education by JackTerrance
...