Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

central discovery, timeout is not working #1501

Open
nikitos1550 opened this issue May 16, 2023 · 1 comment
Open

central discovery, timeout is not working #1501

nikitos1550 opened this issue May 16, 2023 · 1 comment

Comments

@nikitos1550
Copy link

I am starting discovery procedure lie this:

    ...
    struct ble_gap_disc_params disc_params;
    memset(&disc_params, 0, sizeof(disc_params));

    disc_params.filter_duplicates = 0;
    disc_params.passive = 0;
    disc_params.itvl = 0; //Scan interval in 0.625ms units 
    disc_params.window = 0; //Scan window in 0.625ms units 

    disc_params.filter_policy = 0;
    disc_params.limited = 0;

    rc = ble_gap_disc(own_addr_type, 1000*2 /*BLE_HS_FOREVER*/, &disc_params,
                      gap_event_cb, NULL);
    ...

discovery itself works ok, I got BLE_GAP_EVENT_DISC on each discovered adv packet, but I never get BLE_GAP_EVENT_DISC_COMPLETE.

What can be the issue? Maybe I should check something in mine syscfg?

I am using usb hci adapter (tested with more then 5 different) on Linux.

@nikitos1550
Copy link
Author

Found this issue #823
Made some fix, but validation needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant