Cannot see any services for sample128

11 posts / 0 new
Last post
svl0822
Offline
Last seen:5 years 8 months ago
加入:2014-11-17 19:20
Cannot see any services for sample128

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:
VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
Hello svl0822,

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?

svl0822
Offline
Last seen:5 years 8 months ago
加入:2014-11-17 19:20
VesaN,

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 <<

****************************************************************************************
* @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 dest_id,
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 dest_id,
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 dest_id,
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

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
Did you remember to #include

Did you remember to#includesample128 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\sample128

Thanks

svl0822
Offline
Last seen:5 years 8 months ago
加入:2014-11-17 19:20
VesaN,

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

michael.wan
Offline
Last seen:5 years 2 weeks ago
加入:2015-05-04 04:48
The code for sample128 (from

The code for sample128 (from SDK) is not complete. You can try to add the missing part by comparing with the proximity profile.

svl0822
Offline
Last seen:5 years 8 months ago
加入:2014-11-17 19:20
Michael,

Michael,

Thank you. What parts are incomplete? Is there documentation anywhere that details what needs to be completed?

svl0822

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
The application side is not

The application side is not implemented.

zeeshan
Offline
Last seen:5 years 5 months ago
加入:2015-07-23 15:56
Hello:

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.

MT_dialog
Offline
Last seen:1 week 1 day ago
Staff
加入:2015-06-08 11:34
Hi zeeshan,

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

wzc960123
Offline
Last seen:5 years 6 months ago
加入:2015-08-03 04:20
I have the same problem. I

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?