Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    BLE notify callback problems with multiple calls in short time

    Scheduled Pinned Locked Moved Issues & Bugs
    2 Posts 2 Posters 38 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      herr.frei
      last edited by

      Hi,

      I opened an issu in github regarding my problem reading a BLE battery management system. Here you send a command (to the TX characteristic) and get a notification (on the RX characteristic) when new data are available. The incoming data are splitted into two parts, so I get two callback calls. But - and this is my assumption - the data are overwritten in the char_obj in modbt.c, function gattc_events_handler() before the callback is executed.

      So I always get the same data (the second part of the message), but never the first. Anyone experienced the same and has an idea what I can do?

      Btw., here is the github issue link: Issue 449

      Best regards,
      Herr Frei

      1 Reply Last reply Reply Quote 0
      • P Offline
        panda
        last edited by

        Having the exact same issue. Multiple notifications with <10ms intervals will cause the same value to be presented in the call backs. :(

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom