- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello-
Can someone tell me what is the minimum requirement needed to make a BLE connections to the UART_to_BLE_Central and UART_to_BLE_Peripheral projects? I am trying to connect to a custom device running this code using Bluetooth4 BLE protocols.
Is it only Bluetooth Address? Or UUID? Or Manufacturing Data? Some sample code to establish connection would be greatly appreciated.
Thank you
Rohan
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The service UUID is just to decide on which device to connect to. Once you start the scanning process, you will receive advertising packets. Check the advertising packets to see if the device has the service you want. If the device has the service you want, the advertising packet will also have BD address of the device. You can use this BD/Mac Address to start a connection. So BD/Mac address is the main thing required to uniquely identify and connect to a device.
Yeshwanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Since this a custom service, the proper way to connect is to scan for all BLE devices around and then initiate connection to the one which has the desired custom service UUID.
Thanks,
Yeshwanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Yeshwanth,
Thank you for your response. So is the only thing required is the Custom Service UUID? Nothing else required for connection?
Rohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The service UUID is just to decide on which device to connect to. Once you start the scanning process, you will receive advertising packets. Check the advertising packets to see if the device has the service you want. If the device has the service you want, the advertising packet will also have BD address of the device. You can use this BD/Mac Address to start a connection. So BD/Mac address is the main thing required to uniquely identify and connect to a device.
Yeshwanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok I understand this part. But is what you are explaining is how the "UART_to_BLE_Central " code works? As I am trying to make this connection without modifying the Day 20 "UART_to_BLE_Central " sample code from Cypress. I believe it should work out of the box. Please let me know if code modifications should be applied.
Thanks,
Rohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the code will work out of the box. If you want to create a custom Central and peripheral of your own then follow the method I explained.
Regards,
Yeshwanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you have any sample code that uses this example solution to connect to a iOS app?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I think this thread will help - Re: How to communicate with Cypress BLE device runnning UART_to_BLE_Central project using iOS Object...
-Sayani.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes I know this thread but it does not address the question. Do you think the CySmart App on iOS platform will help? Where can I obtain this code?