Can I add custom service which is UUID16 type?

17 posts / 0 new
Last post
summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
Can I add custom service which is UUID16 type?

Hi, I want to connect to wechat, so I should implement one service with three characteristics, all of which both have type of UUID of 16 bits.

Service UUID:0xFEE7
Write UUID:0xFEC7
Indication UUID:0xFEC8
Read UUID:0xFEC9

I try to useattm_svc_create_dbto achieve this, which is used in the addition of Device Information Service. But I can only see the service 128bit uuid, which is 0000fee7-0000-1000-8000-00805f9b34fb, and none of the characteristics can be found.

Do I make some mistakes orIs it supported by Dialogto add one custom UUID16 service ?

Thanks.

Keywords:
Device:
JE_Dialog
Offline
Last seen:1 day 10 hours ago
Staff
Joined:2013-12-05 14:02
HI Summer, we are working on

HI Summer, we are working on wechat. I need to catch-up with the team internally to check where we are. We know it is feasible since some of our customers already have this out in the market (wechat with DA14580).

BR JE_Dialog

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
Is there any guideline for

Is there any guideline for develop UUID16 services?

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
I tried several times, but I

I tried several times, but I can't manage to do it.

JE_Dialog
Offline
Last seen:1 day 10 hours ago
Staff
Joined:2013-12-05 14:02
HI There, I will raise a

HI There, I will raise a ticket internally to look into this. We have no guide for develoing UUID16, only the 128 (see AN-B-029). BR JE_Dialog

JE_Dialog
Offline
Last seen:1 day 10 hours ago
Staff
Joined:2013-12-05 14:02
Hi Summer, I checked with the

Hi Summer, I checked with the team : please use AN-B-029 as the method to add the 128bit UUID services is the same for UUID16 and will work the same way. BR JE_Dialog

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
我试着像你说的,但是

我试着像你说的,但是what I get is 128 bits, not 16 bits.

0000fee7-0000-1000-8000-00805f9b34fb

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
Is it right or I might make

Is it right or I might make some mistakes?

JE_Dialog
Offline
Last seen:1 day 10 hours ago
Staff
Joined:2013-12-05 14:02
Hi Summer, here is the

Hi Summer, here is the feedback i have from the software team. BR JE_dialog

The best adviseI can give you is to follow the way which is in the: "spotar_create_db_req_handler" in the spotar_task.c file.

it shows:
1. how to create data base
2. how to add 16-bits UUID
3. how to add attribute

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
Hi, I take your advice, but

Hi, I take your advice, but the result remains the same.

For example, using the following definition

/// SPOTA Service
const uint8_t spotar_service[ATT_UUID_16_LEN] = {0xF5,0xFE};

I get

0000fef5-0000-1000-8000-00805f9b34fb

which is fef5 +00000000-0000-1000-8000-00805f9b34fb

and I find the 128bit part in att.h

#define ATT_BT_UUID_128 {0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80, \
0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}

In other words, is it true that the uuid16 service is constructed to be uuid128 type automatically?

Thanks.

JE_Dialog
Offline
Last seen:1 day 10 hours ago
Staff
Joined:2013-12-05 14:02
你好,夏天,我走了to take

你好,夏天,我走了to take this off-line adn one of the team who speaks your local language will be in contact with you shortly , early next week. We know it can be done since we have csutomers done this arleady, we just have not done it ourselves. BRJE_Dialog

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
Thank you, JE_Dialog.

Thank you, JE_Dialog.

JE_Dialog
Offline
Last seen:1 day 10 hours ago
Staff
Joined:2013-12-05 14:02
Hi Summer, i now have an

Hi Summer, i now have an example project from the team that i can share with you. Let me send that to you. BR JE_Dialog

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
Thank you for your kindness.

Thank you for your kindness.

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
When there is no manufacture

When there is no manufacture data, everything works well, but when I modify the following line as you mentioned, it gets stucked.


cmd->info.host.scan_rsp_data_len += 0; // change to 10 in order to enable manufacture defined data in adv data

Wechat says it is mandatory to add the specific manufacture data, so it seems the demo project not so helpful now.

JE_Dialog
Offline
Last seen:1 day 10 hours ago
Staff
Joined:2013-12-05 14:02
Hi Summer, the SW engineer

Hi Summer, the SW engineer who made this will take a look Friday : he is currently travelling and is on site at customers in Asia. He is aware and will respond ASAP. BR JE_Dialog

summer20100514
Offline
Last seen:4 years 5 months ago
Guru
Joined:2014-12-30 05:01
I received the email, and the

I received the email, and the problem is solved, thank you.

Topic locked