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

Want to control Smart TV with NimBLE used in esp-matter code (CON-1576) #1304

Open
Ajay2803 opened this issue Mar 3, 2025 · 4 comments
Open

Comments

@Ajay2803
Copy link

Ajay2803 commented Mar 3, 2025

Hi,

I am using esp-matter light example, for my development. I know matter uses Nimble stack, because it uses ble only for commissioning. But in my case i want to use ble for other purpose, like to control Smart TV's using HID Profile after commissioning and I got stuck at this point.

I have tried many different examples from esp-idf (Bluedroid and Nimble) and suggestions from esp-matter issues, but i am unable to solve this problem.

please Help me step by step to achieve this, and also let me know that if i'll do this kind of customisation will it break any matter law's or may issue while matter certification.
Or If you have any alternate way please suggest me, so i can continue with my development.

@github-actions github-actions bot changed the title Want to control Smart TV with NimBLE used in esp-matter code Want to control Smart TV with NimBLE used in esp-matter code (CON-1576) Mar 3, 2025
@wqx6
Copy link
Contributor

wqx6 commented Mar 7, 2025

Are you wanting to use BLE after Matter commissioning? If yes, you should disable CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING in menuconfig to prevent BLE from deinitialization after matter commissioning. And you should also use the external platform to add your own BLE codes to use HID profile.

@Ajay2803
Copy link
Author

Ajay2803 commented Mar 7, 2025

Thankyou for your reply,

yes i want to use BLE after commissioning, I have already disabled CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING. can you clarify what do you mean by External Platforms? I am unable to understand this.

@wqx6
Copy link
Contributor

wqx6 commented Mar 7, 2025

Can you clarify what do you mean by External Platforms? I am unable to understand this.

We will initialize BLE stack and advertise Matter-over-BLE services and handle Matter data in our platform codes https://github.com/project-chip/connectedhomeip/tree/master/src/platform/ESP32/nimble, but you are use BLE with HID profile to control Smart TV, so you must modify the BLE platform codes to support both Matter commissioning and HID Profile. And the external platform is the solution we provide to override the original platform codes. you can refer to https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html?#advanced-setup about how to use it.

@Ajay2803
Copy link
Author

Sorry, But we don't want to use this way.

I am sharing my sample code, please go through it and give me some suggestions. I am able to turn on BLE and it is visible in TV also but i am not able to connect it. Can you please help me to connect and control the TV using this way?

and also please reply to this question:
(please Help me step by step to achieve this, and also let me know that if i'll do this kind of customisation will it break any matter law's or may issue while matter certification.)

example_code.zip

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