You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/02/25 11:36:58 UTC

[GitHub] [mynewt-nimble] freeride01 opened a new issue #1193: Passkey/password pairing with NimBLE?

freeride01 opened a new issue #1193:
URL: https://github.com/apache/mynewt-nimble/issues/1193


   Hello,
   I have the following question. I have a BLE device based on ESP32. It does not have input or output capabilities. I am using ESP-IDF and the NimBLE stack, which I'm very pleased with so far.
   I want to do password authentication as follows:
   1. User pairs to the ESP32 device from a smartphone app.
   2. User generates a passkey or password and sends it to the ESP32 device, which in turn sets it as a password for pairing.
   3. The next time a user wants to connect, the ESP32 device sends him a request for password.
   4. If he enters the correct password, he pairs to the device. If not, he cannot pair.
   
   Is this possible with the NimBLE stack and is there example code for this scenario?
   Thank you in advance.
   
   P.S. obviously I read the part about security in BLE user guide ([https://mynewt.apache.org/latest/network/ble_sec.html](url)), but there were no examples on exactly how to implement passkey pairing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] sjanc commented on issue #1193: Passkey/password pairing with NimBLE?

Posted by GitBox <gi...@apache.org>.
sjanc commented on issue #1193:
URL: https://github.com/apache/mynewt-nimble/issues/1193#issuecomment-1054434456


   yes, no input/no output iocapa doesn't allow for authenticated pairing
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] freeride01 commented on issue #1193: Passkey/password pairing with NimBLE?

Posted by GitBox <gi...@apache.org>.
freeride01 commented on issue #1193:
URL: https://github.com/apache/mynewt-nimble/issues/1193#issuecomment-1054362709


   > Hi,
   > 
   > You can check btshell, it implements all pairing models
   
   As far as I can see, when you have a "no input/no output" device (as I do), you can't set a passkey.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] freeride01 commented on issue #1193: Passkey/password pairing with NimBLE?

Posted by GitBox <gi...@apache.org>.
freeride01 commented on issue #1193:
URL: https://github.com/apache/mynewt-nimble/issues/1193#issuecomment-1054151490


   No replies, so I guess this is not possible.
   In that case, has anyone had any success in modifying the BLE peripheral API to include a password for pairing?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] freeride01 commented on issue #1193: Passkey/password pairing with NimBLE?

Posted by GitBox <gi...@apache.org>.
freeride01 commented on issue #1193:
URL: https://github.com/apache/mynewt-nimble/issues/1193#issuecomment-1054442717


   So is there a way to temporarily disable all gatt services/characteristics except one (for the password) and when the user enters it, they are enabled again?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] sjanc commented on issue #1193: Passkey/password pairing with NimBLE?

Posted by GitBox <gi...@apache.org>.
sjanc commented on issue #1193:
URL: https://github.com/apache/mynewt-nimble/issues/1193#issuecomment-1054173170


   Hi,
   
   You can check btshell, it implements all pairing models


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] freeride01 commented on issue #1193: Passkey/password pairing with NimBLE?

Posted by GitBox <gi...@apache.org>.
freeride01 commented on issue #1193:
URL: https://github.com/apache/mynewt-nimble/issues/1193#issuecomment-1055401654


   Let me rephrase the question: in the project I am using for a template, the GATT server is started with `gatt_svr_init()`.
   1. How do I stop it during runtime, since I can't find a `gatt_svr_deinit()` function?
   2. Can I initialize GATT with a custom array of services, something like `ble_gatts_add_svcs(my_custom_array)`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org