资源简介
LoRa节点SDK V4.4.2keil工程,SDK支持标准LoRaWAN、点对点、持续发送、接收灵敏度测试。
代码片段和文件信息
/*!
* \file main.c
*
* \brief LoRaMac classA device implementation
*
* \copyright Revised BSD License see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _| |_ _____ ____| |__
* \____ \| ___ | (_ _) ___ |/ ___) _ \
* _____) ) ____| | | || |_| ____( (___| | | |
* (______/|_____)_|_|_| \__)_____)\____)_| |_|
* (C)2013-2017 Semtech
*
* \endcode
*
* \author Miguel Luis ( Semtech )
*
* \author Gregory Cristian ( Semtech )
*/
/*! \file classA/B-L072Z-LRWAN1/main.c */
#include
#include “utilities.h“
#include “board.h“
#include “gpio.h“
#include “LoRaMac.h“
#include “Commissioning.h“
#include “NvmCtxMgmt.h“
#ifndef ACTIVE_REGION
#warning “No active region defined LORAMAC_REGION_EU868 will be used as default.“
#define ACTIVE_REGION LORAMAC_REGION_EU868
#endif
/*!
* Defines the application data transmission duty cycle. 5s value in [ms].
*/
#define APP_TX_DUTYCYCLE 5000
/*!
* Defines a random delay for application data transmission duty cycle. 1s
* value in [ms].
*/
#define APP_TX_DUTYCYCLE_RND 1000
/*!
* Default datarate
*/
#define LORAWAN_DEFAULT_DATARATE DR_0
/*!
* LoRaWAN confirmed messages
*/
#define LORAWAN_CONFIRMED_MSG_ON false
/*!
* LoRaWAN Adaptive Data Rate
*
* \remark Please note that when ADR is enabled the end-device should be static
*/
#define LORAWAN_ADR_ON 1
#if defined( REGION_EU868 ) || defined( REGION_RU864 ) || defined( REGION_CN779 ) || defined( REGION_EU433 )
#include “LoRaMacTest.h“
/*!
* LoRaWAN ETSI duty cycle control enable/disable
*
* \remark Please note that ETSI mandates duty cycled transmissions. Use only for test purposes
*/
#define LORAWAN_DUTYCYCLE_ON true
#endif
/*!
* LoRaWAN application port
*/
#define LORAWAN_APP_PORT 2
#if( ABP_ACTIVATION_LRWAN_VERSION == ABP_ACTIVATION_LRWAN_VERSION_V10x )
static uint8_t GenAppKey[] = LORAWAN_GEN_APP_KEY;
#else
static uint8_t AppKey[] = LORAWAN_APP_KEY;
#endif
static uint8_t NwkKey[] = LORAWAN_NWK_KEY;
#if( OVER_THE_AIR_ACTIVATION == 0 )
static uint8_t FNwkSIntKey[] = LORAWAN_F_NWK_S_INT_KEY;
static uint8_t SNwkSIntKey[] = LORAWAN_S_NWK_S_INT_KEY;
static uint8_t NwkSEncKey[] = LORAWAN_NWK_S_ENC_KEY;
static uint8_t AppSKey[] = LORAWAN_APP_S_KEY;
/*!
* Device address
*/
static uint32_t DevAddr = LORAWAN_DEVICE_ADDRESS;
#endif
/*!
* Application port
*/
static uint8_t AppPort = LORAWAN_APP_PORT;
/*!
* User application data size
*/
static uint8_t AppDataSize = 1;
static uint8_t AppDataSizeBackup = 1;
/*!
* User application
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 289 2019-10-25 06:09 LoRaMac-node-develop\.gitignore
....... 413 2019-10-25 06:09 LoRaMac-node-develop\.vscode\c_cpp_properties.json
....... 2866 2019-10-25 06:09 LoRaMac-node-develop\.vscode\settings.json
....... 2338 2019-10-25 06:09 LoRaMac-node-develop\cmake\binutils-arm-none-eabi.cmake
....... 5035 2019-10-25 06:09 LoRaMac-node-develop\cmake\gdb-helper.cmake
....... 1793 2019-10-25 06:09 LoRaMac-node-develop\cmake\launch.json.in
....... 99 2019-10-25 06:09 LoRaMac-node-develop\cmake\openocd-run.gdb.in
....... 1981 2019-10-25 06:09 LoRaMac-node-develop\cmake\saml21.cmake
....... 107 2019-10-25 06:09 LoRaMac-node-develop\cmake\stli
....... 1934 2019-10-25 06:09 LoRaMac-node-develop\cmake\stm32l0.cmake
....... 1926 2019-10-25 06:09 LoRaMac-node-develop\cmake\stm32l1.cmake
....... 2000 2019-10-25 06:09 LoRaMac-node-develop\cmake\stm32l4.cmake
....... 4263 2019-10-25 06:09 LoRaMac-node-develop\cmake\toolchain-arm-none-eabi.cmake
....... 810 2019-10-25 06:09 LoRaMac-node-develop\CMakeLists.txt
....... 11841 2019-10-25 06:09 LoRaMac-node-develop\Doc\development-environment.md
....... 97 2019-10-25 06:09 LoRaMac-node-develop\Doc\NAMote72-platform.md
....... 1285 2019-10-25 06:09 LoRaMac-node-develop\Doc\NucleoLxxx-platform.md
....... 530 2019-10-25 06:09 LoRaMac-node-develop\Doc\SAML21-platform.md
....... 433 2019-10-25 06:09 LoRaMac-node-develop\Doc\SKiM88xx-platform.md
....... 278789 2019-10-25 06:09 LoRaMac-node-develop\Doc\SX1276-Wing-Board-(03-91016-RA).pdf
文件 399 2011-04-23 10:24 LoRaMac-node-develop\keil\LoRaMac\NucleoL152\keilkilll.bat
....... 116267 2019-11-12 20:03 LoRaMac-node-develop\keil\LoRaMac\NucleoL152\LoRaMac.uvguix.Administrator
....... 45774 2019-10-30 20:06 LoRaMac-node-develop\keil\LoRaMac\NucleoL152\LoRaMac.uvoptx
....... 35333 2019-10-30 20:06 LoRaMac-node-develop\keil\LoRaMac\NucleoL152\LoRaMac.uvprojx
....... 1549 2019-10-25 06:09 LoRaMac-node-develop\LICENSE.txt
....... 42568 2019-10-25 06:09 LoRaMac-node-develop\readme.md
....... 6439 2019-10-25 06:09 LoRaMac-node-develop\src\apps\LoRaMac\classA\B-L072Z-LRWAN1\Commissioning.h
....... 40471 2019-10-25 06:09 LoRaMac-node-develop\src\apps\LoRaMac\classA\B-L072Z-LRWAN1\main.c
....... 6439 2019-10-25 06:09 LoRaMac-node-develop\src\apps\LoRaMac\classA\NAMote72\Commissioning.h
....... 45017 2019-10-25 06:09 LoRaMac-node-develop\src\apps\LoRaMac\classA\NAMote72\main.c
............此处省略1446个文件信息
相关资源
- LoRaWAN规范CLASS-A中文版
- LPC17XX_Keil工程模板及配套例程 + LPC1
- semtech保密文档,sx1301 lora lorawan data
- stm32f030c8t6利用RTC唤醒低功耗模式sto
- STM32 UCGUIKEIL工程,已经移植好,修改
- DW1000—STM32—Keil工程
- Proteus仿真stm32串口proteus工程+keil工程
- LoRaWan协议栈
- LoRaWAN协议说明书1.0.3(2018年最新版)
- LoRa Overview and LoRa Alliance
- LoRaWAN终端ClassA源码
- 温湿度、火灾气体检测,LCD1602串口双
- lorawanL073.zip
- 通过LoraWan模块将数据上传至阿里云
- lpc1766_Keil工程模板及配套例程
- LoRaWAN协议解析--MAC帧分解
- 精密称重AD7730读写程序,并通过串口
- f1c100s keil工程.zip
- x9c104程序 keil工程
- mcs 51单片机 proteus 仿真实用大全 集合
- ARM基于LPC2124的温度控制系统Proteus仿真
- Eclipse打开Keil工程图解教程
- CCS811气体传感器+STM32F103C8T6的Keil工程
- LoRa计算器适用于SX126x系列包括SX1261
- loraWAN网关源码V5.0.1
- stm32l476 keil工程代码
- stm32+USART协议RS485 iap Bootloader源码 ke
评论
共有 条评论