This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android: Multiple write command in a single connection interval

Hello!

I am working with nRF51822 Development Kit and Nexus7(Android4.4.3). I would like to try a multiple write command in a single connection interval, but can't confirm it. A single write command in a single connection interval is OK. Is it possible to send a multiple write command on Android?

Your assistance in this matter is greatly appreciated.

Parents
  • Hi

    You should be able to send 4 packets per connection interval.

    In your Android program, have you selected to send write command, and not write request? Take a look at the Android section in this blog post in order to get a hint how to make Android send write command.

    When you write to the writeCharacteristic command you need to wait for a callback before calling writeCharacteristic again. The callback will indicate that your data has been buffered in the Android BLE stack and the stack is ready to receive additional data. You should be able to see an implementation of this in the nrf UART v2.0 example provided here.

Reply
  • Hi

    You should be able to send 4 packets per connection interval.

    In your Android program, have you selected to send write command, and not write request? Take a look at the Android section in this blog post in order to get a hint how to make Android send write command.

    When you write to the writeCharacteristic command you need to wait for a callback before calling writeCharacteristic again. The callback will indicate that your data has been buffered in the Android BLE stack and the stack is ready to receive additional data. You should be able to see an implementation of this in the nrf UART v2.0 example provided here.

Children
No Data
Related