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: encrypt llpm sample #11720

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

martintv
Copy link
Contributor

@martintv martintv commented Jul 6, 2023

It makes most sense to demonstrate llpm on an ecrypted link. Also setting down conection interval to the smallest bluetooth allows. 7.5ms. Since encyrpting the link takes quite a lot of packets back and forth, this will speed up setup. But also it makes sense that the sample compares the best bluetooth can do with the best llpm can do.

@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 Jul 6, 2023
{
printk("Security changed: level %i, err: %i\n", level, err);

/*Start service discovery when link is encrypted*/
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a check that err is non-zero and disconnect/assert if that's the case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@NordicBuilder
Copy link
Contributor

NordicBuilder commented Jul 6, 2023

Test specification

CI/Jenkins/NRF

  • Integration Platforms

CI/Jenkins/integration

Test Module File based changes Manually selected West overwrite
test-fw-nrfconnect-ble X
test-fw-nrfconnect-ble_samples X

Detailed information of selected test modules

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

It makes most sense to demonstrate llpm on an ecrypted link.
Also setting down conection interval to the smallest
bluetooth allows. 7.5ms. Since encyrpting the link takes
quite a lot of packets back and forth, this will speed up setup.
But also it makes sense that the sample compares the best
bluetooth can do with the best llpm can do.

Signed-off-by: Martin Tverdal <martin.tverdal@nordicsemi.no>
@martintv
Copy link
Contributor Author

martintv commented Jul 6, 2023

image
capture from running sample in bsim on top of this PR

@jori-nordic
Copy link
Contributor

@martintv you might want to pass the cmdline option -RealEncryption=1 to the bsim devices, else bt_encrypt will not really encrypt the data, that's why it appears in cleartext after the LL_START_ENCs are exchanged.

@martintv martintv removed the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Jul 7, 2023
@rlubos rlubos merged commit 9a5c20e into nrfconnect:main Jul 7, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants