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

Join users@lists.zephyrproject.org to automatically receive all group messages.