-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
application: serial_lte_modem: Automatic LTE connection #12849
Conversation
DNM: not for NCS v2.5.0, no review needed as of now. Doc changes come later |
Test specificationCI/Jenkins/NRF
CI/Jenkins/integration
Detailed information of selected test modules Note: This message is automatically posted and updated by the CI |
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publishing GitHub Action. |
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.
Request review once ready for review.
18b7bd2
to
6f09612
Compare
6f09612
to
f20fbae
Compare
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.
It seems that lte_auto_connect()
is not quite ready.
Also, you are introducing different changes (auto-connect, custom version string) in a single commit whose title doesn't (and cannot) reflect that. I think it would be good to split it up. |
Customer version string has direct relationship with different default network configuration from this PR. The version string change actually should have been introduced before, as in the market SLM is not always used out of box. Customers DO customize SLM to meet their own need, e.g. integrating soft sim, etc, which means they need version control as well. The customer version string is also required for APP FOTA (to update SLM). For example, current work with LwM2M Carrier requires a version that could reflect the update of lib_lwm2m_carrier. |
f20fbae
to
e7b8e4c
Compare
The auto-connect is not just for LwM2M over NIDD, but also for |
5ce6895
to
22c0ee1
Compare
22c0ee1
to
9bf612f
Compare
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.
Just a few bits to address left from my perspective (including some unaddressed previous comment of mine).
9bf612f
to
7619ec2
Compare
d5e91cc
to
0fd2d8b
Compare
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
0fd2d8b
to
803c195
Compare
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.
Other than a few nits, looks good to me
int lte_preference; /* 0 ~ 4 */ | ||
/* Refer to AT command manual of +CGDCONT and +CGAUTH for PDN configuration */ | ||
bool pdp_config; /* PDP context definition required or not */ | ||
char *pdn_fam; /* PDP type: "Non-IP"; ""IP", "IPV6", "IPV4V6", "Non-IP" */ |
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.
char *pdn_fam; /* PDP type: "Non-IP"; ""IP", "IPV6", "IPV4V6", "Non-IP" */ | |
char *pdn_fam; /* PDP type: "IP", "IPV6", "IPV4V6", "Non-IP" */ |
0, /* LTE preference */ | ||
/* Network-specific default PDN configured by +CGDCONT and +CGAUTH (refer to AT command manual) */ | ||
false, /* PDP context definition required or not */ | ||
"", /* PDP type: ""IP", "IPV6", "IPV4V6", "Non-IP" */ |
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.
"", /* PDP type: ""IP", "IPV6", "IPV4V6", "Non-IP" */ | |
"", /* PDP type: "IP", "IPV6", "IPV4V6", "Non-IP" */ |
* ``#XSLMVER`` AT command to report CONFIG_SLM_CUSTOMER_VERSION if it is defined | ||
|
||
* Removed: | ||
* The ``CONFIG_SLM_CUSTOMIZED`` Kconfig option due it to no longer being used. |
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.
* The ``CONFIG_SLM_CUSTOMIZED`` Kconfig option due it to no longer being used. | |
* The ``CONFIG_SLM_CUSTOMIZED`` Kconfig option due to it to no longer being used. |
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 one's on me, and should actually be:
* The ``CONFIG_SLM_CUSTOMIZED`` Kconfig option due it to no longer being used. | |
* The ``CONFIG_SLM_CUSTOMIZED`` Kconfig option due to it no longer being used. |
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.
Ah, I almost got it right 😄
|
||
* Updated: | ||
|
||
* ``#XMQTTCON`` AT command to exclude MQTT client ID from the parameter list. | ||
* ``#XSLMVER`` AT command to report CONFIG_SLM_CUSTOMER_VERSION if it is defined |
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.
* ``#XSLMVER`` AT command to report CONFIG_SLM_CUSTOMER_VERSION if it is defined | |
* ``#XSLMVER`` AT command to report CONFIG_SLM_CUSTOMER_VERSION if it is defined. |
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.
Nice catch!
#if defined(CONFIG_SLM_CARRIER) | ||
#include "slm_at_carrier.h" | ||
#endif |
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.
#if defined(CONFIG_SLM_CARRIER) | |
#include "slm_at_carrier.h" | |
#endif |
No longer needed I think
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.
Yes as LwM2M not VIP any more
0, /* LTE preference */ | ||
/* Network-specific default PDN configured by +CGDCONT and +CGAUTH (refer to AT command manual) */ | ||
true, /* PDP context definition required or not */ | ||
"Non-IP", /* PDP type: ""IP", "IPV6", "IPV4V6", "Non-IP" */ |
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.
"Non-IP", /* PDP type: ""IP", "IPV6", "IPV4V6", "Non-IP" */ | |
"Non-IP", /* PDP type: "IP", "IPV6", "IPV4V6", "Non-IP" */ |
Move the lte auto-connect from SLM LwM2M client to full SLM scope. Support lte auto-connnect by new Kconfig CONFIG_SLM_AUTO_CONNECT. Default behavior is no automatic LTE connection, same as before. When auto-connect is enabled, need to customize network-specific PDN configuration in code. Default is Non-IP in NB-IoT for NIDD. Impact on LwM2M client: .Operation "auto_connect" is removed from LwM2M command. .No more dynamic config of auto_connect (and auto_register). .CONFIG_SLM_AUTO_CONNECT is enabled by default in overlay. Change CONFIG_SLM_CUSTOMIZED to CONFIG_SLM_CUSTOMER_VERSION to allow reporting customer version of SLM after customization. Remove unused CONFIG_SLM_AT_MODE and CONFIG_SLM_SOCKET_RX_MAX. Signed-off-by: Jun Qing Zou <jun.qing.zou@nordicsemi.no>
803c195
to
8d42fab
Compare
Thanks for all the comments. |
Move the lte auto-connect from SLM LwM2M client to full SLM scope.
Support lte auto-connnect by new Kconfig CONFIG_SLM_AUTO_CONNECT.
Default behavior is no automatic LTE connection, same as before.
When auto-connect is enabled, need to customize network-specific
PDN configuration in code. Default is Non-IP in NB-IoT for NIDD.
Impact on LwM2M client:
.Operation "auto_connect" is removed from LwM2M command.
.No more dynamic config of auto_connect (and auto_register).
.CONFIG_SLM_AUTO_CONNECT is enabled by default in overlay.
Change CONFIG_SLM_CUSTOMIZED to CONFIG_SLM_CUSTOMER_VERSION to
allow reporting customer version of SLM after customization.
Remove unused CONFIG_SLM_AT_MODE and CONFIG_SLM_SOCKET_RX_MAX.