Subject: Re: btconfig: SIOCSBTFLAGS: Resource temporarily unavailable
To: Iain Hibbert <plunky@rya-online.net>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: tech-kern
Date: 07/16/2006 22:02:59
--nextPart4033081.i9xzgTStSB
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sunday 16 July 2006 21:44, Iain Hibbert wrote:
> On Sun, 16 Jul 2006, Berndt Josef Wulf wrote:
> > On Sunday 16 July 2006 20:59, Iain Hibbert wrote:
> > > and hw.ubt_debug=3D15 also please?
> >
> > This debug option was already set to 15.
> >
> > : {41} sysctl hw.ubt_debug
> >
> > hw.ubt_debug =3D 15
>
> Ah, my bad :)
>
> .. must be >15 to make the DPRINTF I want to see
>
> thanks,
> iain

Ok, I've set it to 255

Jul 16 21:50:52  /netbsd: hci_usrreq: ATTACH
Jul 16 21:50:52  /netbsd: hci_usrreq: CONTROL
Jul 16 21:50:52  /netbsd: hci_ioctl: cmd 0xc0386205
Jul 16 21:50:52  /netbsd: hci_usrreq: CONTROL
Jul 16 21:50:52  /netbsd: hci_ioctl: cmd 0xc0386208
Jul 16 21:50:52  /netbsd: ubt_enable: sc=3D0xc1f89400
Jul 16 21:50:52  /netbsd: ubt_recv_acl_start: sc=3D0xc1f89400
Jul 16 21:50:52  /netbsd: hci_send_cmd: (ubt0) opcode (004|0009)
Jul 16 21:50:52  /netbsd: hci_output_cmd: (ubt0) num_cmd_pkts=3D1
Jul 16 21:50:52  /netbsd: ubt_xmit_cmd_start: ubt0: xmit CMD packet (4 byte=
s)
Jul 16 21:50:52  /netbsd: hci_send_cmd: (ubt0) opcode (004|0005)
Jul 16 21:50:52  /netbsd: hci_send_cmd: (ubt0) opcode (004|0003)
Jul 16 21:50:52  /netbsd: ubt_xmit_cmd_complete: ubt0: CMD complete=20
status=3DNORMAL_COMPLETION (0)
Jul 16 21:50:52  /netbsd: ubt_recv_event: sc=3D0xc1f89400=20
status=3DNORMAL_COMPLETION (0)
Jul 16 21:50:52  /netbsd: hci_intr: (ubt0) recv event, len =3D 13
Jul 16 21:50:52  /netbsd: hci_event: (ubt0) event COMMAND COMPLETE
Jul 16 21:50:52  /netbsd: hci_event_command_compl: (ubt0) opcode (004|0009)=
=20
num_cmd_pkts =3D 1
Jul 16 21:50:52  /netbsd: hci_output_cmd: (ubt0) num_cmd_pkts=3D1
Jul 16 21:50:52  /netbsd: ubt_xmit_cmd_start: ubt0: xmit CMD packet (4 byte=
s)
Jul 16 21:50:52  /netbsd: hci_intr: done
Jul 16 21:50:52  /netbsd: ubt_xmit_cmd_complete: ubt0: CMD complete=20
status=3DNORMAL_COMPLETION (0)
Jul 16 21:50:53  /netbsd: ubt_disable: sc=3D0xc1f89400
Jul 16 21:50:53  /netbsd: ubt_abortdealloc: sc=3D0xc1f89400
Jul 16 21:50:53  /netbsd: ubt_recv_event: sc=3D0xc1f89400 status=3DCANCELLE=
D (6)
Jul 16 21:50:53  /netbsd: ubt_recv_acl_complete: sc=3D0xc1f89400=20
status=3DCANCELLED (6)
Jul 16 21:50:53  /netbsd: ubt_recv_acl_complete: status=3DCANCELLED (6)
Jul 16 21:50:53  /netbsd: hci_usrreq: DETACH

How about that.... ;-)

I also noticed that when "btconfig ubt0 up" is issued the first time hcidum=
p=20
shows:

< HCI Command: Read BD ADDR(0x04|0x0009) plen 0
> HCI Event: Command Complete(0x0e) plen 10
< HCI Command: Read Buffer Size(0x04|0x0005) plen 0

however on second time

< HCI Command: Read BD ADDR(0x04|0x0009) plen 0
> HCI Event: Command Complete(0x0e) plen 10
< HCI Command: Read Local Supported Features(0x04|0x0003) plen 0

cheerio Berndt

--nextPart4033081.i9xzgTStSB
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (NetBSD)

iD8DBQBEujH/cUIHpeIRpjERAgRbAKCVQ7c4OiNwCfuLnUaB5shWWZfcmgCgha5s
euXR1grcvDFBiGFDtvKoFG8=
=lb1U
-----END PGP SIGNATURE-----

--nextPart4033081.i9xzgTStSB--