KW36 : Directed advertising query

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KW36 : Directed advertising query

1,811 Views
skalyan2
Contributor IV

Hi,

Peripheral device : KW36, central device : Samsung note 9

I tried to do directed advertising by filling peerAddress parameter of gapAdvertisingParameters_t structure  with central device(Samsung note 9 ) address, but directed advertising seems to be not happening with KW36.

Can you please check  and update ( I used hid_device example), many thanks in advance.

Regards

Sai Kalyana Raman

0 Kudos
Reply
9 Replies

1,645 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

Is this happening with different devices ? or is this happening only with the Samsung note 9 ?

Regards,,

Estephania

0 Kudos
Reply

1,645 Views
skalyan2
Contributor IV

Hi Estephania,

It is with all phones, i have not enabled privacy, is this because of this ?

Have you tried reproducing from your end ? 

If not reproducing, can you please disable privacy and try reproducing ? 

Regards,

Sai Kalyana Raman

0 Kudos
Reply

1,645 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

Could you please let me know which changes did you make and where  did you modify the code?

regards,

Estephania

0 Kudos
Reply

1,645 Views
skalyan2
Contributor IV

Hi estephania_martinez‌,

I changed the advertisingType  as gAdvDirectedHighDutyCycle_c and filled directedAddress with peer device address and have called Gap_SetAdvertisingParameters, i have not done anything else (i didnt enable privacy).

Regards,

Sai Kalyana Raman

0 Kudos
Reply

1,645 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

Could you please try setting the following advertisement parameters?

gapAdvertisingParameters_t gAdvParams =
 {
    /* minInterval */         gGapAdvertisingIntervalDefault_c, 
    /* maxInterval */         gGapAdvertisingIntervalDefault_c, 
    /* advertisingType */     gAdvDirectedHighDutyCycle_c,  //gAdvDirectedLowDutyCycle_c
    /* addressType */         gBleAddrTypeRandom_c,
    /* directedAddressType */ gBleAddrTypePublic_c, 
    /* directedAddress */     {0x00, 0x60, 0x37, 0xB0, 0x8A, 0x1B}, //Address for ADV
    /* channelMap */          (gapAdvertisingChannelMapFlags_t) (gGapAdvertisingChannelMapDefault_c), 
    /* filterPolicy */        gProcessAll_c 
};‍‍‍‍‍‍‍‍‍‍‍

 

/*! Minimum advertising interval (20 ms) */
#define gGapAdvertisingIntervalRangeMinimum_c 0x0100 //0x0020 @DAdv
/*! Default advertising interval (1.28 s) */
#define gGapAdvertisingIntervalDefault_c 0x0800
/*! Maximum advertising interval (10.24 s) */
#define gGapAdvertisingIntervalRangeMaximum_c 0x0800 //0x4000 @DAdv

 

/* Setup Advertising and scanning data */
Gap_SetAdvertisingData(NULL,NULL);//(&gAppAdvertisingData,&gAppScanRspData); //@DAdv

Regards

0 Kudos
Reply

1,576 Views
tanghui
Contributor I

I used two development boards to do experiments, but I didn't get the Bluetooth address of the directional broadcast device.

0 Kudos
Reply

1,589 Views
tanghui
Contributor I

Hi estephania_ mart
I have configured it completely according to the parameter settings you gave me. I used the SDK's "Bluetooth"_ W_ uart_ FreeRTOS ", I specially looked at the Bluetooth address of my mobile phone. Then I configure the code as shown below, but my mobile phone can't find the directional broadcast device.Could you take time to look at this problem for me? Thank you very much.

0 Kudos
Reply

1,588 Views
tanghui
Contributor I

 

My mobile device is Xiaomi 10, Bluetooth address is:e0:cc:f8:a2:5a:3a

gapAdvertisingParameters_t gAdvParams =
{
/* minInterval */ gGapAdvertisingIntervalDefault_c,
/* maxInterval */ gGapAdvertisingIntervalDefault_c,
/* advertisingType */ gAdvDirectedHighDutyCycle_c, //gAdvDirectedLowDutyCycle_c
/* addressType */ gBleAddrTypeRandom_c,
/* directedAddressType */ gBleAddrTypePublic_c,
/* directedAddress */ {0xE0, 0xCC, 0xF8, 0xA2, 0x5A, 0x3A}, //Address for ADV
/* channelMap */ (gapAdvertisingChannelMapFlags_t) (gGapAdvertisingChannelMapDefault_c),
/* filterPolicy */ gProcessAll_c
};

0 Kudos
Reply

1,592 Views
tanghui
Contributor I

嗨estephania_ mart
我已经完全按照您给我的参数设置进行了配置。我使用了SDK的“蓝牙”  W_ uart_ FreeRTOS“,我专门查看了手机的蓝牙地址为“ e0:cc:f8:a2:5a :3a”。然后,我按如下所示配置代码,但是我的手机找到定向广播设备。

gapAdvertisingParameters_t gAdvParams =
{
/ * * minInterval / gGapAdvertisingIntervalDefault_c,
/ * maxInterval * / gGapAdvertisingIntervalDefault_c,
/ * advertisingType * / gAdvDirectedHighDutyCycle_c,// gAdvDirectedLowDutyCycle_c
/ *地址类型* / gBleAddrTypeRandom_c,
/ * directedAddressType * / gBleAddrTypePublic_c,
/ * directedAddress * / {取0xE0,0xCC,0xF8、0xA2、0x5A,0x3A},// ADV的地址
/ * channelMap * /(gapAdvertisingChannelMapFlags_t)(gGapAdvertisingChannelMapDefault_c),
/ * filterPolicy * / gProcessAll_c
};

您能花点时间为我解决这个问题吗?非常感谢你。

0 Kudos
Reply