qemu_x86 zephyr bluetooth beacon sample error


Priyanka
 

Hi Johan


Thanks for the reply.
The error is with the (recent) master branch of zephyr.
Yes, I did try restarting Qemu, but it didn't resolve the issue.

Just to give you a sense of how I test this sample with BlueZ emulator and tools (in case I am missing or doing something wrong here) :

I have following running in different terminals.

$ sudo ./btvirt -l2
Bluetooth emulator ver 5.46

$ sudo btmon
Bluetooth monitor ver 5.46

$ sudo tools/btproxy -u
Listening on /tmp/bt-server-bredr
Opening user channel for hci0
New client connected

# zephyr/samples/bluetooth/beacon$ make run

Starting Beacon Demo
[bt] [INF] show_dev_info: Identity: 00:aa:01:00:00:23 (public)
[bt] [INF] show_dev_info: HCI: version 5.0 (0x09) revision 0x0000, manufacturer 0x003f
[bt] [INF] show_dev_info: LMP: version 5.0 (0x09) subver 0x0000
Bluetooth initialized
Beacon started
[bt] [ERR] read_payload: Not enough space in buffer
[bt] [WRN] hci_cmd_done: pool id 1 pool 0x00405098 != &hci_cmd_pool 0x00405078

I try this with the basic proj.conf  provided in the sample "beacon"

$ hciconfig -a

gives me the following
Can't read class of device on hci0: Connection timed out (110)


hci0: Type: BR/EDR Bus: VIRTUAL

BD Address: 00:AA:01:00:00:23 ACL MTU: 192:1 SCO MTU: 0:0

UP RUNNING

RX bytes:0 acl:0 sco:0 events:203 errors:0

TX bytes:7024 acl:0 sco:0 commands:636 errors:0

Features: 0xa4 0x08 0x08 0xc0 0x58 0x1e 0x7b 0x83

Packet type: DM1 DH1 HV1

Link policy: RSWITCH SNIFF

Link mode: SLAVE ACCEPT

Name: 'xxxxxx #1'

Can't read class of device on hci0: Connection timed out (110)


Thanks
Priyanka


From: Johan Hedberg <johan.hedberg@...>
Sent: Tuesday, September 5, 2017 2:45 PM
To: Priyanka Rawat
Cc: zephyr-users@...
Subject: Re: [Zephyr-users] qemu_x86 zephyr bluetooth beacon sample error
 
Hi Priyanka,

On Tue, Sep 05, 2017, Priyanka Rawat wrote:
> While running the bluetooth sample "beacon" for the target qemu_x86,
>
> I get the following error
>
> Starting Beacon Demo
>
> Bluetooth initialized
> Beacon started
> [bt] [ERR] read_payload: Not enough space in buffer
> [bt] [WRN] hci_cmd_done: pool id 1 pool 0x00405098 != &hci_cmd_pool 0x00405078
>
> Is this a known issue? Could someone please tell me the possible cause
> of this error and how to fix it possibly? Thanks.

What version of Zephyr is this with? I've noticed that sometimes there
seems to be some garbage data inserted to the virtual UART between
btproxy and qemu, and restarting qemu usually helps with that. I've at
least seen the first error when that happens.

Johan


Johan Hedberg
 

Hi Priyanka,

On Tue, Sep 05, 2017, Priyanka Rawat wrote:
While running the bluetooth sample "beacon" for the target qemu_x86,

I get the following error

Starting Beacon Demo

Bluetooth initialized
Beacon started
[bt] [ERR] read_payload: Not enough space in buffer
[bt] [WRN] hci_cmd_done: pool id 1 pool 0x00405098 != &hci_cmd_pool 0x00405078

Is this a known issue? Could someone please tell me the possible cause
of this error and how to fix it possibly? Thanks.
What version of Zephyr is this with? I've noticed that sometimes there
seems to be some garbage data inserted to the virtual UART between
btproxy and qemu, and restarting qemu usually helps with that. I've at
least seen the first error when that happens.

Johan


Priyanka
 

Hi 


While running the bluetooth sample "beacon" for the target qemu_x86, 

I get the following error


Starting Beacon Demo


Bluetooth initialized
Beacon started
[bt] [ERR] read_payload: Not enough space in buffer
[bt] [WRN] hci_cmd_done: pool id 1 pool 0x00405098 != &hci_cmd_pool 0x00405078

Is this a known issue? Could someone please tell me the possible cause of this error and how to fix it possibly? Thanks.

Thanks
Priyanka