Announcements
Members & Reports
Project
Schedule
Meetings
Documents
Contacts
Links
Team Meeting: 03-12-02

L2CAP - within HCI packet

|----------------HCI Data-----------------| |----------HCI Data----------|
Header Payload Header Payload
  |-------------L2CAP---------------|   |------L2CAP-----|


Testing for L2CAP:
1) L2CAP could be within 1 packet
2) L2CAP can be in many HCI packets
3) Multiple L2CAP packets in one HCI packet

First 2 bytes length of L2CAP excluding length field and channel_id field
2 bytes
2 bytes
Length
Length
Channel_ID
Payload

If Channel_ID = 0x0001
Length 0x0001 Payload
--> In Payload
Command 01 Command 02
--> In Command 01
Code Identifier Length Data
 
--> In Data  
Reason Data
 

Length Channel_ID Code ID Length2 Reason Data
  |-----------------------Length---------------------|
  |--------Length2--------|

Length and packet don't match
Expected: String buffer
Null pointer Exception
Problem: If next line of text file is null???