SlideShare a Scribd company logo
A SEMINAR ON

“DESIGN DEVICE DRIVER FOR
WIRELESS DEVICE USING 32 BITMICROCONTROLLER”
UNDER THE GUIDANCE OF
VG
Bluetooth Overview
What is Bluetooth?
•
•
•
•
•

open specification
low-cost
low-power
short-range radio technology
Support point to point & point to multipoint
connection
Bluetooth Architecture
Applications

TCS

RFCOM

SDP

Logical Link Controller And Protocol

Host controller Interface

Link Manager

Base band

Blue tooth radio
Bluetooth Radio
• Provides actual physical connection

interface between Bluetooth devices

• Uses faster acknowledgement and

frequency hops and shorter packets

• operating in the 2.4 GHz band
Base band
• Physical layer of the Bluetooth
• Packets transmitted in either Synchronous
Connection-Oriented (SCO) links or
Asynchronous Connectionless (ACL) links

• Uses inquiry and paging procedures for
different Bluetooth Devices
Link Manager Protocol(LMP)
•

Provides link setup between Bluetooth devices

• Handles security aspects, such as
authentication and encryption

• Controls and negotiates base band packet size
• Controls the connection states of the Bluetooth
unit on a Pico net
Service Discovery Protocol(SDP)
• Gives applications the capability to find out
•
•

which services are provided by or available
through a Bluetooth device.
Once the services available are found, the SDP
gives applications the capability of determining
the characteristics of those services.
Two or more Bluetooth devices would then be
able to establish a connection.
HOST CONTROLLER
INTERFACE(HCI)
HOST CONTROLLER INTERFACE
• The HCI provides a interface to the base
band controller and link manager,

• Access to hardware status and control
registers.
HOST CONTROLLER
INTERFACE
• HCI exists across 3 sections,
1 The Host Firmware
2 HCI Driver (software entity)
3 Host Controller Transport Layer
L2CAP as a wireless driver
• Data engine which takes data from lower base band IC
to upper layer of the Bluetooth stack.

• Manages the quality of service, mission from the base
band to the upper layer.

• Decides the channeling across the different profiles for
the application i.e. SDP

• Ultimately the L2CAP enables the wireless connection
establishment with other Bluetooth device.
LOGICAL LINK CONTROL
AND
ADAPTATION
PROTOCOL

• L2CAP FUNCTIONAL OPERATION
• L2CAP GENERAL OPERATION
• L2CAP STATE MACHINE
L2CAP FUNCTIONAL
OPERATION
• PROTOCOL MULTIPLEXING
• SEGMENTATION AND REASSEMBLING
• QUALITIY OF SERVICE
L2CAP FUNCTIONAL OPERATION
QUALITIY OF SERVICE

• The L2CAP connection establishment

process allows the exchange of
information regarding the quality of service
(QoS) expected between two Bluetooth
units.
• Each L2CAP implementation must monitor
the resources used by the protocol and
ensure that QoS contracts are honoured.
L2CAP GENERAL
OPERATION
• CHANNEL IDENTIFIERS
• OPERATION BETWEEN DEVICES
• OPERATION BETWEEN LAYERS
CHANNEL IDENTIFIERS
• Channel identifiers (CIDs) are local names

representing a logical channel end-point on the
device.

• Implementations are free to manage the CIDs in
a manner best suited for that particular
implementation.

• CID assignment is relative to a particular device
and a device can assign CIDs independently
from other devices.
CHANNEL IDENTIFIERS
OPERATION BETWEEN
DEVICES
OPERATION BETWEEN LAYERS
High Level Design
L2CAP Signalling Assumptions

• Prefix signal between peers at the same layer with the
•
•
•
•
•
•
•

protocol initials(L2CAP)
Prefix signal between higher and lower layers with the lower
layer’s initials (L2CA)
Suffix requests from a higher layer to a lower layer with “Req”
Suffix confirmation of requests sent from a lower layer to an
upper layer with “Cnf”
If a response from a lower layer is negative , the suffix “Neg”
may be used instead of “Cnf”.
Suffix indications of events sent from a lower layer to higher
layer with “Ind”
Suffix responses to indication sent from a higher layer to a
lower layer with “Rsp”
If a response to an indication requires further processing , “Rsp
“ may be replaced with “Pnd”, which is an abbreviation for
pending response.
Establishing a Connection
Once An ACL connection is established across the lower layers,
L2CAP packets can be sent across it.
The first message sent is an L2CAP_ConnectReq. In addition to
the usual Opcode, identifier, and Length fields, the message
carries the following parameters

• A Protocol Service Multiplexer (PSM) valve specifying the
protocol using this connection

• A source Channel ID(CID) the Channel CID allocated to the
connection by initiating device
L2CAP THE STATE
MACHINE
• CLOSED
• WAIT_CONNECT
• WAIT_CONNECT_RSP
• CONFIG
• OPEN
• WAIT_DISCONNECT
Configuration states and transitions
States and transitions for L2CAP
RESULT
• Protocol/channel multiplexing

Input:
Test logger function TestLog_L2CAP_Prot_HCI () is used to provide the input
like.
Number of channels : 2
Channel ID: 1 Protocol RFCOM1 with Input string “Data from channel 1”
Channel ID: 2 Protocol TCP with Input string “Data from channel 2”
Channel ID: 3 Protocol RFCOM2 with Input string “Data from channel 3”

• Output in the textlogger.txt

Function used for output “TestLog_L2CAP_Prot_SDP ()”
RFCOM1 mapped to Channel 1 “Data from channel1”
TCP mapped to Channel 2 “Data from channel2”
RFCOM2 not mapped to a channel “exceeded channel capacity”
• Segmentation and reassembly, Fragmentation and

Recombination
Input:
Test logger function TestLog_L2CAP_Seg_HCI () is used to provide the
input like.
Length of Data: 120454 Bytes
Packet size: 16 Bytes
Input file: clouds.jpeg
Output in the textlogger.txt
Function used for output TestLog_L2CAP_Seg_SDP()
Data is sent in 1044 packets with delimiter as 16 bytes per packet
Segment Size: 32
Fragmentation unit: 32
Data Loss: NILL
• Quality of Service

Input:
Test logger function TestLog_L2CAP_QoS_HCI()is used to
provide the input like.
Length of Data: 120464 Bytes
Packet size: 16 Bytes
Input file: earth.jpeg
Output in the textlogger.txt
Function used for output TestLog_L2CAP_QoS_SDP()
The variable length data 120464 bytes are received
successfully
REFERENCE
• [1] Bluetooth wireless Technology specifications, version 1.1.
www.pal_wireless.com
• [2]
• [3] Palm’s Bluetooth Wireless Technology Page
•
•
•
•
•

http://www.palmos.com/dev/tech/bluetooth/
[4] Palm’s Bluetooth Whitepaper
http://www.palmos.com/dev/tech/bluetooth/palm_bluetooth_whitepaper.pd
[5] http://www.lynuxworks.com/writing device driver for on lynux
OS
[6] http://www.oreilly.com/catalog/linuxdrive2/chapter/book
[7] C Programming language BRIAN W. KERNIGAHAN DENNIS
M.RITCHIE
[8] MauriceJ.Bach, “The Design of the UNIX operating system”,
Prentice-Hall of India Private Limited ND.
THANK YOU ALL

More Related Content

PPTX
Carrier Ethernet
PPTX
Open Flow Protocol
PDF
SDN (Software Defined Networking) Controller
PPTX
Routing, Network Performance, and Role of Analytics
PDF
Distributed routing
PPTX
Efficient Topology Discovery in Software Defined Networks
PPTX
Лекц 7
Carrier Ethernet
Open Flow Protocol
SDN (Software Defined Networking) Controller
Routing, Network Performance, and Role of Analytics
Distributed routing
Efficient Topology Discovery in Software Defined Networks
Лекц 7

What's hot (19)

PDF
HAProxyconf 2019 - Criteo - Transitioning from Ticketing to LBaaS
PPTX
OpenFlow
PPTX
Part 10 : Routing in IP networks and interdomain routing with BGP
PPTX
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
PDF
Traffic Engineering in Software-Defined Networks
PDF
The Challenges of SDN/OpenFlow in an Operational and Large-scale Network
PDF
Hp a5500
PPTX
Innovation is back in the transport and network layers
PPTX
Segment Routing & Application Engeering Routing
PPT
Tcpip 1
PDF
Cisco Openflow
PPT
PDF
Cisco Understanding H.323 Gatekeepers
PDF
Data Packet Evolution - Mobinil
PPTX
Architecture of OpenFlow SDNs
PPTX
Ids 009 network attacks
PPTX
Dynamic ARP Inspection (DAI)
PDF
Software defined networking(sdn) pro acrtive routing path update research pro...
HAProxyconf 2019 - Criteo - Transitioning from Ticketing to LBaaS
OpenFlow
Part 10 : Routing in IP networks and interdomain routing with BGP
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
Traffic Engineering in Software-Defined Networks
The Challenges of SDN/OpenFlow in an Operational and Large-scale Network
Hp a5500
Innovation is back in the transport and network layers
Segment Routing & Application Engeering Routing
Tcpip 1
Cisco Openflow
Cisco Understanding H.323 Gatekeepers
Data Packet Evolution - Mobinil
Architecture of OpenFlow SDNs
Ids 009 network attacks
Dynamic ARP Inspection (DAI)
Software defined networking(sdn) pro acrtive routing path update research pro...
Ad

Similar to Design device driver for wireless device using 32 bit microcontroller (20)

PPTX
Lecture 2 wireless local area network.pptx
PPT
Bluetuth and its advantage in todays genration
PPT
PPT
asdas dsdas d asdasdasd sad asdsadasd asd das
PPT
Wireless personal area networks(PAN)
PPTX
Lecture-55555555555555555555555 (2).pptx
PPT
Protols used in bluetooth
PPT
Bluetooth mobileip
PPTX
10.connection establishement procedure
PDF
Fair Bluetooth.pdf
DOCX
Protocols in Bluetooth
PPT
Bluetooth mobileip
PPTX
Bluetooth Power point presentation
PDF
Hacking bluetooth enabled mobile phones and beyond.pdf
PPT
Bluetooth mobileip
PPTX
Bluetooth
PPTX
bluetooth protocol stack.pptx
PPT
PPT
An Introduction to BLUETOOTH TECHNOLOGY
PPTX
Bluethooth Protocol stack/layers
Lecture 2 wireless local area network.pptx
Bluetuth and its advantage in todays genration
asdas dsdas d asdasdasd sad asdsadasd asd das
Wireless personal area networks(PAN)
Lecture-55555555555555555555555 (2).pptx
Protols used in bluetooth
Bluetooth mobileip
10.connection establishement procedure
Fair Bluetooth.pdf
Protocols in Bluetooth
Bluetooth mobileip
Bluetooth Power point presentation
Hacking bluetooth enabled mobile phones and beyond.pdf
Bluetooth mobileip
Bluetooth
bluetooth protocol stack.pptx
An Introduction to BLUETOOTH TECHNOLOGY
Bluethooth Protocol stack/layers
Ad

Recently uploaded (20)

PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Business Ethics Teaching Materials for college
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Institutional Correction lecture only . . .
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Business Ethics Teaching Materials for college
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Anesthesia in Laparoscopic Surgery in India
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Institutional Correction lecture only . . .
Module 4: Burden of Disease Tutorial Slides S2 2025
102 student loan defaulters named and shamed – Is someone you know on the list?
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Complications of Minimal Access Surgery at WLH
Microbial diseases, their pathogenesis and prophylaxis
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Pharma ospi slides which help in ospi learning
Basic Mud Logging Guide for educational purpose
Week 4 Term 3 Study Techniques revisited.pptx
Cell Types and Its function , kingdom of life
Chapter 2 Heredity, Prenatal Development, and Birth.pdf

Design device driver for wireless device using 32 bit microcontroller

  • 1. A SEMINAR ON “DESIGN DEVICE DRIVER FOR WIRELESS DEVICE USING 32 BITMICROCONTROLLER” UNDER THE GUIDANCE OF VG
  • 3. What is Bluetooth? • • • • • open specification low-cost low-power short-range radio technology Support point to point & point to multipoint connection
  • 4. Bluetooth Architecture Applications TCS RFCOM SDP Logical Link Controller And Protocol Host controller Interface Link Manager Base band Blue tooth radio
  • 5. Bluetooth Radio • Provides actual physical connection interface between Bluetooth devices • Uses faster acknowledgement and frequency hops and shorter packets • operating in the 2.4 GHz band
  • 6. Base band • Physical layer of the Bluetooth • Packets transmitted in either Synchronous Connection-Oriented (SCO) links or Asynchronous Connectionless (ACL) links • Uses inquiry and paging procedures for different Bluetooth Devices
  • 7. Link Manager Protocol(LMP) • Provides link setup between Bluetooth devices • Handles security aspects, such as authentication and encryption • Controls and negotiates base band packet size • Controls the connection states of the Bluetooth unit on a Pico net
  • 8. Service Discovery Protocol(SDP) • Gives applications the capability to find out • • which services are provided by or available through a Bluetooth device. Once the services available are found, the SDP gives applications the capability of determining the characteristics of those services. Two or more Bluetooth devices would then be able to establish a connection.
  • 10. HOST CONTROLLER INTERFACE • The HCI provides a interface to the base band controller and link manager, • Access to hardware status and control registers.
  • 11. HOST CONTROLLER INTERFACE • HCI exists across 3 sections, 1 The Host Firmware 2 HCI Driver (software entity) 3 Host Controller Transport Layer
  • 12. L2CAP as a wireless driver • Data engine which takes data from lower base band IC to upper layer of the Bluetooth stack. • Manages the quality of service, mission from the base band to the upper layer. • Decides the channeling across the different profiles for the application i.e. SDP • Ultimately the L2CAP enables the wireless connection establishment with other Bluetooth device.
  • 13. LOGICAL LINK CONTROL AND ADAPTATION PROTOCOL • L2CAP FUNCTIONAL OPERATION • L2CAP GENERAL OPERATION • L2CAP STATE MACHINE
  • 14. L2CAP FUNCTIONAL OPERATION • PROTOCOL MULTIPLEXING • SEGMENTATION AND REASSEMBLING • QUALITIY OF SERVICE
  • 16. QUALITIY OF SERVICE • The L2CAP connection establishment process allows the exchange of information regarding the quality of service (QoS) expected between two Bluetooth units. • Each L2CAP implementation must monitor the resources used by the protocol and ensure that QoS contracts are honoured.
  • 17. L2CAP GENERAL OPERATION • CHANNEL IDENTIFIERS • OPERATION BETWEEN DEVICES • OPERATION BETWEEN LAYERS
  • 18. CHANNEL IDENTIFIERS • Channel identifiers (CIDs) are local names representing a logical channel end-point on the device. • Implementations are free to manage the CIDs in a manner best suited for that particular implementation. • CID assignment is relative to a particular device and a device can assign CIDs independently from other devices.
  • 22. High Level Design L2CAP Signalling Assumptions • Prefix signal between peers at the same layer with the • • • • • • • protocol initials(L2CAP) Prefix signal between higher and lower layers with the lower layer’s initials (L2CA) Suffix requests from a higher layer to a lower layer with “Req” Suffix confirmation of requests sent from a lower layer to an upper layer with “Cnf” If a response from a lower layer is negative , the suffix “Neg” may be used instead of “Cnf”. Suffix indications of events sent from a lower layer to higher layer with “Ind” Suffix responses to indication sent from a higher layer to a lower layer with “Rsp” If a response to an indication requires further processing , “Rsp “ may be replaced with “Pnd”, which is an abbreviation for pending response.
  • 23. Establishing a Connection Once An ACL connection is established across the lower layers, L2CAP packets can be sent across it. The first message sent is an L2CAP_ConnectReq. In addition to the usual Opcode, identifier, and Length fields, the message carries the following parameters • A Protocol Service Multiplexer (PSM) valve specifying the protocol using this connection • A source Channel ID(CID) the Channel CID allocated to the connection by initiating device
  • 24. L2CAP THE STATE MACHINE • CLOSED • WAIT_CONNECT • WAIT_CONNECT_RSP • CONFIG • OPEN • WAIT_DISCONNECT
  • 27. RESULT • Protocol/channel multiplexing Input: Test logger function TestLog_L2CAP_Prot_HCI () is used to provide the input like. Number of channels : 2 Channel ID: 1 Protocol RFCOM1 with Input string “Data from channel 1” Channel ID: 2 Protocol TCP with Input string “Data from channel 2” Channel ID: 3 Protocol RFCOM2 with Input string “Data from channel 3” • Output in the textlogger.txt Function used for output “TestLog_L2CAP_Prot_SDP ()” RFCOM1 mapped to Channel 1 “Data from channel1” TCP mapped to Channel 2 “Data from channel2” RFCOM2 not mapped to a channel “exceeded channel capacity”
  • 28. • Segmentation and reassembly, Fragmentation and Recombination Input: Test logger function TestLog_L2CAP_Seg_HCI () is used to provide the input like. Length of Data: 120454 Bytes Packet size: 16 Bytes Input file: clouds.jpeg Output in the textlogger.txt Function used for output TestLog_L2CAP_Seg_SDP() Data is sent in 1044 packets with delimiter as 16 bytes per packet Segment Size: 32 Fragmentation unit: 32 Data Loss: NILL
  • 29. • Quality of Service Input: Test logger function TestLog_L2CAP_QoS_HCI()is used to provide the input like. Length of Data: 120464 Bytes Packet size: 16 Bytes Input file: earth.jpeg Output in the textlogger.txt Function used for output TestLog_L2CAP_QoS_SDP() The variable length data 120464 bytes are received successfully
  • 30. REFERENCE • [1] Bluetooth wireless Technology specifications, version 1.1. www.pal_wireless.com • [2] • [3] Palm’s Bluetooth Wireless Technology Page • • • • • http://www.palmos.com/dev/tech/bluetooth/ [4] Palm’s Bluetooth Whitepaper http://www.palmos.com/dev/tech/bluetooth/palm_bluetooth_whitepaper.pd [5] http://www.lynuxworks.com/writing device driver for on lynux OS [6] http://www.oreilly.com/catalog/linuxdrive2/chapter/book [7] C Programming language BRIAN W. KERNIGAHAN DENNIS M.RITCHIE [8] MauriceJ.Bach, “The Design of the UNIX operating system”, Prentice-Hall of India Private Limited ND.

Editor's Notes

  • #4: The Bluetooth specification is open - publicly available and royalty free. The cost factor has been a stumbling block for this technology but prices to mass produce it are improving. Signals transmit up to 10 meters but can transmit up to 100 meters with higher powered BT devices such as a network access point. Low power radios are well suited for small mobile devices. Ad-hoc communication allows for the formation of piconets on the fly. Voice is an important distinction between BT and other wireless technologies like 802.11x Anywhere – This is a WORLD standard – every country supports BT in the 2.4 GHz ISM frequency band except ???