Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Nov 2009 19:23:35 -0800
From:      Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
To:        John <comp.john@googlemail.com>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: Problems getting the bluetooth stack to start
Message-ID:  <bb4a86c70911221923k16afa26dne1e2322c0da87bcd@mail.gmail.com>
In-Reply-To: <20091123014916.GA20648@potato>
References:  <20091121184335.GA2008@potato> <1258883126.052713.723.nullmailer@galant.ukfsn.org> <20091123014916.GA20648@potato>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 22, 2009 at 5:49 PM, John <comp.john@googlemail.com> wrote:

[...]

everything up to this point looks good

> What I can't work out now is why i can't see the channels:
>
> potato# l2ping -a 00:0a:d9:3e:70:24
> 0 bytes from 00:0a:d9:3e:70:24 seq_no=0 time=500.567 ms result=0
> 0 bytes from 00:0a:d9:3e:70:24 seq_no=1 time=31.890 ms result=0
> 0 bytes from 00:0a:d9:3e:70:24 seq_no=2 time=31.895 ms result=0
> 0 bytes from 00:0a:d9:3e:70:24 seq_no=3 time=31.897 ms result=0
> 0 bytes from 00:0a:d9:3e:70:24 seq_no=4 time=32.900 ms result=0
> 0 bytes from 00:0a:d9:3e:70:24 seq_no=5 time=30.906 ms result=0

this looks fine

> potato# l2control -a 00:0a:d9:3e:70:24 Read_Channel_List
> l2control: Could not bind socket, bdaddr=00:0a:d9:3e:70:24: Network is
> down

this will not work. as per l2control(8) man page

"
The l2control utility connects to the local device with the specified
BD_ADDR and attempts to send the specified command.
"

i.e. l2control(8) will display _local_ l2cap channels (basically l2cap
connections). you dont have any l2cap channels (i.e. connections).

i'm guessing you want to see the services offered on your t610 phone.
you need to use sdpcontrol(8) for this.

> I have paired the handset with the device and it shows the fqdn of the
> freebsd machine. If I do sdpcontrol -a 00:0a:d9:3e:70:24 browse I get
> pages of output.

yes, this will tell you service names and service parameters

> But! If I do rfcomm_sppd -a 00:0a:d9:3e:70:24 -t /dev/ttyp6 I see this
> in messages:
>
> Nov 23 01:38:24 potato rfcomm_sppd: Could not open(/dev/ptyp6).
> Input/output error

well, it could not open /dev/ptyp6? is it busy? did you try different terminal?

> any ideas? I think the l2control error and the rfcomm one may be
> related, but I haven't a clue how to resolve the issue.

l2control(8) is not an issue you. rfcomm_sppd(1) had problem with
opening master pty.

thanks
max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb4a86c70911221923k16afa26dne1e2322c0da87bcd>