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

    LoRa Node with Gateway using LoPy

    Scheduled Pinned Locked Moved LoPy
    lopyloranetworkgateway
    4 Posts 2 Posters 2.0k 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.
    • nkaN Offline
      nka
      last edited by nka

      Hello there,

      I'm pretty new here and I don't know MicroPython. I've read a lot of topics, but I'm still a little confused so I guess I'll ask here and hope you'll be able to tell me if what I need to do is doable. (I'm also French (Canada), so forgive my English.)

      (If you don't want the details, see tl;dr below)

      I'm currently looking to build a network of sensor into our Manufacture Plant.

      I want to :

      • Have temp sensor, so I can track change (each hour?) and get alert (as soon as it happen!) if needed.
      • Have some IO to read data (example, voltage of something) or do action (trigger another PLC IO or relay to do an action).

      I can't use WiFi, since some place don't have any and at some others place, there's a lot of interferences where we want to place the module (plus, they are mostly big metal box), so it's a bit unreliable.

      So I was thinking of using LoRa, with as many nodes as I need and some gateway (those gateway will have WiFi or Direct Wired LAN) where needed so all nodes have atleast one gateway to reach. The gateway will send alert if needed (SMS?) and push the data to a SQL server for datalogging or whatever I'll define when I'll be at this point ! :)

      tl;dr:

      So the question is:

      With LoPy, can I have many LoPy node communicating with a "near him" gateway (LoPy or RPi?) both way so I can read data from the node, get alert or push them into a database and also ask him to trigger some action on IO when needed ?

      Thanks a lot! :D

      edit:
      I found this : https://forum.pycom.io/topic/526/lopy-nano-gateway-extended-timeout-and-retry , I'm getting part of the answer there! :)

      Sebastien Plante (nka)

      1 Reply Last reply Reply Quote 0
      • nkaN Offline
        nka
        last edited by

        Got an idea... don't know if it make sens with MicroPython.

        alt text

        All the node (Firewire Logo in the image) will communicate the information and receive information from the LoRa Gateway (WiFi Modem in the image), those will resend that information using MQTT to a MQTT Broker. This MQTT Broken will then be able to process the information and do datalogging or else. If I have request to do, I will send them to the MQTT Broken, the MQTT Broker will broadcast the information the all of the gateway registered... and (there's the part where I'm not sure how it's working) should it it to the LoPy node that need to do this action.

        Sound good ?

        How many node can I have per Gateway ?

        Sebastien Plante (nka)

        L 1 Reply Last reply Reply Quote 0
        • L Offline
          livius @nka
          last edited by livius

          @nka
          I suppose that this is quite typical use.
          But i do this with wifi and can not answer how many nodes. But better test this self.
          Especially question is how often one node communicate with gateway.

          think about people first, then computers

          nkaN 1 Reply Last reply Reply Quote 0
          • nkaN Offline
            nka @livius
            last edited by

            @livius Node should talk about each hour (or maybe less, but I don't think I'll go lower than 10 minutes) do to a keep alive and update informations or "right away" if there's a trigger trigged (alarm).

            I'm pretty sure the hardware can do it, I was less sure about the MicroPython (I saw there was some limitation if we compare to the Python3).

            I'll order some for testing I guess ! :)

            Sebastien Plante (nka)

            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