MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups

    BT and WiFi Dual Core simultaneous operation using ESP32?

    ESP32
    2
    4
    1381
    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.
    • kowshik1729
      kowshik1729 last edited by salmanfaris

      Hey guys,

      I recently learned that ESP32 has Tensilica dual-core processor. So I'm just wondering whether I can run Bluetooth on one core and WiFi on other core. Is this possible?

      1 Reply Last reply Reply Quote 1
      • salmanfaris
        salmanfaris last edited by salmanfaris

        Hi @kowshik1729, That was an interesting question. it can be done, but since the wifi and Bluetooth shares one radio and only one antenna, switching back and forth between wifi and Bluetooth same time while receiving packets will be difficult and cause some packet loss, but it can be done.

        But instead of doing that, you can schedule two task's and switch between the task will only occupy wifi or Bluetooth. (Just a suggestion)

        There is a special option called “Software controls WiFi/ Bluetooth coexistence” it can control the ESP32's Bluetooth and Wi-Fi coexistence using software, more details: https://www.espressif.com/sites/default/files/documentation/ESP32_FAQs__EN.pdf

        d6523210-a40e-44e0-a2f7-48fcbcdfed1f-image.png

        Source: https://www.espressif.com/sites/default/files/documentation/ESP32_FAQs__EN.pdf

        1 Reply Last reply Reply Quote 1
        • kowshik1729
          kowshik1729 last edited by

          @salmanfaris Thanks for the detailed explanation. I would like to add that, while the ESP32 switches from BLE to Wi-Fi so fast, the power consumed will also be very high, and also there is a high risk of having losing data. Hence one has to use an RF High-speed switch like this https://www.digikey.in/short/zf3dzc and have two antennas to switch between the Bluetooth and Wi-Fi. This is the best solution I've got, let me know if you find any.

          salmanfaris 1 Reply Last reply Reply Quote 1
          • salmanfaris
            salmanfaris @kowshik1729 last edited by

            @kowshik1729 If you are using an external high-speed switch, there is only one one clock generator for both wifi and BLE and the high-speed switch you mentioned is Ultra-Wideband (UWB) 3–8 GHz from its datasheet

            b2da6871-9110-40f1-8ff0-d8313547a17a-image.png

            you also check this solution that I shared in the previous post.

            @salmanfaris said in BT and WiFi Dual Core simultaneous operation using ESP32?:

            There is a special option called “Software controls WiFi/ Bluetooth coexistence” it can control the ESP32's Bluetooth and Wi-Fi coexistence using software, more details: https://www.espressif.com/sites/default/files/documentation/ESP32_FAQs__EN.pdf

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Recent Posts

            • @kowshik1729 said in Error downloading package:

              The license of the https://dl.espressif.com/dl/package_esp32_index.json might be expired(If this is the reason you can't do anything but just wait until they re-activate the license)

              e210e762-5609-4f60-9409-3c5df1123744-image.png If the page liecence

              It's good.

              • read more
            • @abdultechguy999 usually https://dl.espressif.com/dl/package_esp32_index.json this works while installing through boards manager. But I faced the same issue some times. it might be due to a couple of reasons.

              Bad Internet connectivity

              The license of the https://dl.espressif.com/dl/package_esp32_index.json might be expired(If this is the reason you can't do anything but just wait until they re-activate the license)

              I remember there is a way to install the board files offline by downloading from some github repos.

              All the best.

              • read more
            • @abdultechguy999 It looks like Arduino IDE having trouble to connect internet, can you try to download any other board from the board manager or library from the library manager!

              • read more
            • A

              @salmanfaris I tried three types which I all found on the net

              https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

              https://dl.espressif.com/dl/package_esp32_index.json

              All I keep getting is an error message
              'Error downloading [the link]'

              • read more
            • @abdultechguy999 Can you share the Board URL you using? it might be the wrong board URL!

              • read more
            By MakerGram | A XiStart Initiative | Built with ♥ NodeBB
            Copyright © 2021 MakerGram, All rights reserved.
            Privacy Policy | Terms & Conditions | Disclaimer | Code of Conduct