Cellular Library, FOTA progress processing

Hello,

I integrated FreeRTOS Cellular Library for Quectel BG96 into my project. I implemented a function for FOTA initiation. It works. What I need to implement now is processing FOTA answers (+QIND: “FOTA”,“HTTPSTART”, +QIND: “FOTA”,“DOWNLOADING”,10%, …). I tried to use the standard callback mechanism using _Cellular_AtcmdRequestWithCallback() (with “+QIND” prefix). The result I am getting is an empty response, probably due to the fact that the QIND answers come irregularly and with quite some delay. I also tried using _Cellular_TimeoutAtcmdRequestWithCallback() with specifying a delay but still the same result.

My question is any advise how to setup FOTA response processing using the Cellular Library or should I do it outside of the library by processing the modem outward communication while the FOTA is running? Any advise?

Thanx.

Best regards,

peter

Hello,

I think I found an answer myself. After a deeper investigation I found out that the Cellular Library supports in QIND URC only CSQ processing. I find implementing also support for FOTA in the library the best way.

I updated the Cellular Library to support also FOTA progress processing, including a callback function notifying about any change in FOTA progress.

Best regards,

peter

1 Like

Thank you for sharing your solution!