这是什么物体?

发布于 2024-11-26 13:07:42 字数 248 浏览 2 评论 0原文

在蓝牙文档中,有一个代码示例来解释 J2ME 与蓝牙的功能。该代码使用 BCC ,可能是蓝牙控制中心,并且它调用的方法不包含在 javadoc 中。这是代码示例的网址: 代码示例

我查看了 javadoc,但是我没有找到前三种方法。

那么什么是密件抄送?以及如何创建它?

In the bluetooth documentation there is a code sample to explain the functionning of J2ME with bluetooth. The code uses BCC , perhaps Bluetooth Control Center, and the methods it calls are not included in the javadoc. Here is the url of the code sample : code sample

I looked at javadoc but I did not find the first three method.

So what is the BCC ? And how to create it ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑着哭最痛 2024-12-03 13:07:42

您链接到的页面明确指出:

构建 Java API 的底层蓝牙系统还必须满足某些要求:

  • 根据蓝牙资格计划,底层系统必须至少在通用访问配置文件、服务发现应用程序配置文件和串行端口配置文件方面“合格”。
  • 系统必须支持 1.1 蓝牙规范中定义的三个通信层或协议,并且此 API 的实现必须能够访问它们:服务发现协议 (SDP)、射频通信协议 (RFCOMM) 和逻辑链路控制和适应协议(L2CAP)。
  • 系统必须提供蓝牙控制中心 (BCC),这是一个与应用程序非常相似的控制面板,允许用户或 OEM 为堆栈中的某些配置参数定义特定值。

系统必须提供蓝牙控制中心 (BCC),这是一个与应用 创建密件抄送:系统必须提供一个。此外:

什么是密件抄送?

实现此 API 的蓝牙设备可能允许多个应用程序同时执行。 BCC 可以防止任何应用程序损害另一个应用程序。 BCC 是一组功能,允许用户或 OEM 通过为蓝牙堆栈中的某些配置参数定义特定值来解决冲突的应用程序请求。它是本地蓝牙设备设置的中央机构。 BCC 可能是本机应用程序、具有单独 API 的应用程序,或者只是制造商指定且用户无法更改的一组设置。请注意,BCC 不是本规范中定义的类或接口,而是其安全架构的重要组成部分。

您指向的代码示例是:

// set the port number
BCC.setPortNumber("COM1");
// set the baud rate
BCC.setBaudRate(50000);
// set the connectable mode
BCC.setConnectable(true);
// set the discovery mode to Limited Inquiry Access Code
BCC.setDiscoverable(DiscoveryAgent.LIAC);

但是,文章在这个示例上面指出:

举个例子,Atinav 的 Java 蓝牙解决方案要求开发人员使用一系列设置来初始化堆栈,如以下代码片段中的设置 - 请注意,调用的 API 不是 JSR 82 的一部分.

The page you link to specifically states:

The underlying Bluetooth system upon which the Java APIs will be built must also meet certain requirements:

  • The underlying system must be "qualified," in accordance with the Bluetooth Qualification Program, for at least the Generic Access Profile, Service Discovery Application Profile, and Serial Port Profile.
  • The system must support three communication layers or protocols as defined in the 1.1 Bluetooth Specification, and the implementation of this API must have access to them: Service Discovery Protocol (SDP), Radio Frequency Communications Protocol (RFCOMM), and Logical Link Control and Adaptation Protocol (L2CAP).
  • The system must provide a Bluetooth Control Center (BCC), a control panel much like the application that allows a user or OEM to define specific values for certain configuration parameters in a stack.

You won't have to create a BCC: the system must provide one. Furthermore:

What Is the BCC?

Bluetooth devices that implement this API may allow multiple applications to execute concurrently. The BCC prevents any application from harming another. The BCC is a set of capabilities that allow a user or OEM to resolve conflicting application requests by defining specific values for certain configuration parameters in a Bluetooth stack. It is the central authority for local Bluetooth device settings. The BCC might be a native application, an application with a separate API, or simply a group of settings that are specified by the manufacturer and cannot be changed by the user. Note that the BCC is not a class or an interface defined in this specification but an important part of its security architecture.

The code-sample you point to is:

// set the port number
BCC.setPortNumber("COM1");
// set the baud rate
BCC.setBaudRate(50000);
// set the connectable mode
BCC.setConnectable(true);
// set the discovery mode to Limited Inquiry Access Code
BCC.setDiscoverable(DiscoveryAgent.LIAC);

However, the article states above this example:

As an example, Atinav's Java Bluetooth solution requires the developer to initialize the stack with a series of settings like the ones in the following code snippet - note well that the APIs invoked are not part of JSR 82.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文