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

    Test ping/pong

    Scheduled Pinned Locked Moved LoPy
    4 Posts 2 Posters 1.9k 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.
    • C Offline
      cswiger
      last edited by cswiger

      Had some fun with a ping/pong test - use one LoPy on an expansion board via usb, serial in and start up this server code: (sorry, not enough points to upload a file :)

      0_1478567054349_server.py.jpg

      Then the other LoPy connected to notebook with wifi, on a breadboard w/ a single Lion cell - telnet in and enter this client code

      0_1478567292169_client.py.jpg

      Then you can carry the battery LoPy or the notebook around and see what kind of distances you can get in your neighborhood. Idea from radiohead rf95 client/server example.

      The full instantiation line is (US frequency):
      lora = LoRa(mode=LoRa.LORA,frequency=913100000,tx_power=14,bandwidth=LoRa.BW_125KHZ,sf=10,preamble=8, coding_rate=LoRa.CODING_4_5,power_mode=LoRa.ALWAYS_ON, tx_iq=False, rx_iq=False, adr=False, public=True, tx_retries=1)

      K 1 Reply Last reply Reply Quote 3
      • K Offline
        KDHeard @cswiger
        last edited by

        @cswiger said in Test ping/pong:

        LoPy

        Thanks for sharing! Did you try a distance test at all?

        Kind regards

        Kevin Heard - Founder
        DLI Systems
        www.dli.systems| Do - Learn - Improve

        1 Reply Last reply Reply Quote 0
        • C Offline
          cswiger
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • C Offline
            cswiger
            last edited by

            No long distance tests yet. Played with some parameters and found these max working distance settings work around the house:

            tx_power=20 (US 915 band)
            bandwidth=LoRa.BW_125KHZ
            sf=12
            coding_rate=LoRa.CODING_4_8

            Changing BWto LoRa.BW_125KHZ results in faster data rate and in theory lower receiver sensitivity.

            Just found another great write up of LoRa modulation at https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5038744/

            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