Wireless Bridge WiFi_LoRa 例程用户手册

[English]

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

小技巧

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.

小技巧

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

用法

将程序上传到开发板后,打开串行端口以查看网页的IP地址. 其中,”View page IP address”是用于将LoRa信息转发到WiFi的查看网页,而”Write page IP address”是用于将WiFi信息转发到LoRa的发送网页. 打开网页的设备必须与Wireless_Bridge位于同一局域网中.