LoraWAN Rak3172 FUOTA

I am using the Rak3172 module. I could not activate the FUOTA feature. Do you have an example of FUOTA?

Welcome @ismlkarakus to RAK forum,

RAK3172 FUOTA is still in development. I am not sure how you try to activate it. But there is no documentation/guide to do that at the moment.

Can’t we use the FUOTA feature for the module right now?

Hi Ismail,

FUOTA does not exists yet for the RAK3172, so you cannot use it.

Hi Bernd;
Thank you for your kind attention,
If possible can you tell me which model support to fuota feature??

kind regards

RAK3172 and RAK4630 are RUI3-based (RAKwireless Unified Interface V3). Likely that these two modules will support the LoRa FUOTA in the future. But there is no definite time yet.

Hi Carl,

Is there any update on a potential timeline for FUOTA support on RAK3172? I’m working with a company that has a number of 3172 devices deployed, and they currently don’t have a way to feasibly update their attached STM devices remotely. If not, do you have any suggestions for how I should approach this?

Feel free to reach out,

Welcome to RAK forum @Emma_B ,

FUOTA is one of the priority in the RUI3 development now but we do still do not have a projected time when to release it.

If you will configure the device to change some operational functionality, you can probably do that via downlink but for updating the whole firmware directly wirelessly, I don’t think you have a way via LoRa. You can do wireless update via different wireless protocol like BLE or Cellular but those features are not in RAK3172 and will require extra module and R&D development.

Thanks for the quick reply, didn’t see this until now.

I’m aware that our team is exploring the possibility of cellular data transmission, but as far as I’m aware that’s in the early stages. Which radio modules currently support FUOTA? Would it be possible to replace the current radio modules with these models? We’re currently stuck having to manually re-flash our boards in the field whenever we need to push an update.

Thanks again for your help!

We do not have modules at the moment that supports LoRaWAN FUOTA. But if you just need wireless OTA, RAK4630 supports BLE. But that is not really remote since you need to be near the device to do an update.

Hi Carlrowan,

Now do you have any end node that supports LoRa FOTA ?

Divya M

Hi @DivyaM ,

It is in our roadmap. The LPWAN module that will support LoRaWAN FUOTA will be RAK4630.

Well then RAK4630 Arduino version will not support LoRa FUOTA ?

FUOTA requires dual bank flash memory organization and the FUOTA is basically controlled by the bootloader.

Open Source Arduino BSP is based on single bank flash memory organization and the bootloader needs significant changes to support FUOTA.

Short answer ==> No.

Why not simply support LoRaWAN FUOTA data package forward to the external MCU over RUI3?

I mean, if i’m using RUI3 interface with a companion processor, i would love to be able to receive the firmware chunk over serial line (buffered by the RAK module in some shape and form)

You are correct @gorni.alberto and there are RUI3 users who do that. However, it is only possible if there is an external MCU. We provide the Y-modem protocol we use (not a direct code but can be used as reference).

RAK3172-Ymodem-PC.zip (284.1 KB)

Is that possible (i mean, listen for FUOTA) with the RUI3 AT commands?

The RUI3 AT commands are not directly supporting FUOTA.

The workflow would be:

  • RAK3172 receives downlink packets which contain the new firmware
  • Host MCU saves these packets in its own memory
  • Once all packets have arrived, the host MCU starts flashing the new firmware with the protocol that Carl shared.

But there are a lot of things to be added before it would work.

Can you clarify?

But there are a lot of things to be added before it would work.

Does the RAK3172 AT firmware not pass through enough for this to work with a host mcu?

I cannot clarify.
The flow I wrote is just an idea how it could work. There is no working example available nor did we ever try to upgrade an ESP32 over LoRaWAN through the RAK3172.