LoPy as LoRaWAN Basestation?



  • Hi,

    it is possible to set LoPY to work as a LoRaWAN basestation?

    In the documentation I can read about using LoPy as a end-device, but not as basestation

    thanks

    Màrius



  • @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.


  • Pybytes Beta

    @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.



  • 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.



  • @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.


  • Pybytes Beta

    @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.



  • 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.


  • Pybytes Beta

    @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.



  • @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!



  • @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.



  • @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.



  • @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?



  • @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.



  • @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.



  • 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!



  • The radio spectrum is regulated. European directives are transposed to the national laws of the member states.

    Even "free" ISM frequencies have some usage restrictions. You cannot exceed power levels in the Wi-Fi frequencies, for example.

    So what happens if you exceed it? Well, it depends. Probably nothing. But in case it disrupts another user of the same spectrum and an investigation proves that you were misbehaving... well, the fines can be hefty. Check your national telecommunications law.

    And, as many aspects of the regulations are subject to interpretation, good luck with a judge if you get in trouble!

    That said, if you are developing software and you are concerned with "polluting" the band with lots of transmissions, buy an attenuator on eBay and connect module and gateway together. There are old HP/Agilent attenuators that you can adjust from 0 to 130 dB in 10 dB steps.



  • @bmarkus
    if LoRa is regulated in EU than yes it is regulated in Poland.
    But i am end user...



  • @livius said in LoPy as LoRaWAN Basestation?:

    Thank you for the info.

    country - Poland - we have really early setup and regulations are only from providers
    maybe i am wrong then someone can correct me

    Poland is member of EU and member countries accept the ERO regulations. Would be surprised to learn it is not regulated in Poland.



  • Thank you for the info.

    country - Poland - we have really early setup and regulations are only from providers
    maybe i am wrong then someone can correct me



  • @livius said in LoPy as LoRaWAN Basestation?:

    And sorry for spamming
    but is this 1% for one device or for one "virtual user"?
    You know i have 100 devices and use summary 100% of bandwidth

    1% is for one device and one channel. So yes, 100 devices on a single channel use 100% of the channel. If you have 8 channels, situation is better, you need 800 devices to fully load it.

    However there are channels with only 0.1% allowed duty rate. Check your regulations. In which country you are?


Log in to reply
 

Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.