GithubHelp home page GithubHelp logo

time-party-too-long / lora-parameter-study Goto Github PK

View Code? Open in Web Editor NEW

This project forked from musse/lora-parameter-study

0.0 1.0 0.0 5.81 MB

Performance measurement library for the LoRa protocol.

Makefile 0.54% C 95.31% Python 0.30% C++ 0.29% Assembly 3.55% Shell 0.01%

lora-parameter-study's Introduction

lora-parameter-study

Description

This test library allows you to easily measure the performance of the LoRa technology according to the protocol's radio parameters so that you can adequately choose them for your project.

By varying one of the following radio parameters (and keeping the others constant):

  • Code rate
  • Spreading factor
  • Emission power
  • Packet size
  • Bandwidth

We are then able to mesure and identify its influence over the following performance indicators:

The test scripts allow to you to make the measurements both in uplink (object to concentrator) and downlink (concentrator to object) mode.

Graphics showing the test's results are automatically generated. A .csv file with the raw test results is also created. Example results are provided in uplink/example_results and downlink/example_results.

Requirements

Hardware

The tests were built using the following components:

Software

  • Linux machine with the concentrator drivers, which can be installed by following the instructions given in the iC880A quick start guide (steps 3.1 to 3.5).
  • A Windows machine with IAR Embedded Workbench: project files for the node's programs are provided. Alternatively, other toolchains may work; however, they haven't been tested and configuration is not provided.

Usage

A test sequence is made by varying one of the radio parameters and by fixing the others. The ensemble of packet sent with the same parameters in a test sequence is called a test series. The user is free to choose which parameter he wishes to vary, the fixed parameters values and the number of packets sent in each test series. According to the desired test mode, the steps to ajust this parameters are different.

Uplink

  1. Connect the node to the Windows machine in which IAR Workbench is installed.
  2. Open the IAR's project for the node's uplink program, which is located in uplink/node/source/uplink_test/join.eww.
  3. In the first lines of the file uplink/node/source/uplink_test/main.c:
    1. #define the constant corresponding to the desired test: CRC_TEST, POW_TEST, CRC_TEST, SIZE_TEST or BW_TEST. Only one of them can be defined at a time.
    2. Change the value of the constants prefixed by FIXED to choose the fixed parameters of the test. The fixed value of the parameter which will be varied is not considered.
    3. Change MSGS_PER_SETTING to choose the number of packets sent in each test series.
  4. Connect the concentrator to the Linux machine and execute the uplink/uplink.sh script.
  5. When the concentrator is ready to receive the packets, compile and upload the node's code with IAR.
  6. After uploading it to the board, press the reset button to start it. The test will now be executed.
  7. When it is over, the graphics with the test results will be automatically generated and opened in the Linux machine, and they can then be saved as a image if so desired.

Downlink

  1. Connect the concentrator to the Linux machine and open the downlink_concentrator.c file located in the downlink/concentrator/src folder.
  2. In the first lines of the file:
    1. #define the constant corresponding to the desired test: CRC_TEST, POW_TEST, CRC_TEST, SIZE_TEST or BW_TEST. Only one of them can be defined a a time.
    2. Change MSGS_PER_SETTING to choose the number of packets sent in each test series.
  3. Use the makefile to compile all the sources and execute downlink_concentrator.
  4. Connect the node to the Windows machine in which IAR Workbench is installed.
  5. Open the IAR's project for the node's downlink program, which is located in downlink/node/source/uplink_test/join.eww.
  6. When the concentrator is ready to receive the join packet (and start sending the data packets after this), compile and upload the node's code with IAR.
  7. After uploading it to the board, press the reset button to start it. The test will now be executed.
  8. Use a program like RS232 Port Logger to transform the serial exit of the node in a csv file (use a baudrate of 115200).
  9. Use the Python program gen_downlink.py with the csv file as parameter to generate the graphics with its data. The results can be saved as a image if so desired.

Limitations

  • Even though the LoRa protocol and the test boards support a 500 kHz bandwith, the bandwith test does not currently implements it.
  • It's not possible to use the downlink bandwidth test.

Credits

  • The node's code uses a heavily modified version of LMIC. It was changed so that we have more flexibility to choose the radio parameters as we want.
  • The concentrator's programs are heavily inspired in the pkt_logger example of the lora_gateway project.

License

lora-parameter-study's People

Contributors

musse avatar gounonj avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.