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

    problems with service_data field on advertisement packets

    Scheduled Pinned Locked Moved WiPy 2&3
    wipy3.0wipy
    2 Posts 2 Posters 605 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.
    • F Offline
      fbt
      last edited by fbt

      Hi, i'm trying to set the "service_data" on the advertisement packets from my Wipy device, and i am having some troubles. when i try to set the service_data field to this value, everything is fine:

      adv_data2 = bytes([0xFF, 0xCB, 0x11,0x39,0x01,0x25, 0x11, 0x16, 0x47, 0x14, 0x00, 0x04, 0x09, 0x06, 0x16, 0x44, 0x00])
      bluetooth.set_advertisement(name=none, service_data=adv_data2)
      

      but when i expand the adv_data2 array wwith an additional byte, the service_data field does not appear on the advertisement packets. i suppose the problem is related to reach the max number of bytes for a ble packet, but when i check the info contained on the advertisement packets, i saw that the fields "TXPower Level" and "Slave Conection Interval" are included by default, so thet reduce the max bytes available for, i.e. service_data field. it is possible to configure the wipy not to send those fields?
      i would appreciate any help.
      thanks

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @fbt
        last edited by

        Hi @fbt said in problems with service_data field on advertisement packets:

        it is possible to configure the wipy not to send those fields?

        Sorry, this is not yet possible.

        1 Reply Last reply Reply Quote 0

        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