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.

whether it is possible to waiting for connection and waiting for advertising simultaneously?

Other Parts Discussed in Thread: CC2540

my USB Dongle with cc2540 usually waiting for connection with paired device, but if there is no connected device, Dongle must be able to recive alternative advertising.

it is possible to the device with the profile CENTRAL + BROADCASTER (DHOST_CONFIG = CENTRAL_CFG + BROADCASTER_CFG) at the same time waiting for the connection of peripheral devices command GAP_EstablishLinkReq() and scan the air looking for advertising using the GAP_DeviceDiscoveryRequest() ?

or it can only be done by the changes state between "initiate" to "scan", and back?

  • Hi Anatoliy,

    Even though you have bonding data (for a paired device), you should be able to receive advertisement. Maybe you have whitelist enabled? Make sure it's disabled and have another go.

    Best Regards

    Joakim

  • yes, i have bonding data with paired device; and WhiteList is ok,

    yes, dongle wait for advertising, and I want to have such a condition(a state) from which I can get two variants:
    1. if advertising came from paired device then dongle send CONNECT_REQ, then event GAP_LINK_ESTABLISHED_EVENT, and so on...
    2. if advertising came from new BLE device, then I want to receive the event
    GAP_DEVICE_INFO_EVENT, and then I will analyze it

    or it can only be done by the change state between "initiate" with function EstablishLinkReq (), then wait for some time, then to state "scan" with function GAP_DeviceDiscoveryRequest () , and back?