Code Monkey home page Code Monkey logo

Comments (2)

dhalbert avatar dhalbert commented on August 15, 2024

Confirmed this is an issue. Tested iOS app version 3.7.0 on iOS 17.2.1 with https://github.com/adafruit/Adafruit_CircuitPython_BLE/blob/main/examples/ble_uart_echo_test.py on a Feather nRF52840 running CircuitPython 8.2.9 and also CircuitPython 7.3.3.

from bluefruit_le_connect_v2.

antonio-openroad avatar antonio-openroad commented on August 15, 2024

There is no character limit in the app. If the message to be sent is longer than the MTU (Maximum Transfer Unit) negotiated during the BLE connection, the app will slip the text into multiple messages and send them sequentially.

I tested the iOS and macOS versions (3.7.0) and was able to send more than 20 characters.
I used a Bluefruit LE Friend connected to a computer and CoolTerm to check the data received by UART.

Screenshot 2024-02-20 at 19 17 09

So perhaps there could be a problem with the libraries used in CircuitPython?

Adding some more information, 20 bytes was the default MTU for BLE connections for many years. Modern devices usually negotiate a bigger MTU (around 512 bytes) but is not unusual for it to set it to 20 bytes.
So my guess is that the text is split in multiple messages, but the CircuitPython library is only processing the first one (which is 20 bytes long).

from bluefruit_le_connect_v2.

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.