Lora实战

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(Lora 驱动)
(Lora 开源项目和驱动)
第17行: 第17行:
  
 
Lora开源项目中 法国 波城大学(University of Pau) C. Pham 创始的[https://github.com/CongducPham/LowCostLoRaGw Low Cost Lora GateWay]项目做到了基本完善的Demo, 可以作为项目参考.
 
Lora开源项目中 法国 波城大学(University of Pau) C. Pham 创始的[https://github.com/CongducPham/LowCostLoRaGw Low Cost Lora GateWay]项目做到了基本完善的Demo, 可以作为项目参考.
[https://github.com/CongducPham/LowCostLoRaGw Low Cost Lora GateWay] 以树梅派作为网管, Arduino 作为传感器采集端, 实现了上下行, 带应答通讯, Lora CAD(通道活动侦测)等特性.
+
[https://github.com/CongducPham/LowCostLoRaGw Low Cost Lora GateWay] 以树梅派作为网关, Arduino 作为传感器采集端, 实现了上下行, 带应答通讯, Lora CAD(通道活动侦测)等特性.
  
 
[https://github.com/CongducPham/LowCostLoRaGw Low Cost Lora GateWay] 项目采用的驱动原型是[https://github.com/wirelessopensource/lora_shield_arduino  Lora Shield Arduino 驱动]. 此驱动仅支持1278, C. Pham在 [https://github.com/CongducPham/LowCostLoRaGw Low Cost Lora GateWay] 扩展了驱动的支持, 使其支持SX1272/76/78/79全系列芯片, 并扩展了报文应答.
 
[https://github.com/CongducPham/LowCostLoRaGw Low Cost Lora GateWay] 项目采用的驱动原型是[https://github.com/wirelessopensource/lora_shield_arduino  Lora Shield Arduino 驱动]. 此驱动仅支持1278, C. Pham在 [https://github.com/CongducPham/LowCostLoRaGw Low Cost Lora GateWay] 扩展了驱动的支持, 使其支持SX1272/76/78/79全系列芯片, 并扩展了报文应答.

2017年10月17日 (二) 13:55的版本

1 Lora 简介和资料

Lora 联盟 SX1276/77/78/79

Lora 窄带, 低速, 低功耗, 远距离. 支持扩频/跳频通讯. 抛开高大上的 LoraWan不谈, 作为一个低速 Lan, 桥接传感器尤其适合.

在此仅以 Arduino_精要 作为控制器介绍Lora快速原型项目以及遇到的实际问题.


1.1 Lora 开源项目和驱动

Arduino以其丰富的生态, 几乎任意传感器/外围都是 copy/paste 模式即可达到demo目的, 在此之上项目即可高速启动.

Lora开源项目中 法国 波城大学(University of Pau) C. Pham 创始的Low Cost Lora GateWay项目做到了基本完善的Demo, 可以作为项目参考. Low Cost Lora GateWay 以树梅派作为网关, Arduino 作为传感器采集端, 实现了上下行, 带应答通讯, Lora CAD(通道活动侦测)等特性.

Low Cost Lora GateWay 项目采用的驱动原型是Lora Shield Arduino 驱动. 此驱动仅支持1278, C. Pham在 Low Cost Lora GateWay 扩展了驱动的支持, 使其支持SX1272/76/78/79全系列芯片, 并扩展了报文应答.

需要注意, 这是一个Poll(轮询)模式的驱动. 有中断, 适合big loop. 对于强大的CPU, 一个线程轮询一个芯片即可. 对于Arduino, 这似乎够用, 尤其是Lora的速度不快, 传感器也不需要密集上报数据的情况.

1.2 Lora 问题和解决

  • 驱动用到的引脚
  • Arduino Pin模式
  • ACK模式
  • CRC错误
  • 驱动和PA选择
  • 转接板问题
个人工具
名字空间

变换
操作
导航
工具箱