- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I'm new with BLE and I established a connection between a central Android smartphone and a BLE module, peripheral. I used UUIDs to get this connection. Now I would like to create a communication between the same peripheral BLE and another BLE module that works as a central unit: is it possible to do this always using the UUIDs of the services and features? I also looked at the examples in "Day020_BLE_UART" but I don't understand how to modify the programs. Can anyone give me a hand?
Thank you.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the peripheral BLE scan response data please enable the service UUID as shown in attached image then the scan response packet will contains the service UUID values of that peripheral device. We can check for particular service UUID value at the central device and then connect.
Please refer to the attached project where in the scan progress event "CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT" of central device I'm filtering with particular service UUID of peripheral.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the peripheral BLE scan response data please enable the service UUID as shown in attached image then the scan response packet will contains the service UUID values of that peripheral device. We can check for particular service UUID value at the central device and then connect.
Please refer to the attached project where in the scan progress event "CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT" of central device I'm filtering with particular service UUID of peripheral.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi P Yugandhar,
Thank you for your answer. However, I must tell you that the two projects you have attached only open the "central" project. Did I make any mistakes?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved, excuse me...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi P Yugandhar,
the projects work fine. Now wish to transmit data from peripheral to central. There is a way to obtain this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please refer to the same attached project which was taken from GitHub( Day020_BLE_UART ) which gives information on handling BLE central and peripheral communication.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi P Yugandhar,
if I modify some hexadecimal values in the lines 35 to 50 of app_ble.c, so that the UUIDs are different from those of the peripheral, the serial monitor always gives:
"Server with matching custom service discovered ...
Connection established".
I do not understand why
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the scan progress event "CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT", advReport->data values will contains the peripheral service UUID values (if we enable the service UUID in scan response data in peripheral device). Before establishing the connection we are checking with these scan response data.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi P Yugandhar,
I'm using the two projects of Day20_BLE_UART. The configurations of the UARTs are the same. Once the connections have been established I see the data written on the control unit terminal pass on the peripheral device, but I do not see the data passing from the peripheral to the control unit. Reading the pdf attached to Day20_BLE_UART it seems to me that the exchange must be reciprocal or did I understand wrong?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The data sent through the terminal application at one end, appears at the other end i.e., the data entered on peripheral will appear at the central and vice versa.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi P Yugandhar,
then I don't understand why if I write data in the CENTRAL side of Teraterm I see data in the PERIPHERAL side of Teraterm and not vice versa
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can you please share your project so that we can check and see what is the problem.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi P Yugandhar,
solved!
Thank you very much!