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 Service Disable Abnormal (CON-1401) #1139

Open
emesamwong opened this issue Nov 1, 2024 · 1 comment
Open

BLE Service Disable Abnormal (CON-1401) #1139

emesamwong opened this issue Nov 1, 2024 · 1 comment

Comments

@emesamwong
Copy link

Describe the bug
A clear and concise description of what the bug is.
Hi, I would like to disable the BLE Service Mode function when the DUT is powered up and Enable the BLE Service Mode when Matter is enabled via LCD display control.

However, when I try to pair the DUT with the Chip tool. It could not pair successfully.
Here is the configuration:
sdkconfig: CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=n

BLEManagerImpl.cpp:
CHIP_ERROR BLEManagerImpl::_Init():
Screenshot from 2024-11-01 16-33-35
Screenshot from 2024-11-01 16-34-06

By the Log, it seems the BLE level is completed, However, the Chip-tool log is 'Timeout' at PASEsession.
Screenshot from 2024-11-01 16-36-48
Screenshot from 2024-11-01 16-38-19

Environment

  • ESP-Matter Commit Id: b5a2337

  • ESP-IDF Commit Id: 3b8741b172dc951e18509698dee938304bcf1523

  • SoC (eg: ESP32 or ESP32-C3): ESP32S3

  • Device Logs (Please attach the log file):
    DUT Log: DUT Log.txt
    Chip-tool Log: Chip-Log.txt

  • Host Machine OS: Linux

  • Host Machine Python version: 3.10.12

  • Commissioner app and versions if present: chip-tool

  • Home hub app and versions if present:

  • Commissioner's logs if present:

Any additional details
If I did not make any change in BLEManagerImpl.cpp and did not set "CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=n":
DUT powered up -> enabled BLE & commissioning window is open -> the pairing is successfully

Is any configuration or setting required for "Disable BLE Server"?

Please let me know if any information is required.

@github-actions github-actions bot changed the title BLE Service Disable Abnormal BLE Service Disable Abnormal (CON-1401) Nov 1, 2024
@pimpalemahesh
Copy link
Contributor

@emesamwong The CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART option is used to prevent the commissioning window from opening on boot. You mentioned that this option is disabled, but could you explain how you are still able to commission the device using the chip-tool if the commissioning window is closed?

Also do you want to disable BLE entirely on DUT power-up, or just stop advertising on boot and start advertising once Matter is enabled via LCD display control?

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

No branches or pull requests

2 participants