t2t-sonbui / MQTT-SN-LoRa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MQTT-SN-LoRa

LoRaLink sensor network for MQTT-SN and MQTT-SN Client device firmware.

You have to modify LoRaLink/LoaLink.c code, if you use this outside of JAPAN. LoRaLinkMQTT-SN

Requirements

  1. Three B-L0722Z-LRWAN, RxDevice and TxDevice for the gateway and one for the client device.
  2. Three USB-UART converters
  3. Install GNU Arm Embedded Toolchain https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
  4. Install STM32CubeProgrammer https://www.st.com/en/development-tools/stm32cubeprog.html

How to build

1. MQTT-SN Gateway

       git clone -b develop https://github.com/eclipse/paho.mqtt-sn.embedded-c  
       cd paho.mqtt-sn.embedded-c/MQTTSNGateway      
       ./build.sh loralink  

2. Sensornetwork devices

       git clone https://github.com/ty4tw/LoRaMQTT-SN.git

2-1 RxDevice for the Gateway

       make TYPE=RXMODEM
       Download Build/Firmware.bin to B-L0722Z-LRWAN with STM32CubeProgrammer.

2-2 TxDevice for the gateway

       touch AppSrc/test.c
       make TYPE=TXMODEM
       Download Build/Firmware.bin to B-L0722Z-LRWAN with STM32CubeProgrammer

2-3 Client Device

      touch AppSrc/test.c
      make TYPE=CLIENT LOG=DEBUGLOGENABLE
      Download Build/Firmware.bin to B-L0722Z-LRWAN with STM32CubeProgrammer

Device

This SDK is developped for the LoRaEz module. But B-L0722Z-LRWAN board is available insted of the module.

LoRaEz

LoRaLink

LoRaLink is a simple protocol prepared for MQTT-SN. It's a different from LoRaWAN.

LoRaLink

Sensor Network Transport layer protocol

This protocol is handled in loralink/SensorNetwork.cpp LoRaLinkApi

Required devices

LoRaMQTT

About

License:Other


Languages

Language:C 99.7%Language:Assembly 0.2%Language:Makefile 0.1%