-
Notifications
You must be signed in to change notification settings - Fork 28
README: Initial info #10
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,93 @@ | ||
| # ncs-serial-modem | ||
| NCS serial modem application add-on | ||
| # Serial Modem | ||
|
|
||
| The Serial Modem Add-On contains the Serial Modem application for nRF91-based devices, and is built on [nRF Connect SDK](https://www.nordicsemi.com/Products/Development-software/nRF-Connect-SDK) (NCS). | ||
| It includes host examples in the form of the Serial Modem Host library and the Serial Modem Host Shell sample. | ||
|
|
||
| ## Background | ||
|
|
||
| The base of the Serial Modem Add-On has been copied from NCS commit `437f372b37849fe215243f8de48847d578976c13` on 17th Sep 2025. | ||
| The following files and folders were copied: | ||
|
|
||
| * `applications/serial_lte_modem` | ||
| * `lib/modem_slm` | ||
| * `samples/cellular/slm_shell` | ||
| * `include/modem/modm_slm.h` | ||
| * `doc/nrf/libraries/modem/modem_slm.rst` | ||
|
|
||
| All of the above content will be removed from the NCS before its 3.2.0 release. | ||
|
|
||
| The following renaming has been done for filenames, Kconfig options, code symbols, etc.: | ||
|
|
||
| * Serial LTE Modem -> Serial Modem | ||
| * slm -> sm | ||
| * `CONFIG_SLM_*` -> `CONFIG_SM_*` | ||
| * Modem SLM library -> Serial Modem Host library | ||
| * modem_slm -> sm_host | ||
| * `CONFIG_MODEM_SLM_*` -> `CONFIG_SM_HOST_*` | ||
| * SLM Shell sample -> Serial Modem Host Shell sample | ||
| * slm_shell -> sm_host_shell | ||
|
|
||
| ## Documentation | ||
|
|
||
| The documentation for the Serial Modem Add-On resides in the `/doc` folder. | ||
| At the moment, the content is a direct copy of the NCS versions. This means that, the RST files are not processed into a human friendly format. This will be improved in the future. | ||
| Documentation can be viewed in Github and it is rendered into some extent but the links are broken. [NCS v3.1.x Serial LTE Modem](https://docs.nordicsemi.com/bundle/ncs-3.1.1/page/nrf/applications/serial_lte_modem/README.html) documentation is still valid and can be used as a reference. | ||
|
|
||
| ## Getting started | ||
|
|
||
| Fetching the repository: | ||
|
|
||
| ```shell | ||
| # Initialize workspace | ||
| west init -m https://github.com/nrfconnect/ncs-serial-modem.git --mr main serial_modem | ||
|
|
||
| cd serial_modem | ||
|
|
||
| # Update nRF Connect SDK modules. This may take a while. | ||
| west update | ||
| ``` | ||
|
|
||
| Building and flashing nRF9151 DK: | ||
|
|
||
| ```shell | ||
| # Assuming you are in the serial_modem folder | ||
| cd project/app | ||
|
|
||
| # Pristine build | ||
| west build -p -b nrf9151dk/nrf9151/ns | ||
|
|
||
| # Flashing | ||
| west flash | ||
| ``` | ||
|
|
||
| The application is now built and flashed to the device. You can open a serial terminal to use the application. The default baud rate is 115200. | ||
|
|
||
| ## Upcoming breaking changes | ||
|
|
||
| While majority of the Serial Modem application API remain unchanged from the NCS SLM, there will also be breaking changes from the host implementations perspective in the future releases of the Serial Modem Add-On. Here are the most important changes that are planned currently: | ||
|
|
||
| * Power and indicate pins modified into DTR and RI pins | ||
| * Default line termination changed from `<CRLF>` to `<CR>` | ||
| * A `<socket_id>` field added for many socket operations as the first parameter | ||
| * PPP will not start automatically with `AT+CFUN=1` but you need to issue `AT#XPPP=1` before or after `AT+CFUN=1` | ||
| * Renaming: `AT#SLMVER` -> `AT#SMVER` | ||
| * Renaming: `AT#GPS` -> `AT#GNSS` | ||
| * Removing: `AT#XPOLL` (use `AT#XAPOLL`) | ||
|
|
||
| ## Migration Guide | ||
|
|
||
| This section gives instructions on how to migrate from the NCS v3.1.x Serial LTE Modem to the Serial Modem Add-On: | ||
|
|
||
| * API and functionality | ||
| * There are no API change or functional changes | ||
| * Even `AT#SLMVER` command has not been renamed yet | ||
| * Compilation | ||
| * Same commands can be used but you need to do the following renaming if you are setting any Serial Modem related Kconfig options in overlays or command line | ||
| * Rename `CONFIG_SLM_*` -> `CONFIG_SM_*` | ||
| * Rename `CONFIG_MODEM_SLM_*` -> `CONFIG_SM_HOST_*` | ||
| * Code patches | ||
| * Unfortunately, adapting your own code patches will require some work | ||
| * Filenames have been renamed: `slm_`-> `sm_` and `modem_slm`-> `sm_host`. | ||
| * Functions and other symbols in the code have been renamed accordingly making automatic patching to likely fail | ||
|
|
||
| As the breaking changes to the Serial Modem Add-On are done, the migration guide will be updated. | ||
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.