Learn MoreFAQsTutorials

2 posts / 0 new
Last post
MADHUSF
Offline
Last seen:1 month 1 week ago
加入:2018-01-15 09:22
Custom profile

Hi Dialog,

I want to create a new custom Profile with 2 services with characterstics

i know how to create custom charactcerstic.i have gone through document

can you please help me steps to need to modify in sdk to create new profile and under it services

what are the files i need to change.

解释清楚步骤. .它有帮助if share pics and screenshots

Device:
PM_Dialog
Offline
Last seen:1 hour 4 min ago
工作人员
加入:2018-02-08 11:03
Hi MADHUSF,

Hi MADHUSF,

Except from the custom 1 profile (custs1.c / custs1_task.c), the SDK includes a second custom profile (custs2.c / custs2_task.c). Please follow the steps below. I have followed them in ble_app_peripheral example of SDK6.0.10.

  1. Right click in the sdk_profiles folder from the Project window and add an existing file
  2. In the pop-up window navigate to sdk\ble_stack\profiles\custom\custs\src
  3. Add custs2.c and custs2_task.c files
  4. In user_profiles_config.h add : #define CFG_PRF_CUST2
  5. In user_modules_config.h change the value of EXCLUDE_DLG_CUSTS2 macro from “1” to “0”
  6. After that, you should follow the user_custs1_def.c / .h and make your own user_custs2_def.c /.h files.

Thanks, PM_Dialog