Skip to content
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

lib: at_host: Write AT response to correct UART device #20382

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anhmolt
Copy link
Contributor

@anhmolt anhmolt commented Feb 14, 2025

If for instance trying to use uart3 for the AT host while CONFIG_LOG_BACKEND_UART is enabled, AT responses all ended up in the log, not on the chosen AT host UART device.

This builds on PR #20242 by @fellerts, where a fix for this issue was first posted.

@anhmolt anhmolt requested review from a team as code owners February 14, 2025 12:40
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Feb 14, 2025
@anhmolt anhmolt force-pushed the write-at-resp-to-correct-uart-dev branch from efada76 to ce35d19 Compare February 14, 2025 12:44
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Feb 14, 2025

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 3

Inputs:

Sources:

sdk-nrf: PR head: 0f81d3e085de3fc73ed59f88b34b66c5c8a35768

more details

sdk-nrf:

PR head: 0f81d3e085de3fc73ed59f88b34b66c5c8a35768
merge base: 87fef230aa647b5dec2ad7770ef04e0c43f374bf
target head (main): 87fef230aa647b5dec2ad7770ef04e0c43f374bf
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (2)
doc
│  ├── nrf
│  │  ├── releases_and_maturity
│  │  │  ├── releases
│  │  │  │  │ release-notes-changelog.rst
lib
│  ├── at_host
│  │  │ at_host.c

Outputs:

Toolchain

Version: 342151af73
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:342151af73_bbe5b33786

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 358
  • ✅ Integration tests
    • ✅ test-fw-nrfconnect-nrf-iot_samples
    • ⚠️ test-fw-nrfconnect-nrf-iot_cloud
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test_ble_nrf_config
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_lwm2m
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-proprietary_esb
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-audio
    • test-sdk-dfu
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-sidewalk
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link.

Note: This comment is automatically posted by the Documentation Publish GitHub Action.

anhmolt and others added 2 commits February 14, 2025 17:04
Use preprocessor macro to get the uart device to use.

Signed-off-by: Andreas Moltumyr <[email protected]>
Ensure that AT responses are written to the correct UART device when
CONFIG_LOG_BACKEND_UART is enabled and ncs,at-host-uart
is not uart0 (default).

Co-authored-by: Fredrik Flornes Ellertsen <[email protected]>
Signed-off-by: Andreas Moltumyr <[email protected]>
@anhmolt anhmolt force-pushed the write-at-resp-to-correct-uart-dev branch from ce35d19 to 0f81d3e Compare February 14, 2025 16:05
@anhmolt anhmolt requested a review from a team as a code owner February 14, 2025 16:05
@github-actions github-actions bot added doc-required PR must not be merged without tech writer approval. and removed changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required PR must not be merged without tech writer approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants