Other modems like HL7692 usually respond with the following sequence when no FOTA update is available or setup on AirVantage:
[2023-11-28 11:59:09] >> Checking if there is an update for the modem
[2023-11-28 11:59:09] AT+CGACT=0,1
[2023-11-28 11:59:10]
[2023-11-28 11:59:10] +CGREG: 0
[2023-11-28 11:59:10]
[2023-11-28 11:59:10] OK
[2023-11-28 11:59:10] AT+WDSS=0,"our_apn","our_user","our_pass",1
[2023-11-28 11:59:10]
[2023-11-28 11:59:10] OK
[2023-11-28 11:59:10] AT+WDSC=3,0
[2023-11-28 11:59:10]
[2023-11-28 11:59:10] OK
[2023-11-28 11:59:10]
[2023-11-28 11:59:10] +CGREG: 5
[2023-11-28 11:59:10] AT+WDSC=4,0
[2023-11-28 11:59:10]
[2023-11-28 11:59:10] OK
[2023-11-28 11:59:10] AT+CGACT=1,1
[2023-11-28 11:59:11]
[2023-11-28 11:59:11] OK
[2023-11-28 11:59:11] AT+WDSS=1,1
[2023-11-28 11:59:12]
[2023-11-28 11:59:12] OK
[2023-11-28 11:59:12]
[2023-11-28 11:59:12] +WDSI: 4
[2023-11-28 11:59:12]
[2023-11-28 11:59:13] +WDSI: 8
[2023-11-28 11:59:13] ATI3
[2023-11-28 12:00:12]
[2023-11-28 12:00:12] RHL769x.2.27.183100.201809071813.x7120m_3
[2023-11-28 12:00:12]
[2023-11-28 12:00:12] OK
[2023-11-28 12:00:12] AT+WDSS=1,0
[2023-11-28 12:00:12]
[2023-11-28 12:00:12] OK
[2023-11-28 12:00:12] > PDP context released from Device Service Session
This happens pretty fast and the modem driver continues to do other stuff.
With the RC Modem, the response is different
[2023-11-28 12:08:14] >> Checking if there is an update for the modem
[2023-11-28 12:08:14] >
[2023-11-28 12:08:14] AT+WDSS=1,0
[2023-11-28 12:08:14]
[2023-11-28 12:08:14] OK
[2023-11-28 12:08:14] AT+WDSI=4479
[2023-11-28 12:08:14]
[2023-11-28 12:08:14] OK
[2023-11-28 12:08:14] AT+WDSS?
[2023-11-28 12:08:15]
[2023-11-28 12:08:15]
[2023-11-28 12:08:15] +WDSS: 1,0
[2023-11-28 12:08:15] +WDSS: 2,1
[2023-11-28 12:08:15]
[2023-11-28 12:08:15] OK
[2023-11-28 12:08:15] AT+WDSS=2,1
[2023-11-28 12:08:15]
[2023-11-28 12:08:15] OK
[2023-11-28 12:08:15] AT+WDSC=3,0
[2023-11-28 12:08:15]
[2023-11-28 12:08:15] OK
[2023-11-28 12:08:15] AT+WDSC=4,0
[2023-11-28 12:08:15]
[2023-11-28 12:08:15] OK
[2023-11-28 12:08:15] AT+WDSC?
[2023-11-28 12:08:16]
[2023-11-28 12:08:16]
[2023-11-28 12:08:16] +WDSC: 0,0
[2023-11-28 12:08:16] +WDSC: 1,0
[2023-11-28 12:08:16] +WDSC: 2,0
[2023-11-28 12:08:16] +WDSC: 3,0
[2023-11-28 12:08:16] +WDSC: 4,0
[2023-11-28 12:08:16] +WDSC: 5,0
[2023-11-28 12:08:16] +WDSC: 6,0
[2023-11-28 12:08:16]
[2023-11-28 12:08:16] OK
[2023-11-28 12:08:16] AT+WDSG
[2023-11-28 12:08:16]
[2023-11-28 12:08:16]
[2023-11-28 12:08:16] +WDSG: 0,3
[2023-11-28 12:08:16] +WDSG: 1,0
[2023-11-28 12:08:16]
[2023-11-28 12:08:16] OK
[2023-11-28 12:08:16] AT+CGACT?
[2023-11-28 12:08:16]
[2023-11-28 12:08:16] +CGACT: 1,1
[2023-11-28 12:08:16] +CGACT: 2,0
[2023-11-28 12:08:16] +CGACT: 3,0
[2023-11-28 12:08:16]
[2023-11-28 12:08:16] OK
[2023-11-28 12:08:16] AT+WDSS=2,1
[2023-11-28 12:08:17]
[2023-11-28 12:08:17] OK
[2023-11-28 12:08:17] AT+WDSS=1,1
[2023-11-28 12:08:18]
[2023-11-28 12:08:18] OK
[2023-11-28 12:08:18]
[2023-11-28 12:08:19]
[2023-11-28 12:08:19] +WDSI: 4
[2023-11-28 12:08:19]
[2023-11-28 12:08:19]
[2023-11-28 12:08:21]
[2023-11-28 12:08:21] +WDSI: 6
[2023-11-28 12:08:21]
[2023-11-28 12:08:21]
[2023-11-28 12:08:21]
[2023-11-28 12:08:21] +WDSI: 23,1
[2023-11-28 12:08:21]
Instead of “+WDSI: 8” the response is “+WDSI: 6” and then “+WDSI: 23,1” which is part of the process to download a package from Airvantage.
The inconvenience is that in a normal situation when we do have a FOTA set up, this logic also happens so it is important to have in the driver. But when there is no FOTA scheduled, we waste 5 minutes waiting until timeout. The timeout cannot be lowered because it is a valid duration for the normal case.
Can someone kindly help with the clarification how we can detect there is no FOTA package available on the server for this modem and return immediately?