LE whilte list problem

53 views
Skip to first unread message

hanf gai

unread,
Feb 27, 2024, 10:50:14 AMFeb 27
to btstack-dev
Hi, i'm trying to connect multi LE peripherals using gap_whiltelist_* method, but it alwaysconnect just one peripheral.l tryed change MAX_NR_HCI_CONNECTIONS,but not works.
I can connect multi peripheral directly using gap_connect function.
My HCl Host Platform is Ubuntu 20.04 ((Program modifed from PoSlX).HCl Controller isnRF52832 with Zephyr HCl firmware (you can find codehere zephyr/samples/bluetooth/hciuart at main ·zephyrproject-rtos/zephyr (github.com))they communicate over UART with flow control.
What should l do to position this problem?
Can you help me? Tell me what info you wanna know. Thanks of al!!

Matthias Ringwald

unread,
Feb 28, 2024, 5:38:34 AMFeb 28
to btsta...@googlegroups.com
Hi Hanf Gai

If you use gap_connect_with_whitelist, it only connects to the first device. if you want to connect to more/additional devices, you need to remove the device that was connected and call gap_connect_with_whitelist again.
If something doesn't work as expected, please also send the packet log, on Linux in /tmp/hci_dump.pklg for a quick analysis.

Cheers
Matthias
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/05d4e740-e99e-4b33-ac00-7aa59f2db6e8n%40googlegroups.com.

hanf gai

unread,
Feb 28, 2024, 9:14:06 AMFeb 28
to btstack-dev
Hi  Matthias :
    I confirmed my code that I called `gap_whitelist_remove` when the connection was established.
    There is btstack loggings below, and  I noticed that when I called `gap_whitelist_app` a second time,  btstack did not receive any events.
[2024-02-28 05:47:07.766] CMD => 11 20 07 01 FB E7 9C AE F4 C8
[2024-02-28 05:47:07.777] EVT <= 6E 00
[2024-02-28 05:47:07.779] EVT <= 0E 04 01 11 20 00
[2024-02-28 05:47:07.779] CMD => 0D 20 19 60 00 30 00 01 00 00 00 00 00 00 00 01 08 00 18 00 04 00 48 00 00 00 00 00
[2024-02-28 05:47:07.779] EVT <= 6E 00
[2024-02-28 05:47:07.782] EVT <= 0F 04 00 01 0D 20
[2024-02-28 05:47:07.922] EVT <= 3E 13 01 00 00 00 00 01 FB E7 9C AE F4 C8 18 00 04 00 48 00 05
[2024-02-28 05:47:07.922] LOG -- hci.c.3198: LE Connection_complete (status=0) type 1, C8:F4:AE:9C:E7:FB
[2024-02-28 05:47:07.922] LOG -- hci.c.316: create_connection_for_addr C8:F4:AE:9C:E7:FB, type 1
[2024-02-28 05:47:07.922] LOG -- hci.c.3277: New connection: handle 0, C8:F4:AE:9C:E7:FB
[2024-02-28 05:47:07.922] LOG -- hci.c.7751: BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 1
[2024-02-28 05:47:07.922] EVT <= 61 01 01
[2024-02-28 05:47:07.922] EVT <= CD 09 00 00 01 FB E7 9C AE F4 C8
[2024-02-28 05:47:07.922] LOG -- att_server.c.406: SM_EVENT_IDENTITY_RESOLVING_STARTED
[2024-02-28 05:47:07.922] LOG -- sm.c.2263: LE Device Lookup: not found
[2024-02-28 05:47:07.922] EVT <= CE 09 00 00 01 FB E7 9C AE F4 C8
[2024-02-28 05:47:07.922] LOG -- att_server.c.426: SM_EVENT_IDENTITY_RESOLVING_FAILED
[2024-02-28 05:47:07.922] CMD => 16 20 02 00 00
[2024-02-28 05:47:07.922] LOG -- gatt_client.c.124: GATT client timeout start, handle 0x00
[2024-02-28 05:47:07.922] EVT <= 6E 00
[2024-02-28 05:47:07.922] EVT <= 79 02 04 00
[2024-02-28 05:47:07.922] ACL => 00 00 07 00 03 00 04 00 02 9B 06
[2024-02-28 05:47:07.922] EVT <= 6E 00
[2024-02-28 05:47:07.922] EVT <= 79 02 04 00
[2024-02-28 05:47:07.922] EVT <= 3E 04 14 00 00 01
[2024-02-28 05:47:07.924] ACL <= 00 20 07 00 03 00 04 00 02 67 00
[2024-02-28 05:47:07.924] EVT <= 79 02 04 00
[2024-02-28 05:47:07.924] ACL => 00 00 07 00 03 00 04 00 03 67 00
[2024-02-28 05:47:07.924] EVT <= 6E 00
[2024-02-28 05:47:07.924] EVT <= 0F 04 00 01 16 20
[2024-02-28 05:47:07.924] CMD => 12 20 07 01 FB E7 9C AE F4 C8
[2024-02-28 05:47:07.924] EVT <= 6E 00
[2024-02-28 05:47:07.925] EVT <= 0E 04 01 12 20 00
[2024-02-28 05:47:08.016] EVT <= 13 05 01 00 00 01 00
[2024-02-28 05:47:08.073] EVT <= 13 05 01 00 00 01 00
[2024-02-28 05:47:08.075] EVT <= 3E 0C 04 00 00 00 25 41 00 00 00 00 00 00
[2024-02-28 05:47:08.133] ACL <= 00 20 07 00 03 00 04 00 03 67 00
[2024-02-28 05:47:08.133] EVT <= AB 04 00 00 67 00
.... query Gatt Serive log and gatt chrc
[2024-02-28 05:47:13.771] CMD => 11 20 07 01 CD A2 74 14 C0 D4
[2024-02-28 05:47:13.780] EVT <= 6E 00
[2024-02-28 05:47:13.798] EVT <= 0E 04 01 11 20 00
[2024-02-28 05:47:13.798] CMD => 0D 20 19 60 00 30 00 01 00 00 00 00 00 00 00 01 08 00 18 00 04 00 48 00 00 00 00 00
[2024-02-28 05:47:13.798] EVT <= 6E 00
[2024-02-28 05:47:13.800] EVT <= 0F 04 0B 01 0D 20


Best Regards,
Hanf

Matthias Ringwald

unread,
Mar 1, 2024, 5:49:32 AMMar 1
to btsta...@googlegroups.com
Hi Hanf

I was only able to download text file and converted it to .pklg.
In that log, there's a event

Command Status - LE Create Connection - ACL Connection Already Exists

I'm not sure why it reports this. Could you try to share a full .pklg file (you can zip it if needed) from startup?

Best
Matthias
> To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/daef6f9a-01b1-485c-9def-0c564dc0349cn%40googlegroups.com.

hanf gai

unread,
Mar 2, 2024, 2:10:07 AMMar 2
to btstack-dev
Hi Matthias:

Matthias Ringwald

unread,
Mar 5, 2024, 12:28:44 PMMar 5
to btsta...@googlegroups.com
Hi Hanf

Thanks for the full log. From a first look, it seems like a bug in the Zephyr Controller. Can you test their latest version?
If this remains, I would suggest to post an issue in the Zephyr Issue tracker. If you do, please also post a link here.

Cheers
Matthias
> To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/3f4a7415-039c-4383-8ec0-ba5c6dacd74cn%40googlegroups.com.

hanf gai

unread,
Mar 7, 2024, 8:59:49 AMMar 7
to btstack-dev
Hi Matthias:
    Think you for your information; I tried the latest release version(v3.6.0-rc3) for zephyr, the issus was exists.
Reply all
Reply to author
Forward
0 new messages