>>"Who calls CyBle_GattsIndication?"
--> PSoC 4 BLE will not send any Indication to the host. The function WriteAttrServChanged() sets serviceChangedHandle for enabling or disabling hidden service. From the PSoC application side, once the functions below are called, the PSoC BLE goes to state where it can accept commands from host for bootloading process.
bootloadingMode = BOOTLOADING_MODE_ENABLED;
bootloadingModeReq = BOOTLOADING_MODE_NOT_REQUESTED;
The host should initiate the firmware upgrade process. From PSoC side the BootloaderEmulator_Start(); is responsible for all the BLE communication and Bootloading process.
If you are developing an application from sctatch, we recommedn you to use the CySmart Android/ios application source code. You can get it from here:
Hope it helps ! Please reply for more queries.
thank you for your answer
I am developing on psoc, I hope that my colleagues already know the demo code for android/ios
I have not read the ble specifications, so I have a couple of questions:
1) "service changed" has a mandatory indication: must I send it?
As you said: The host should initiate the firmware upgrade process but
2) what my colleagues can do to know that bts is up? a delay?
Thank you for your patience
>>"1) "service changed" has a mandatory indication: must I send it?"
--> No. The application works without calling WriteAttrServChanged(void) also.
>>'2) what my colleagues can do to know that bts is up? a delay?"
--> Sorry. I could not understand your query. Can you please elaborate it?
I would like to ask you a mindset like "ble for dummies"
In our device we have a proprietary command that disables our service and enables bootloader service (aka bts)
Mobile developers complain that they send the command but do not receive the feedback (I think they have a callback, but I am not a mobile developer)
I have seen that WriteAttrServChanged does not indicate the srv. chg. attribute
Can you spend a few words about what happens (in psoc and mobile) when I call WriteAttrServChanged?