Code Monkey home page Code Monkey logo

lora.message's Introduction

LoRa.Message

A pure C# library to decode packets for LoRa/LoRaWANTM radio communication, based on the specification from the LoRa Alliance (based on V1.0.3)

Thanks for huge inspiration to lora-packet, a node.js library to decode and encode packets for LoRa/LoRaWANTM


Packet decoding is also wrapped in a simple command-line tool that accepts input in hex and base-64

Features

  • LoRa packet parsing & analysis
  • MIC (Message Integrity Check) checking
  • payload decryption
  • decode uplink & downlink packets
  • unit tests for everything
    • MIC calculation
    • message decryption
    • utility conversion
  • decode join request packets
  • decode join accept packets
  • generate NwkSKey and AppSKey from AppID

Usage (in your code)

PHYPayload packet = new PHYPayload(data, nwkSKey, appSKey, 0);

Usage (command-line packet decoding)

dotnet LoRaPacket.dll decode --hex 40F17DBE4900020001954378762B11FF0D
dotnet LoRaPacket.dll decode --base64 QK4TBCaAAAABb4ldmIEHFOMmgpU= \
    --nwkskey 99D58493D1205B43EFF938F0F66C339E \
    --appskey 0A501524F8EA5FCBF9BDB5AD7D126F75

Contribute

First off, Thank you! All contributions are welcome.

Please follow the project's tabs settings for easiest diff compares.

Contributor Code of Conduct

This project adheres to No Code of Conduct.

License

MIT

lora.message's People

Contributors

tkouba avatar dmitrydubovik avatar matt-tx 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.