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 to Lopy example is not working...or incomplete by design?

    Scheduled Pinned Locked Moved LoPy
    5 Posts 3 Posters 284 Views 3 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.
    • securigyS Offline
      securigy
      last edited by

      So after having PySense + LoPy4 connected to TTN via real gateway (TTIG) I decided to try making PySense+LopY4 to talk to PyTrack+LoPy4. I looked at the example code LoPy to Lopy and it looked that there is nothing easier than that...

      I do all this with VS Code + PyMakr and connecting to each node from different laptop via corresponding COM ports...
      In VS Code I opened a folder on each laptop for LoPy A and LoPy B and changed the frequency and added the correct region for the U.S.:
      lora = LoRa(mode=LoRa.LORA, frequency=903900000, region=LoRa.US915)

      I ran the code on each laptop - but nothing happens...should I add a single channel? If yes, why the examples come without it? Anything else I am missing?

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

        There is no print in the example code - so no obvious check if Node A is receiving any data. Add a print('Pong') below s.send('Pong').

        securigyS 1 Reply Last reply Reply Quote 0
        • securigyS Offline
          securigy @Gruger
          last edited by

          @Gruger I realize that there are no "print" statements. My point/question was whether anybody knows if this sample works at all - may be with some changes that were not mentioned?

          securigyS 1 Reply Last reply Reply Quote 0
          • securigyS Offline
            securigy @securigy
            last edited by

            @securigy Never mind. With a little bit of digging it works. Example explanations and comments? What for?..

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

              @securigy Sometimes They work, sometimes not. my experience with Lora: Always start tests from a fresh power-up.

              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