Hi Dialog,
I found that there are manuals and source code of custom profile for DA14580. (training_02, training_03)
Is there one for DA14681? Or how to move the code to DA14681? I want to build a custom profile project.
Thanks
Keywords:
Device:
Hi jamesleo-konka,
The custom profiles (and in general the profile creation) in the 68x and 58x family are quite different, there is absolutelly no connection between the profile creation between the two SDKs. You will be able to check how you can create a custom profile by checking the ble_peripheral example, the project includes besides the SIG profiles a custom profile, which can be used as a base to get you started in building your service. Check in the ble_peripheral_task function in the ble_peripheral_task.c file the CFG_USER_SERVICE switch, that will include all the functions that you need to include your custom service, check the myservice_init() function where the custom profile is actually created. You can also check the APIs used in that function in the UM-B-044-DA1468x Software Platform Reference.pdf. Also a mail is sent to the registered address, with a preliminary document regarding the custom profiles on the 68x SDK.
Thanks MT_dialog
preli我也非常感兴趣minary document regarding the custom profile on the 68x SDK.
Can you also send it to me? Thanks.
Hi Dialog,
Do you mean 'ble_peripheral' project in DA14580's SDK?
There is a similar one named 'peripheral_demo' in DA14681‘s SDK -- but seems has no BLE function.
Thanks
Hi jamesleo-konka,
I mean the ble_peripheral project, this is the project that has the custom service.
Thanks MT_dialog
Hi, MT_Dialog,
When I try the ble_peripheral, it stops at the status : DISCOVERING SERVICES... (by BLE scanner).
What's wrong? I can see the DIS,CTS ...services be added in.
What should I do if I want to notify the client some of the data?
Thanks
Hi jamesleo-konka,
Have you made any changes in the sw ?
Regarding how to notify the client you must enable the notifiable characteristic from your client and as soon as you do that you can start sending notifications to the other side by invoking the function ble_gatts_send_event() in order to send the notifications on the other side. You can set a timer in order to send the data periodically and notify your main task, from your main task you can catch the notification send by the timer and invoke the ble_gatts_send_event() in order to send the value that you would like to the proper characteristic.
Thanks MT_dialog