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

    Radbeacons not scanned by BLE

    Scheduled Pinned Locked Moved LoPy
    ble radbeacon
    4 Posts 2 Posters 1.1k 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.
    • mmbermudezaM Offline
      mmbermudeza
      last edited by

      Hi there, Im trying to do ble scanner with the lopy and altough i get a lot of responses it is not seing my radbeacons.

      I have researched in forums and it appear to be a common problem between esp32 and this particular beacon, and someone obtained some good outcomes with this code:

      static esp_ble_scan_params_t ble_scan_params = {
      .scan_type = BLE_SCAN_TYPE_PASSIVE,
      .own_addr_type = ESP_PUBLIC_ADDR,
      .scan_filter_policy = BLE_SCAN_FILTER_ALLOW_ALL,
      .scan_interval = 10000,
      .scan_window = 10000
      };

      But i have no idea of how to test it as I'm not programming the esp directly

      Does anyone have a solution for this??

      https://github.com/espressif/esp-idf/issues/421

      Thanks :)

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

        @mmbermudeza
        You'll need to build your own customised Pycom firmware from the sources at https://github.com/pycom/pycom-micropython-sigfox

        Replace the parameters in esp32/mods/modbt.c with those, build the firmware from source and flash to your device

        Someone else also had problems with these same beacons recently, might be helpful to follow that thread at https://forum.pycom.io/topic/1173/no-python-prompt-after-downgrading-firmware/2 for some help in compiling the source

        1 Reply Last reply Reply Quote 0
        • mmbermudezaM Offline
          mmbermudeza
          last edited by

          Hi @jmarcelino Thanks for answering so quickly.

          I don't really have experience with the esp, can you be more especific about which sources do I need (only the ble ones or all of the esp?), as they are in C I should have and IDE? and what about the compiler, lastly: How do I program the device? I supose is not with serial but Jtag maybe?.

          Thanks in advance for your help :)

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

            @mmbermudeza
            You'll need to build the entire Pycom image and for that you need the full ESP-IDF too but it doesn't take very long to build. You don't need any IDEs, just the free compilers.

            Start with the instructions at https://github.com/pycom/pycom-micropython-sigfox#the-esp32-version to setup your build environment but before the make.... flash step move to these instructions instead: https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/README.md

            I gave some build tips on the other thread so so may be worth a quick read if you get stuck https://forum.pycom.io/topic/1173/no-python-prompt-after-downgrading-firmware/2 thread where

            Programming is simply over the serial port, just like a firmware upgrade

            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