sm_host: DTE DTR#9
Closed
MarkusLassila wants to merge 9 commits into
Closed
Conversation
Implement PIPE interface to Serial Modem UART to be able to use the same UART implementation for both pure AT-commands and for CMUXed AT-commands and PPP. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
Work in progress: Not ready. Terms: Data Terminal Equipment (DTE), AKA. host. Data Communication Equipment (DCE), AKA. SLM. Data Terminal Ready (DTR) Ring Indicate (RI) DTR operation: When DCE notices DTR asserted fom DTE, it resumes UART, enables RX and sends any possibly pending TX data. When DCE notices DTR deasserted from DTE, it aborts possible TX, disables RX and suspends UART. RI operation: When DCE observes DTR deasserted and it needs to send data, it sets RI up to notify DTE. Application integration: * uart_rx_enable is used as indicator that application is ready. * UART_RX_BUF_REQUEST is sent by virtual UART to application to request a buffer. * Logic level 1 is asserted, use DT to change 0/1 level of that. TODO: * sw_dtr should not keep RX buffers. Instead when RX is enabled, feed buffer to UART from application call. * When buffer is needed, make a callback to app to request a buffer. * When UART is powered down because of DTR, block RX_STOP and RX_DISABLE events going to application, so app thinks the UART keeps on going. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no> Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
sm_host: DTE implementation of DTR.