{$cfg_webname}
主页 > 外文翻译 > 计算机翻译 >

使用Java API的第二部分,蓝牙技术的核心API

来源:56doc.com  资料编号:5D2577 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9A5D2577
资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用. 帮助
资料介绍

蓝牙技术已经成为那些想要建立个人区域网络( PANS )的人们所喜好的一种低成本、短距离的无线技术。每个PAN是一个动态创建的个体网络,它使设备如手机和个人数字助理( PDAS )自动连接和实时共享数据。并且支持具有蓝牙功能的软件,如Java平台的Java Community Process(JCP)等已确定的JSR 82, JAVA APIs for Bluetooth Wireless Technology(JABWT)的发展 。
第1部分,本文沿着一个典型的蓝牙应用的使用案例、作用和原理,介绍和概述了蓝牙技术和JABWT。它也在JAVAx.bluetooth方案中介绍了核心JABWT APIs的定义。第二部分的文章将集中于如何使用JABWT方面。代码范例将显示如何使用蓝牙核心API来初始化一个蓝牙应用来处理连接。一个服务发现附近的设备和服务,连接一个服务并建立连接的安全性等问题。(毕业设计)
导言
让我们首先回顾一个具有蓝牙功能应用的简单而且典型的用例和作用。蓝牙的应用可以是服务,或客户端-生产者模式的服务,或消费者,或它可以表现作为一个真正的点对点的端点揭露两个服务器和客户端的行为。典型的蓝牙应用有三个不同的使用案例:
 
Using the JAVA APIs for Bluetooth, Part 2 - Putting the Core APIs to Work
 By C. Enrique Ortiz, February, 2005   

Bluetooth is a low-cost, short-range wireless technology that has become popular among those who want to create personal area networks (PANs). Each PAN is a dynamically created network built around an individual, that enables devices such as cellular phones and personal digital assistants (PDAs) to connect automatically and share data immediately. To support development of Bluetooth-enabled software on the Java platform, the Java Community Process (JCP) has defined JSR 82, the JAVA APIs for Bluetooth Wireless Technology (JABWT).
Part 1 of this article presented an overview of Bluetooth technology and JABWT, along with use cases, activities, and elements of a typical Bluetooth application. It also introduced the core JABWT APIs defined in the JAVAx.bluetooth package. This second part of the article will focus on the how-to aspects of JABWT. Code examples will show you how to use the core Bluetooth APIs to initialize a Bluetooth application, deal with connections, set up a service, discover nearby devices and services, connect to a service, and make a connection secure.

全文 9200字

推荐资料