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

Using nRF UART 2.0.. how does this app send info?

Hello, I'm using the nrf UART 2.0 app with nrf51822 and I'm wondering how a line of characters is sent using this app. For example if I write 'abcdefg' does the BLE receive it at once or one by one? or does this depend on how the Bluetooth is programmed?

Parents
  • The UART service uses a buffer of characters

    When you do a write from your app, if you send 7 characters the nRF51 will get an event to handle those 7 characters when they arrive (all together)

    If your app sends 1 character per Write, that's the way they will be received.

    Note, there is limit of 20 characters per write (this can be changed but its not easy to do or supported app BLE API's)

  • Sorry, I misunderstood your question, I though you were referring to the Application code in the nRF5 device.

    Your question asked if you can send characters one by or in a group, and both are possible, up to a group length of 20 characters.

    But whether a IPhone or Amdroid app sends the characters individually or in a group depends on the App.

    E.g RedbearLab have an app which sends characters in a group, but I think the Nordic examples send characters individually.

Reply
  • Sorry, I misunderstood your question, I though you were referring to the Application code in the nRF5 device.

    Your question asked if you can send characters one by or in a group, and both are possible, up to a group length of 20 characters.

    But whether a IPhone or Amdroid app sends the characters individually or in a group depends on the App.

    E.g RedbearLab have an app which sends characters in a group, but I think the Nordic examples send characters individually.

Children
No Data
Related