Difference between revisions of "Template:Pico-LoRa-SX1262-868M Manual"

From Waveshare Wiki
Jump to: navigation, search
(Created page with "==Setup Environment== *To use the Raspberry Pi Pico with C/C++, please refer to [https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf C/C++ Development manual...")
(No difference)

Revision as of 10:14, 19 October 2021

Setup Environment

Hereby we use VScode IDE in Windows 10 to show you how to use the LoRa module.

Hardware Connectint

connection
  • Pico-LoRa-SX1262-868M x1
  • Raspberry Pi Pico x1
  • Micro USB Cable x1

About LoRa Network

The Pico-LoRa-SX1262 is connected to Raspberry Pi Pico and works as an End Node. User LoRaWAN protocol, the End Node connects to the TTS server, transmit or receive data to/from TTS server through the LoRa Gateway. Here is the topology of the Network.

Pico-LoRa-SX1262-868M 005.jpg

Please check if the module is available in your city according to the local network. Pico-LoRa-SX1262-868M is suitable for the area which is covered with EU868. You can also go to LoRa Alliance and check your local network.

Pico-LoRa-SX1262-868M 004.jpg

Access Network

  • Register an account in TTS and log in.
  • Create an Application.
Pico-LoRa-SX1262-868M 006.jpg
  • Add an End Device
Pico-LoRa-SX1262-868M 007.jpg
  • Configure the End Device as the picture. Please save the DevEUI and the AppKey for further using.
Pico-LoRa-SX1262-868M 008.jpg
  • Download the Demo Codes and save it to the directory of Pico-SDK
Pico-LoRa-SX1262-868M 009.jpg
  • Open the VScode, and open the pico-lorawan directory with VScode. Add the DevEUI and AppKey saved to the example\otaa_temperature_led\config.h file.
Pico-LoRa-SX1262-868M 010.jpg
  • Build the project and program it to the Raspberry Pi Pico. Then you can check the serial data
Pico-LoRa-SX1262-868M 011.jpgPico-LoRa-SX1262-868M 012.jpg

About the Demo codes

  • The demo codes are based on the pico-lorawan project, and updated to compatible the Pico-LoRa-SX1262-868M module
  • For more details about the LoRaWAN protocol, pleaser refer to LoRa Allicance
  • If you want to create your own cloud server, pleaser refer to lorawan-stack,chrpstack