Software Programming Guide

6 posts / 0 new
Last post
Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
Software Programming Guide

Dear all
I am following the sw prog guide.
Got to chapter 10: Create new profile.
All was fine until 10.4 where it states:
Service attribute value must be set to service UUID:
const struct att_uuid_128 sample128_1_svc = {{0xf0, 0x28, 0xe3, 0x68, 0x62,
0xd6, 0x34, 0x90, 0x51, 0x43, 0xef, 0xaa, 0xc6, 0x4c, 0x2f, 0xbc}};
status = attmdb_att_set_value(sample128_env.sample128_1_shdl, ATT_UUID_128_LEN,
(uint8_t *)sample128_1_svc.uuid);

Were should I add it?
Thanks

avlasov1
Offline
Last seen:6 years 6 months ago
加入:2014-05-15 16:58
Everything in chapter 10 is

Everything in chapter 10 is already implemented in the given sample128 profile
■sample128.c
■sample128.h
■sample128_task.c
■sample128_task.h

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
Thanks

Thanks
I tried to find were it is but couldn't find it. I guess that there are some inaccuracies in the guide.
What about chapter 11? How do i create
app_sample128.c
■ app_sample128.h
■ app_sample128_task.c
■ app_sample128_task.h

Are they different than
sample128.c
■sample128.h
■sample128_task.c
■sample128_task.h

?

avlasov1
Offline
Last seen:6 years 6 months ago
加入:2014-05-15 16:58
Yes, those are the

Yes, those are the application layer files which you need to create yourself. Start populating them using the proximity reporter application as a model.

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
I feel stupid asking these

I feel stupid asking these silly questions but paragraph 11.4 states:
"Created code can be added in the project by following the process described for DISS profile
application code in paragraph 2.5."
Where is this document?
Thanks

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
In paragraph 10.1 you state:

In paragraph 10.1 you state:
"To enable profile, CFG_PRF_SAMPLE128 directive must be defined in da14580_config.h."
Shouldn't rwble_hl_config.f be changed too?
Otherwise were is BLE_SAMPLE128 defined?
Thanks