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

    Bluetooth version of Lopy4

    Scheduled Pinned Locked Moved LoPy
    6 Posts 2 Posters 80 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.
    • Y Offline
      yongyuan wang
      last edited by

      Hi,
      I wonder what is the bluetooth version of Lopy4, v5.0 or v5.1? What is the coded type of Bluetooth signal in Bluetooth advertisement signal of Lopy4, uncoded or coded? 1E or 2E?
      Thanks

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @yongyuan wang
        last edited by

        @yongyuan-wang The underlying ESP32 stack is certified for 5.0.

        The ESP32 does not support 2M PHY, LE Long Range (=Coded PHY), and ADV Extensions.

        Note that per the spec, all standard advertisements can only be sent as 1 Mbit/s, uncoded, for backwards compatibility. Only extended advertisements would be able to use the other PHYs. But neither the extended advertisements nor the underlying PHYs are supported by the hardware.

        1 Reply Last reply Reply Quote 0
        • Y Offline
          yongyuan wang
          last edited by

          Thanks for your reply. I also want to know can this Lopy4 send data through the other 37 channels? I want to detect the preambles of the packets for the LE coded PHY.

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jcaron @yongyuan wang
            last edited by

            @yongyuan-wang it’s BLE compliant, so advertisements are sent in the advertisement channels and data on the other channels as prescribed by the spec. You cannot however select which channel it will transmit on, this is a decision if the BLE stack.

            Y 1 Reply Last reply Reply Quote 0
            • Y Offline
              yongyuan wang @jcaron
              last edited by

              @jcaron Thanks for your answer. Could you please have a look at my codes? At this stage, I am trying to keep the lopy4 sending advertisement every 10ms but there will be errors in line 8. At the same time, I do not know whether I am correct in using the advertise([Enable]) function described on the official website.

              from network import Bluetooth
              import time
              
              BT = Bluetooth()
              BT.set_advertisement()
              while (True)
                  BT.advertise([Enable])
                  time.sleep(0.01)
                  BT.advertise([Enable])
              
              J 1 Reply Last reply Reply Quote 0
              • J Offline
                jcaron @yongyuan wang
                last edited by

                @yongyuan-wang you don’t need to repeatedly call anything to advertise. Just call set_advertisement to set parameters then advertise to start advertising and the BLE stack will do all the work.

                Also enable is an optional parameter, you can leave it out or set it to True to advertise.

                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