BLE Device public address not coming correct

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

I am trying to achieve very simple task. I want to get public address of the BLE device which I have set as 00A055-000124 in BLE component's setting with silicon option unchecked. But if I follow the below code I am getting some random values like FF4922190091 inside the localAddr.bdAddr

   

CYBLE_GAP_BD_ADDR_T localAddr;
localAddr.type = 0u;
CyBle_GetDeviceAddress(&localAddr);

   

I called the above code after the CyBle_Start(AppCallBack) call.

   

Could you please tell if I am doing something wrong here? or missing something?

   

Thanks in advance

   

Kind Regards,

   

Jitender

0 Likes
3 Replies
Anonymous
Not applicable

Hi,

   

You need to actually wait for the STACK_ON event and then use the GetDeviceAddress API.

   

Regards,

   

-Madhu Sudhan

0 Likes
Anonymous
Not applicable

Hi Madhu,

   

I am using GetDeviceAddress API to get the ble device public address. It works correctly for few of the psoc devices but for some it is returning incorrect address. What could be the reason for this?

   

Any advice would be helpful. Thanks in advance.

   

Kind Regards,

   

-Jitender

0 Likes
Anonymous
Not applicable

I am programming same family of devices (i.e. psoc 4127LQI-BL473)

0 Likes