dubanoze / lorawan-parser

Parser for LoRaWAN frame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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 send me CMake patches.

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

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

lorawan-paser has no license yet, to be defined.

Acknowledgement

About

Parser for LoRaWAN frame


Languages

Language:C 97.2%Language:C++ 2.8%