Hi,
How to auto-connect with my BLE peripheral without an external application?
Here, the Android mobile acts as a central, and the nordic chip act as a peripheral.
Thanks for your time.
Prashanth
Hi,
How to auto-connect with my BLE peripheral without an external application?
Here, the Android mobile acts as a central, and the nordic chip act as a peripheral.
Thanks for your time.
Prashanth
Hello Prashanth,
How to auto-connect with my BLE peripheral without an external application?
Here, the Android mobile acts as a central, and the nordic chip act as a peripheral.
What do you mean when you say "without an external application"?
The phone is the central, and it is always the central that will have to initiate a connection.
So, you will have to make sure your phone sends a connect request to your peripheral device, when it receives an advertisement from your peripheral device.
Following this, the connection will be established as long as your peripheral accepts the connection request.
For future reference, I would advice you to make your ticket public instead of private when it does not contain proprietary code or information.
This way, you might get help from the community faster.
Best regards,
Karl
Hi Karl,
Thank you so much for your response.
I was thinking how the media devices (headphones, smartwatches etc., are getting connected through internal Bluetooth settings unlike depending on an external application to send a connection request. Please help me understand how it is working and how can I configure my module such that it can also act as a media device and exhibit auto-connection properties as we see in headphones, watches etc. without needing an external application.
Best Regards,
Prashanth
Hello Prashanth,
bbprashanth said:I was thinking how the media devices (headphones, smartwatches etc., are getting connected through internal Bluetooth settings unlike depending on an external application to send a connection request. Please help me understand how it is working and how can I configure my module such that it can also act as a media device and exhibit auto-connection properties as we see in headphones, watches etc. without needing an external application.
As far as I know, only HID devices are currently auto-reconnect accepted by smartphones.
So, it will depend on your application whether the phone will allow auto-reconnections, or if you will need an specific application to do so.
Do I understand you correctly that your device is in fact a HID device / will have a HID profile?
Best regards,
Karl
Hi Karl,
More likely it would be HFP/HSP, but in case of meeting the auto-connection requirements, if required, we could adopt HID. How do achieve it and how to advertise as a HID Device?
Best Regards,
Prashanth
Hello Prashanth,
bbprashanth said:More likely it would be HFP/HSP, but in case of meeting the auto-connection requirements, if required, we could adopt HID. How do achieve it and how to advertise as a HID Device?
You will need to use GATT profiles, not to be confused with Bluetooth classic profiles, so in this case you are probably looking at using the HID over GATT ( HOGP ) profile.
You can see how this profile is implemented and used in both the HID keyboard and HID mouse example from the SDK. Both these examples may auto-reconnect to centrals.
Please do not hesitate to ask if you should encounter any issues or questions!
Best regards,
Karl
Hello Prashanth,
bbprashanth said:More likely it would be HFP/HSP, but in case of meeting the auto-connection requirements, if required, we could adopt HID. How do achieve it and how to advertise as a HID Device?
You will need to use GATT profiles, not to be confused with Bluetooth classic profiles, so in this case you are probably looking at using the HID over GATT ( HOGP ) profile.
You can see how this profile is implemented and used in both the HID keyboard and HID mouse example from the SDK. Both these examples may auto-reconnect to centrals.
Please do not hesitate to ask if you should encounter any issues or questions!
Best regards,
Karl