1

I am new to Lora technology. I am using a sx1272 Lora Module and I am trying to send and receive data to a Dragino Gateway. The problem is the sx1272 and Dragino use two different libraries and hence two different examples of codes. As a result, I can't send or receive data from the Gateway. This is the library I use for Dragino: https://github.com/Yveaux/RadioHead/tree/master/RadioHead and for the node, I am using: https://github.com/matthijskooijman/arduino-lmic I hope you help me with this.

  • 2
    Hi Fatima, please add the code you actually use based on the examples. – Helmar Aug 15 '18 at 17:07
  • Thank you for your response. for the Dragino I used this: – fatima achbah Aug 16 '18 at 9:35
  • Whatever you tried to post in the comment didn't work. Please edit and add it to the question. – Helmar Aug 16 '18 at 9:46
  • @Helmar - the code in question would be far too large to fit; but that's also beside the point as the two pieces of code used are not intended to be compatible. The asker will need to start over with a different software stack on at least one of the devices. – Chris Stratton Aug 23 '18 at 21:23
1

RadioHead and LMiC are not meant to work together.

If you are trying to do a point to point connection, you may be able to use the RadioHead code on both devices (RadioHead is available for Arduino as well).

To build a WAN over LoRa, you should be using LoRaWAN code on both devices, ie, LMiC (LoRa MAC in C) on the node and LoRaWAN gateway software (typically called a "packet forwarder") on the Gateway.

However I believe the Dragino is not capable of being a true LoRaWAN gateway, as it has only a single channel node-class radio rather than a multi-channel gateway class radio. This may complicate things substantially. Still if you do some searching you'll find now aged examples for building a single channel LoRaWAN testbench gateway on a Raspberry Pi, which you should be able to port to your platform. The problem will be that you cannot use it in a specification-compliant manner, and would need to modify your node software to defeat the usual frequency hopping and reduce the output and/or duty cycle to fit under the greater restrictions typically applied to non-hopping devices.

Essentially, you're purchased two nodes but no gateway - although the larger of your nodes happens to be built into a Linux-based OpenWRT router, it still uses an Arduino-like ATmega328p to control a single-channel node-class radio chip.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.