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

    Pybytes not receiving LoRa data from fipy through TTN

    Scheduled Pinned Locked Moved Support & Troubleshooting
    ttn gatewayfipy lora ttnnano gatewaypybytes
    4 Posts 2 Posters 484 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.
    • T Offline
      tomstoffen
      last edited by tomstoffen

      Hi,
      I'm running into the same issue as this github issue, where I set up a Nano Gateway using a fipy (1.20.0.rc12), and another fipy with the latest stable Pybytes firmware (1.18.2.R6) - using the code from the visualise data example.

      I get data to pybytes through WiFi, but not with LoRa (using ABP). In TTN, I can see the data arriving from my device, but it never appears on the pybytes dashboard.

      Did I forget something, or am I doing something wrong?

      Thanks in advance,
      -Tom

      1 Reply Last reply Reply Quote 0
      • J Offline
        jirkakrepl
        last edited by jirkakrepl

        Hi Tom,

        we had a problem on our server and now it is resolved. LoRa data should now be visible in Pybytes.

        Then regarding LoRa nano gateway:

        In our office, for tests, we use Raspberry Pi and the older generation of this LoRa gateway. https://store.rakwireless.com/collections/lora-gateways-concentrators/products/rak2245-pi-hat

        If you use LoRa nano gateway you can use just one channel for sending LoRa messages.
        You will need to set the same channel on your node otherwise your device will be sending messages on random channels, so not every LoRa message will be received by your LoRa nano gateway.

        We don't officially support LoRa nano gateway in Pybytes library. So you will need to manually set the LoRa channels on your node to the same frequency as your LoRa nano gateway is using.
        https://github.com/pycom/pycom-libraries/blob/master/examples/lorawan-nano-gateway/abp_node.py#L32-L38

        I haven't tested setting those channels myself. But you might need to flash stable firmware and Pybytes library manually with Atom to have the full control over Pybytes library code https://docs.pycom.io/pybytes/connect/flash/ (as opposed to using the build in Pybytes library in Pybytes firmware)

        software developer @ Pycom

        Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io

        Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

        T 1 Reply Last reply Reply Quote 1
        • T Offline
          tomstoffen @jirkakrepl
          last edited by tomstoffen

          @jirkakrepl Thanks for the reply and sorry for the many questions - I'm quite new to LoRa stuff.

          I managed to get some data through, but then it stopped after I restarted my node.
          I tried playing around with the code on the node, changed some channels and such, but I couldn't get more data to Pybytes.
          With "channel", are we talking frequency, dr or maybe the combination of these? I see in the nano gateway config, "LORA_NODE_DR" is set to 5, while in my node it's set to minimum 0 and maximum 5. I played around with these, but it either didn't work or I got an error.
          Where do I find out which channel my gateway is using, and where do I set this channel in my node?

          Thanks,
          Tom

          Edit:
          My node sends data every 5 seconds, and after being on for a while (maybe 10 minutes) 5 messages got through over the course of 2 minutes - before my node decided to reboot itself. Is it sending data using random channels for every message, or does it chose a channel when it's initializing?

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jirkakrepl @tomstoffen
            last edited by jirkakrepl

            @tomstoffen I just briefly read your message. The first thing is TTN have their own fair use policy, so when sending a message every 5 seconds you will deplete your air time very soon. Depending on your payload size, you should be fine if you send a message every 15 minutes (that's what I've tested), maybe even every 5 minutes should be OK.

            from this page: https://www.thethingsnetwork.org/docs/lorawan/duty-cycle.html

            Finally, on The Things Network’s public community network, we have a Fair Access Policy that limits the uplink airtime to 30 seconds per day (24 hours) per node and the downlink messages to 10 messages per day (24 hours) per node. If you use a private network, these limits do not apply, but you still have to be compliant with the governmental and LoRaWAN limits.

            software developer @ Pycom

            Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io

            Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

            1 Reply Last reply Reply Quote 1

            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