In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to use passkey in nRF51822? for this problem, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
NRF51822 uses passkeyBonding with passkey is shown in ble_app_gls in the SDK, so it might be useful to take a look on it.
To modify an example not using passkey to do so, you have to change 3 things:
Set MITM in ble_gap_sec_params_t to 1.
Set IO capabilities in ble_gap_sec_params_t to something with either display or keyboard. Refer to table 2.4 in the Core Specification, Volume 3, Part H, section 2.3.5.1 for your possibilities.
Depending on your choice in 2, either, a) if you have a keyboard: Reply to a BLE_GAP_EVT_AUTH_KEY_REQUEST with a call to sd_ble_gap_auth_key_reply (), supplying the key your user entered. B) if you have a display: Show the key contained in the BLE_GAP_EVT_PASSKEY_DISPLAY on your display, so that the user can enter this key on the Central device.
This is the answer to the question about how to use passkey in nRF51822. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.