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

Android BLE for direct advertisment.

Hi, I am trying to write a small android app to send direct advertisement to particular device. i am using 0001 for direct advertisment. But when i advertise the data, message is received for all the devices. can you let me know or share an example for this in android.

Thank you Rohit Iti

Parents
  • There's no such thing as directed advertisement with data. The ADV_DIRECT_IND mode's payload consists only of the advertiser and initiator's device addresses.

    Nor do I know what you mean by 'i am using 0001 for directed advertising', either way, if you are actually setting up ADV_DIRECT_IND then you shouldn't have any data in it. So if you do, I wonder if you are actually in the correct advertising mode.

    Advertising packets are received by all devices. Advertised data is public.

  • I know what all the packet types are thank you very much. And I have no idea what you are asking in your latest comment. You want to create an ADV_DIRECT_IND packet if you want directed advertising, but those advertising packets are only there to tell a specific device to connect to you, not to send advertising data to one device. It's unclear from your original question which of those things you were trying to do.

Reply
  • I know what all the packet types are thank you very much. And I have no idea what you are asking in your latest comment. You want to create an ADV_DIRECT_IND packet if you want directed advertising, but those advertising packets are only there to tell a specific device to connect to you, not to send advertising data to one device. It's unclear from your original question which of those things you were trying to do.

Children
No Data
Related