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

    Lopy over Lopy by Lora

    Scheduled Pinned Locked Moved LoPy
    7 Posts 2 Posters 214 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.
    • W Offline
      Wolli01
      last edited by

      I am trying to connect Lopy over Lopy by Lora using the example.
      https://docs.pycom.io/tutorials/lora/lora-mac/
      But this also only works at a very small distance, i.e. only when they are next to each other. If I walk 1 meter away from it, it won't work anymore. Both have a connected antenna.
      Software Pycom MicroPython 1.18.3 [v1.8.6-849-e0915e1]
      on 2019-10-06; LoPy4 with ESP32
      Does anyone know what could be the cause?

      Translated with www.DeepL.com/Translator (free version)

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

        @Wolli01 I have more the opposite problem, that at short distance the signal levels are too high. So when doing that, I uses a 50 Ohm termination resistor instead of an antenna. The stray radiation from the board & the pigtail cable is still strong enough for lab desk testing. If you have LoPy4, check that you use the right antenna plug. They are different for 433 and 868/915 MHz.
        You problem may have another cause: I found the Lopy-Lopy sample code not very reliable. And you have to take care to give both devices a fresh power-up start. Soft reboot does not initialize the Lora modem properly.

        W 1 Reply Last reply Reply Quote 0
        • W Offline
          Wolli01 @robert-hh
          last edited by

          @robert-hh
          In a normal Lorawan via a gateway, the two Lopy4s work perfectly. How long can the transmission text be?
          What is 64 for with s.recv(64)

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

            @Wolli01 receive up to 64 bytes.

            1 Reply Last reply Reply Quote 0
            • W Offline
              Wolli01
              last edited by

              I have now taken a brand new Lopy4, but the problem is always the same. On a short distance it works but from 1 meter on no more data comes.
              Is there a Lopy to Lopy code that works in any case?
              Do you actually not have to enter an identification?
              What is another Lopy from any other Lopy comes into play then I receive unintentionally also its data or?

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

                @Wolli01 What I am missing in the example you pointed at is to set the frequency. The sample scripts I use set it specifically, like:

                lora = LoRa(mode=LoRa.LORA, frequency=868000000, region=LoRa.EU868)
                

                If two devices do not work at the same channel, there may still be some spurious reception on an adjacent channel.

                1 Reply Last reply Reply Quote 0
                • W Offline
                  Wolli01
                  last edited by

                  Found the error, I had chosen the wrong antenna site. Now it works.
                  Thanks for the food for thought.

                  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