- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is it possible to change the advertising name of BLE on CY8C4248LQI-BL583?
I have given only local name to advertise and I want to change it on run time whenever I send data through serially in particular pattern. It is not taking the new data properly
Ex: If I send {CYPRESS_BLE} it should advertise CYPRESS_BLE but I'm getting only CYPRESS in my phone. If I give {PSOC_BLE} it should advertise PSOC_BLE but I'm getting only PSOC. Why is it happening like that?
BLE component version is v3.63.
I am attaching the project and Serial Termial Output for your reference. Please help me as soon as possible.
Regards,
MKN
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could you please modify line no: 95 of your main.c as below and see if this issue gets resolved?
"new_advData.advData[ADV_DATA_NAME_START_INDEX+j] = '\0';"
Thanks and Regards,
Sudheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please refer Day009 Dynamic broadcaster code example from the link below.
PSoC-4-BLE/100_Projects_in_100_Days at master · cypresssemiconductorco/PSoC-4-BLE · GitHub
Please cross check whether your application is following the same firmware flow and update us.
Thanks
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ganesh,
My code flow is almost the same but I have not made the device as broadcaster and also I'm not using low power mode. It's in profile mode and I want to change only the device name not other data. I am advertising only device name and no other parameters. Also it is in connectable undirected advertising.
It is taking the updated data but not properly. It advertises only half of the name. Do I need to update the BLE component?
Thanks
MKN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could you please modify line no: 95 of your main.c as below and see if this issue gets resolved?
"new_advData.advData[ADV_DATA_NAME_START_INDEX+j] = '\0';"
Thanks and Regards,
Sudheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sudheesh,
It worked after changing that line no. 95. There was my mistake. Thank you for solving it.
Thanks
MKN