Avatar for user158442

user158442

Member since Jun 2024 • Last active Jun 2024
  • 1 conversations
  • 3 comments

Most recent activity

  • in Bangle.js
    Avatar for user158442

    Actually one other thing, where is the code for how the BLE connection is negotiated? I've been having a hell of a time getting nRF53 to play nice making successful connections while nRF52 "just worked" for me with the examples that came with it. There's some issue with connection intervals that I cannot solve even with the same settings between dev kits so I've been trying to find more reference material.

  • in Bangle.js
    Avatar for user158442

    Thanks, understood, I will adapt to make the most of the 128. I found that note in that code about IOS compatibility issues on the packet size as well so noted.

  • in Bangle.js
    Avatar for user158442

    Hi I'm benchmarking sensors and bluetooth throughputs on the BangleJS 2 right now, also working on a free multithreaded driver system that will unlock native android and IOS support on top of browsers in js, with the help of the Capacitor build library for mobile apps.

    Anyway I'm wondering why Bluetooth.write on the Bangle 2 device schedules in 128 byte chunks? Or at least that's what I am receiving on my end. I'm trying to simply pack 250 byte buffers which is more typical for eking out nRF52 performance. I tested my own nRF52 hardware in the same web streaming context and it was fine pumping the maximum packet size limit at 1M or 2M PHY into my browser system as browser and native mobile can do up to 512 MTU at either bluetooth 4 or 5 speeds (of course only 20 MTU on android web BLE but it's trash). Is there a simple function like setMTU in the espruino code that can change the packet size limiting on the Bluetooth.write call? I've had to dig pretty deep into the sources already for a number of other things but am not finding this one.

    I'll release a dummy app afterward to demonstrate the stack I have as it's pretty nice and minimal for cross platform dev. I'm doing a bunch of medical sensing related work so the Bangle 2 is a convenient placeholder/benchmark for a bunch of projects, keep up the good work.

Actions