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.