Date   

Re: [Zephyr-devel] How hacker will hack/impact my BLE device, when ...??

Vikrant More <vikrant8051@...>
 

Hi Marcio,
I'm not allowed to add anything extra in my current hardware design.

Besides this, is there any thing which is very serious ?
I'm still trying to understand various security risk behind my current implementation.

Thanks,
 

On Wed, Mar 21, 2018 at 5:35 PM, Marcio Montenegro <mtuxpe@...> wrote:
Hi all,
Maybe you can use crypto device on your product.


You also need to develop an application to configure  crypto device chip.
Then after configuration each device are unique.
For inspiration see:

Note that this devices has no Bluetooth.
Best,
Marcio


On Wed, Mar 21, 2018 at 2:08 AM, Vakul Garg <vakul.garg@...> wrote:

Hi Vikrant

 

I am curious to understand about your security implementation.

I work in area of TLS security and I am not bluetooth security expert.

 

In your case, does the app need to differentiate between a genuine or fake device?

Will it be able to create a shared secret with the device even if it is a clone of genuine device and purpose programmed to leak the common encryption key?

 

Regards

 

Vakul

 

From: zephyr-devel-bounces@...hyrproject.org [mailto:zephyr-devel-bounces@lists.zephyrproject.org] On Behalf Of Vikrant More
Sent: Tuesday, March 20, 2018 11:28 PM
To: zephyr-devel@...ct.org; zephyr-users@...ct.org
Subject: [Zephyr-devel] How hacker will hack/impact my BLE device, when ...??

 

Hi,

 

In my current project, I haven't implemented OOB pairing ( BLE based smart lights)

 

Using Zephyr built-in ECDH library, shared secret (using secp256r1 curve) get created on Device as well as on APP side which will act like encryption key for further communication.

 

On that encrypted link, APP send encryption key which is common for all devices associated with it.

 

All this happens when DEVICE is in factory reset mode.

 

There after communication link is encrypted using newly assign common key.

 

..................................................................................….........................................

 

This will create security risk, only if device is not authenticated by user & it could transfer security key ( which is common to many devices) to unauthorized device.

 

To solve this, APP will automatically trigger DEVICE's LEDs to blink & ask user "do you see blinking LED?" 

 

If user click on "YES" then & only then ECDH process will initiate & common key get share with new DEVICE.

 

------------------------------------------------------------------------------------------------------------------------

 

Besides this I didn't found any security flaw in this implementation. So I need help from Bluetooth Security expert. Is there anyone who can help me to find out flaws & security risks in my current implementation ?

 

Thanks,

vikrant8051


_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@...ct.org
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel




Re: [Zephyr-devel] Firmware over the air (FOTA) and FCB support in 1.11.0

Carles Cufi
 

Hi Ashish,

 

I plan to submit a PR with documentation as soon as possible.

 

Please let me know your GitHub ID so I can include you in the review and you can let me know if the documentation is enough.

 

Regards,

 

Carles

 

From: zephyr-devel-bounces@... <zephyr-devel-bounces@...> On Behalf Of ashish.shukla@...
Sent: 21 March 2018 05:15
To: zephyr-devel@...; zephyr-users@...
Subject: [Zephyr-devel] Firmware over the air (FOTA) and FCB support in 1.11.0

 

Hi all,

I've been waiting for FOTA and FCB support in zephyr and now when it is supported, I cannot see any samples available or proper documentation to use these features in my project.

Any help regarding the same would be of great help.

 

--

Warm regards,
Ashish Shukla

Jr. Embedded Engineer

Research & Development

 

Please consider the environment before printing this e-mail or its attachments.

 

Disclaimer: The information contained herein (including any accompanying documents) is confidential and is intended solely for the addressee(s). If you have erroneously received this message, please immediately delete it and notify the sender. Also, if you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this message or any accompanying document is strictly prohibited and is unlawful. The organization is not responsible for any damage caused by a virus or alteration of the e-mail by a third party or otherwise. The contents of this message may not necessarily represent the views or policies of Corvi

 


Re: [Zephyr-devel] err -5 when change BLE device name

Vikrant More <vikrant8051@...>
 

Hi Vinayak,

Ok, so I modified my code as ....

static void bt_le_adv_refresh(void)
{   
    int err = 0;

    err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));

    if (!(err == 0 || err == -5))
    {
        printk("Advertising failed to start (err %d)\n", err);
        return;
    }

    printk("Refreshed Advertising successfully started\n");
}

Thanks to all of you !!

On Wed, Mar 21, 2018 at 6:06 PM, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:
Hi Vikrant,

If you have a connection active, you cannot start another connectable advertising unless you start supporting more than one active connection. Use non-connectable or scannable advertising instead, when in a connection.

Regards,
Vinayak

On 21 Mar 2018, at 13:03, Vikrant More <vikrant8051@...> wrote:

Hi Johan,

This is log,

Thanks,


[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 2 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x200a status 0x0c
Connected
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2016 param_len 2
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send: (0x20002c54) opcode 0x2016 len 5
[bt] [DBG] process_events: (0x20001198) count 2
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2016 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 5 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_status: (0x20001198) opcode 0x2016
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2016 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 1
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x06
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2020 param_len 14
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send: (0x20002c54) opcode 0x2020 len 17
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2020 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 17 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 8 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2020
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2020 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 22 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 30 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:12
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 12
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x03
[bt] [DBG] le_conn_update_complete: (0x20002c54) status 0, handle 0
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 24 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 17 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 9 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 14 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 9 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 14 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x06
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2020 param_len 14
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send: (0x20002c54) opcode 0x2020 len 17
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2020 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 17 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 8 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2020
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2020 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:12
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 12
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x03
[bt] [DBG] le_conn_update_complete: (0x20002c54) status 0, handle 0
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:17
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 17
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 13 flags 2
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2008 param_len 32
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x2008 len 35
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2008 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 35 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2008
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2008 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x2008 status 0x00
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2009 param_len 32
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x2009 len 35
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2009 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 35 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2009
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2009 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x2009 status 0x00
[bt] [DBG] set_random_address: (0x20002c54) ea:e8:05:9b:16:1d
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2006 param_len 15
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x2006 len 18
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2006 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 18 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2006
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2006 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x2006 status 0x00
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x200a param_len 1
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x200a len 4
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x200a (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 4 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x200a
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x200a status 0x0c buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x200a status 0x0c
Advertising failed to start (err -5)
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 9 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events


On Wed, Mar 21, 2018 at 4:57 PM, Johan Hedberg <johan.hedberg@...> wrote:
Hi Vikrant,

You'll need to debug this more then, i.e. get HCI logs and enable debug
logs for hci_core.c.

Johan

On Wed, Mar 21, 2018, Vikrant More wrote:
> Hi Johan,
>
>
>
>
>
>
>
> *static void bt_le_adv_refresh(void){        int err,i;    for(i=0; i<=14;
> i++)    {        name_buffer[i]= '@';    *// it is global array
>     }
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *        sd[0].data = name_buffer;     sd[0].data_len = 15;
> bt_le_adv_stop();    err = bt_le_adv_start(BT_LE_ADV_CONN, ad,
> ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));    if (err)     {
> printk("Advertising failed to start (err %d)\n", err);        return;
> }    printk("Refreshed Advertising successfully started\n");}*
>
>
> I modified my function as per your suggestion, but now
> 1) device stop advertising after this function get call (previously it was
> advertising with new Name )
> 2) plus getting same error as -> Advertising failed to start (err -5)
>
> On Wed, Mar 21, 2018 at 4:14 PM, Johan Hedberg <johan.hedberg@...>
> wrote:
>
> > Hi Vikrant,
> >
> > On Wed, Mar 21, 2018, Vikrant More wrote:
> > > *sd[0].data = name_buffer;        err = bt_le_adv_start(BT_LE_ADV_CONN,
> > ad,
> >
> > You also need to update sd[0].data_len.
> > E.g. sd[0].data_len = strlen(name_buffer);
> >
> > > ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));    if (err)     {
> > > printk("Advertising failed to start (err %d)\n", err);        return;
> > }*
> > >
> > > But when I did it, got an error -> Advertising failed to start (err -5)
> > >
> > > Despite this nRF52, successfully advertise itself with new name.
> > >
> > > How to update device name in real time scenario without rebooting it ?
> >
> > Doing bt_le_adv_stop() and bt_le_adv_start() with a new set of
> > parameters should work.
> >
> > Johan
> >

_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@lists.zephyrproject.org
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel



Re: [Zephyr-devel] err -5 when change BLE device name

Chettimada, Vinayak Kariappa
 

Hi Vikrant,

If you have a connection active, you cannot start another connectable advertising unless you start supporting more than one active connection. Use non-connectable or scannable advertising instead, when in a connection.

Regards,
Vinayak

On 21 Mar 2018, at 13:03, Vikrant More <vikrant8051@...> wrote:

Hi Johan,

This is log,

Thanks,


[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 2 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x200a status 0x0c
Connected
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2016 param_len 2
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send: (0x20002c54) opcode 0x2016 len 5
[bt] [DBG] process_events: (0x20001198) count 2
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2016 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 5 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_status: (0x20001198) opcode 0x2016
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2016 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 1
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x06
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2020 param_len 14
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send: (0x20002c54) opcode 0x2020 len 17
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2020 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 17 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 8 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2020
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2020 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 22 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 30 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:12
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 12
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x03
[bt] [DBG] le_conn_update_complete: (0x20002c54) status 0, handle 0
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 24 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 17 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 9 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 14 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 9 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 14 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x06
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2020 param_len 14
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send: (0x20002c54) opcode 0x2020 len 17
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2020 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 17 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 8 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2020
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2020 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:12
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 12
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x03
[bt] [DBG] le_conn_update_complete: (0x20002c54) status 0, handle 0
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:17
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 17
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 13 flags 2
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2008 param_len 32
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x2008 len 35
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2008 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 35 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2008
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2008 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x2008 status 0x00
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2009 param_len 32
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x2009 len 35
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2009 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 35 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2009
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2009 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x2009 status 0x00
[bt] [DBG] set_random_address: (0x20002c54) ea:e8:05:9b:16:1d
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2006 param_len 15
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x2006 len 18
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2006 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 18 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2006
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2006 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x2006 status 0x00
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x200a param_len 1
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x200a len 4
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x200a (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 4 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x200a
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x200a status 0x0c buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x200a status 0x0c
Advertising failed to start (err -5)
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 9 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events


On Wed, Mar 21, 2018 at 4:57 PM, Johan Hedberg <johan.hedberg@...> wrote:
Hi Vikrant,

You'll need to debug this more then, i.e. get HCI logs and enable debug
logs for hci_core.c.

Johan

On Wed, Mar 21, 2018, Vikrant More wrote:
> Hi Johan,
>
>
>
>
>
>
>
> *static void bt_le_adv_refresh(void){        int err,i;    for(i=0; i<=14;
> i++)    {        name_buffer[i]= '@';    *// it is global array
>     }
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *        sd[0].data = name_buffer;     sd[0].data_len = 15;
> bt_le_adv_stop();    err = bt_le_adv_start(BT_LE_ADV_CONN, ad,
> ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));    if (err)     {
> printk("Advertising failed to start (err %d)\n", err);        return;
> }    printk("Refreshed Advertising successfully started\n");}*
>
>
> I modified my function as per your suggestion, but now
> 1) device stop advertising after this function get call (previously it was
> advertising with new Name )
> 2) plus getting same error as -> Advertising failed to start (err -5)
>
> On Wed, Mar 21, 2018 at 4:14 PM, Johan Hedberg <johan.hedberg@...>
> wrote:
>
> > Hi Vikrant,
> >
> > On Wed, Mar 21, 2018, Vikrant More wrote:
> > > *sd[0].data = name_buffer;        err = bt_le_adv_start(BT_LE_ADV_CONN,
> > ad,
> >
> > You also need to update sd[0].data_len.
> > E.g. sd[0].data_len = strlen(name_buffer);
> >
> > > ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));    if (err)     {
> > > printk("Advertising failed to start (err %d)\n", err);        return;
> > }*
> > >
> > > But when I did it, got an error -> Advertising failed to start (err -5)
> > >
> > > Despite this nRF52, successfully advertise itself with new name.
> > >
> > > How to update device name in real time scenario without rebooting it ?
> >
> > Doing bt_le_adv_stop() and bt_le_adv_start() with a new set of
> > parameters should work.
> >
> > Johan
> >

_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@...
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel


Re: [Zephyr-devel] How hacker will hack/impact my BLE device, when ...??

Marcio Montenegro
 

Hi all,
Maybe you can use crypto device on your product.


You also need to develop an application to configure  crypto device chip.
Then after configuration each device are unique.
For inspiration see:

Note that this devices has no Bluetooth.
Best,
Marcio


On Wed, Mar 21, 2018 at 2:08 AM, Vakul Garg <vakul.garg@...> wrote:

Hi Vikrant

 

I am curious to understand about your security implementation.

I work in area of TLS security and I am not bluetooth security expert.

 

In your case, does the app need to differentiate between a genuine or fake device?

Will it be able to create a shared secret with the device even if it is a clone of genuine device and purpose programmed to leak the common encryption key?

 

Regards

 

Vakul

 

From: zephyr-devel-bounces@lists.zephyrproject.org [mailto:zephyr-devel-bounces@lists.zephyrproject.org] On Behalf Of Vikrant More
Sent: Tuesday, March 20, 2018 11:28 PM
To: zephyr-devel@lists.zephyrproject.org; zephyr-users@lists.zephyrproject.org
Subject: [Zephyr-devel] How hacker will hack/impact my BLE device, when ...??

 

Hi,

 

In my current project, I haven't implemented OOB pairing ( BLE based smart lights)

 

Using Zephyr built-in ECDH library, shared secret (using secp256r1 curve) get created on Device as well as on APP side which will act like encryption key for further communication.

 

On that encrypted link, APP send encryption key which is common for all devices associated with it.

 

All this happens when DEVICE is in factory reset mode.

 

There after communication link is encrypted using newly assign common key.

 

..................................................................................….........................................

 

This will create security risk, only if device is not authenticated by user & it could transfer security key ( which is common to many devices) to unauthorized device.

 

To solve this, APP will automatically trigger DEVICE's LEDs to blink & ask user "do you see blinking LED?" 

 

If user click on "YES" then & only then ECDH process will initiate & common key get share with new DEVICE.

 

------------------------------------------------------------------------------------------------------------------------

 

Besides this I didn't found any security flaw in this implementation. So I need help from Bluetooth Security expert. Is there anyone who can help me to find out flaws & security risks in my current implementation ?

 

Thanks,

vikrant8051


_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@lists.zephyrproject.org
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel



Re: err -5 when change BLE device name

Vikrant More <vikrant8051@...>
 

Hi Johan,

This is log,

Thanks,


[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 2 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x200a status 0x0c
Connected
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2016 param_len 2
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send: (0x20002c54) opcode 0x2016 len 5
[bt] [DBG] process_events: (0x20001198) count 2
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2016 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 5 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_status: (0x20001198) opcode 0x2016
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2016 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 1
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x06
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2020 param_len 14
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send: (0x20002c54) opcode 0x2020 len 17
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2020 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 17 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 8 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2020
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2020 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 22 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 30 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:12
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 12
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x03
[bt] [DBG] le_conn_update_complete: (0x20002c54) status 0, handle 0
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 24 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 17 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 9 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 14 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 31 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:15
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 15
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 11 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 13 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 9 flags 2
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 14 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:13
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 13
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x06
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2020 param_len 14
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send: (0x20002c54) opcode 0x2020 len 17
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2020 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 17 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 8 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2020
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2020 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:1 len:12
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 12
[bt] [DBG] hci_event: (0x20002c54) event 0x3e
[bt] [DBG] hci_le_meta_event: (0x20002c54) subevent 0x03
[bt] [DBG] le_conn_update_complete: (0x20002c54) status 0, handle 0
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) RX node enqueue
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] recv_thread: (0x20002c54) unblocked
[bt] [DBG] recv_thread: (0x20002c54) Packet in: type:3 len:17
[bt] [DBG] bt_recv: (0x20002c54) buf 0x2000368c len 17
[bt] [DBG] hci_acl: (0x20002c54) buf 0x2000368c
[bt] [DBG] hci_acl: (0x20002c54) handle 0 len 13 flags 2
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2008 param_len 32
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x2008 len 35
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2008 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 35 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2008
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2008 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x2008 status 0x00
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2009 param_len 32
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x2009 len 35
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2009 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 35 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2009
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2009 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x2009 status 0x00
[bt] [DBG] set_random_address: (0x20002c54) ea:e8:05:9b:16:1d
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x2006 param_len 15
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x2006 len 18
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x2006 (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 18 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x2006
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x2006 status 0x00 buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x2006 status 0x00
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) opcode 0x200a param_len 1
[bt] [DBG] bt_hci_cmd_create: (0x20002c54) buf 0x200035c4
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) buf 0x200035c4 opcode 0x200a len 4
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] send_cmd: (0x20001198) calling net_buf_get
[bt] [DBG] send_cmd: (0x20001198) calling sem_take_wait
[bt] [DBG] send_cmd: (0x20001198) Sending command 0x200a (buf 0x200035c4) to driver
[bt] [DBG] bt_send: (0x20001198) buf 0x200035c4 len 4 type 0
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] bt_buf_get_cmd_complete: (0x20001198) sent_cmd 0x200035c4
[bt] [DBG] cmd_handle: (0x20001198) Replying with event of 6 bytes
[bt] [DBG] hci_cmd_complete: (0x20001198) opcode 0x200a
[bt] [DBG] hci_cmd_done: (0x20001198) opcode 0x200a status 0x0c buf 0x200035c4
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] bt_hci_cmd_send_sync: (0x20002c54) opcode 0x200a status 0x0c
Advertising failed to start (err -5)
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] bt_send: (0x20001198) buf 0x200037b8 len 9 type 2
[bt] [DBG] hci_driver_send: (0x20001198) enter
[bt] [DBG] hci_driver_send: (0x20001198) exit: 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events
[bt] [DBG] recv_thread: (0x20002c54) blocking
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem taken
[bt] [DBG] prio_recv_thread: (0x20002cbc) Num Complete: 0x0000:1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) num_handles 1
[bt] [DBG] hci_num_completed_packets: (0x20002cbc) handle 0 count 1
[bt] [DBG] prio_recv_thread: (0x20002cbc) sem take...
[bt] [DBG] process_events: (0x20001198) count 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] process_events: (0x20001198) ev->state 4
[bt] [DBG] process_events: (0x20001198) ev->state 0
[bt] [DBG] hci_tx_thread: (0x20001198) Calling k_poll with 4 events


On Wed, Mar 21, 2018 at 4:57 PM, Johan Hedberg <johan.hedberg@...> wrote:
Hi Vikrant,

You'll need to debug this more then, i.e. get HCI logs and enable debug
logs for hci_core.c.

Johan

On Wed, Mar 21, 2018, Vikrant More wrote:
> Hi Johan,
>
>
>
>
>
>
>
> *static void bt_le_adv_refresh(void){        int err,i;    for(i=0; i<=14;
> i++)    {        name_buffer[i]= '@';    *// it is global array
>     }
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *        sd[0].data = name_buffer;     sd[0].data_len = 15;
> bt_le_adv_stop();    err = bt_le_adv_start(BT_LE_ADV_CONN, ad,
> ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));    if (err)     {
> printk("Advertising failed to start (err %d)\n", err);        return;
> }    printk("Refreshed Advertising successfully started\n");}*
>
>
> I modified my function as per your suggestion, but now
> 1) device stop advertising after this function get call (previously it was
> advertising with new Name )
> 2) plus getting same error as -> Advertising failed to start (err -5)
>
> On Wed, Mar 21, 2018 at 4:14 PM, Johan Hedberg <johan.hedberg@...>
> wrote:
>
> > Hi Vikrant,
> >
> > On Wed, Mar 21, 2018, Vikrant More wrote:
> > > *sd[0].data = name_buffer;        err = bt_le_adv_start(BT_LE_ADV_CONN,
> > ad,
> >
> > You also need to update sd[0].data_len.
> > E.g. sd[0].data_len = strlen(name_buffer);
> >
> > > ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));    if (err)     {
> > > printk("Advertising failed to start (err %d)\n", err);        return;
> > }*
> > >
> > > But when I did it, got an error -> Advertising failed to start (err -5)
> > >
> > > Despite this nRF52, successfully advertise itself with new name.
> > >
> > > How to update device name in real time scenario without rebooting it ?
> >
> > Doing bt_le_adv_stop() and bt_le_adv_start() with a new set of
> > parameters should work.
> >
> > Johan
> >


Re: err -5 when change BLE device name

Johan Hedberg
 

Hi Vikrant,

You'll need to debug this more then, i.e. get HCI logs and enable debug
logs for hci_core.c.

Johan

On Wed, Mar 21, 2018, Vikrant More wrote:
Hi Johan,







*static void bt_le_adv_refresh(void){ int err,i; for(i=0; i<=14;
i++) { name_buffer[i]= '@'; *// it is global array
}















* sd[0].data = name_buffer; sd[0].data_len = 15;
bt_le_adv_stop(); err = bt_le_adv_start(BT_LE_ADV_CONN, ad,
ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); if (err) {
printk("Advertising failed to start (err %d)\n", err); return;
} printk("Refreshed Advertising successfully started\n");}*


I modified my function as per your suggestion, but now
1) device stop advertising after this function get call (previously it was
advertising with new Name )
2) plus getting same error as -> Advertising failed to start (err -5)

On Wed, Mar 21, 2018 at 4:14 PM, Johan Hedberg <johan.hedberg@intel.com>
wrote:

Hi Vikrant,

On Wed, Mar 21, 2018, Vikrant More wrote:
*sd[0].data = name_buffer; err = bt_le_adv_start(BT_LE_ADV_CONN,
ad,

You also need to update sd[0].data_len.
E.g. sd[0].data_len = strlen(name_buffer);

ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); if (err) {
printk("Advertising failed to start (err %d)\n", err); return;
}*

But when I did it, got an error -> Advertising failed to start (err -5)

Despite this nRF52, successfully advertise itself with new name.

How to update device name in real time scenario without rebooting it ?
Doing bt_le_adv_stop() and bt_le_adv_start() with a new set of
parameters should work.

Johan


Re: err -5 when change BLE device name

Vikrant More <vikrant8051@...>
 

Hi Johan,

static void bt_le_adv_refresh(void)
{   
    int err,i;

    for(i=0; i<=14; i++)
    {
        name_buffer[i]= '@';   
// it is global array
    }
   
    sd[0].data = name_buffer;
    sd[0].data_len = 15;

    bt_le_adv_stop();

    err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));

    if (err)
    {
        printk("Advertising failed to start (err %d)\n", err);
        return;
    }

    printk("Refreshed Advertising successfully started\n");
}



I modified my function as per your suggestion, but now
1) device stop advertising after this function get call (previously it was advertising with new Name )
2) plus getting same error as -> Advertising failed to start (err -5)

On Wed, Mar 21, 2018 at 4:14 PM, Johan Hedberg <johan.hedberg@...> wrote:
Hi Vikrant,

On Wed, Mar 21, 2018, Vikrant More wrote:
> *sd[0].data = name_buffer;        err = bt_le_adv_start(BT_LE_ADV_CONN, ad,

You also need to update sd[0].data_len.
E.g. sd[0].data_len = strlen(name_buffer);

> ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));    if (err)     {
> printk("Advertising failed to start (err %d)\n", err);        return;    }*
>
> But when I did it, got an error -> Advertising failed to start (err -5)
>
> Despite this nRF52, successfully advertise itself with new name.
>
> How to update device name in real time scenario without rebooting it ?

Doing bt_le_adv_stop() and bt_le_adv_start() with a new set of
parameters should work.

Johan


Re: err -5 when change BLE device name

Johan Hedberg
 

Hi Vikrant,

On Wed, Mar 21, 2018, Vikrant More wrote:
*sd[0].data = name_buffer; err = bt_le_adv_start(BT_LE_ADV_CONN, ad,
You also need to update sd[0].data_len.
E.g. sd[0].data_len = strlen(name_buffer);

ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); if (err) {
printk("Advertising failed to start (err %d)\n", err); return; }*

But when I did it, got an error -> Advertising failed to start (err -5)

Despite this nRF52, successfully advertise itself with new name.

How to update device name in real time scenario without rebooting it ?
Doing bt_le_adv_stop() and bt_le_adv_start() with a new set of
parameters should work.

Johan


err -5 when change BLE device name

Vikrant More <vikrant8051@...>
 

Hi,

I've added functionality where user can change BLE device name which is part of scan response by calling


    sd[0].data = name_buffer;
  
    err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));

    if (err)
    {
        printk("Advertising failed to start (err %d)\n", err);
        return;
    }


But when I did it, got an error -> Advertising failed to start (err -5)

Despite this nRF52, successfully advertise itself with new name.

How to update device name in real time scenario without rebooting it ?

Thanks,
vikrant8051


Re: [Zephyr-devel] Is it allowed to use public Bluetooth device address instead of non-resolvable random device address in the project of /sample/bluetooth/mesh_deom?

Johan Hedberg
 

Hi,

On Wed, Mar 21, 2018, Johan Hedberg wrote:
On Wed, Mar 21, 2018, Kai Ren wrote:
Just tested it, it works well, evidence is as below. Adv address is
static even if I reset my micro:bit.

I guess this address is from Nordic chipset, NRF_FICR->DEVICEADDR,
correct?
Yes, that's correct. Could you also add a comment to the PR that you've
tested it? (this helps getting it merged quicker)

I'm also thinking of adding a new Kconfig entry (with a depends on
BT_MESH_DEBUG) which would allow you to enable this feature from the app
rather than having to hack the mesh stack's code.
I've now updated the PR with a third patch that adds this new Kconfig
option for Mesh (called CONFIG_BT_MESH_DEBUG_USE_ID_ADDR).

Johan


Re: [Zephyr-devel] How hacker will hack/impact my BLE device, when ...??

Vikrant More <vikrant8051@...>
 

Hi Vakul,

Thanks for reply !!

No, APP can't differentiate between Genuine & Fake device.

And Yes, user by mistake can connect with his neighbor/attacker Device.

solution - 1) APP will check RSSI signal strength of Device. If it is in the range of 1-2 meters then only APP proceeds further.

              2) APP will pop-up with BUTTON to force user to Blink LED on connected device. And ask user "Have you seen Blinking LED ?"
                  If he/she clicks on "YES",  then only APP proceeds further.

                  Let suppose,

                  A = attacker fake device
                  B = newly purchased User's device

                  if user by mistake connect with A, then APP will Blink A instead B. Even after this, if user click on "Yes" on response of "Have you seen Blinking LED ?"
                  then it is User responsibility.

                 Risk - In above example, User can connect with A, at same time attacker could connect with B.
                           And when user click on Button to blink LED, same time attacker may Blink LED on B. Here, user may feel that he is connected to B & will press on "YES"
                 

Regards,
vikrant8051
 



On Wed, Mar 21, 2018 at 10:38 AM, Vakul Garg <vakul.garg@...> wrote:

Hi Vikrant

 

I am curious to understand about your security implementation.

I work in area of TLS security and I am not bluetooth security expert.

 

In your case, does the app need to differentiate between a genuine or fake device?

Will it be able to create a shared secret with the device even if it is a clone of genuine device and purpose programmed to leak the common encryption key?

 

Regards

 

Vakul

 

From: zephyr-devel-bounces@lists.zephyrproject.org [mailto:zephyr-devel-bounces@lists.zephyrproject.org] On Behalf Of Vikrant More
Sent: Tuesday, March 20, 2018 11:28 PM
To: zephyr-devel@lists.zephyrproject.org; zephyr-users@lists.zephyrproject.org
Subject: [Zephyr-devel] How hacker will hack/impact my BLE device, when ...??

 

Hi,

 

In my current project, I haven't implemented OOB pairing ( BLE based smart lights)

 

Using Zephyr built-in ECDH library, shared secret (using secp256r1 curve) get created on Device as well as on APP side which will act like encryption key for further communication.

 

On that encrypted link, APP send encryption key which is common for all devices associated with it.

 

All this happens when DEVICE is in factory reset mode.

 

There after communication link is encrypted using newly assign common key.

 

..................................................................................….........................................

 

This will create security risk, only if device is not authenticated by user & it could transfer security key ( which is common to many devices) to unauthorized device.

 

To solve this, APP will automatically trigger DEVICE's LEDs to blink & ask user "do you see blinking LED?" 

 

If user click on "YES" then & only then ECDH process will initiate & common key get share with new DEVICE.

 

------------------------------------------------------------------------------------------------------------------------

 

Besides this I didn't found any security flaw in this implementation. So I need help from Bluetooth Security expert. Is there anyone who can help me to find out flaws & security risks in my current implementation ?

 

Thanks,

vikrant8051



Re: k_thread_user_mode_enter() usage

Vakul Garg <vakul.garg@...>
 

Hi Andrew

I am using nxp frdm_k64f (has cortex M4 core).
In my application, I have a printf() at beginning. This is causing bus fault.
Replacing it with an infinite while(1) loop hides the bus fault but stack check still remains.

Further I tried running zephyr/tests/kernel/mem_protect/userspace.
It passes successfully.

However if I introduce a printf() in function userspace/src/main.c: umode_enter_func() under the condition when is_user_context is true, it also crashes.
But here it is different exception !!

***** USAGE FAULT *****
Executing thread ID (thread): 0x200002ec
Faulting instruction address: 0x61a0
Attempt to execute undefined instruction
Caught system error -- reason 0

Further decoding faulting instruction address 0x61a0 using 'addr2line' takes me to userspace/build/frdm_k64f/zephyr/priv_stacks_hash.gperf:32
The given line number is inside following function (at the location where variable map is being dereferenced to get priv_stack_addr).

u8_t *_k_priv_stack_find(void *obj)
{
const struct _k_priv_stack_map *map =
_k_priv_stack_map_lookup((const char *)obj, sizeof(void *));
return map->priv_stack_addr;
}

I tried increasing MAIN/PREVILEDGED stack sizes in project config, but result is same.

Regards

Vakul

-----Original Message-----
From: Boie, Andrew P [mailto:andrew.p.boie@intel.com]
Sent: Tuesday, March 20, 2018 8:16 PM
To: Vakul Garg <vakul.garg@nxp.com>; zephyr-
users@lists.zephyrproject.org
Cc: Andy Gross <andy.gross@linaro.org>
Subject: RE: k_thread_user_mode_enter() usage

It looks like you are getting two exceptions in a row.
Were you able to determine the source of the bus fault? That seems like the
real issue.
What platform is this on?

Andrew

-----Original Message-----
From: zephyr-users-bounces@lists.zephyrproject.org [mailto:zephyr-users-
bounces@lists.zephyrproject.org] On Behalf Of Vakul Garg
Sent: Tuesday, March 20, 2018 3:57 AM
To: zephyr-users@lists.zephyrproject.org
Subject: [Zephyr-users] k_thread_user_mode_enter() usage

Hi

I want my application auto-launched at zephyr startup to drop its privileges
to become user mode app.
So I moved my applications entry point to app_main() and invoked it from
k_thread_user_mode_enter(app_main, NULL, NULL, NULL) from function
void main().

Now, before app_main() could get called, I get following error:

***** BUS FAULT *****
Executing thread ID (thread): 0x20002eec
Faulting instruction address: 0x12da
Precise data bus error
Address: 0x20011208
Fatal fault in thread 0x20002eec! Aborting.
***** Stack Check Fail! *****
Current thread ID = 0x20002eec
Faulting instruction address = 0x2a290

I checked that the stack sentinel check is failing in function
_check_stack_sentinel().

Can someone advise what I am doing wrong?

Regards

Vakul

_______________________________________________
Zephyr-users mailing list
Zephyr-users@lists.zephyrproject.org
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
s.zephyrproject.org%2Fmailman%2Flistinfo%2Fzephyr-
users&data=02%7C01%7Cvakul.garg%40nxp.com%7Cee6448f50f03472d438
908d58e7162a5%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63
6571540048549904&sdata=7%2B4eiwFRT0gglTQxGjYUNbVXu1PEoF9cp4tgK
FaIg70%3D&reserved=0


Re: [Zephyr-devel] Is it allowed to use public Bluetooth device address instead of non-resolvable random device address in the project of /sample/bluetooth/mesh_deom?

Johan Hedberg
 

Hi Kai,

On Wed, Mar 21, 2018, Kai Ren wrote:
Just tested it, it works well, evidence is as below. Adv address is
static even if I reset my micro:bit.

I guess this address is from Nordic chipset, NRF_FICR->DEVICEADDR,
correct?
Yes, that's correct. Could you also add a comment to the PR that you've
tested it? (this helps getting it merged quicker)

I'm also thinking of adding a new Kconfig entry (with a depends on
BT_MESH_DEBUG) which would allow you to enable this feature from the app
rather than having to hack the mesh stack's code.

Johan


Re: [Zephyr-devel] How hacker will hack/impact my BLE device, when ...??

Vakul Garg <vakul.garg@...>
 

Hi Vikrant

 

I am curious to understand about your security implementation.

I work in area of TLS security and I am not bluetooth security expert.

 

In your case, does the app need to differentiate between a genuine or fake device?

Will it be able to create a shared secret with the device even if it is a clone of genuine device and purpose programmed to leak the common encryption key?

 

Regards

 

Vakul

 

From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...] On Behalf Of Vikrant More
Sent: Tuesday, March 20, 2018 11:28 PM
To: zephyr-devel@...; zephyr-users@...
Subject: [Zephyr-devel] How hacker will hack/impact my BLE device, when ...??

 

Hi,

 

In my current project, I haven't implemented OOB pairing ( BLE based smart lights)

 

Using Zephyr built-in ECDH library, shared secret (using secp256r1 curve) get created on Device as well as on APP side which will act like encryption key for further communication.

 

On that encrypted link, APP send encryption key which is common for all devices associated with it.

 

All this happens when DEVICE is in factory reset mode.

 

There after communication link is encrypted using newly assign common key.

 

..................................................................................….........................................

 

This will create security risk, only if device is not authenticated by user & it could transfer security key ( which is common to many devices) to unauthorized device.

 

To solve this, APP will automatically trigger DEVICE's LEDs to blink & ask user "do you see blinking LED?" 

 

If user click on "YES" then & only then ECDH process will initiate & common key get share with new DEVICE.

 

------------------------------------------------------------------------------------------------------------------------

 

Besides this I didn't found any security flaw in this implementation. So I need help from Bluetooth Security expert. Is there anyone who can help me to find out flaws & security risks in my current implementation ?

 

Thanks,

vikrant8051


Firmware over the air (FOTA) and FCB support in 1.11.0

ashish.shukla@corvi.com <ashish.shukla@...>
 

Hi all,

I've been waiting for FOTA and FCB support in zephyr and now when it is supported, I cannot see any samples available or proper documentation to use these features in my project.

Any help regarding the same would be of great help.

--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development


Please consider the environment before printing this e-mail or its attachments.

Disclaimer: The information contained herein (including any accompanying documents) is confidential and is intended solely for the addressee(s). If you have erroneously received this message, please immediately delete it and notify the sender. Also, if you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this message or any accompanying document is strictly prohibited and is unlawful. The organization is not responsible for any damage caused by a virus or alteration of the e-mail by a third party or otherwise. The contents of this message may not necessarily represent the views or policies of Corvi


Re: [Zephyr-devel] Is it allowed to use public Bluetooth device address instead of non-resolvable random device address in the project of /sample/bluetooth/mesh_deom?

Kai Ren <kren@...>
 

Hi Johan,

Just tested it, it works well, evidence is as below. Adv address is static even if I reset my micro:bit.

I guess this address is from Nordic chipset,  NRF_FICR->DEVICEADDR, correct?

 

Regards,

Kai

 

-----Original Message-----
From: Johan Hedberg [mailto:johan.hedberg@...]
Sent: Tuesday, March 20, 2018 11:05 PM
To: Kai Ren <kren@...>
Cc: Vikrant More <vikrant8051@...>; zephyr-devel@...; zephyr-users@...
Subject: Re: [Zephyr-devel] Is it allowed to use public Bluetooth device address instead of non-resolvable random device address in the project of /sample/bluetooth/mesh_deom?

 

I forgot to mention that if this is for Mesh, you'd take the new option into use with something like the following:

 

--- a/subsys/bluetooth/host/mesh/adv.c

+++ b/subsys/bluetooth/host/mesh/adv.c

@@ -115,7 +115,7 @@ static inline void adv_send(struct net_buf *buf)

        ad.data_len = buf->len;

        ad.data = buf->data;

-       param.options = 0;

+       param.options = BT_LE_ADV_OPT_USE_IDENTITY;

        param.interval_min = ADV_SCAN_UNIT(adv_int);

        param.interval_max = param.interval_min;

        param.own_addr = NULL;

 

Johan

 

On Tue, Mar 20, 2018, Johan Hedberg wrote:

> Hi Kai,

>

> Here's a completely untested pull request which adds the new flag:

>

> https://github.com/zephyrproject-rtos/zephyr/pull/6720

>

> Could you try it out and let me know if it works for you?

>

> Johan

>

> On Tue, Mar 20, 2018, Kai Ren wrote:

> > Hi Johan,

> >

> > The reason I want to use static address is that it will be easy to distinguish on Bluetooth packet sniffer. Currently, if there is a Bluetooth noisy background, it's hard to trace the mesh node I'm interested in, so many adv packets pop up on packet sniffer user inferface.

> >

> > If there will be a flag to enable/disable it, it would be awesome. 

> >

> >

> > Regards,

> > Kai

> > 

> > 

> > 

> >

> > On 20/03/2018, 9:53 PM, "Johan Hedberg" <johan.hedberg@...> wrote:

> >

> >     Hi Kai,

> >    

> >     Currently the stack will always use a non-resolvable private address

> >     when doing non-connectable advertising, regardless of what kind of

> >     privacy features are supported or not. You can see the logic related to

> >     this in the else-branch of the bt_le_adv_start() function in hci_core.c

> >     that starts on line 4728 (in the current master branch).

> >    

> >     So far there hasn't been a need to use anything else with

> >     non-connectable advertising, however if there's a good use case for this

> >     we could e.g. add a new option flag to bt_le_adv_param to force using

> >     the local identity address for advertising (I think that's what you

> >     meant instead of public address since e.g. nRF5x targets will use a

> >     static random identity address by default).

> >    

> >     Johan

> >    

> >     On Tue, Mar 20, 2018, Kai Ren wrote:

> >     > Hi Vikrant,

> >     >

> >     > Thanks for the reply.

> >     >

> >     > I tested it today, but the device address is still random. Do I need to some extra configuration for it?

> >     >

> >     > ________________________________

> >     > From: Vikrant More <vikrant8051@...>

> >     > Sent: Monday, March 19, 2018 11:09:07 AM

> >     > To: Kai Ren; zephyr-devel@...; zephyr-users@...

> >     > Subject: Re: [Zephyr-devel] Is it allowed to use public Bluetooth device address instead of non-resolvable random device address in the project of /sample/bluetooth/mesh_deom?

> >     >

> >     > Hi Kai,

> >     >

> >     > In proj.conf, you can edit following config option as

> >     >

> >     > CONFIG_BT_PRIVACY=n.

> >     >

> >     > Thanks,

> >     > vikrant8051

> >     >

> >     >

> >     >

> >     >

> >     > On Mon, Mar 19, 2018, 8:16 AM Kai Ren <kren@...<mailto:kren@...>> wrote:

> >     >

> >     > Hello,

> >     >

> >     > I’m using micro:bit to run /sample/bluetooth/mesh_demo/, I found that it use non-resolvable random device address, I’d like to make it use public Bluetooth device address (it’s easy to distinguish on Bluetooth packet sniffer), it is allowed to do? How can I configure it in the ./mesh_demo/ project?

> >     >

> >     > Thanks.

> >     >

> >     >

> >     >

> >     > Regards,

> >     >

> >     > Kai

> >     >

> >     >

> >     >

> >     > _______________________________________________

> >     > Zephyr-devel mailing list

> >     > Zephyr-devel@...<mailto:Zephyr-devel@...>

> >     > https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel

> >    

> >     > _______________________________________________

> >     > Zephyr-devel mailing list

> >     > Zephyr-devel@...

> >     > https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel

> >    

> >    

> >


How hacker will hack/impact my BLE device, when ...??

Vikrant More <vikrant8051@...>
 

Hi,

In my current project, I haven't implemented OOB pairing ( BLE based smart lights)

Using Zephyr built-in ECDH library, shared secret (using secp256r1 curve) get created on Device as well as on APP side which will act like encryption key for further communication.

On that encrypted link, APP send encryption key which is common for all devices associated with it.

All this happens when DEVICE is in factory reset mode.

There after communication link is encrypted using newly assign common key.

..................................................................................….........................................

This will create security risk, only if device is not authenticated by user & it could transfer security key ( which is common to many devices) to unauthorized device.

To solve this, APP will automatically trigger DEVICE's LEDs to blink & ask user "do you see blinking LED?" 

If user click on "YES" then & only then ECDH process will initiate & common key get share with new DEVICE.

------------------------------------------------------------------------------------------------------------------------

Besides this I didn't found any security flaw in this implementation. So I need help from Bluetooth Security expert. Is there anyone who can help me to find out flaws & security risks in my current implementation ?

Thanks,
vikrant8051


Re: [Zephyr-devel] Is it allowed to use public Bluetooth device address instead of non-resolvable random device address in the project of /sample/bluetooth/mesh_deom?

Johan Hedberg
 

I forgot to mention that if this is for Mesh, you'd take the new option
into use with something like the following:

--- a/subsys/bluetooth/host/mesh/adv.c
+++ b/subsys/bluetooth/host/mesh/adv.c
@@ -115,7 +115,7 @@ static inline void adv_send(struct net_buf *buf)
ad.data_len = buf->len;
ad.data = buf->data;

- param.options = 0;
+ param.options = BT_LE_ADV_OPT_USE_IDENTITY;
param.interval_min = ADV_SCAN_UNIT(adv_int);
param.interval_max = param.interval_min;
param.own_addr = NULL;

Johan

On Tue, Mar 20, 2018, Johan Hedberg wrote:
Hi Kai,

Here's a completely untested pull request which adds the new flag:

https://github.com/zephyrproject-rtos/zephyr/pull/6720

Could you try it out and let me know if it works for you?

Johan

On Tue, Mar 20, 2018, Kai Ren wrote:
Hi Johan,

The reason I want to use static address is that it will be easy to distinguish on Bluetooth packet sniffer. Currently, if there is a Bluetooth noisy background, it's hard to trace the mesh node I'm interested in, so many adv packets pop up on packet sniffer user inferface.

If there will be a flag to enable/disable it, it would be awesome.


Regards,
Kai




On 20/03/2018, 9:53 PM, "Johan Hedberg" <johan.hedberg@intel.com> wrote:

Hi Kai,

Currently the stack will always use a non-resolvable private address
when doing non-connectable advertising, regardless of what kind of
privacy features are supported or not. You can see the logic related to
this in the else-branch of the bt_le_adv_start() function in hci_core.c
that starts on line 4728 (in the current master branch).

So far there hasn't been a need to use anything else with
non-connectable advertising, however if there's a good use case for this
we could e.g. add a new option flag to bt_le_adv_param to force using
the local identity address for advertising (I think that's what you
meant instead of public address since e.g. nRF5x targets will use a
static random identity address by default).

Johan

On Tue, Mar 20, 2018, Kai Ren wrote:
> Hi Vikrant,
>
> Thanks for the reply.
>
> I tested it today, but the device address is still random. Do I need to some extra configuration for it?
>
> ________________________________
> From: Vikrant More <vikrant8051@gmail.com>
> Sent: Monday, March 19, 2018 11:09:07 AM
> To: Kai Ren; zephyr-devel@lists.zephyrproject.org; zephyr-users@lists.zephyrproject.org
> Subject: Re: [Zephyr-devel] Is it allowed to use public Bluetooth device address instead of non-resolvable random device address in the project of /sample/bluetooth/mesh_deom?
>
> Hi Kai,
>
> In proj.conf, you can edit following config option as
>
> CONFIG_BT_PRIVACY=n.
>
> Thanks,
> vikrant8051
>
>
>
>
> On Mon, Mar 19, 2018, 8:16 AM Kai Ren <kren@bluetooth.com<mailto:kren@bluetooth.com>> wrote:
>
> Hello,
>
> I’m using micro:bit to run /sample/bluetooth/mesh_demo/, I found that it use non-resolvable random device address, I’d like to make it use public Bluetooth device address (it’s easy to distinguish on Bluetooth packet sniffer), it is allowed to do? How can I configure it in the ./mesh_demo/ project?
>
> Thanks.
>
>
>
> Regards,
>
> Kai
>
>
>
> _______________________________________________
> Zephyr-devel mailing list
> Zephyr-devel@lists.zephyrproject.org<mailto:Zephyr-devel@lists.zephyrproject.org>
> https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel

> _______________________________________________
> Zephyr-devel mailing list
> Zephyr-devel@lists.zephyrproject.org
> https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel



Re: [Zephyr-devel] Is it allowed to use public Bluetooth device address instead of non-resolvable random device address in the project of /sample/bluetooth/mesh_deom?

Johan Hedberg
 

Hi Kai,

Here's a completely untested pull request which adds the new flag:

https://github.com/zephyrproject-rtos/zephyr/pull/6720

Could you try it out and let me know if it works for you?

Johan

On Tue, Mar 20, 2018, Kai Ren wrote:
Hi Johan,

The reason I want to use static address is that it will be easy to distinguish on Bluetooth packet sniffer. Currently, if there is a Bluetooth noisy background, it's hard to trace the mesh node I'm interested in, so many adv packets pop up on packet sniffer user inferface.

If there will be a flag to enable/disable it, it would be awesome.


Regards,
Kai




On 20/03/2018, 9:53 PM, "Johan Hedberg" <johan.hedberg@intel.com> wrote:

Hi Kai,

Currently the stack will always use a non-resolvable private address
when doing non-connectable advertising, regardless of what kind of
privacy features are supported or not. You can see the logic related to
this in the else-branch of the bt_le_adv_start() function in hci_core.c
that starts on line 4728 (in the current master branch).

So far there hasn't been a need to use anything else with
non-connectable advertising, however if there's a good use case for this
we could e.g. add a new option flag to bt_le_adv_param to force using
the local identity address for advertising (I think that's what you
meant instead of public address since e.g. nRF5x targets will use a
static random identity address by default).

Johan

On Tue, Mar 20, 2018, Kai Ren wrote:
> Hi Vikrant,
>
> Thanks for the reply.
>
> I tested it today, but the device address is still random. Do I need to some extra configuration for it?
>
> ________________________________
> From: Vikrant More <vikrant8051@gmail.com>
> Sent: Monday, March 19, 2018 11:09:07 AM
> To: Kai Ren; zephyr-devel@lists.zephyrproject.org; zephyr-users@lists.zephyrproject.org
> Subject: Re: [Zephyr-devel] Is it allowed to use public Bluetooth device address instead of non-resolvable random device address in the project of /sample/bluetooth/mesh_deom?
>
> Hi Kai,
>
> In proj.conf, you can edit following config option as
>
> CONFIG_BT_PRIVACY=n.
>
> Thanks,
> vikrant8051
>
>
>
>
> On Mon, Mar 19, 2018, 8:16 AM Kai Ren <kren@bluetooth.com<mailto:kren@bluetooth.com>> wrote:
>
> Hello,
>
> I’m using micro:bit to run /sample/bluetooth/mesh_demo/, I found that it use non-resolvable random device address, I’d like to make it use public Bluetooth device address (it’s easy to distinguish on Bluetooth packet sniffer), it is allowed to do? How can I configure it in the ./mesh_demo/ project?
>
> Thanks.
>
>
>
> Regards,
>
> Kai
>
>
>
> _______________________________________________
> Zephyr-devel mailing list
> Zephyr-devel@lists.zephyrproject.org<mailto:Zephyr-devel@lists.zephyrproject.org>
> https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel

> _______________________________________________
> Zephyr-devel mailing list
> Zephyr-devel@lists.zephyrproject.org
> https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel


2081 - 2100 of 2727