This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541: 128 bit UUID

Part Number: CC2541
Other Parts Discussed in Thread: BLE-STACK

hello,

i am using my simpleBLECentral code with 16 bit uuid and its running successfully. Using by default SIMPLEPROFILE_SERV_UUID = 0xFFF0 and SIMPLEPROFILE_CHAR1_UUID = 0xFFF1. Able to read/write.

Now i want to use 128 bit uuid and for that i used this referance -> http://processors.wiki.ti.com/index.php/128_Bit_UUID_SimpleBLE

And i get following response.

(1) when i used 

GATT_DiscPrimaryServiceByUUID( simpleBLEConnHandle,
uuid,
UUID_SIZE,
simpleBLETaskId );

and after calling this when simpleBLECentralProcessGATTMsg function called automatically, in that i get pMsg-> method = ATT_ERROR_RSP. 

(2) when simpleBLEFindSvcUuid called, in that 

this condition -> else if ( adType == GAP_ADTYPE_128BIT_MORE || adType == GAP_ADTYPE_128BIT_COMPLETE ) is not satisfying. every time adType comes but its different than we compared with here. value of adType came like this GAP_ADTYPE_LOCAL_NAME_COMPLETE .

(3) 

//0000XXXX-0000-1000-8000-00805F9B34FB
#define TI_UUID( uuid ) 0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80, \
0x00, 0x10, 0x00, 0x00, LO_UINT16( uuid ), HI_UINT16( uuid ), 0x00, 0x00

//F000XXXX-0451-4000-B000-000000000000
#define TI_UUID( uuid ) 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xB0, \
0x00, 0x40, 0x51, 0x04, LO_UINT16( uuid ), HI_UINT16( uuid ), 0x00, 0xF0

I tried both of above but don't succeed. Get same result as (1).

So i don't what i am missing actually. Please help me on this.

Thanks in advance.

  • Hi kaloliya,

    Which version of the TI BLE-Stack are you using? Did you make the changes to both the Central and Peripheral projects?
  • Hi Rachel,

    I am using version 1.4.2.2. And no i have other peripheral device which advertising 128 bit uuid and i successfully modified SimpleBLECentral code.

    Actually I have one android app which interface with that Peripheral device and in that app 128 bit uuid has been used. So i try to use same 128 bit uuid in my SimpleBLECentral but its not working.

    Got problems which i described above.

    Thanks.