Skip to content

apelov/lorawan-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This LoRaWAN tool is for LoRaWAN developers who need know the details of LoRaWAN protocol.

With lorawan-parser, one could see all details of LoRaWAN, like how frames are defined, how data is encrypted and decrypted etc.

Features

  • Support LoRaWAN 1.0 protocol
  • Support both ABP and OTAA mode device
  • Colorful terminal outputs
  • Cross platform (Tested on Ubuntu, Lubuntu, Raspberry Pi, Windows)
  • (TODO) Live parse LoRaWAN motes message (To support Semtech IoT Start Kit)

Compile

Linux

Depends on tools libtool, automake. To build:

cd lorawan-parser
autoreconf -i
./configure
make

Windows

Codeblocks

lorawan-parser supports Codeblocks project. One could download Codeblocks from its official website.

CMake

Not supported yet. You are welcome to submit CMake patches.

Raspberry Pi

sudo apt-get install autoconf libtool
autoreconf -i
./configure
make

Usage

Refer to util/test/main.c to know the usage of lorawan API.

After compile find lwp.exe/lwp under util/parser/ directory to parse the LoRaWAN frame.

# WIN
lwp.exe -c lwp-config.json
# Linux
lwp -c lwp-config.json

To go further, user could fill their own LoRaWAN frames in a json file to parse it.

Limitation

lorawan-parser only handles frames of which real frame counter is less than 0xFFFF, this is because an exact LoRaWAN frame only record low 16bits of the frame, the parser alwarys assumes the high 16bits is zero.

Contribute

Any kind of contributions are welcome, issue report, pull requests, WIKI, suggestions...

Before you send pull request, please try to make your code keep same style as the original one.

License

lorawan-paser and is licensed under The MIT License. Check LICENSE.txt for more information.

parson, AES, CMAC have its own licenses. Please follow links below to get the details.

Acknowledgement

About

Parser for LoRaWAN frame

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 96.9%
  • C++ 2.5%
  • Other 0.6%