Hello Dialog,
I am using the lighblue application on iOS and am trying to configure sample128 profile. The problem is that the device connects but it is shown to contain no services. I read an old post by another user who had this issue and solved it but they did not state their fix. Do you know how I can make it see the services?
Thank you,
svl0822
Device:
Hello svl0822,
what steps have you taken in trying to enable the profile? Have you initialized it, i.e., do you initialize it that creates it in the attribute database?
Did you see this application note?
VesaN,
Thank you for pointing me to the document. I've followed the instructions through 5.3 and have done the "trying it out" part with light blue. I still see no services, but the three structs in the following code in the file app_task.c (marked as <<
****************************************************************************************ke_task_id_t const dest_id,ke_task_id_t const dest_id,ke_task_id_t const dest_id,
* @brief Handles sample128 profile database creation confirmation.
* @return If the message was consumed or not.
****************************************************************************************
*/
int sample128_create_db_cfm_handler(ke_msg_id_t const msgid,
struct sample128_create_db_cfm const *param, <<
ke_task_id_t const src_id);
/**
****************************************************************************************
* @brief Handles disable indication from the sample128 profile.
* @return If the message was consumed or not.
****************************************************************************************
*/
int sample128_disable_ind_handler(ke_msg_id_t const msgid,
struct sample128_disable_ind const *param, <<
ke_task_id_t const src_id);
/**
****************************************************************************************
* @brief Handles write of 1st characteristic event indication from sample128 profile
* @return If the message was consumed or not.
****************************************************************************************
*/
int sample128_val_ind_handler(ke_msg_id_t const msgid,
struct sample128_val_ind const *param, <<
ke_task_id_t const src_id);
What do I need to do? Do I need to declare the structs as extern in some way?
Thanks
svl0822
Did you remember to
#include
sample128 profile's header files that contain the declaration of those message types? They should be declared in sample128_task.h indk_apps\src\ip\ble\hl\src\profiles\sample128Thanks
VesaN,
Yes, I declared #include "sample128.h" in the file sample128_task.h
It should be noted that the line
#include "gapc_task.h" // gap functions and messages
also has an error that says "error in include chain (gap.h): use of undeclared identifier SMPM_ADDR_TYPE_STATIC."
Could this have an effect?
Thank you,
svl0822
The code for sample128 (from SDK) is not complete. You can try to add the missing part by comparing with the proximity profile.
Michael,
Thank you. What parts are incomplete? Is there documentation anywhere that details what needs to be completed?
svl0822
The application side is not implemented.
Hello:
I have same problem..as discussed by SVl0822....i am following AN-B-029. but unable to see unkown service. Have anyone fix this problem then please share.
Hi zeeshan,
In the documents section in application notes there a zip file (AN-B-029: Tutorial files to support AN-B-029) with ready projects based on the AN-B-029 tutorial, can you please try if you can see the service.
Thanks MT_dialog
I have the same problem. ...i am following AN-B-029. but unable to see unkown service.
Then I downloaded the zip file with ready projects based on the AN-B-029.
After burning it into the device, I still couldn't see the two unknown services.
What's the problem?