-
Notifications
You must be signed in to change notification settings - Fork 8.1k
modem: hl78xx: Add AT shell and AirVantage FOTA support #97919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
modem: hl78xx: Add AT shell and AirVantage FOTA support #97919
Conversation
ec2e463
to
25f59a3
Compare
#ifdef CONFIG_MODEM_HL78XX_AIRVANTAGE | ||
ret = modem_dynamic_cmd_send(data, NULL, "AT+WDSS=2,1", strlen("AT+WDSS=2,1"), | ||
hl78xx_get_ok_match(), 1, false); | ||
if (ret < 0) { | ||
goto error; | ||
} | ||
#endif /* CONFIG_MODEM_HL78XX_AIRVANTAGE */ | ||
data->status.apn.state = APN_STATE_CONFIGURED; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do this when setting the APN?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That’s because the PDP context is being configured there.
From my understanding, based on the HL78xx FOTA Guidelines r5 (Document 2174223):
4.1.1 PDP Context
The module uses UDP (CoAP) to communicate with AirVantage to create DM sessions.
A PDP context can be assigned for this connection using AT+WDSS=2,, where is the PDP context
identifier as configured with AT+CGDCONT. The change initiated by AT+WDSS=2, only takes effect while
syncing with the AVMS server. It does not affect the FOTA package download. For HL780x, HL780x always uses
CID1 for FOTA whatever the CID setting in +WDSS command is.
Send AT+WDSS? to check the current APN settings. If an APN has not been specified, CME Error 650 will occur when
trying to initiate a connection.
CONFIG_MODEM_HL78XX_AUTORAT=n | ||
CONFIG_MODEM_HL78XX_RAT_M1=y | ||
CONFIG_MODEM_HL78XX_DEV_STARTUP_TIME_MS=120 | ||
CONFIG_MODEM_HL78XX_DEV_SHUTDOWN_TIME_MS=120 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add these same options for mg100.conf
25f59a3
to
037036a
Compare
Sierra Wireless AirVantage FOTA updates in the HL78xx modem driver. Signed-off-by: Zafer SEN <[email protected]>
Adds AT shell support, enabling developers to send AT commands directly. Signed-off-by: Zafer SEN <[email protected]>
037036a
to
d1f9d3b
Compare
|
This PR enhances the HL78xx modem driver with two key features:
These additions improve both development workflow (through shell access) and device maintainability (through AirVantage-based updates).