Skip to content

Conversation

zafersn
Copy link
Contributor

@zafersn zafersn commented Oct 20, 2025

This PR enhances the HL78xx modem driver with two key features:

  1. AT Shell Support – Enables sending AT commands directly from the Zephyr shell for testing, debugging, and modem interaction.
  2. Sierra Wireless AirVantage FOTA Support – Adds integration for firmware-over-the-air (FOTA) updates via the AirVantage platform.
  • Introduced AT shell interface to allow developers to issue AT commands through Zephyr’s shell subsystem.
  • Added AirVantage FOTA support to enable remote firmware management for HL78xx-based devices.
  • Updated driver logic and configuration options to ensure compatibility with recent firmware versions.
  • Verified functionality on the Pinnacle DK board (tested FOTA via AirVantage and AT shell features).

These additions improve both development workflow (through shell access) and device maintainability (through AirVantage-based updates).

Comment on lines +217 to 224
#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;
Copy link
Member

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?

Copy link
Contributor Author

@zafersn zafersn Oct 20, 2025

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.

Here it's also their practice:
image

Comment on lines 2 to 5
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
Copy link
Member

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

@zafersn zafersn force-pushed the feature_AV_fota_and_at_shell branch from 25f59a3 to 037036a Compare October 20, 2025 18:13
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]>
@zafersn zafersn force-pushed the feature_AV_fota_and_at_shell branch from 037036a to d1f9d3b Compare October 20, 2025 18:18
Copy link

@zafersn zafersn requested a review from rerickson1 October 20, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants