Example: barber

Bluetooth for Programmers

Bluetooth for ProgrammersAlbert for Programmersby Albert Huang and Larry RudolphCopyright 2005 Albert Huang, Larry RudolphTODOT able of About this Organization of This Albert s Larry s Understanding Bluetooth as a software Bluetooth programming Choosing a communication Choosing a transport Port numbers and the Service Discovery Communicating using Useful things to know about Communications Communications Radio Frequencies and Channel Bluetooth networks - piconets, scatternets, masters, and Bluetooth Profiles + Bluetooth programming with Python - Choosing a communication Communicating with Communicating with Maximum Transmission Best-effort Service Discovery Dynamically allocating port Advertising a Searching f

Because Bluetooth programming shares much in common with network programming, there will be frequent references and comparisons to concepts in network programming such as sockets and the TCP/IP transport protocols.

Tags:

  Programming, Programmer, Bluetooth, Bluetooth for programmers

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Bluetooth for Programmers

1 Bluetooth for ProgrammersAlbert for Programmersby Albert Huang and Larry RudolphCopyright 2005 Albert Huang, Larry RudolphTODOT able of About this Organization of This Albert s Larry s Understanding Bluetooth as a software Bluetooth programming Choosing a communication Choosing a transport Port numbers and the Service Discovery Communicating using Useful things to know about Communications Communications Radio Frequencies and Channel Bluetooth networks - piconets, scatternets, masters.

2 And Bluetooth Profiles + Bluetooth programming with Python - Choosing a communication Communicating with Communicating with Maximum Transmission Best-effort Service Discovery Dynamically allocating port Advertising a Searching for and browsing Advanced Asynchronous socket programming Asynchronous device C programming Choosing a communication Compiling the Representing Bluetooth Choosing a local Bluetooth Scanning for nearby Determining the user-friendly name of a nearby Error RFCOMM Addressing Establishing a Using a connected L2 CAP Byte Maximum Transmission Service Discovery Dynamically assigned port SDP data Advertising a Searching and browsing for a Advanced BlueZ Best-effort Chapter Bluetooth development Obtaining BlueZ and Other platforms and programming Microsoft OS Symbian OS / Nokia Series 60 of Tables1-1.

3 A comparison of the requirements that would lead us to choose certain protocols. Best-effort streamscommunication is not shown because it reduces to best-effort datagram Port numbers and their terminology for various The three Bluetooth power Inquiry Scan and Page About this bookThere are loads and loads of material already out there about Bluetooth . The problem with all of them isthat they just have too much information. Specifically, they try to tellall about Bluetoothwhen most ofthe time, we re only interested in a tiny book purposefully and happily leaves out a great deal of information about Bluetooth .

4 A lot ofconcepts are simplified and described in ways that make sense, not necessarily the ways they re laid outin the Bluetooth specification. The key is that they re described in the simplest way possible so that youas a programmer can start working with those book is not meant to be a be-all-end-all guide to Bluetooth programming . Instead, it s meant toserve as a stepping stone, the first foothold on which Programmers interested in working with Bluetoothcan start from. Once you ve read through and understood the concepts and techniques in this book, you llhave enough knowledge to start creating your own functional Bluetooth applications that caninteroperate with many other Bluetooth devices.

5 If you find yourself wanting to know more about theinner-workings and nitty-gritty details of Bluetooth , you ll also be well prepared to tackle the morecomplex and technical documents like the Bluetooth specification itself, which gives you enoughinformation to build your own Bluetooth chip from AudienceThis book targets the computer programmer looking for an introduction to Bluetooth and how toprogram with it in Linux. It assumes no previous knowledge of Bluetooth (you may have never evenheard of it before picking up this book), but does assume that you have experience with either C orPython, and have access to and can use a Linux development Bluetooth programming shares much in common with network programming , there will befrequent references and comparisons to concepts in network programming such as sockets and theTCP/IP transport protocols.

6 It helps to have a basic understanding of these concepts as the comparisonswill help solidify your understanding of Bluetooth Organization of This BookTODOviPreface4. Albert s Larry s acknowledgmentsTODOviiChapter 1. IntroductionIn a single phrase, Bluetooth isa way for devices to communicate with each other wirelessly over comprehensive set of documents, called the Bluetooth Specifications, describes in gorydetail exactly how they accomplish this, but the basic idea is about wireless, short-range Understanding Bluetooth as a software developerDeveloping applications that make use of Bluetooth communication is straightforward and easy althoughit may seem difficult due to its unusually wide scope.

7 Technologies names or specifications, often refer tosomething very specific and with a narrow scope. Ethernet, for example, describes how to connect abunch of machines together to form a simple network, but that s about it. TCP/IP describe two specificcommunication protocols that form the basis of the Internet, but they re just two protocols. Similarly,HTTP is the basis behind the World-Wide-Web, but also boils down to a simple protocol. But if someoneasked you to describe the Internet, where would you start? What would you explain?

8 You might describeEthernet, TCP/IP, email, or the World-Wide-Web, or all of them at once. The hard part is knowing whereto start because there is so much to describe at so many different levels. On the other hand, if a softwaredeveloper approached you and wanted to know about Internet programming - how to connect onecomputer on the Internet to the other and send data back and forth, you probably wouldn t botherdescribing the details of Ethernet or email, precisely because they are both technologies aren t central toanswering that question.

9 Sure, you might mention email as an example of what Internet programmingcan accomplish, or describe Ethernet to give context on how the connections are implemented, but whatyou d really want to describe is TCP/IP many ways, the word Bluetooth is like the word Internet because it encompasses a wide range ofsubjects. Similar to Ethernet or USB, Bluetooth defines a lot of physical on-the-wire stuff like on whichradio frequencies to transmit and how to modulate and demodulate signals. Similar to Voice-over-IPprotocols used in many Internet applications, Bluetooth also describes how to transmit audio betweendevices.

10 But Bluetooth also specifies everything in between! It s no wonder that the Bluetoothspecifications are thousands upon thousands of all that Bluetooth encompasses, a programmer only needs to know a small fraction of what s laidout in the specifications. When a software developer approaches to ask about how to get started withBluetooth programming , you really only need to describe how to connect one Bluetooth device toanother, and how to transfer data between the two. Sure, it helps to know a bit about the rest ofBluetooth, but there s no need to go into the specifics of the algorithms that Bluetooth devices use tochoose on their radio frequencies.


Related search queries