This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 dk central mode nd Android as peripheral mode

Hi , 

I have Android App acts as a peripheral app . and nRF9160dk as central mode. 

I'm trying to scan for the android app , but not sure which filter to use. I referred the lte_btle_gateway .

I saw the following :

"

/* Thinghy advertisement UUID */
#define BT_UUID_THINGY \
BT_UUID_DECLARE_128(0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, \
0x33, 0x49, 0x35, 0x9B, 0x00, 0x01, 0x68, 0xEF)

/* Thingy service UUID */
#define BT_UUID_TMS \
BT_UUID_DECLARE_128(0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, \
0x33, 0x49, 0x35, 0x9B, 0x00, 0x04, 0x68, 0xEF)

/* Thingy characteristic UUID */
#define BT_UUID_TOC \
BT_UUID_DECLARE_128(0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, \
0x33, 0x49, 0x35, 0x9B, 0x03, 0x04, 0x68, 0xEF)

"

In Android , i had the manufacturing data like this 

"

.addManufacturerData(0x8,mdata)

"

0x8 is the Bluetooth Manufacturer ID for Motorola , followed by values {0x42, 0x00 etc...}

Also in android the following are the UUIDs:

"

public static final UUID SERVICE_UUID = UUID
.fromString("1bbe9450-d364-457d-bbcc-07ce16a6ee31");

public static final UUID CHARACTERISTIC_UUID = UUID
.fromString("bfcc9893-ca94-4f89-9489-bd81b4bb559b");

"

I'm confused as to how to discover the Android Peripheral App and its service characteristics ?

Could you please guide me ?

With regards,

Saravanan

Parents Reply Children
Related