# LoRa | ![img \|150](https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/LoRa_Module_with_antenna_and_SPI_wires_attached.jpg/320px-LoRa_Module_with_antenna_and_SPI_wires_attached.jpg) | **LoRa** is a physical proprietary radio communication technique. It is based on spread spectrum modulation techniques derived from chirp spread spectrum (CSS) technology. It was developed by Cycleo, a company of Grenoble, France, and patented in 2014 (patent 9647718-B2. Cycleo was later acquired by Semtech. | | ---- | ---- | | | wikipedia:: [LoRa](https://en.wikipedia.org/wiki/LoRa) | | | | Mainly for off-grid text messages A [[Low-power wide-area network]] ## Meta ### Related - [MySensors - Wikipedia](https://en.wikipedia.org/wiki/MySensors) - [DASH7 - Wikipedia](https://en.wikipedia.org/wiki/DASH7) - [[Amazon Sidewalk]] - [[Wi-Fi HaLow]] - [[AirTag]] - [[Tile]] - [[Personal Area Network]] - [[Mesh Networking]] - [[Helium Network]] - [[MQTT]] - https://gotenna.com/ ## Software - [[Meshtastic]] ## Physical Layer data rates between 0.3 kbit/s and 27 kbit/s ### MCUs - [[ESP32]] - [[RP2040]] - [[Adafruit Feather]] - [[Raspberry Pi]] ### LoRa Transceivers - [[nRF52840]] - [[Adafruit]] - [Overview | Adafruit Radio Bonnets with OLED Display - RFM69 or RFM9X | Adafruit Learning System](https://learn.adafruit.com/adafruit-radio-bonnets) - [[Semtech SX1262 LoRa Transceiver]] (more powerful than the 1276) - Semtech SX1276 LoRa Transceiver (older, not as powerful) - [LoRa Connect Transceiver, SX1276, 137MHz to 1020MHz | Semtech](https://www.semtech.com/products/wireless-rf/lora-connect/sx1276) - Older, and not as good #### Shields, etc. to attach directly to a computer, like a [[Raspberry Pi]] - Waveshare - [SX1262/SX1268 LoRa HAT for Raspberry Pi, UART Interface, Options For Frequency Band](https://www.waveshare.com/sx1262-868m-lora-hat.htm) - USB device - [USB to LoRa Data Transfer Module, Based On SX1262, Suitable For Data Acquisition In Industry And Agriculture | USB-TO-LoRa-LF | USB-TO-LoRa-HF](https://www.waveshare.com/usb-to-lora.htm) ### Frequencies > LoRa uses license-free sub-gigahertz radio frequency bands EU868 (863–870/873 MHz) in Europe; AU915/AS923-1 (915–928 MHz) in South America; US915 (902–928 MHz) in North America; IN865 (865–867 MHz) in India; and AS923 (915–928 MHz) in Asia; - USA: 915 MHz (902-928) ### [[Antenna (radio)]] ### Characteristics, range, transmission - LoRa particularly bad going through the earth (via FLOSS podcast) - so hills, mountains are a problem - Link Budget = how much range is prioritized - [[Meshtastic#Configuration]] ## Products, integrated devices - [[HELTEC]] - [[HELTEC WiFi LoRa 32(V3) Board]] - [[RAKwireless]] - [[RAKwireless WisBlock]] - [[LILYGO]] - [[LILYGO T3-S3 LoRa Board]] - [[LILYGO T-Beam Meshtastic Board]] - [[LILYGO LoRa32 V2.1-1.6 LoRa Board]] - [[Raspberry Pi Pico]] - [Raspberry Pi Pico | Meshtastic](https://meshtastic.org/docs/hardware/devices/raspberry-pi/) - Neil Hao from B&Q Consulting - Nano series - 70-110 - [Nano Series | Meshtastic](https://meshtastic.org/docs/hardware/devices/nano/?nano-series=g2) ### [[Adafruit]] - [Overview | Adafruit Radio Bonnets with OLED Display - RFM69 or RFM9X | Adafruit Learning System](https://learn.adafruit.com/adafruit-radio-bonnets) ## Bridging, Gateways, WAN, MQTT, MAC layer and above - LoRa can connect to the Internet in various ways in order to connect disparate LoRa mesh networks ### LoRaWAN - [What are LoRa and LoRaWAN? | The Things Network](https://www.thethingsnetwork.org/docs/lorawan/what-is-lorawan/) - [[The Things Network]] - Better if you want hundreds or thousands of devices on the same network (as opposed to [[Meshtastic]] which is designed only for about 100 and then you can just bridge) ### P2P LoRa What [[Meshtastic]] uses. since it's for smaller batch of devices - 100 or so [What is Peer-To-Peer (P2P) LoRa Communication? - Latest Open Tech From Seeed](https://www.seeedstudio.com/blog/2021/04/26/what-is-peer-to-peer-p2p-lora-communication/) ### [[MQTT]] - official Meshtastic MQTT broker - [MQTT | Meshtastic](https://meshtastic.org/docs/software/mqtt/) - [Setting up an MQTT server - Meshtastic](https://meshtastic.discourse.group/t/setting-up-an-mqtt-server/8883/7) ### Gateways [LoRa gateway | OpenMQTTGateway v1.7.0](https://docs.openmqttgateway.com/use/lora.html#what-is-a-lora-gateway) > What is a LoRa gateway > A LoRa (Long Range) gateway is a device that facilitates communication between LoRa nodes and networks, enabling the transmission and reception of data over long distances using the LoRa modulation technique. It's designed to work with devices that utilize LoRa technology, such as the MakerFab soil and moisture sensor, devices from PricelessTookit and DIY sensors. > > The primary distinction between a LoRa gateway and a LoRaWAN gateway lies in the protocol and network architecture: > > LoRa gateway: Focuses solely on the physical layer, utilizing the LoRa modulation for communication. It's responsible for receiving and transmitting raw LoRa signals without concerning itself with network protocols or data handling at higher layers. Being focused solely on the physical layer, a LoRa gateway offers greater flexibility for customization and experimentation. The OpenMQTTGateway LoRa gateway receives raw LoRa signals, processes them, and publishes the data to an MQTT topic. Conversely, it can subscribe to MQTT topics and send commands to LoRa devices. This gateway is particularly useful for DIY projects, home automation enthusiasts, and scenarios where direct integration of LoRa devices with MQTT is desired. > > LoRaWAN gateway: Operates at a higher layer and is part of the LoRaWAN network architecture. LoRaWAN is a protocol specification built on top of the LoRa technology, providing features like adaptive data rate, encryption, and multi-channel/multi-modulation. A LoRaWAN gateway handles the data from multiple LoRa nodes, forwards it to a centralized network server, which then manages the data and communicates back to the nodes. > > In essence, while both gateways utilize LoRa technology for communication, a LoRaWAN gateway is more sophisticated, offering advanced features and integration with the LoRaWAN network infrastructure. The LoRa gateway, with its simpler architecture, is ideal for small networks of nodes, offering easier setup and configuration, making it an interesting choice for users keen on experimenting with LoRa technology.