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.

About BTool Scan (NonDiscoverable mode) and advertising

Hello.

I have two questions about BTool(1.40.15).

First one,when BTool use Scan NonDiscoverable mode, I found a problem.

①If peer device advertising data contained Flag of AD Type and Flag value is 0x04(It means the device is Non-discoverable),BTool can not found peer device.

②If peer device did not  contain Flag ,BTool can found peer device.

I think ①is incorrect.Because ‘LE General Discoverable Mode’ flag and‘LE Limited Discoverable Mode’flag is 0,it means the device is Non-discoverable.Please refer to core4.0 P1698.

Second one,I want to know how to send advertising by BTool.

I send GAP_DeviceInit command to change role be Peripheral,then send GAP_MakeDiscoverable command, but I can not found advertising data from BTool by packet sniffer.

  • Hello,

    The Non-Discoverable mode is for Centrals to filter out devices that don't want to be discovered. It's not clearly defined in the core spec, thus if you do not want to be discovered, don't advertise or use white list filtering. In your Central app, you could filter out these devices as well - BTool is reporting all records.

    Best wishes
  • Hi user4452481,

    What is the advertising event type of the packets? BTool will send Scan Req to the advertiser only when the event type is connectable(ADV_IND) or scannable(ADV_SCAN_IND).
    Please test with SimpleBLEBroadcaster. Its advertising event type is ADV_SCAN_IND, and Flags of 0x40 is contained in the packet.

    - Cetri
  • Hi,JXS

    Thank you for your reply.

    I want to confirm a question with you.If Flag(AD Type) = 0x04, is it Non-discoverable mode?

    In Core 4.0, Non-discoverable mode condition is:

    A device in the non-discoverable mode that sends advertising events shall not
    set the ‘LE General Discoverable Mode’ flag or ‘LE Limited Discoverable Mode’
    flag in the Flags AD type.

    From Core4.0 aspect,I think if Flag = 0x04, it means the device is Non-discoverable mode,so BTool should discover the device by scan (NonDiscoverable mode).If you think my standpoint is wrong,please give me reason.Thank you!

    By the way, could you tell me whether BTool  can send advertising? 

  • Hello,

    The cited reference covers requirements of the Advertiser (i.e., Peripheral); BTool is a Central in this capacity. The core spec further states:
    "A Peripheral device in the non-connectable mode may send non-connectable undirected advertising events or scannable undirected advertising events or may not send advertising packets."

    Are you sending connectable advertisements? To answer your question, 0x04 means 'non discoverable mode' since neither Limited or General bits are set.

    Yes, you can Advertise with BTool. Try searching "Advertise BTool" in E2E :)

    Best wishes