public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: mohalik@india.hp.com
Cc: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] l2test problem
Date: Mon, 22 Mar 2004 07:37:12 +0100	[thread overview]
Message-ID: <1079937432.2663.78.camel@pegasus> (raw)
In-Reply-To: <405E6C9E.1030600@india.hp.com>

Hi Swarup,

> I have BlueZ on a red hat 8 linux kerner 2.6.0.
> I have built all the modules for bluetooth (I believe so).
> 
> I am able to send and receive to/from a Nokia 3650 via Obex Push.
> I can establish a ppp connection as well and browse the web.
> 
> After all this, when I ran
>     l2test -s <phone bt address>,
> 
> I get the following output
> [root@lx98218 tools]# cd ../test;./l2test -s 00:60:57:4A:25:DB
> l2test[11744]: Can't connect. Connection refused(111)
> 
> hcidump data
> 
> [root@lx98218 bluetooth]# hcidump
> HCIDump - HCI packet analyzer ver 1.6
> device: hci0 snap_len: 1028 filter: 0xffffffff
>  > HCI Event: Link Key Notification(0x18) plen 23
>  > HCI Event: Connect Complete(0x03) plen 11
> < ACL data: handle 0x0028 flags 0x02 dlen 12
>     L2CAP(s): Connect req: psm 4097 scid 0x0040
> < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
>  > HCI Event: Command Complete(0x0e) plen 6
>  > HCI Event: Number of Completed Packets(0x13) plen 5
>  > HCI Event: Max Slots Change(0x1b) plen 3
>  > ACL data: handle 0x0028 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 2 status 0
>  > HCI Event: QoS Setup Complete(0x0d) plen 21
> < HCI Command: Disconnect(0x01|0x0006) plen 3
>  > HCI Event: Command Status(0x0f) plen 4
>  > HCI Event: Disconn Complete(0x05) plen 4
> 
> The original l2test.c uses PSM 10, which gives identical failure.

may you wanna take a look at the Bluetooth specification and search for
result code 2 of the L2CAP connect response ;)

	0x0002 Connection refused - PSM not supported.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2004-03-22  6:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-22  4:33 [Bluez-users] l2test problem Swarup Mohalik
2004-03-22  6:37 ` Marcel Holtmann [this message]
     [not found]   ` <405EBCDD.3090402@india.hp.com>
2004-03-22 10:26     ` Marcel Holtmann
2004-03-22 10:57       ` Xavier Garreau
2004-03-22 13:39         ` Swarup Mohalik
2004-03-22 13:53           ` Xavier Garreau
2004-03-22 14:23           ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1079937432.2663.78.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    --cc=mohalik@india.hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox