Wireless Bridge WiFi_LoRa Example User Manual

[简体中文]

This is an example of communication between a LoRaWAN server and a WiFi device. You can write code that fits your needs based on this example.

Preparation

Hardware

Software

Tip

It also supports the official Arduino framework of Espressif.

Uploading code

  1. Connect Wireless Bridge to your computer with a USB cable and open the Arduino IDE.

  2. Click Tools, select Wireless Bridge . To Region option based on your needs, both hardware support and the ability to communicate with the gateway.

  1. Follow the path shown to open the example “LoRaWANWiFi”

  1. Modify the relevant parameters, mainly those related to WiFi and LoRa. Try not to use the default EUI; it’s probably already taken.

  1. Please note that the ‘Channel’ is set to be the same as the gateway.

Tip

The default frequency band is 0~ 7. If you don’t know how to set the frequency band, you can check this link:LoRaWAN example Sub-Band usage

  1. The payload is located here:

  1. Uploading code.

Registering devices

Registering Gateway

Please make sure that your gateway is running correctly on the LoRaWAN server. Here is the documentation for the common Heltec gateways:

Registering Wireless Bidge

According to the information such as EUI in the code, the node is registered at the server. If you don’t know how to register, follow this link:

https://docs.heltec.org/en/node/esp32/esp32_general_docs/lorawan/connect_to_gateway.html

Usage

After uploading the program to the development board, open the serial port to view the IP address of the web page. Among them, “View page IP address” is the viewing webpage for forwarding LoRa information to WiFi, and “Write page IP address” is the sending webpage for forwarding WiFi information to LoRa. The device that opens the webpage must be in the same local area network as the Wireless_Bridge.