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

samples: bluetooth: Update distance estimation for mode 3 and multi a… #19252

Conversation

sean-madigan
Copy link
Contributor

…ntenna

Mode 3 is a combination of modes 1 and 2, so extract out some of the common logic and use this for mode 3.

Adjust array sizes and indexes so they can be used for multi antenna.

@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 Dec 4, 2024
@sean-madigan sean-madigan force-pushed the prepare_rreq_sample_for_multi_antenna_mode_3 branch from 98ce329 to 0b19f2e Compare December 4, 2024 12:14
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Dec 4, 2024

CI Information

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

Inputs:

Sources:

sdk-nrf: PR head: d405961ead610f8bf29f5d77b6769d3c8565d3c1

more details

sdk-nrf:

PR head: d405961ead610f8bf29f5d77b6769d3c8565d3c1
merge base: d126a9cb195cfad737b9f8bc5d4f9e0f8c3218e7
target head (main): ca40209c2955187ab800bc7427b8c882037cf033
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 (1)
samples
│  ├── bluetooth
│  │  ├── channel_sounding_ras_initiator
│  │  │  ├── src
│  │  │  │  │ distance_estimation.c

Outputs:

Toolchain

Version: b77d8c1312
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:b77d8c1312_912848a074

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

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 482
  • ✅ Integration tests
    • ✅ test-fw-nrfconnect-ble_samples
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test_ble_nrf_config
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_lwm2m
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_nrf_provisioning
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • 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-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

@sean-madigan sean-madigan force-pushed the prepare_rreq_sample_for_multi_antenna_mode_3 branch from 0b19f2e to bfb2063 Compare December 4, 2024 12:22
@eriksandgren eriksandgren self-requested a review December 4, 2024 12:37
Copy link
Contributor

@eriksandgren eriksandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

mode_1_data[context->mode_1_data_index].toa_tod_initiator =
peer_step_data->toa_tod_initiator;
}
} else if (local_step->mode == BT_HCI_OP_LE_CS_MAIN_MODE_3) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would probably be a bit more logical to add this later (when the sample actually generates mode 3 steps)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't see a down side to merging this now

Copy link
Contributor

@olivier-le-sage olivier-le-sage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be good to run the sample test locally as since it doesn't run in babblesim/oncommit

@@ -21,7 +21,8 @@ LOG_MODULE_DECLARE(app_main, LOG_LEVEL_INF);
#define SPEED_OF_LIGHT_M_PER_S (299792458.0f)
#define SPEED_OF_LIGHT_NM_PER_S (SPEED_OF_LIGHT_M_PER_S / 1000000000.0f)
#define PI 3.14159265358979323846f
#define MAX_NUM_SAMPLES 256
#define MAX_NUM_RTT_SAMPLES 256
#define MAX_NUM_IQ_SAMPLES 256 * CONFIG_BT_RAS_MAX_ANTENNA_PATHS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not really related to this PR but I suppose another improvement would be to process the tone extension slots

@thomas-m-johansen thomas-m-johansen self-requested a review December 4, 2024 12:54
Copy link
Contributor

@thomas-m-johansen thomas-m-johansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sean-madigan sean-madigan marked this pull request as ready for review December 4, 2024 13:06
@sean-madigan sean-madigan requested a review from a team as a code owner December 4, 2024 13:06
…ntenna

Mode 3 is a combination of modes 1 and 2, so extract out
some of the common logic and use this for mode 3.

Adjust array sizes and indexes so they can be used for multi
antenna.

Signed-off-by: Sean Madigan <[email protected]>
@sean-madigan sean-madigan force-pushed the prepare_rreq_sample_for_multi_antenna_mode_3 branch from bfb2063 to d405961 Compare December 4, 2024 13:07
@carlescufi carlescufi merged commit 584e1c8 into nrfconnect:main Dec 4, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants