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:
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
Is there any guideline for develop UUID16 services?
I tried several times, but I can't manage to do it.
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
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
我试着像你说的,但是what I get is 128 bits, not 16 bits.
0000fee7-0000-1000-8000-00805f9b34fb
Is it right or I might make some mistakes?
Hi Summer, here is the feedback i have from the software team. BR JE_dialog
The best advise
I 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
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.
你好,夏天,我走了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
Thank you, JE_Dialog.
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
Thank you for your kindness.
When there is no manufacture data, everything works well, but when I modify the following line as you mentioned, it gets stucked.
Wechat says it is mandatory to add the specific manufacture data, so it seems the demo project not so helpful now.
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
I received the email, and the problem is solved, thank you.