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

BLE Mesh Provisioner generates value 0 outside of Specification for Push, Twist (IDFGH-5079) #6863

Closed
dastarling opened this issue Apr 13, 2021 · 1 comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@dastarling
Copy link

Environment

  • Development Kit: ESP32-C3-DevKitM-1
  • Kit version [v1.0]
  • Module or chip used: ESP32-C3-Mini-1
  • IDF version (run git describe --tags to find it):
    v4.4-dev-744-g1cb31e509
  • Build System: idf.py
  • Compiler version (run xtensa-esp32-elf-gcc --version to find it):
    riscv32-esp-elf-gcc (crosstool-NG 1.24.0.123_64eb9ff) 8.4.0
  • Operating System: Linux
  • Using an IDE?: Yes VS Code
  • Power Supply: USB

Problem Description

When using the Input OOB Push method, 0 is output sometimes, which is invalid per spec. Likely an issue with input OOB Blink, Beep, and Vibrate as well in Node device.

Mesh Profile Spec v1.0.1
When the Authentication Method 0x03 (Authentication with Input OOB) method is used and when Input OOB Action for the Authentication Action value is equal to Push, then the Provisioner shall select a random integer between 0 and 10 to the power of the Authentication Size exclusive. That random number shall be input by the number of push actions. When Input OOB Action for the Authentication Action value is equal to Twist, then the Provisioner shall select a random integer between 0 and 10 to the power of the Authentication Size exclusive. That random number shall be input by the number of twist actions until the value on the control has been entered.

Expected Behavior

Push Button OOB to be 1-9

Actual Behavior

Sometimes it will be 0

Steps to reproduce

  1. Setup Provisioner for BLE Mesh
  2. Configure Node on BLE Mesh to use Input Push Button Auth
  3. During Auth Procedure Provisioner will sometimes output 0 for Button Presses

Code to reproduce this issue

See https://github.com/espressif/esp-idf/blob/master/components/bt/esp_ble_mesh/mesh_core/prov.c:753

@espressif-bot espressif-bot added the Status: Opened Issue is new label Apr 13, 2021
@github-actions github-actions bot changed the title BLE Mesh Provisioner generates value 0 outside of Specification for Push, Twist BLE Mesh Provisioner generates value 0 outside of Specification for Push, Twist (IDFGH-5079) Apr 13, 2021
@InfiniteYuan
Copy link
Collaborator

InfiniteYuan commented Apr 20, 2021

@dastarling Thank you for your feedback. We‘ll fix it.

@espressif-bot espressif-bot added Status: In Progress Work is in progress Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new Status: In Progress Work is in progress labels May 6, 2021
espressif-bot pushed a commit that referenced this issue May 18, 2021
projectgus pushed a commit that referenced this issue May 21, 2021
projectgus pushed a commit that referenced this issue May 25, 2021
projectgus pushed a commit that referenced this issue Jun 8, 2021
espressif-bot pushed a commit that referenced this issue Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants