Solved

example of l2cap command in hci acl packet format

Posted on 2002-03-06
4
713 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
ID: 7103555
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a step by step guide on how to create a basic PTP link using Ubiquiti airOS devices. This guide can be used on the following Ubiquiti AirMAX devices. Nanostation, Bullets, AirBridge, Nanobeam, NanoBridge to name a few. Please review …
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…

805 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