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 as LoRaWAN Basestation?

    Scheduled Pinned Locked Moved LoPy
    57 Posts 14 Posters 37.4k Views 18 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.
    • bmarkusB Offline
      bmarkus @JF002
      last edited by

      @JF002 said in LoPy as LoRaWAN Basestation?:

      I'm a bit confused about LORA/LORAWAN. With the current state of the firmware, is it possible to create a "LORAWAN" gateway on one Lopy, and connect another Lopy in LORAWAN mode to it?

      I know that it won't be fully compliant with LORAWAN or TTN because of the single channel limitation, but I would like to do some tests, and I have no LORAWAN gateway in range...

      Thanks!

      A LoRaWAN GW is just a dumb device, network functions are provided by the network server. A GW without network server is useless.

      1 Reply Last reply Reply Quote 0
      • B Offline
        borjam @JF002
        last edited by

        @JF002 said in LoPy as LoRaWAN Basestation?:

        I'm a bit confused about LORA/LORAWAN. With the current state of the firmware, is it possible to create a "LORAWAN" gateway on one Lopy, and connect another Lopy in LORAWAN mode to it?

        I know that it won't be fully compliant with LORAWAN or TTN because of the single channel limitation, but I would like to do some tests, and I have no LORAWAN gateway in range...

        If it't not fully compliant, it's not a LoRaWAN gateway. Period. The limitation is not only the single channel reception (at least three channels are mandatory en Europe, see the regional parameters document from the LoRa Alliance). And a LoRaWAN gateway needs to receive several different spreading factors simultaneously.

        But it you just want to create a diy network you can use a Pycom device as a "gateway". It will be limited to a single frequency and a single SF.

        That's what the nano-gateway example shows.

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JF002 @borjam
          last edited by

          @borjam, bmarkus Thanks for these informations.

          Indeed, I want to create a DIY network, only for my devices, for experimentations and tests.
          But is it possible to connect a true LORAWAN device to this nano-gateway? I suppose I'll need to configure them so that they use the same channel/frequency/sf/whatever than my nano-gateway.
          Is is possible to create such a LORAWAN node with the Lopy?

          bmarkusB B 2 Replies Last reply Reply Quote 0
          • bmarkusB Offline
            bmarkus @JF002
            last edited by bmarkus

            @JF002 said in LoPy as LoRaWAN Basestation?:

            @borjam, bmarkus Thanks for these informations.

            Indeed, I want to create a DIY network, only for my devices, for experimentations and tests.
            But is it possible to connect a true LORAWAN device to this nano-gateway? I suppose I'll need to configure them so that they use the same channel/frequency/sf/whatever than my nano-gateway.
            Is is possible to create such a LORAWAN node with the Lopy?

            Read previous posts. It is not clear what do you want to reach. What are the "true LoraWAN devices": Probably you can hack. But than they are not true LoraWAN devices anymore.

            What is about the network server?

            Really, please forget LoPy or any other SX127x based devices as a LoRaWAN gateway.

            You can build fine networks with them, there are academic opensource projects using LoRa devices with a different networking protocol. Yes, it is possible, but need a different protocol stack.

            But please, do not call it LoRaWAN which is a standardized network architecture and protocol.

            1 Reply Last reply Reply Quote 0
            • B Offline
              borjam @JF002
              last edited by

              @JF002 said in LoPy as LoRaWAN Basestation?:

              @borjam, bmarkus Thanks for these informations.

              Indeed, I want to create a DIY network, only for my devices, for experimentations and tests.
              But is it possible to connect a true LORAWAN device to this nano-gateway? I suppose I'll need to configure them so that they use the same channel/frequency/sf/whatever than my nano-gateway.
              Is is possible to create such a LORAWAN node with the Lopy?

              There are no true or half true LoRaWAN (or even π % true) devices. There are LoRaWAN devices and non LoRaWAN devices.

              It is not possible to build a LoRaWAN gateway with a LoPy, period. It can't listen on multiple channels nor multiple SFs simultaneously. So, if you need a gateway for LoRaWAN devices it will certainly not work.

              If you want to build a network with raw LoRa devices (for example, LoRa cards available for the Raspberry Pi or Arduino and Lopy) it should work. It may take some experimentation due to documentation confusion. Actually I am going to do some tests with LoPy and a card for Raspberry and Arduino from "Dragino".

              As far as I know, LoRaWAN nodes are required to choose a frequency at random out of a minimum of three channels. Even if you set up three LoPys, one on each frequency, you would still need to listen to several different SFs. The kludge is not worth the effort.

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

                @borjam Ok, I understand, thank you!
                Here's what I would like to try : I have 2 Lopy boards. I've already managed to create a little program that is able to connect to a TTN gateway. This is then a LoRaWAN device.
                I would like to continue my experimentations on LoRaWAN and TTN, but I don't have any gateway in range at home, and I don't own one.
                Could it be possible to slightly modify the little "client" program I used to connect to TTN so that it connects to the other Lopy board, that would act like a nano-gateway (the client and the nano-gateway would still exchange LoRaWAN packets, except for the channel/frequency negociation).

                I know that a standard LoRaWAN device wouldn't be able to connect to my nano-gateway, but it could allow me to continue my experiments.

                If I understood correctly, I would have to force the device to use the same frequency, channel, sf than the nano-gateway, but I don't know if it's possible with the current firmware (or possible at all).

                Thanks!

                G 1 Reply Last reply Reply Quote 1
                • G Offline
                  gertjanvanhethof Pybytes Beta @JF002
                  last edited by

                  @JF002 I'm trying to implement this right now.
                  One LoPy acts as LoRaWAN node and connects to a second LoPy nano-gateway.
                  The LoPy nano-gateway isn't able to talk to the TTN API's yet: you need to implement http://www.grpc.io/ on the LoPy.
                  grpc have a Python library but I don't know yet if LoPy can run this.
                  I working on this and will try this during Christmas holiday.
                  An alternative is to implement grpc on an Raspberry Pi and use that for the TTN connectivity. So connecting the LoPy nano-gateway to RPi.

                  1 Reply Last reply Reply Quote 1
                  • J Offline
                    jellium @bmarkus
                    last edited by

                    Hi @bmarkus,
                    Do you feel like the LoPy is getting better as far as LoRa and LoRaWAN (single channel nano-gateway or endpoint) are concerned?
                    Thanks for your clarifications.

                    G 1 Reply Last reply Reply Quote 0
                    • G Offline
                      gertjanvanhethof Pybytes Beta @jellium
                      last edited by

                      @jellium I don't know what you mean. This topic is going about a nano-gateway connected to TTN and a LoRa node connected to the nano-gateway. So two LoPy dev boards.
                      Connection to a full LoRaWAN gateway (by the same LoRa node) is working fine. The problem occurs when using the nano-gateway.

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        jellium @gertjanvanhethof
                        last edited by

                        @gertjanvanhethof said in LoPy as LoRaWAN Basestation?:

                        @jellium I don't know what you mean. This topic is going about a nano-gateway connected to TTN and a LoRa node connected to the nano-gateway. So two LoPy dev boards.
                        Connection to a full LoRaWAN gateway (by the same LoRa node) is working fine. The problem occurs when using the nano-gateway.

                        I was reacting to a post from @bmarkus which was written 6 months ago:

                        @bmarkus said in LoPy as LoRaWAN Basestation?:

                        Actually LoPy is not a matured solution. Hope it will be but it will take 6 mionths or so if ever will get documentation and a working LoRaWAN stack as I see.

                        I just received a LoPy device which I am starting to play with, with updated firmware and software. Therefore I was wondering how the judgment of @bmarkus evolved taking into account the recent releases and evolutions of LoPy.

                        1 Reply Last reply Reply Quote 0
                        • bmarkusB Offline
                          bmarkus
                          last edited by

                          Please read previous mails. It is not possible to create a LoraWAN base station (gateway) using SX127x chips, so it is valid for for LoPy too. Nothing wrong with Lopy, it is just a device. If you are in doubt, read LoRaWAN Specification.

                          G 1 Reply Last reply Reply Quote 0
                          • G Offline
                            gertjanvanhethof Pybytes Beta @bmarkus
                            last edited by

                            @bmarkus Yes that is correct. Only a LoRa Nano-Gateway is possible. This is not compliant with LoRaWAN. But for development and without a full compliant gateway this is ok. So you can develop LoRa Nodes which connects to your own Nano-Gateway.

                            bmarkusB 1 Reply Last reply Reply Quote 0
                            • bmarkusB Offline
                              bmarkus @gertjanvanhethof
                              last edited by

                              @gertjanvanhethof said in LoPy as LoRaWAN Basestation?:

                              @bmarkus Yes that is correct. Only a LoRa Nano-Gateway is possible. This is not compliant with LoRaWAN. But for development and without a full compliant gateway this is ok. So you can develop LoRa Nodes which connects to your own Nano-Gateway.

                              It is OK, but the original subject of the topic is "LoPy as LoraWAN Basestation?" Using LoRa radio layer you can make great things with other protocols, see http://www.waziup.eu/ as an example building network with SX127x devices and gateways only. But not LoraWAN.

                              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
                              • 2
                              • 3
                              • 3 / 3
                              • First post
                                Last post

                              Pycom on Twitter

                              Pycom