Solved

example of l2cap command in hci acl packet format

Posted on 2002-03-06
4
703 Views
Last Modified: 2013-12-14
hi,
i'm using ericsson development kit for bluetooh, and i am trying to send al2cap command over hci.
therefore i wanna send the packet in hex format.
my question is could somebody give me an exampleof al2cap command into anhci acl packet??
for instance echo request: the sturcture of the l2cap packet is:
0x06 then identifier( what kind of data is this?? i need an example data for this) and length
my major problem is what to put in the identifier field.
every kind of help is more than welcome and appericiated,
thanks in advance!!
das.
0
Comment
Question by:dasco1632
4 Comments
 

Accepted Solution

by:
prasad_eee earned 50 total points
Comment Utility
Consider you are sending a request from Master then you have to fill this value in L2cap (any value u like ranging from 0 to ff)in the identifier. The slave will response to the request by filling the same identifier value in its response.
So identifier is used to identify for which request(command of the master) the slave have responded.

Example for L2CAP Connect Response Packet

(All Values are in Hex)
L2CAP Connect response

0c 00 01 00 03 01 08 00 40 00 40 00 00 00 00 00

0c 00 - Payload length
01 00 - SIG Command (Connection Oriented)
03 - UcCode (Connect Rsp)
01 - Identifier (This should be the same value that is received in the Identifier from L2cap Connect Request)
08 00 - Length
40 00 - Local Channel Identifier
40 00 - Remote Channel Identifier (same value recieved from Master)
00 00 - Result
00 00 - Status

I think u can understand..

Regards,
Prasad
email: prasad.k@lntinfotech.com
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now