HelTecAutomation / Heltec_ESP32

Arduino library for Heltec ESP32 (or ESP32+LoRa) based boards
Other
581 stars 219 forks source link

Difficulty Configuring FUOTA and Joining Multicast Group for LoRaWAN with Heltec ESP32 #151

Open zackiex opened 1 month ago

zackiex commented 1 month ago

I'm encountering challenges in configuring Firmware Over The Air (FUOTA) updates and joining a multicast group for LoRaWAN communication with a Heltec ESP32 device. Below, I've outlined the specifics of my setup and the issues I'm facing:

Setup

Challenges

  1. Joining Multicast Group: I'm unable to configure the device to join a multicast group, I couldn't find information on configuring parameters, such as the multicastAddress (examples/LoRaWAN/LoRaWanMulticast/LoRaWanMulticast.ino) https://github.com/HelTecAutomation/Heltec_ESP32/blob/master/examples/LoRaWAN/LoRaWanMulticast/LoRaWanMulticast.ino
  2. GenaAppkey for OTAA: When creating the wireless device with OTAA v1.0.x, I only found a reference to "FUOTA configuration - Optional GenaAppkey," but I'm unsure how to proceed with this.

Steps Taken

  1. The device has successfully joined the LoRaWAN network using OTAA and is now communicating data to the server. It is sending Uplink and receiving Downlink. using examples provided by Heltec (examples/LoRaWAN/LoRaWan/LoRaWan.ino)
  2. xperimented with the LoRaWAN Application Layer Clock Synchronization Specification example (LoRaWanTimeReq.ino), which successfully joined the network and i got this in consol
joining...
joined

Unix time:9.641
This uplink added time req.
confirmed uplink sending ...

Once device time updated, this function run

Unix time:1716904261.922

I am seeking assistance with the following matter:

  1. Clarify the process for configuring FUOTA parameters, including obtaining the multicastAddress, in the AWS IoT Core environment. In other words, how does this library work https://github.com/HelTecAutomation/Heltec_ESP32/blob/master/examples/LoRaWAN/LoRaWanMulticast/LoRaWanMulticast.ino
  2. Explain the significance and usage of "FUOTA configuration - Optional GenaAppkey" in the OTAA device provisioning process.