资源简介

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\stlink-run.gdb.in

    .......      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个文件信息

评论

共有 条评论