/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
LoRaWAN endpoint stack implementation and example projects.
=====================================
1. Introduction
----------------
The aim of this project is to show an example of the endpoint LoRaWAN stack implementation.
This LoRaWAN stack is an EU868 and US915 bands Class A and Class C endpoint implementation
fully compatible with LoRaWAN 1.0.1 specification.
Each LoRaWAN application example includes the LoRaWAN certification protocol implementation.
SX1272/76 radio drivers are also provided.
In case only point to point links are required a Ping-Pong application is provided as example.
*The LoRaWAN stack API documentation can be found at: http://stackforce.github.io/LoRaMac-doc/*
**Note 1:**
*A port of this project can be found on [MBED Semtech Team page](http://developer.mbed.org/teams/Semtech/)*
*The example projects are:*
1. [LoRaWAN-demo-72](http://developer.mbed.org/teams/Semtech/code/LoRaWAN-demo-72/)
2. [LoRaWAN-demo-76](http://developer.mbed.org/teams/Semtech/code/LoRaWAN-demo-76/)
2. System schematic and definitions
------------------------------------
The available supported hardware platforms schematics can be found in the Doc directory.
3. Acknowledgments
-------------------
The mbed (https://mbed.org/) project was used at the beginning as source of
inspiration.
This program uses the AES algorithm implementation (http://www.gladman.me.uk/)
by Brian Gladman.
This program uses the CMAC algorithm implementation
(http://www.cse.chalmers.se/research/group/dcs/masters/contikisec/) by
Lander Casado, Philippas Tsigas.
4. Dependencies
----------------
This program depends on specific hardware platforms. Currently the supported
platforms are:
- LoRaMote
MCU : STM32L151CB - 128K FLASH, 10K RAM, Timers, SPI, I2C,
USART,
USB 2.0 full-speed device/host/OTG controller,
DAC, ADC, DMA
RADIO : SX1272
ANTENNA : Printed circuit antenna
BUTTONS : No
LEDS : 3
SENSORS : Proximity, Magnetic, 3 axis Accelerometer, Pressure,
Temperature
GPS : Yes, UP501 module
EXTENSION HEADER : Yes, 20 pins
REMARK : The MCU and Radio are on an IMST iM880A module
- MoteII
MCU : STM32L051C8 - 64K FLASH, 8K RAM, Timers, SPI, I2C,
USART,
USB 2.0 full-speed device/host/OTG controller (Not used),
DAC, ADC, DMA
RADIO : SX1272
ANTENNA : Printed circuit antenna
BUTTONS : 3
LEDS : 3
SENSORS : Magnetic, 3 axis Accelerometer, Pressure,
Temperature
GPS : Yes, PAM7Q module
Display : OLED
ST-Link : Yes, MBED like
EXTENSION HEADER : Yes, 20 pins
REMARK : The MCU and Radio are on an IMST iM881A module
- NAMote72
MCU : STM32L152RC - 256K FLASH, 32K RAM, Timers, SPI, I2C,
USART,
USB 2.0 full-speed device/host/OTG controller (Not used),
DAC, ADC, DMA
RADIO : SX1272
ANTENNA : Printed circuit antenna
BUTTONS : No
LEDS : 4
SENSORS : Magnetic, 3 axis Accelerometer, Pressure,
Temperature
GPS : Yes, SIM39EA module
Display : OLED
ST-Link : Yes, MBED like
EXTENSION HEADER : Yes, Arduino connectors
REMARK : None
- SensorNode
MCU : STM32L151CBU6 - 128K FLASH, 16K RAM, Timers, SPI, I2C,
USART,
USB 2.0 full-speed device/host/OTG controller,
DAC, ADC, DMA
RADIO : SX1276
ANTENNA : Printed circuit antenna
BUTTONS : Power ON/OFF, General purpose button
LEDS : 3
SENSORS : Proximity, Magnetic, 3 axis Accelerometer, Pressure,
Temperature
GPS : Yes, SIM39EA module
EXTENSION No
REMARK : The MCU and Radio are on an NYMTEK Cherry-LCC module
- SK-iM880A ( IMST starter kit )
MCU : STM32L151CB - 128K FLASH, 10K RAM, Timers, SPI, I2C,
USART,
USB 2.0 full-speed device/host/OTG controller,
DAC, ADC, DMA
RADIO : SX1272
ANTENNA : Connector for external antenna
BUTTONS : 1 Reset, 3 buttons + 2 DIP-Switch
LEDS : 3
SENSORS : Potentiometer
GPS : Possible through pin header GPS module connection
SDCARD : No
EXTENSION HEADER : Yes, all IMST iM880A module pins
REMARK : None
5. Usage
---------
Projects for CooCox-CoIDE and Keil Integrated Development Environments are available.
One project is available per application and for each hardware platform in each
development environment. Different targets/configurations have been created in
the different projects in order to select different options such as the usage or
not of a bootloader and the radio frequency band to be used.
6. Changelog
-------------
2017-04-19, V4.3.2
* General (Last release based on LoRaWAN specification 1.0.1)
1. This version has passed EU868 and US915 LoRa-Alliance compliance tests.
2. GitHub reported issues corrections.
3. Added an algorithm to automatically compute the Rx windows parameters. (Window symbolTimeout and Offset from downlink expected time)
4. Added a workaround to reset the radio in case a TxTimeout occurs.
5. Modified FSK modem handling to use the provided symbolTimeout (1 symbol equals 1 byte) when in RxSingle mode.
6. Added newly defined TxCw(Tx Continuous Wave) certification protocol command.
7. Added a fix for an overflow issue that could happen with NmeaStringSize variable.
8. Improved GpioMcuInit function to first configure the output pin state before activating the pin.
* LoRaWAN
1. GitHub reported issues corrections.
2. Changed the AdrAckCounter handling as expected by the test houses.
3. Fix an issue where the node stopped transmitting.
4. Removed useless LoRaMacPayload buffer.
5. MAC layer indications handling simplification.
6. Relocate parameter settings from ResetMacParameters to the initialization.
2017-02-27, V4.3.1
* General
1. This version has passed EU868 and US915 LoRa-Alliance compliance tests.
2. Update the MAC layer in order to be LoRaWAN version 1.0.1 compliant (Mainly US915 bug fixes)
3. Removed api-v3 support from the project.
4. GitHub reported issues corrections.
5. Updated SensorNode projects according to the new MCU reference STM32L151CBU6. Bigger memories.
6. Addition of MoteII platform based on the IMST module iM881A (STM32L051C8)
7. Addition of NAMote72 platform
8. Correct compliance test protocol command 0x06 behaviour
9. Added TxCw (Tx continuous wave) LoRaWAN compliance protocol command.
10. Added TxContinuousWave support to the radio drivers.
11. Updated ST HAL drivers.
- STM32L1xx_HAL-Driver : V1.2.0
- STM32L0xx_HAL_Driver : V1.7.0
* LoRaWAN
1. US band corrections in order to pass the LoRaWAN certification.
2. GitHub reported issues corrections.
3. Add region CN470 support.
2016-06-22, V4.3.0
* General
1. This version has passed all LoRa-Alliance compliance tests.
2. Update the MAC layer i
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
以下是一个用于LoRa协议的无线收发源码示例,该源码实现了初始化、发射、接收、CSMA以及多跳功能,能够实现快速且远距离的通信。 上述源码中,setup()函数用于初始化LoRa模块,包括设置引脚和开始LoRa模块。loop()函数中,首先通过LoRa.parsePacket()检查是否有接收到的数据包,如果有,则通过LoRa.available()和LoRa.read()读取数据并打印到串口。 同时,源码中也包含了发射数据的部分。在loop()函数中,我们定义了一个字符串消息,并通过LoRa.beginPacket()开始一个数据包,使用LoRa.print()将消息发送到数据包中,最后通过LoRa.endPacket()结束数据包的发送。
资源推荐
资源详情
资源评论
收起资源包目录
快速远距离通信的LoRa协议无线收发源码 (701个子文件)
stm32l1xx_hal_i2c.c 167KB
stm32l1xx_hal_tim.c 159KB
stm32l0xx_hal_tim.c 158KB
LoRaMac.c 147KB
stm32l0xx_hal_i2c.c 128KB
stm32l1xx_hal_sd.c 107KB
stm32l1xx_hal_rtc_ex.c 104KB
stm32l0xx_hal_adc.c 81KB
stm32l1xx_hal_adc.c 80KB
stm32l0xx_hal_spi.c 79KB
stm32l0xx_hal_cryp.c 71KB
stm32l1xx_hal_cryp.c 71KB
stm32l1xx_hal_spi.c 69KB
stm32l0xx_hal_smbus.c 69KB
stm32l0xx_hal_rtc_ex.c 66KB
stm32l1xx_hal_flash_ex.c 66KB
stm32l0xx_hal_uart.c 66KB
stm32l1xx_hal_usart.c 65KB
stm32l1xx_hal_uart.c 64KB
sx1276.c 63KB
stm32l0xx_hal_usart.c 58KB
sx1272.c 56KB
stm32l0xx_hal_lptim.c 52KB
stm32l1xx_hal_irda.c 52KB
stm32l0xx_hal_rtc.c 51KB
stm32l1xx_hal_rcc.c 51KB
stm32l0xx_hal_rcc.c 50KB
stm32l0xx_hal_i2s.c 49KB
stm32l1xx_hal_i2s.c 48KB
stm32l0xx_hal_irda.c 48KB
stm32l1xx_hal_smartcard.c 46KB
stm32l0xx_hal_smartcard.c 46KB
stm32l1xx_hal_opamp.c 45KB
stm32l1xx_ll_adc.c 41KB
stm32l0xx_hal_flash_ex.c 39KB
stm32l1xx_hal_pcd.c 38KB
stm32l0xx_hal_rcc_ex.c 38KB
stm32l0xx_hal_pcd.c 38KB
stm32l0xx_hal_dac_ex.c 37KB
stm32l1xx_hal_opamp_ex.c 36KB
stm32l1xx_hal_adc_ex.c 36KB
stm32l1xx_hal_dac.c 34KB
stm32l1xx_hal_nor.c 34KB
stm32l1xx_ll_rtc.c 33KB
stm32l1xx_ll_tim.c 33KB
stm32l0xx_ll_rtc.c 33KB
stm32l0xx_ll_tim.c 33KB
aes.c 32KB
stm32l1xx_hal_rtc.c 31KB
main.c 31KB
usbd_dfu.c 31KB
main.c 31KB
main.c 31KB
stm32l1xx_hal_dma.c 29KB
stm32l1xx_hal_comp.c 29KB
stm32l0xx_ll_adc.c 29KB
stm32l0xx_hal_comp.c 29KB
display-board.c 29KB
usbd_cdc.c 29KB
stm32l0xx_hal_pwr.c 28KB
screen.c 27KB
screen.c 27KB
screen.c 27KB
stm32l1xx_hal_pwr.c 27KB
stm32l0xx_hal_dac.c 27KB
stm32l0xx_hal_flash.c 27KB
main.c 27KB
main.c 27KB
main.c 27KB
main.c 27KB
main.c 27KB
main.c 27KB
main.c 26KB
main.c 26KB
main.c 26KB
stm32l0xx_hal_tsc.c 25KB
stm32l0xx_hal_dma.c 25KB
stm32l1xx_hal_flash_ramfunc.c 24KB
stm32l1xx_ll_utils.c 24KB
stm32l1xx_hal_flash.c 24KB
main.c 24KB
stm32l0xx_hal_tim_ex.c 24KB
main.c 23KB
main.c 23KB
stm32l0xx_ll_utils.c 23KB
stm32l1xx_hal_sram.c 23KB
stm32l1xx_hal_lcd.c 21KB
stm32l1xx_ll_spi.c 21KB
stm32l0xx_hal_lcd.c 21KB
stm32l1xx_hal_gpio.c 21KB
stm32l1xx_hal_cortex.c 21KB
stm32l0xx_ll_spi.c 21KB
stm32l0xx_ll_rcc.c 21KB
stm32l0xx_hal_gpio.c 21KB
rtc-board.c 20KB
rtc-board.c 20KB
rtc-board.c 20KB
rtc-board.c 20KB
rtc-board.c 20KB
stm32l1xx_ll_sdmmc.c 19KB
共 701 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
且行好事莫问前程
- 粉丝: 2w+
- 资源: 443
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功