⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Rajapurerohit
Offline
Last seen:8 months 2 weeks ago
Joined:2017-04-20 09:17
custom client profile

Hi Dialog_Support,

I am referring ble_app_peripheral program and i want to modify it for custom client profile. In prf_utils.c file, BLE_CUSTOM_SERVER is defined but there is no any definition for custom CLIENT Profile. Can i define BLE_CUSTOM_CLIENT in prf_utils.c file?

With Regards,
Rohit

Device:
MT_dialog
Offline
Last seen:2 months 5 days ago
Staff
Joined:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

There is no provision in the SDK for an SDK custom client profile, if you would like to create one and you are wondering what is the best place to place the definition, that would be in the custom profile of the client that you are about to create, for example, the corresponding definition of the DSPS client role is the BLE_SPS_CLIENT which is defined in the sps_client.h file which is a custom profile file.

Thanks MT_dialog

Rajapurerohit
Offline
Last seen:8 months 2 weeks ago
Joined:2017-04-20 09:17
Hi MT_dialog,

Hi MT_dialog,

Thank you for your response.

Q-1. Yes, i have define BLE_CUSTOM_CLIENT definition in the custom profile file. After that i have facing one issue. I am not able to put break point in my code, where i have written custom client enable function. Can you let me know the reason why it is happening?

Q-2. I have taken DSPS example as a reference to configure custom client profile. The function PRF_CLIENT_ENABLE(con_info, param, spsc); has 3 parameters. what parameter should i give you instead of "spsc"(3rd parameter)?

Q-3。自定义服务器的参数TASK_CUSTS1公关ofile is defined in rwip_config.h file. If i want to define it as a TASK_CUSTC1 for custom client profile then where should i define means in which file?

With Regards,
Rohit

MT_dialog
Offline
Last seen:2 months 5 days ago
Staff
Joined:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

1. If you are not able to place a breakpoint, that could be due to different reasons, the most probable one is that the function that you are trying to place the breakpoint is not included in the build for some reason. For example, if you remove the sps_client_enable_req() from the user_prf_funcs[] array, the function wont be included in the build.

2. You should have a corresponding parameter for your custom profile, the spsc is not a variable and the PRF_CLIENT_ENABLE is not a function but a macro the macro concatenates the spsc into the corresponding structure which is spsc_envs and type spsc_env_tag.

3. You mean if you replace the TASK_CUSTS1 into TASK_CUSTC1 ? you will have to change the custom profile system of the SDK, the files that include the functionallity of the custom profile are custs1_task.c, custs1.c, app_customs.c, user_custs_impl.c, user_custs_config.c etc. I am not sure what is your plan but i dont think by replacing the custom profile will help you in creating the custom client profile that you would like, since the custom profile system is designed to support services on a peripheral and not client profiles.

Thanks MT_dialog