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

    WIPY OEM antenna EXT or INT?

    Scheduled Pinned Locked Moved Discussion
    wipyoemwifiantenna
    6 Posts 2 Posters 784 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.
    • T Offline
      thibault
      last edited by

      Hello, i'm using a wipy oem, i'm in face of a problem. The wipy have a thread who act as a webserver, and sometimes (i have actually not find the condition) the wifi signal is lost between html page switch. I search a solution, and it's why i ask you about the antenna of wipy oem. In the source code i use this:
      antenna=WLAN.INT_ANT but if i use WLAN.EXT_ANT i have no difference. But what's the right parameter please? EXT or INT? Thank's

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @thibault
        last edited by

        @thibault There is a bug in the code in that selecting the antenna port does not work for newer modules like WiPy3, LoPy4, FiPy, ...
        As a work-around, set P12 as output before changing the antenna, like:

        from machine import Pin
        p12 = Pin("P12", Pin.OUT)
        

        Since the antenna select more or less only switches P12, you can then (using the code above) do that also with p12(0) for internal, and p12(1) for external antenna.

        1 Reply Last reply Reply Quote 0
        • T Offline
          thibault
          last edited by

          Thank's robert-hh, i have try to use this configuration:

          from machine import Pin
          p12 = Pin("P12", Pin.OUT)
          p(12)=1
          wlan.init(mode=WLAN.AP, ssid='Test', auth=None, channel=7, antenna=WLAN.EXT_ANT)
          

          and

          from machine import Pin
          p12 = Pin("P12", Pin.OUT)
          p(12)=0
          wlan.init(mode=WLAN.AP, ssid='Test', auth=None, channel=7, antenna=WLAN.INT_ANT)
          

          But i have also the same wifi strength signal. I use the OEM wipy, wich have an internal antenna?

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @thibault
            last edited by robert-hh

            @thibault The W01 WiPy OEM module has no built-in antenna at all. You have always to attach your own antenna, and in that case the antenna selection does not apply.

            T 1 Reply Last reply Reply Quote 1
            • T Offline
              thibault @robert-hh
              last edited by

              @robert-hh i have use my own antenna, but i have to be sure that i use the right call to the wifi:
              wlan.init(mode=WLAN.AP, ssid='Test', auth=None, channel=7, antenna=WLAN.EXT_ANT) or wlan.init(mode=WLAN.AP, ssid='Test', auth=None, channel=7, antenna=WLAN.INT_ANT)? With you answer i think the twice is fine, but i don't want to make a misconfiguration :) Thank's

              robert-hhR 1 Reply Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @thibault
                last edited by

                @thibault The antenna selection does not matter at all, because the W01 has just one antenna port which will used in any case.

                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