This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can SCAN_REQ store data freely?

Hello.

I am developing a central operation using nrf52832 (S132 v7.0.1, SDK v17.0.0).

When making a BLE connection, you will receive an advertisement first.
Then SCAN_REQ is returned to the other party.

Can this SCAN_REQ store data freely like ADV_IND and SCAN_RSP?
Is the data structure of SCAN_REQ only "advertise address" and "scan address", and not the others?

Please let me know if the recognition is wrong.

  • Hi 

    This is not possible unfortunately. There is no way to add a data payload to the scan request, it is only used to request more data from the advertiser. 

    Best regards
    Torbjørn

  • Hello.

    thank you for your answer.
    What I want to do is receive data without connecting to an Android device (central).
    Therefore, I was wondering if I could have SCAN_REQ store the data and receive it.

    Is there any good way?

    Best regards.

  • Hi 

    The only way I can think of to do this is to reverse the roles, and have the Android phone be the advertiser and the nRF device be the scanner. 

    Then the phone can advertise data that you can read from the nRF without having to connect. 

    Please note that older phones might not support BLE advertising, but most recent phones should support this. 

    It's also worth noting that you don't get any security with advertise payloads, so anyone that wants to will be able to read your data. This is one big advantage of establishing a connection. 

    Best regards
    Torbjørn

  • Hello.

    The nRF device must be central to receive data without a connection.

    Thank you very much. It was helpful.

    Best regards.

  • Hi 

    I am glad I could help. The best of luck with your project Slight smile

    Best regards
    Torbjørn

Related