A very easy to understand LoRaWAN-node code.
Dependencies: LoRaWAN-lib SX1272Lib X_NUCLEO_IKS01A1 mbed
Important parameters:
• In comissioning.h: DevEUI, AppEUI, AppKEY, DevADR, NwksKEY, AppsKEY, OTAA and public network. Frequency and channel block to use, confirmed or unconfirmed messages, app port, app data size and OTAA and Tx duty cycles.
• In LoRaMac.h: Maximum payload and MAC commands length, receive delays, max FCNT, adr ack limit, timeout and delay, max ack retries, rssi threshold and sync words.
• In LoRaMac.cpp: Maximum payload, MAC commands and FRMpayload length.
• In LoRaMac-board.h: Tx power, data rates and band settings.
NOTE: Please refer to LoRaWAN regional parameters (page 12 for US band) to know which parameters you can modify.
Code/SerialDisplay.h@0:60ff878b27b8, 2018-04-03 (annotated)
- Committer:
- dgabino
- Date:
- Tue Apr 03 17:09:34 2018 +0000
- Revision:
- 0:60ff878b27b8
A simpler way to customize your LoRaWAN payload
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dgabino | 0:60ff878b27b8 | 1 | /* |
dgabino | 0:60ff878b27b8 | 2 | / _____) _ | | |
dgabino | 0:60ff878b27b8 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
dgabino | 0:60ff878b27b8 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
dgabino | 0:60ff878b27b8 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
dgabino | 0:60ff878b27b8 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
dgabino | 0:60ff878b27b8 | 7 | (C)2015 Semtech |
dgabino | 0:60ff878b27b8 | 8 | |
dgabino | 0:60ff878b27b8 | 9 | Description: Serial display management |
dgabino | 0:60ff878b27b8 | 10 | |
dgabino | 0:60ff878b27b8 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
dgabino | 0:60ff878b27b8 | 12 | |
dgabino | 0:60ff878b27b8 | 13 | Maintainer: Uttam Bhat |
dgabino | 0:60ff878b27b8 | 14 | */ |
dgabino | 0:60ff878b27b8 | 15 | #ifndef __SERIAL_DISPLAY_H__ |
dgabino | 0:60ff878b27b8 | 16 | #define __SERIAL_DISPLAY_H__ |
dgabino | 0:60ff878b27b8 | 17 | |
dgabino | 0:60ff878b27b8 | 18 | #include "board.h" |
dgabino | 0:60ff878b27b8 | 19 | #include "vt100.h" |
dgabino | 0:60ff878b27b8 | 20 | #include "Comissioning.h" |
dgabino | 0:60ff878b27b8 | 21 | #include "LoRaMac.h" |
dgabino | 0:60ff878b27b8 | 22 | #include "Common.h" |
dgabino | 0:60ff878b27b8 | 23 | #include "LoRaDeviceFunctions.h" |
dgabino | 0:60ff878b27b8 | 24 | |
dgabino | 0:60ff878b27b8 | 25 | void SerialDisplayJoinUpdate( void ); |
dgabino | 0:60ff878b27b8 | 26 | void SerialDisplayTxUpdate( void ); |
dgabino | 0:60ff878b27b8 | 27 | void SerialDisplayRxUpdate( void ); |
dgabino | 0:60ff878b27b8 | 28 | void SerialDisplayHex( uint8_t *pData, uint8_t len ); |
dgabino | 0:60ff878b27b8 | 29 | void DisplayNetworkParam( void ); |
dgabino | 0:60ff878b27b8 | 30 | |
dgabino | 0:60ff878b27b8 | 31 | #endif // __SERIAL_DISPLAY_H__ |