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

    Pygate, gpy and LoRa Failures

    Scheduled Pinned Locked Moved Getting Started
    3 Posts 2 Posters 36 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.
    • N Offline
      netskink
      last edited by

      So we bought two more pycom devices. This time a pygate and a gpy.

      The plan was to have an out of the box lora to wifi gateway which talks to ttn.

      As is, it would relay messages from lora nodes to ttn using wifi. However, messages from ttn to the pygate and then to a lora connected node seldom worked. Perhaps 90% of the time ttn would send to the pygate and the pygate never sent it to the lora device a few steps away.

      As a result, I thought perhaps I should update the firmware. After updating firmware, lora is non existent. So what did I do?

      Update pygate firmware

      1. remove the usb connection. ie. unplug the device/expansion board.
      2. remove the gpy development module from the pygate expansion board.
      3. hold button to left of plastic connector
      4. reconnect the pygate expansion board
      5. wait 1 second
      6. release button
      7. run lsusb until the pygate microchip device is shown
      8. Run the firmware update tool as sudo dfu-util -VD pygate_v13_1049665.dfu

      This seemed to work and did not raise an error.

      Update gpy firmware

      1. Disconnect gpy. (Remove USB cable connecting gpy from laptop)
      2. Re-insert the gpy module in the pygate expansion board
      3. Flash the gpy with the pygate firmware?
        pycom-fwtool-cli -p /dev/ttyACM0 flash -t GPy-1.20.3.b3.tar.gz

      This also seemed to work and did not raise an error.

      I re-uploaded the pgate sample for ttn which I had working previously. It fails in a different way now. It seems that lora is not enabled.

      In a console for the device, from network import LoRa fails. You can import network and then if you type network. and hit tab it will expand to show wifi and lte, but not LoRa as components of network library.

      Any advice?

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

        @netskink did LoRa exist in the firmware before the upgrade? I don’t have a Pygate but it is my understanding that the LoRa object is for the client side, not the gateway side, and it’s not available on a Pygate anyway.

        The example code does not use the LoRa object at all (the one in the tutorial anyway).

        N 1 Reply Last reply Reply Quote 1
        • N Offline
          netskink @jcaron
          last edited by

          @jcaron Yes, I believe that is the problem. Well, the problem is my reading comphrension level. The page which links to the second page above lands the reader at the wifi part. i scrolled up to the part on Network.LoRa. I believe that by scrolling up to top of page its showing how you setup an end device. My bad. My mistake.

          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