bluetooth application developers guide

561 147 0
bluetooth application developers guide

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

1 YEAR UPGRADE BUYER PROTECTION PLAN Everything You Need to Write Bluetooth Applications for All Popular Operating Systems • Complete Code-by-Examples Written by Leading Bluetooth Developers • Complete Coverage of Keeping Your Bluetooth Applications Secure • Hundreds of Developing & Deploying and Debugging Sidebars,Security Alerts,and Bluetooth FAQs Bluetooth David Kammer Gordon McNutt Brian Senese Jennifer Bray Technical Editor The Short Range Interconnect Solution Application Developer’s Guide: solutions@syngress.com With more than 1,500,000 copies of our MCSE, MCSD, CompTIA, and Cisco study guides in print, we continue to look for ways we can better serve the information needs of our readers. One way we do that is by listening. Readers like yourself have been telling us they want an Internet-based ser- vice that would extend and enhance the value of our books. Based on reader feedback and our own strategic plan, we have created a Web site that we hope will exceed your expectations. Solutions@syngress.com is an interactive treasure trove of useful infor- mation focusing on our book topics and related technologies. The site offers the following features: ■ One-year warranty against content obsolescence due to vendor product upgrades. You can access online updates for any affected chapters. ■ “Ask the Author” customer query forms that enable you to post questions to our authors and editors. ■ Exclusive monthly mailings in which our experts provide answers to reader queries and clear explanations of complex material. ■ Regularly updated links to sites specially selected by our editors for readers desiring additional reliable information on key topics. Best of all, the book you’re now holding is your key to this amazing site. Just go to www.syngress.com/solutions, and keep this book handy when you register to verify your purchase. Thank you for giving us the opportunity to serve your needs. And be sure to let us know if there’s anything else we can do to help you get the maximum value from your investment. We’re listening. www.syngress.com/solutions 160.aBluetooth FM.qxd 12/6/01 9:53 AM Page i 160.aBluetooth FM.qxd 12/6/01 9:53 AM Page ii 1 YEAR UPGRADE BUYER PROTECTION PLAN Bluetooth David Kammer Gordon McNutt Brian Senese Jennifer Bray Technical Editor The Short Range Interconnect Solution Application Developer’s Guide: 160.aBluetooth FM.qxd 12/6/01 9:53 AM Page iii Syngress Publishing, Inc., the author(s), and any person or firm involved in the writing, editing, or production (collectively “Makers”) of this book (“the Work”) do not guarantee or warrant the results to be obtained from the Work. There is no guarantee of any kind, expressed or implied, regarding the Work or its contents.The Work is sold AS IS and WITHOUT WARRANTY.You may have other legal rights, which vary from state to state. In no event will Makers be liable to you for damages, including any loss of profits, lost savings, or other incidental or consequential damages arising out from the Work or its contents. Because some states do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you. You should always use reasonable care, including backup and other appropriate precautions, when working with computers, networks, data, and files. Syngress Media®, Syngress®,“Career Advancement Through Skill Enhancement®,” and “Ask the Author UPDATE®,” are registered trademarks of Syngress Publishing, Inc. “Mission Critical™,”“Hack Proofing™,” and “The Only Way to Stop a Hacker is to Think Like One™” are trademarks of Syngress Publishing, Inc. Brands and product names mentioned in this book are trademarks or service marks of their respective companies. KEY SERIAL NUMBER 001 D8LDE945T5 002 AKLRTGY7M4 003 2XW4L3N54N 004 SGBBT639UN 005 8LU8CA2H7H 006 7KG4RN5TM4 007 BW2QV7R46T 008 JPF5R565MR 009 83N5M77UBS 010 GT6YH2XZ52 PUBLISHED BY Syngress Publishing, Inc. 800 Hingham Street Rockland, MA 02370 Bluetooth Application Developer’s Guide: The Short Range Interconnect Solution Copyright © 2002 by Syngress Publishing, Inc.All rights reserved. Printed in the United States of America. Except as permitted under the Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher, with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication. Printed in the United States of America 1 2 3 4 5 6 7 8 9 0 ISBN: 1-928994-42-3 Technical Editor: Jennifer Bray Cover Designer: Michael Kavish Co-Publisher: Richard Kristof Page Layout and Art by: Reuben Kantor Acquisitions Editor: Catherine B. Nolan Copy Editor: Michael McGee Developmental Editor: Kate Glennon Indexer: Robert Saigh Distributed by Publishers Group West in the United States and Jaguar Book Group in Canada. 160.aBluetooth FM.qxd 12/6/01 9:53 AM Page iv v Acknowledgments v We would like to acknowledge the following people for their kindness and support in making this book possible. Richard Kristof and Duncan Anderson of Global Knowledge, for their generous access to the IT industry’s best courses, instructors, and training facilities. Ralph Troupe, Rhonda St. John, and the team at Callisma for their invaluable insight into the challenges of designing, deploying and supporting world-class enterprise networks. Karen Cross, Lance Tilford, Meaghan Cunningham, Kim Wylie, Harry Kirchner, Kevin Votel, Kent Anderson, and Frida Yara of Publishers Group West for sharing their incredible marketing experience and expertise. Mary Ging, Caroline Hird, Simon Beale, Caroline Wheeler,Victoria Fuller, Jonathan Bunkell, and Klaus Beran of Harcourt International for making certain that our vision remains worldwide in scope. Annabel Dent of Harcourt Australia for all her help. David Buckland,Wendi Wong, Marie Chieng, Lucy Chong, Leslie Lim,Audrey Gan, and Joseph Chan of Transquest Publishers for the enthusiasm with which they receive our books. Kwon Sung June at Acorn Publishing for his support. Ethan Atkin at Cranbury International for his help in expanding the Syngress program. Jackie Gross, Gayle Vocey,Alexia Penny,Anik Robitaille, Craig Siddall, Darlene Morrow, Iolanda Miller, Jane Mackay, and Marie Skelly at Jackie Gross & Associates for all their help and enthusiasm representing our product in Canada. Lois Fraser, Connie McMenemy, and the rest of the great folks at Jaguar Book Group for their help with distribution of Syngress books in Canada. 160.aBluetooth FM.qxd 12/6/01 9:53 AM Page v 160.aBluetooth FM.qxd 12/6/01 9:53 AM Page vi vii Contributors David Kammer has been involved with the handheld industry since 1997. David is currently the Technical Lead for Bluetooth technologies at Palm Inc., and is one of the authors of the original Bluetooth specifica- tion. Before working on Bluetooth, David worked on IR technology, and on the Palm VII. In addition to his work at Palm, he also consults for sev- eral companies, including In2M and Microsoft, in the field of wireless communications and PalmOS programming. David has spoken at a number of events, including The Bluetooth Developers Conference,The Bluetooth World Congress, and PalmSource, and has been interviewed about Bluetooth for the New York Times. David holds a B.A. from Oberlin College in Computer Science, and currently lives in Seattle. David would like to thank his folks for the education, Meredith Krieble and Sebastian for a nice space to work in, the excellent folks of the Palm Bluetooth Team, and Vanessa Pepoy for her understanding and patience. Tracy Hopkins is an Applications Engineering Manager at Cambridge Silicon Radio (CSR). She and her group offer consultancy application services on all aspects of integrating Bluetooth into customer’s products from initial conception through to production. She has a 2:1 BSc degree with honors in Electronic Engineering and after completing a 6-year apprenticeship with Phillips Telecommunications has worked in numerous engineering disciplines designing hardware for Satellite communications, production engineering at Studio Audio and Video (SADiE) and managed the international post-production technical support for broadcast giant Snell and Wilcox. She has written and presented many technical papers for both the communications and broadcast TV industries including the SMPTE technical conference and designs all of CSR’s technical training seminars. Brian P. Senese has directly participated in the development of state of the art wireless communications networks and associated components for 160.aBluetooth FM.qxd 12/6/01 9:53 AM Page vii viii Contributors 15 years. He has worked for Nortel, Uniden,ADC Telecommunica- tions, and other aggressive technology companies and has held posi- tions from designer to senior engineering manager. Currently, as an Applications Engineer for Extended Systems Inc., he gives seminars, is a regular speaker at conferences, and has published several articles on Bluetooth technology and its practical application in realizing prod- ucts. He has spoken extensively on a wide variety of technical topics, is internationally published, and has another book entitled Successful High Tech Product Introduction. He holds an M.E.Sc. and B.E.Sc. in Electrical Engineering from the University of Western Ontario, London, Ontario, Canada. Radina (Jiny) Bradshaw graduated with a first in Computer Science from Kings College, Cambridge University. She received her Ph.D. in the Laboratory for Communications Engineering, also in Cambridge, with Professor Andy Hopper, investigating power efficient routing in radio peer networks. She is currently a Software Engineer at Cambridge Silicon Radio (CSR). David McCall graduated from Edinburgh University with an MEng in Electronics. He worked for Visteon, designing circuitry for car stereos, before joining Cambridge Silicon Radio (CSR) in July of 2000.As a Senior Applications Engineer he is responsible for helping CSR’s customers with all aspects of their Bluetooth product design RF, hardware and software, from concept through production. Wajih A. Elsallal received his B.S. degree in Electrical Engineering from the King Fahd University of Petroleum and Minerals in 1998 and continued his education at Georgia Institute of Technology where he received the M.S. degree in Electrical and Computer Engineering in early 2000. Currently, he is pursuing a Ph.D. in Electrical and Computer Engineering from Georgia Institute of Technology with a minor in Public Policy. His fields of expertise include development of antenna and phased array antenna design, electromagnetic computa- tional methods, Bluetooth wireless LAN for handheld devices, Inter- Satellite-Link networking, microstrip and packaging technologies and www.syngress.com 160.aBluetooth FM.qxd 12/6/01 9:53 AM Page viii Contributors ix www.syngress.com sidelobe cancellor algorithms for radar applications. He has held internships at Lucent Technology and 3Com Palm Computings, Inc. and is currently a co-op staff member at the Antennas and Passives Section within the Advanced Technology Center of Rockwell Collins, Inc., a graduate teaching assistant at Georgia Tech, and a research assis- tant for Georgia Tech Research Institute (GTRI/SEAL). Patrick Connolly was educated at Trinity College, Dublin, where he received a Bachelors and Masters degree in Computer Science. He has been involved with the design and development of leading edge sys- tems for over fifteen years, using such technologies as DCE, CORBA, and J2EE. Patrick is the Chief Architect at Rococo Software, where he plays a leading technical role in setting and driving product direc- tion. His chapter in this book was co-authored by Patrick and two of his Rococo colleagues: Karl McCabe, Rococo’s CTO, and Sean O’Sullivan, Rococo’s CEO. Gordon McNutt is a Kernel Developer for RidgeRun, Inc, respon- sible for porting Linux to embedded devices containing multiple pro- cessors. After receiving his B.S. in Computer Science from Boise State University in 1999, he spent one year at Hewlett Packard developing I/O firmware to support USB, IR, and 1284.4 for LaserJet printers. Bill Munday is one of the founders of blueAid, which started as an organization to help those companies who could not afford the high consultancy rates for Bluetooth technology. He graduated from UMIST (Manchester, UK) in 1991 with a double degree of BSc(Hons) and MEng in Microelectronics Systems Engineering. He was sponsored by NORTEL and joined them upon graduation as a Systems Designer. He worked on first and second generation SDH and SONET transmission systems, then pioneered new time-to- market concepts while working on an innovative next-generation Voice over ATM distributed switching product. In 1997 he moved to Tality (nee Cadence, Symbionics) to start a career in wireless commu- nications. His first project was implementing the HiperLAN 2 stan- dard before moving on to Bluetooth. He was the first person in the 160.aBluetooth FM.qxd 12/6/01 9:53 AM Page ix [...]... general, this book is aimed at software application developers who are interested in creating Bluetooth- aware applications Its principle goal is to provide information and examples that are pertinent to application developers. This does not mean, however, that only application developers will find benefit in reading this book As someone who worked at integrating a Bluetooth protocol stack into an OS, I... Understanding the Bluetooth Driver Interface Investigating the Bluetooth Device Files Using the RFCOMM TTY Drivers Using the Control Driver Using Open Source Development Applications Investigating the OpenBT Applications Understanding the btd and btduser Applications Understanding the sdp_Server Application Understanding the BluetoothPN Application Establishing a PPP Connection Using the btd Application. .. 318 320 322 324 329 332 160.bBluetooth ToC_AnnNotes.qxt xxii 12/5/01 5:58 PM Page xxii Contents Warning Applications and the VDRV use the Bluetooth Library in different modes Because of this difference, the VDRV will not be able to open while the application is holding the Bluetooth stack open Using Bluetooth Technology with Exchange Manager Creating Bluetooth- Aware Palm OS Applications Using Basic ACL... Deploying Applications Summary Solutions Fast Track Frequently Asked Questions Chapter 8 Using the Palm OS for Bluetooth Applications Introduction What You Need to Get Started Understanding Palm OS Profiles Choosing Services through the Service Discovery Protocol Updating Palm OS Applications Using the Bluetooth Virtual Serial Driver Creating a VDRV Client-Only Application Creating a VDRV Server-Only Application. .. looks like from an application developer’s point of view, and the insights that other OS developers have gained should certainly prove useful In addition to developers, anyone who is evaluating a Bluetooth application for review, corporate use, or bundling may find the information in this book valuable in making an informed evaluation For example, I know that if I were evaluating an application for enterprise... understanding of how security is handled in Bluetooth, so I could decide whether a given application met my company’s security requirements www.syngress.com 160.cBluetooth_foreword.qxt 12/5/01 5:46 PM Page xxvii Foreword xxvii What This Book Will Teach You Simply put, this book will teach you what Bluetooth technology is all about, and how to write Bluetooth applications for several popular operating... technical book, and it assumes that the reader has a solid background in application development and has a reasonable understanding of the issues involved in creating communications applications.The book is roughly divided into three sections: Bluetooth technology in general, Bluetooth applications on various operating systems, and a Bluetooth usage case study.The flow of the book is designed to introduce... general applications programming book If you don’t already know how to write applications for Windows, this book is not going to teach you Further Information By the time you finish this book, you should have all the information you need to get started writing your Bluetooth application In fact, I wouldn’t be surprised if 98 percent of all developers discover that this book will be the only Bluetooth. .. cause the printer to render the data and then print it Certainly, not all categories of Bluetooth applications will fall under the peer-to-peer paradigm.There are many good applications out there that will retain a server-client approach, but I think the realm of peer-to-peer applications that Bluetooth opens to developers will prove to be exciting and extensive At this point, you are hopefully saying... important aspects of Bluetooth technology, and offer guidance on writing Bluetooth applications for some of today’s most popular operating systems Bluetooth is still a very young technology, but the authors of these chapters are among those who have helped to see it through its infancy, and the experience they have gained should prove valuable to everyone interested in creating Bluetooth applications Who . Need to Write Bluetooth Applications for All Popular Operating Systems • Complete Code-by-Examples Written by Leading Bluetooth Developers • Complete Coverage of Keeping Your Bluetooth Applications. interested in creating Bluetooth applications. Who Should Read This Book In general, this book is aimed at software application developers who are interested in creating Bluetooth- aware applications are pertinent to application developers. This does not mean, how- ever, that only application developers will find benefit in reading this book.As someone who worked at integrating a Bluetooth protocol

Ngày đăng: 03/07/2014, 21:17

Từ khóa liên quan

Mục lục

  • Cover

  • Foreword

  • Table of Contents

  • Chapter 1

  • Chapter 2

  • Chapter 3

  • Chapter 4

  • Chapter 5

  • Chapter 6

  • Chapter 7

  • Chapter 8

  • Chapter 9

  • Chapter 10

  • Appendix

  • Glossary

  • Index

  • Related Titles

Tài liệu cùng người dùng

Tài liệu liên quan