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.

CC2642R: Address received through scan does not match scan on Smartphone

Part Number: CC2642R

Hello,

I am using Advertising on the CC2642 to scan for other devices. Advertising data is received through the GAP_EVT_ADV_REPORT event and yields an GapScan_Evt_AdvRpt_t struct. From there I am getting the address of the device. My problem is that this address is not matching what I can see on my Android Phone. Is there a different address I need to optain for this?

Address Mode is configured to Public Address as I want to identify the Devices with their address.

Regards,

Florin

  • Hi Florin,

    Thank you for posting on the E2E forums. I have a couple of questions to help us debug this.
    1. What SDK version are you using?

    2. What project are you using?

    Best,

    Nima Behmanesh

  • Do you set BLE device to advertising using public address mode?

  • I am currently using SDK v5.1.00.48, I do plan to update to v5.2 soon.

    My project is based on project zero but has many features ported from multi role.

    My Address Mode is set to 'Public Address' and I do not change it during runtime.
    In the Advertisment Set Peer Address Type is set to 'Publie Or Public ID'. The Peer Address is set to the default AAAAAAAAAAAA.

    If I set Address Mode to a random address I do get the same address as on a smartphone, but I need it to be static.

    Best Regards,

    Florin

  • Do you try to check console output of your project_zero to see if the BLE address is fixed?

  • I changed from a random address to a fixed address. Then I noted this issue.

    It is strange that I have a board where it is unequal to the smartphone and also some where it is equal to the Smartphone. The board always reports the same address as other Boards I connect to, so the outliner might be the smartphone.

    I do have a few unanswered Questions regarding the Address Mode:

    - Is it in any way unsafe to use the public address?

    - Is the public address supposed to be unique like MAC addresses?

    Anyway, I need to work on a different project now, even if this is not resolved for me yet. We might implement it differently in the final product then this might not be an issue at all.

  • 1. Yes, it’s not safe to use fix address.

    2. Yes, it will use BLE MAC address.

  • Thank you for the answers. That means It does not make sense to use the fixed address, which makes the original issue unimportant for me.