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

    Is my Lopy 4 LoRa radio working fine?

    Scheduled Pinned Locked Moved LoPy
    11 Posts 4 Posters 61 Views 4 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.
    • R Offline
      rpalma
      last edited by

      Hello all,

      Please can you tell me if there is a way to check if the LoRa radio is transmitting without a spectrum analyzer?

      My Lopy was working fine, now can't join TTN. I've re-flashed, use the sample code for TTN, but "not joined yet" is the only phrase I can read. A dragino node is working fine, transmitting to my upstairs gateway.

      Thank you,

      Ricardo.

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

        @rpalma The signal is too weak to be picked up by simple tools. You need something like a SDR or oscilloscope. Suitable USB SDR receiver are available for 20-30 €. So it's worth a purchase, as well as a simple saleae logic analyzer clone for about 10 €.

        1 Reply Last reply Reply Quote 0
        • R Offline
          rpalma
          last edited by

          @robert-hh Thank you for your advice. Fortunately I have easy access (when I'm not WFH) to a R&S FSH3 and next time I have to go to office, I will bring it.

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

            @rpalma I found an easy way with simple stuff to test, whether RF is coming from the antenna. based on good-ol detector radio, it only requires a small signal diode and a headset. Plase the diode (e.g. 1n4148 (si) or better 1N5711, BAT41 (schottky) or the like next to the antenna and connect the headset to the leads of the diode. Then you will hear a click every time the RF is switched on and off. If you connect an oscilloscope, you'll see a pulse.
            P.S.: In my tests, the LoPy4's do not send any more after soft reset. They always need a physical reset to start. Even power cycles are not always sufficient to reset the LoRa radio. The lora.reset() method is empty at best, since the reset line of the SX1276 is not connected to a GPIO pin. In the standard build it causes a crash, since it executes a call to address 0. And there is no way to reset the radio by writing to a register.

            detector_radio.jpg

            R 1 Reply Last reply Reply Quote 3
            • R Offline
              rpalma @robert-hh
              last edited by rpalma

              @robert-hh hello, thank you for your setup, you gave me a great help. I used a signal diode 1n4148 and it worked, so in another node I can listen a clear electric noise and that doesn't happen on Lopy4. So I guess I'll have to find an LoRa node alternative and use this 3 years old Lopy as an expensive MQTT node via WiFi/BLE.

              Thank you.

              robert-hhR J 2 Replies Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @rpalma
                last edited by

                @rpalma DId you properly reset the LoPy4 before using. Just powering might not be sufficient. And did you disable PyBytes?

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

                  @rpalma Just to be sure, you connected your antenna to the correct connector? It's easy to mix up the 3 antenna connectors...

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    g0hww
                    last edited by g0hww

                    Is that antenna a LoRa antenna or a Wifi antenna? I ask, as I have 3 antennas sitting around that I have marked as LoRa with a silver sharpie, and they don't look like that.

                    signal-2021-04-10-222752.jpeg

                    The unconnected antenna in this picture is what I believe to be a Pycom LoRa antenna (hence the markings.) The short antenna connected to that LoPy4 unit is what I believe to be a 2.4GHz Wifi antenna.

                    I am using bigger magmount antennas for LoRa, hence why I have 3 of those marked antennas sitting around here.

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

                      @g0hww The wavelength (WL) of LoRa at ~900MHz is 33cm. Hence, WL/2 is ~16.5cm, WL/4 is ~8 cm. For WiFi an 2.4GHz WL=12.5cm, WL/2 ~ 6 cm and WL/4 ~ 3cm.
                      Simple antennas are either of type WL/2 or WL/4, where WL/2 is more forgiving in use. Depending on the internal structure of the antenna, a WL/2 or WL/4 antenna can be shorter than the free air wave length.
                      The Pycom Antenna is a somewhat shortened WL/2 antenna with an active length of ~15cm. The short antenna could be a WL/4 Lora antenna or a WL/2 WiFi model. Hard to say without opening it.

                      G 1 Reply Last reply Reply Quote 2
                      • G Offline
                        g0hww @robert-hh
                        last edited by

                        @robert-hh
                        Understood. My user name is my ham radio callsign, so I do understand this stuff. I also know that without the right test equipment, it is quite difficult to ascertain what frequencies specific antennas are resonant at, which is why I marked my Pycom LoRa antennas. You would not believe how many antennas I have. I hadn't actually spotted that the antenna in the OP's picture was not in fact the same Wifi antenna in my picture above, so I now guess that it was not sourced from Pycom.

                        The reason for my above post is principally that I recently spotted, in a blog post by one of my friends, that he had been using a Pycom LoRa antenna for Wifi on his LoPy4 and thought that I might be on a roll. Perhaps not though.

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

                          @g0hww See this thread about the Pycom antenna.
                          https://forum.pycom.io/topic/3275/doubt-about-the-lora-antenna-kit/6?_=1618328593273
                          I had also made a reflection test once of the Pycom antennas I had, and they had their optimum beyond about 1000 MHz.

                          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