From: Matthias Brune <matthiasbrune@gmx.de>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] Re: Sending own L2CAP packets to HCI
Date: Fri, 21 Jan 2005 00:31:33 +0000 (UTC) [thread overview]
Message-ID: <loom.20050121T013101-9@post.gmane.org> (raw)
In-Reply-To: 1106136563.8190.89.camel@pegasus
Hi Marcel,
i tried to change the l2ping program by using another command header.
Instead of L2CAP_ECHO_REQ and L2CAP_ECHO_RES i used L2CAP_CONN_REQ and
L2CAP_CONN_RES, because i want to build a full connection with connect,
configure and disconnect later...
It seemed that it works, but hcidump said that the connect request is
rejected.
Is it in general possible to inject own L2CAP packets (with configure
requests) to a phone by using the l2ping programm. I mean is the socket setup
in this program for this use sufficient or do i have to inject the packets
directly to the usb driver? Because i think the command reject comes from the
Bluez stack and i have to inject the L2CAP packets without using the BlueZ
stack?
HCI Command: Create Connection(0x01|0x0005) plen 13
65 CF 93 EE 02 00 18 CC 02 00 00 00 01
HCI Event: Command Status(0x0f) plen 4
00 01 05 04
HCI Event: Connect Complete(0x03) plen 11
00 29 00 65 CF 93 EE 02 00 01 00
HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
29 00 0F 00
ACL data: handle 0x0029 flags 0x02 dlen 28
L2CAP(s): Connect req: psm 17989 scid 0x4847
HCI Event: Number of Completed Packets(0x13) plen 5
01 29 00 01 00
HCI Event: Command Complete(0x0e) plen 6
01 0D 08 00 29 00
HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
65 CF 93 EE 02 00 01
HCI Event: Max Slots Change(0x1b) plen 3
29 00 05
ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0000 result 2 status 0
ACL data: handle 0x0029 flags 0x02 dlen 10
L2CAP(s): Command rej: reason 0
HCI Event: Number of Completed Packets(0x13) plen 5
01 29 00 01 00
HCI Command: Disconnect(0x01|0x0006) plen 3
29 00 13
HCI Event: Command Status(0x0f) plen 4
00 01 06 04
HCI Event: Disconn Complete(0x05) plen 4
00 29 00 16
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2005-01-21 0:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-19 11:21 [Bluez-devel] Sending own L2CAP packets to HCI Matthias Bruné
2005-01-19 12:09 ` Marcel Holtmann
2005-01-21 0:31 ` Matthias Brune [this message]
2005-01-21 0:36 ` [Bluez-devel] " 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=loom.20050121T013101-9@post.gmane.org \
--to=matthiasbrune@gmx.de \
--cc=bluez-devel@lists.sourceforge.net \
/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