Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2009 15:07:27 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: btpand example
Message-ID:  <200905161507.34845.doconnor@gsoft.com.au>
In-Reply-To: <bb4a86c70905141005i3df732c4sc87dc76f7a3675e6@mail.gmail.com>
References:  <200905141438.17380.doconnor@gsoft.com.au> <bb4a86c70905141005i3df732c4sc87dc76f7a3675e6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart4455335.CAPo854NO8
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Fri, 15 May 2009, Maksim Yevmenkin wrote:
> Daniel,
>
> > I just got btpand working with my phone (Samsung Omnia i900 - WinMo
> > 6.1 based) and here's what I did..
>
> cool! thank for reporting.
>
> > Note that unlike the NetBSD example '-d ubt0' or '-d ubt0hci'
> > doesn't work as it reports unknown host. I have 'me' in
> > /etc/bluetooth/hosts, but that is non-standard (and '-d local'
> > doesn't work).
>
> could you please try this patch?
> Index: btpand.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- btpand.c    (revision 192109)
> +++ btpand.c    (working copy)
> @@ -101,7 +101,7 @@
>                         break;
>
>                 case 'd': /* local address */
> -                       if (!bt_aton(optarg, &local_bdaddr)) {
> +                       if (!bt_devaddr(optarg, &local_bdaddr)) {
>                                 struct hostent  *he;
>
>                                 if ((he =3D bt_gethostbyname(optarg))
> =3D=3D NULL)
>
> =3D=3D=3D

OK this works, thanks!
btpand -d ubt0 -s NAP -i tap0 -a pda

(and ubt0hci)

> > Also, I found the MTU by trial and error, 600 works for me, 650
> > does not. I am guessing this is a bluetooth thing but I'm not
> > sure.. If it is would it be possible for btpand to set the MTU?
>
> sure :) however, like Iain said, it would be interesting to see what
> is going on. any chance we could get both hcidump (created with -w
> option) and tcpdump? could it be something that has to do with tcp
> mss fixup?

Hmm, where do I get hcidump from?

Also, I just tried it again and now I can set the MTU to 1500 and it=20
works fine..

I have reset my phone in the mean time so maybe it was out of memory or=20
something silly like that..

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--nextPart4455335.CAPo854NO8
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iD8DBQBKDlEe5ZPcIHs/zowRArycAJ9Q28iHVSROH3v0jULtWfyZCr7/9QCffHtZ
fgaTdiX9r4eyACN20LHH9Js=
=/T/e
-----END PGP SIGNATURE-----

--nextPart4455335.CAPo854NO8--



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