Giter VIP home page Giter VIP logo

Comments (7)

philips77 avatar philips77 commented on August 16, 2024

In 1.2.0, what I would do, is to split data before calling writeCharacteristic and then call it multiple times. You may find an example in nRF Toolbox all in bleLib1 branch in UartManager.

from android-ble-library.

philips77 avatar philips77 commented on August 16, 2024

A link: https://github.com/NordicSemiconductor/Android-nRF-Toolbox/blob/ble_lib/1.x/app/src/main/java/no/nordicsemi/android/nrftoolbox/uart/UARTManager.java

from android-ble-library.

hyoungtaikkim avatar hyoungtaikkim commented on August 16, 2024

Thank you very much.

from android-ble-library.

hyoungtaikkim avatar hyoungtaikkim commented on August 16, 2024

Hi,

Sorry to keep bothering you. In our project, we only need for client (Android phone) to communicate with one type of server (device) through BLE. I have also verified that I can make the packet size larger through request_mtu(517) up to 514 (517 - 3) both for client (min sdk is Lollipop) and the server (device). So what do you think about enlarging the packet size up to 514 first and send/receive data. If the data size is bigger than 514, can I still chop it to many packets through queue? Does that sound reasonable with Android-BLE-Library 1.2.0 ? Or mtu should be only 23 (20 available) for chopping the data to many packets?

Thanks.

from android-ble-library.

philips77 avatar philips77 commented on August 16, 2024

Yes, you may use Android-BLE-Library 1.2.0. Longer MTU (higher than 23) is supported on Android since Android 5 Lollipop. Use the requestMtu method to request higher MTU. You should get a callback when MTU selected.

from android-ble-library.

philips77 avatar philips77 commented on August 16, 2024

Longer MTUs must also be supported by the other side. The callback will give you the MTU both side have agreed on.

from android-ble-library.

hyoungtaikkim avatar hyoungtaikkim commented on August 16, 2024

Thanks again. ;)

from android-ble-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.