- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I get PSoC6 BLE component to advertise multiple profiles in peripheral role?
Each profile has it's own advertisement and scan response data and the GATT DB is composed of services of those profiles.
Starting off CE217637, I added another peripheral configuration (see screenshot attached) in the BLE component.
In AppCallBack() case CY_BLE_EVT_GAP_DEVICE_DISCONNECTED, added the line to start advertising for this newly added peripheral configuration.
Cy_BLE_GAPP_StartAdvertisement(CY_BLE_ADVERTISING_FAST, 1).
When the program is run, the above API does not return.
I am new to PSoC-6, hence appreciate the help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Karthikeyan,
Q1- I don't understand why it is necessary to disconnect and re-connect the device to hit the second breakpoint.
Ans- Second breakpoint is in CY_BLE_EVT_GAP_DEVICE_DISCONNECTED event so this event will be generated only when device gets disconnected.
Q2- However, I don't see the BLE advertising if I just program the PSoC with the application binary and hit reset. (no JTAG debugging involved).
Ans- Could you please check with the project which I attached (CE217637_BLE_Find_Me02.cywrk.Archive0) with CySmart App.
Q3- Can you see the "Find Me Target" device on BLE scanner apps like Lightblue after flash programming?
Ans- I'm able to getting the "Find Me Target" device. Could you please check with CySmart App. We have to process the events continuously by calling Cy_BLE_ProcessEvents(); please remove the while(1) in your project as shown in image.
Q4- I also have the Frontline BPA BLE sniffer and I don't see the advertisements from this PSoC kit on it either.
Ans- Could you please send some screenshots on the observations.
Please let me know if you have any questions.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Karthikeyan,
At my end, i'm able to advertising with multiple peripheral configurations. Can you please share your project so that we can check.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Yugandhar,
I'll upload my project tomorrow. Could you please upload yours as a
reference.?
Thanks
Karthikeyan
- 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
Hello Yugandhar,
When I build and debug the project you provided, the program does not hit these breakpoints after entering Cy_BLE_ProcessEvents()
Please find my project attached to the original post.
Thanks,
Karthikeyan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Karthikeyan,
Please refer the attached images. When you start debugging, the program will hit the first breakpoint as shown in Stack_ON.PNG image. After that resume the execution in PSoC Creator and in the Cysmart please connect and disconnect the device then the program will hit the second breakpoint as shown in Disconnected.PNG.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Yugandhar,
I don't understand why it is necessary to disconnect and re-connect the device to hit the second breakpoint.
However, I don't see the BLE advertising if I just program the PSoC with the application binary and hit reset. (no JTAG debugging involved).
Can you see the "Find Me Target" device on BLE scanner apps like Lightblue after flash programming?
I also have the Frontline BPA BLE sniffer and I don't see the advertisements from this PSoC kit on it either.
Thanks,
Karthikeyan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Karthikeyan,
Q1- I don't understand why it is necessary to disconnect and re-connect the device to hit the second breakpoint.
Ans- Second breakpoint is in CY_BLE_EVT_GAP_DEVICE_DISCONNECTED event so this event will be generated only when device gets disconnected.
Q2- However, I don't see the BLE advertising if I just program the PSoC with the application binary and hit reset. (no JTAG debugging involved).
Ans- Could you please check with the project which I attached (CE217637_BLE_Find_Me02.cywrk.Archive0) with CySmart App.
Q3- Can you see the "Find Me Target" device on BLE scanner apps like Lightblue after flash programming?
Ans- I'm able to getting the "Find Me Target" device. Could you please check with CySmart App. We have to process the events continuously by calling Cy_BLE_ProcessEvents(); please remove the while(1) in your project as shown in image.
Q4- I also have the Frontline BPA BLE sniffer and I don't see the advertisements from this PSoC kit on it either.
Ans- Could you please send some screenshots on the observations.
Please let me know if you have any questions.
Thanks,
P Yugandhar.