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.
    • B Offline
      beyonlo @daniel
      last edited by

      Hello.

      Yes, it s possible, but as being a nano-gateway the LoPy can only listen on 1 channel at a time, so there are some constraints.

      What means "can only listen on 1 channel at the time"? and what are the "constraints"?

      Thank you.

      B 2 Replies Last reply Reply Quote 0
      • B Offline
        beyonlo @beyonlo
        last edited by

        @beyonlo
        Anyone?

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

          @beyonlo said in LoPy as LoRaWAN Basestation?:

          Hello.

          Yes, it s possible, but as being a nano-gateway the LoPy can only listen on 1 channel at a time, so there are some constraints.

          What means "can only listen on 1 channel at the time"? and what are the "constraints"?

          Thank you.

          Anyone?

          1 Reply Last reply Reply Quote 0
          • R Offline
            remcohn
            last edited by

            *) it will not be able to function as a gateway for TheThingsNetwork
            *) you need a fair amount of software to handle the tasks that TTN normally does for you (OTAA registration etc)
            *) it will be able to handle less nodes as it only has 1 frequency instead of 8

            and may be some other things i missed :)

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              beyonlo @remcohn
              last edited by

              @remcohn said in LoPy as LoRaWAN Basestation?:

              *) it will not be able to function as a gateway for TheThingsNetwork
              *) you need a fair amount of software to handle the tasks that TTN normally does for you (OTAA registration etc)
              *) it will be able to handle less nodes as it only has 1 frequency instead of 8

              and may be some other things i missed :)

              But my main reason to get the LoPy is just to be a gateway - a gateway for TheThingsNetwork. Apart client mode, my intention with LoPy is a full LoRa gateway. I would like to construct a large, very large LoRa network to offer the LoRa network service for all, in many cities and states, and after in all the country. I'm so sad. :(

              alt text

              "
              And what if you could build your own LoRa network?
              Here is the clever part, you can use the module to switch a comms signal from WiFi to LoRa (and vice versa) thus making the LoPy both a LoRa Receiver / Transmitter and a Nano gateway capable of handling comms with up to 100 other LoRa nodes!
              "

              1 Reply Last reply Reply Quote 0
              • K Offline
                KDHeard @daniel
                last edited by

                @daniel said in LoPy as LoRaWAN Basestation?:

                We first want to sort out all the issues around basic LoRaWAN and the firmware updates

                Hey Daniel - could you share the timeline for when the API will be ready for the nano-gateway?

                Kind regards
                Kevin

                Kind regards

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

                1 Reply Last reply Reply Quote 1
                • B Offline
                  bioagbob
                  last edited by

                  @daniel Same question here. What's the time frame for nano-gateway documentation?
                  Roberto posted some demo code, but that's far from complete. Does Pycom plan to support the 100-node, 22km nano gateway featured in the KS?
                  Thanks!

                  B 1 Reply Last reply Reply Quote 1
                  • B Offline
                    beyonlo @bioagbob
                    last edited by

                    @bioagbob said in LoPy as LoRaWAN Basestation?:

                    @daniel Same question here. What's the time frame for nano-gateway documentation?
                    Roberto posted some demo code, but that's far from complete. Does Pycom plan to support the 100-node, 22km nano gateway featured in the KS?
                    Thanks!

                    I'm insterest too to do a very large network using LoRa (in this case LoPy), as gateway and client. So, I need to know if LoPy can be works as a complete LoRa gateway for others LoPy (as clients) and if are there some restriction. And, how many LoPy clients one LoPy gateway support.

                    Thanks.

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

                      @beyonlo said in LoPy as LoRaWAN Basestation?:

                      I'm insterest too to do a very large network using LoRa (in this case LoPy), as gateway and client. So, I need to know if LoPy can be works as a complete LoRa gateway for others LoPy (as clients) and if are there some restriction. And, how many LoPy clients one LoPy gateway support.

                      Thanks.

                      If you want to deploy a very large LoRa network, use LoRaWAN compatible gateways equipped with SX130x chips. You can get an indoor GW for cca. 200 EUR. LoPy is not soutable for LoRaWAN compatible GW.

                      Also for end devices LoPy in its current state doesn't work. Use a proven, certified module using e.g. RN2483 or similar.

                      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.

                      B J 2 Replies Last reply Reply Quote 0
                      • B Offline
                        borjam @beyonlo
                        last edited by

                        @beyonlo said in LoPy as LoRaWAN Basestation?:

                        I'm insterest too to do a very large network using LoRa (in this case LoPy), as gateway and client. So, I need to know if LoPy can be works as a complete LoRa gateway for others LoPy (as clients) and if are there some restriction. And, how many LoPy clients one LoPy gateway support.

                        The problem is: LoRaWAN uses several channels and different coding rates which, crudely said, trade speed for range.

                        LoRaWAN nodes, when transmitting, must chose a channel at random (there are several of them). This makes it easier for different users to share the spectrum.

                        So, in order to build a real LoRaWAN gateway you need a receiver capable of listening to several channels simultaneously and decoding several coding schemes rather than being fixed on one.

                        The LoRa subsystem you need to to this is far more complex than the "node" oriented chip present in the LoPy (and other LoRa devices) which is configured for one channel and one coding rate. That's the reason why LoRaWAN gateways are much more expensive than end nodes with an average price of around 500 euro.

                        That said, you can still do LoRa, which means using the interesting transmission methods employed in LoRaWAN, but just not the whole protocol stack.

                        The number of devices you can support will depend on how often your nodes communicate with the nano gateway, how much data they send of course, and your coding rate which will depend on your intended range.

                        bmarkusB B 2 Replies Last reply Reply Quote 1
                        • bmarkusB Offline
                          bmarkus @borjam
                          last edited by

                          @borjam said in LoPy as LoRaWAN Basestation?:
                          That's the reason why LoRaWAN gateways are much more expensive than end nodes with an average price of around 500 euro.

                          A TELCO grade outdoor GW is costing cca. 1,000 EUR. Good news is that cheap professional indoor gateways are coming to the market in 2017Q1 thanks to the new Semtech SX1308 chip, you can expect them around 250-300 EUR.

                          Another solution to get a LoRaWAN concentrator board e.g. from IMST for cca. 150 EUR and connect it to a Raspberry Pi. It is just a board, so I would wait for the new indoor generation.

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            daniel
                            last edited by

                            Dear all,

                            I am not able to offer a time frame for the LoRaWAN nano-gateway example and the documentation, as we are still working on the implementation. The example Roberto posted is for a raw LoRa nano-gateway.

                            The way the LoRaWAN nano-gateway works requires the node to only transmit on one channel, for this the LoRa stack needs to be modified a bit to make the 3 default channels the same and remove the rest. There's going to be a third mode on the LoRa class called NANO_GW. At first only joining via ABP will be supported on the nano-gateway so there will be a method to add the node and its keys.

                            Cheers,
                            Daniel

                            bmarkusB J 3 Replies Last reply Reply Quote 0
                            • bmarkusB Offline
                              bmarkus @daniel
                              last edited by bmarkus

                              @daniel said in LoPy as LoRaWAN Basestation?:

                              Dear all,

                              I am not able to offer a time frame for the LoRaWAN nano-gateway example and the documentation, as we are still working on the implementation. The example Roberto posted is for a raw LoRa nano-gateway.

                              The way the LoRaWAN nano-gateway works requires the node to only transmit on one channel, for this the LoRa stack needs to be modified a bit to make the 3 default channels the same and remove the rest. There's going to be a third mode on the LoRa class called NANO_GW. At first only joining via ABP will be supported on the nano-gateway so there will be a method to add the node and its keys.

                              Cheers,
                              Daniel

                              Daniel,

                              that's fine. But please, do not call it LoRaWAN gateway to avoid misunderstandings, there are too much already. It will not compatible with standard LoRaWAN devices (nodes).

                              Béla

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

                                @daniel said in LoPy as LoRaWAN Basestation?:

                                At first only joining via ABP will be supported on the nano-gateway so there will be a method to add the node and its keys.

                                Daniel, can you make a clarification what is the functionality of the nano gateway?

                                In the LoRaWAN terminology a gateway is a device which forwards packets received by the radio board and sends them to a network server without evaluating them, just checking sync byte, 0x34 for public networks and CRC and transmitting packets from the network server to the air. By default a GW is is using the Semtech Packet Forwarder UDP protocol to communicate to network server.

                                ABP has nothing to do with GW, it is a higher network server layer. When you say nano gateway, it is a gateway which can be connected to a network server of a service provider like Loriot or TTN or/and it has a built in network server?

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  daniel
                                  last edited by

                                  that's fine. But please, do not call it LoRaWAN gateway

                                  I just called it that way here to explain the difference with the raw-LoRa one. During the KS campaign we said it was not going to be LoRaWAN compatible and we made it clear that it was going to have the single channel limitation.

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    daniel
                                    last edited by daniel

                                    @bmarkus

                                    In the LoRaWAN terminology a gateway is a device which forwards packets received by the radio board and sends them to a network server without evaluating them, just checking sync byte, 0x34 for public networks and CRC and transmitting packets from the network server to the air. By default a GW is is using the Semtech Packet Forwarder UDP protocol to communicate to network server.

                                    Yes, that's how it will work. With ABP I meant that we won't be supporting OTAA joins (this involved replying with the join accept and handling the proper timing). Sorry for the confusion.

                                    When you say nano gateway, it is a gateway which can be connected to a network server of a service provider like Loriot or TTN or/and it has a built in network server?

                                    As a first stage it will just be an UDP packet forwarder, but the ultimate goal is to provide a small built-in network server as well in order to connect to TTN.

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      beyonlo @bmarkus
                                      last edited by

                                      @bmarkus said in LoPy as LoRaWAN Basestation?:

                                      @beyonlo said in LoPy as LoRaWAN Basestation?:

                                      I'm insterest too to do a very large network using LoRa (in this case LoPy), as gateway and client. So, I need to know if LoPy can be works as a complete LoRa gateway for others LoPy (as clients) and if are there some restriction. And, how many LoPy clients one LoPy gateway support.

                                      Thanks.

                                      If you want to deploy a very large LoRa network, use LoRaWAN compatible gateways equipped with SX130x chips. You can get an indoor GW for cca. 200 EUR. LoPy is not soutable for LoRaWAN compatible GW.

                                      All right. Now I understand that LoPy is not possible to works as LoRaWAN GW. It is a chip limitation.
                                      What means indoor GW, what is difference to the outdoor GW? Why I can't to use a indoor GW as outdoor GW? Just because the indoor is not rain proof, or what?

                                      Also for end devices LoPy in its current state doesn't work. Use a proven, certified module using e.g. RN2483 or similar.

                                      I like so much of LoPy as device because I can write software in Python.

                                      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.

                                      But what is the problem with LoPy as device? The chip is not capable (there are limitations) to be a real LoRaWAN device, like as GW? Or the chip is fine to works as a real/compatible LoRaWAN device, but just software/firmware from Daniel is still missing features?

                                      Thank you.

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

                                        @borjam said in LoPy as LoRaWAN Basestation?:

                                        @beyonlo said in LoPy as LoRaWAN Basestation?:

                                        I'm insterest too to do a very large network using LoRa (in this case LoPy), as gateway and client. So, I need to know if LoPy can be works as a complete LoRa gateway for others LoPy (as clients) and if are there some restriction. And, how many LoPy clients one LoPy gateway support.

                                        The problem is: LoRaWAN uses several channels and different coding rates which, crudely said, trade speed for range.

                                        LoRaWAN nodes, when transmitting, must chose a channel at random (there are several of them). This makes it easier for different users to share the spectrum.

                                        So, in order to build a real LoRaWAN gateway you need a receiver capable of listening to several channels simultaneously and decoding several coding schemes rather than being fixed on one.

                                        The LoRa subsystem you need to to this is far more complex than the "node" oriented chip present in the LoPy (and other LoRa devices) which is configured for one channel and one coding rate. That's the reason why LoRaWAN gateways are much more expensive than end nodes with an average price of around 500 euro.

                                        That said, you can still do LoRa, which means using the interesting transmission methods employed in LoRaWAN, but just not the whole protocol stack.

                                        The number of devices you can support will depend on how often your nodes communicate with the nano gateway, how much data they send of course, and your coding rate which will depend on your intended range.

                                        All right, I will need a real LoRaWAN gateway, that LoPy can't to do that because the chip limitation.

                                        1. So, my idea for now is to use LoPy as gateway just for other LoPy devices. And when I have many LoPy devices that LoPy not support more, I will to buy one real LoRaWAN gateway and change all LoPy devices to connect to the new 200/500 euro LoRaWAN gateway. That's is fine?

                                        2. But for start in this way, I still would like to know how many LoPy devices can one LoPy (as gateway) to support?
                                          Project 1: The idea is that each LoPy device send 100KB each 5-10 minutes.
                                          Project 2: The idea is that each LoPy device send ~20bytes each second.
                                          Project 3: The idea is that each LoPy device send 100KB each day.

                                        Thank you.

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

                                          @beyonlo said in LoPy as LoRaWAN Basestation?:

                                          1. But for start in this way, I still would like to know how many LoPy devices can one LoPy (as gateway) to support?
                                            Project 1: The idea is that each LoPy device send 100KB each 5-10 minutes.
                                            Project 2: The idea is that each LoPy device send ~20bytes each second.
                                            Project 3: The idea is that each LoPy device send 100KB each day.

                                          Thank you.

                                          No way.

                                          Project 1: It is not for LoRaWAN even not for an 8-channel professional GW. LoRaWAN is not for 100KB data transmission, it is for sensor network sending low volume data in most cases in one direction w/o confirmation much less frequently..

                                          Propject 2: Channel usage, transmit duty cycle is limited to 1.0/0.1% depending on channel.

                                          I kindly advice to read basic documents and FAQ on LoRaWAN and redesign your projects. You need something else than LoRaWAN. It is not about LoPy.

                                          B 1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            beyonlo @bmarkus
                                            last edited by

                                            @bmarkus said in LoPy as LoRaWAN Basestation?:

                                            @beyonlo said in LoPy as LoRaWAN Basestation?:

                                            1. But for start in this way, I still would like to know how many LoPy devices can one LoPy (as gateway) to support?
                                              Project 1: The idea is that each LoPy device send 100KB each 5-10 minutes.
                                              Project 2: The idea is that each LoPy device send ~20bytes each second.
                                              Project 3: The idea is that each LoPy device send 100KB each day.

                                            Thank you.

                                            No way.

                                            Project 1: It is not for LoRaWAN even not for an 8-channel professional GW. LoRaWAN is not for 100KB data transmission, it is for sensor network sending low volume data in most cases in one direction w/o confirmation much less frequently..

                                            Propject 2: Channel usage, transmit duty cycle is limited to 1.0/0.1% depending on channel.

                                            I kindly advice to read basic documents and FAQ on LoRaWAN and redesign your projects. You need something else than LoRaWAN. It is not about LoPy.

                                            Hello.

                                            Sorry for my ignorance, but yes, I already read about the Technology (data rate specifically), from here https://www.lora-alliance.org/what-is-lora/technology and say : "LoRaWAN data rates range from 0.3 kbps to 50 kbps. "

                                            Yes, I know that 50 kbps is a theory and/or with a perfect environment. But if I have just ~5kbps, is fine for Project1, Project2 and Project3, see?

                                            Thank you.

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

                                            Pycom on Twitter

                                            Pycom