[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bluetooth-dev] my branch

Jan Beutel wrote:

> i am running kernel 2.2.18 on redhat.
> my bt hw is ericsson p3d with p9a firmware.
> and yes, i get a time out waiting. see below:
> [root@pc-3581 bin]# btd -r client
> Bluetooth Control Application
> -----------------------------
> Running as client
> Physdev /dev/ttyS0, btdev /dev/ttyBT0, speed 115200 baud
> Registered bluetooth line discipline on /dev/ttyS0
> Init stack
> Setting write_scan_enable in Ericsson module!
> Setting event filter in Ericsson module!
> Setting baudrate in Ericsson module!
> Now entering cmd line mode
> Menu
> ------------------------
>   inq <Max number of responses> (inquiry scan)
>   rf_conn <xx:xx:xx:xx:xx:xx> <srv ch> <line>
>   rf_send <nbr bytes> <nbr repeats> <line>
>   rf_disc <line>
>   rf_wait <line>
>   me <1/0>
>   setbd <xx:xx:xx:xx:xx:xx>
>   readbd
>   reset
>   role_switch <xx:xx:xx:xx:xx:xx> <role> (0=master, 1=slave)
>   ppp
>   quit
> > inq 10 10
> Inquiry: Resource temporarily unavailable
> [root@pc-3581 bin]#
> Mar 21 17:00:09 pc-3581 kernel: BT SYS: Now 2 open fd:s for ttyBTC
> Mar 21 17:00:09 pc-3581 kernel: BT (driver) bt_ioctl: forwarding ioctl
> 0x540b to serial driver
> Mar 21 17:00:09 pc-3581 kernel: BT (driver) bt_flush_buffer
> Mar 21 17:00:09 pc-3581 kernel: BT (driver) bt_ioctl: HCINQUIRY
> Mar 21 17:00:12 pc-3581 kernel: cmd_timeout, Timeout when waiting for
> command response
> Mar 21 17:00:12 pc-3581 btd: Shutting down bluetooth stack
> then it's gone...

Ok, that's good info.

First the easy one. btd shouldn't bail just because the inquiry ioctl failed.
I'll check that in as soon as sourceforge let's me connect again.

Now, the timeout is the command timeout, not the HCI inquiry timeout. This
implies that the Host Controller didn't kick back a Command Status event, or we
got one but didn't do the right thing. Can you turn on BT_DATAFLOW_DEBUG and post
me the log?


To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com