app: Add automatic data reception for sockets#102
Conversation
f4cea89 to
c03e01b
Compare
There was a problem hiding this comment.
Pull request overview
This pull request adds automatic receive functionality for socket data through a new AT command #XSOCKETMODE. The feature enables sockets to automatically receive and report incoming data as URC notifications, eliminating the need for manual receive commands.
Key Changes
- Introduces
#XSOCKETMODEAT command to configure automatic data reception for sockets in both AT-command mode and data mode - Refactors socket mode enumerations to unify send and receive mode handling
- Enhances poll event management to track and process delayed events across mode transitions
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| doc/app/SOCKET_AT_commands.rst | Adds documentation for the new #XSOCKETMODE command with examples and response format references |
| app/src/sm_uart_handler.c | Updates URC sending logic to use in_at_mode() check instead of negated in_datamode() |
| app/src/sm_cmux.c | Updates URC sending logic to use in_at_mode() check instead of negated in_datamode() |
| app/src/sm_at_socket.h | Declares new function to notify socket module when data mode exits |
| app/src/sm_at_socket.c | Core implementation of automatic receive feature including mode tracking, event management, and the #XSOCKETMODE command handler |
| app/src/sm_at_host.h | Declares new in_at_mode() helper function |
| app/src/sm_at_host.c | Implements in_at_mode() function and adds notification call on data mode exit |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c03e01b to
6ab7e1f
Compare
3d4f261 to
b829cd3
Compare
|
Items from SM status meeting have been addressed. Feel free to review. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b829cd3 to
ea15f6d
Compare
ea15f6d to
801c7e5
Compare
908160c to
cd7656f
Compare
cd7656f to
81bb08b
Compare
|
Ping @trantanen, @divipillai |
A new AT-command #XRECVCFG can be used to set the automatic data reception for the sockets. When the automatic data reception is activated, the data received for the socket is immediately sent to host as URC. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
81bb08b to
c1fb5b5
Compare
A new AT-command #XRECVCFG can be used to set the automatic data reception for the sockets. When the automatic
data reception is activated, the data received for the socket is immediately sent to host as URC.
Jira: SM-110
Jira: SM-195