-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
applications: serial_lte_modem: SLM UART refactoring
Following changes have been made: - RX operations to work as data streams. RX is never disabled unless it runs out of buffers. Multiple AT commands can be bundled together instead of waiting for OK for all of them. - TX operations to work as data streams. Multiple TX messages will be bundled together. This is not backwards compatible and will break the RX of clients, which expect singular UART RX response to include one AT-command response. It can include several or partial responses as well as data in datamode. However, everything is transmitted in the order that it is triggered in SLM and the various buffer corruptions are fixed. - Hardware flow control is on by default. SLM can operate without, if sufficient buffer sizes are defined. Dynamically setting HWFC is removed, it has not worked for a while and we should follow the device tree. IDLE mode GPIO changed to be edge triggered. Previously it was level triggered and caused a stack overflow. - Add handling for data, which is larger than datamode buffer. Callbacks which are capable of sending data as stream, are able to send ~any size data. Callbacks which are not, will stop sending with failure. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
- Loading branch information
1 parent
c3a9f8a
commit 649d62b
Showing
24 changed files
with
1,137 additions
and
758 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
|
||
&uart0 { | ||
status = "okay"; | ||
hw-flow-control; | ||
}; | ||
|
||
&uart2 { | ||
|
This file contains 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
|
||
&uart0 { | ||
status = "okay"; | ||
hw-flow-control; | ||
}; | ||
|
||
&uart2 { | ||
|
This file contains 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 |
---|---|---|
|
@@ -10,6 +10,11 @@ | |
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
hw-flow-control; | ||
}; | ||
|
||
&uart2 { | ||
status="disabled"; | ||
}; | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.