Android 蓝牙 java.io.IOException:连接被拒绝?

2023-12-20

我需要连接一个KwikBlue-2 模块开发套件 http://www.socketmobile.com/products/embedded-wireless-communications/kwikblue4-module/到安卓蓝牙聊天示例 http://developer.android.com/resources/samples/BluetoothChat/index.html在使用 SPP 的 Nexus One 上。 更改 UUID 后,我能够使用 tera term 连接和交换串行数据(一次)蓝牙聊天示例 http://developer.android.com/resources/samples/BluetoothChat/index.html例如,SPP 设备为 00001101-0000-1000-8000-00805F9B34FB。 然后我重新启动KwikBlue-2 模块开发套件 http://www.socketmobile.com/products/embedded-wireless-communications/kwikblue4-module/验证连接是否可重复但不断获得java.io.IOException: Connection refused当我尝试连接时。 有任何想法吗?

43.200: ERROR/BluetoothEventLoop.cpp(96): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/219/hci0
52.200: ERROR/BluetoothChat(707): - ON PAUSE -
54.470: ERROR/BluetoothService.cpp(96): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
54.520: ERROR/BluetoothChat(707): + ON RESUME +
54.530: ERROR/BluetoothService.cpp(96): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
54.620: ERROR/BluetoothService.cpp(96): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
55.520: ERROR/BluetoothEventLoop.cpp(96): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/219/hci0/dev_00_60_57_FD_42_18
56.010: ERROR/BluetoothChatService(707): unable to connect
56.010: ERROR/BluetoothChatService(707): java.io.IOException: Connection refused
56.010: ERROR/BluetoothChatService(707):     at android.bluetooth.BluetoothSocket.connectNative(Native Method)
56.010: ERROR/BluetoothChatService(707):     at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:204)
56.010: ERROR/BluetoothChatService(707):     at com.cti.BluetoothChat.BluetoothChatService$ConnectThread.run(BluetoothChatService.java:329)
00.110: ERROR/BluetoothEventLoop.cpp(96): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/219/hci0/dev_00_60_57_FD_42_18

尝试取消配对/修复,然后它可能会再次工作。这似乎是 Android 上核心蓝牙支持的一个错误。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Android 蓝牙 java.io.IOException:连接被拒绝? 的相关文章

随机推荐

  • 当格式与文件内容不匹配时 fscanf 的行为

    如果文件的内容与传递给的格式字符串不匹配fscanf 下次调用时会发生什么fscanf 假设一个文件包含以下两行 9000 pig dog 4 5 2 程序尝试解析打开的文件 fp 像这样 int a 1 b 1 c 1 int x 1 y
  • 获取 Swift 3 中的当前日期? [关闭]

    Closed 这个问题需要细节或清晰度 help closed questions 目前不接受答案 如何在 Swift 3 中设置 label text 当前日期 我想将今天打印到屏幕上 我没有找到如何做到这一点 在c 中非常简单 var
  • Strope Attach 和 Ejabberd 的会话恢复问题

    我很难让 strope 的 attach 功能正常工作 我正在开发一个社交网络 用户将在其中浏览页面 同时保持聊天连接 我不想在每个页面上重新连接 重新授权 因此按照此链接 我将 SID 和 RID 存储到卸载时的 cookie 中 在下一
  • 如何从字典列表中删除重复项?

    我有一个 python 字典列表 如下所示 category software name irssi version 1 2 0 category software name irssi version 1 1 2 category sof
  • 由于某种原因未创建 Rails CarrierWave 版本

    我有以下文件上传器 class ItemImageUploader lt CarrierWave Uploader Base include CarrierWave Backgrounder Delay include CarrierWav
  • 如何重定向到页面然后执行 jQuery 函数调用

    如何重定向到页面然后执行带有一些参数的函数 例如 Page1 js if condition is true window location href Index Page2 someFunction 有没有办法捕获重定向并执行第2页中的函
  • 在 C# 表单中保存和恢复应用程序设置

    我有一个基于 C 对话框的应用程序 我想保存用户选择的首选项 设置 以便我可以在下次运行时重新加载它们 我是 C 新手 可能这是非常基本的东西 但我不知道 我是否必须将它们显式写入 ini 等文件中 或者有没有内置的方法可以做到这一点 配置
  • Hibernate hbm2ddl.auto 配置的可能值是什么以及它们的作用是什么

    我真的很想了解有关更新 导出以及可以赋予的值的更多信息hibernate hbm2ddl auto我需要知道何时使用更新 何时不使用 还有什么替代方案呢 这些是数据库上可能发生的变化 新表 旧表中的新列 列已删除 列的数据类型已更改 列的类
  • CSS ul li 图像与文本对齐

    我有一个像这样的CSS ul list style image url images bulletArrow gif ul li background url images hr gif no repeat left bottom padd
  • 如果枚举无法适合整型,会发生什么情况?

    我碰到这个问题 https stackoverflow com questions 1122096 what is the underlying type of a c enum关于枚举的基础类型 其中答案引用标准 C 7 2 5 如下 枚
  • 为什么 java.util.Random 中没有接受绑定的 nextDouble()、nextFloat() 和 nextLong()

    我正在读书java util Random类并注意到没有nextDouble nextFloat and nextLong 它可以接受一个bound 有很多方法可以完成它像这样 https stackoverflow com questio
  • 为什么导出的HBase表比原来大4倍?

    我需要在更新到新版本之前备份 HBase 表 我决定使用标准将表导出到 hdfsExport http hbase apache org 0 94 book ops mgt html export工具 然后将其移动到本地文件系统 由于某种原
  • 如何对齐布局QHBoxLayout和QVBoxLayout?

    我想为我的窗口做这样的布局 所以我尝试创建一个QHBoxLayout布局放置 3 个按钮 并将其添加到QVBoxLayout usr bin python coding utf 8 import sys from PyQt4 import
  • goto 交叉初始化[重复]

    这个问题在这里已经有答案了 假设我有一些 C 代码 if error goto exit size t i 0 error size t i i 0 exit 我明白我们不应该使用goto 但仍然为什么 size t i i 0 编译而si
  • 使用 install4j 对 Linux 可执行文件进行代码签名

    我正在使用 Install4j 和 pfx 文件来为 Windows 安装程序 exe 提供数字签名 但我找不到任何方法为 Linux 安装程序 sh 提供数字签名 有什么方法可以使用 Install4j for linux 可执行文件来做
  • 如何使用javascript重置div中的滚动位置

    我正在开发移动混合应用程序 在我的 html 页面中 我有 3 个选项卡 单击选项卡时 可滚动 div 的内容会发生更改 我的问题是 当我向下滚动 div 视图 的内容并单击另一个选项卡时 内容消失 但内容在那里 请帮助我 以便我可以在单击
  • #!链接中的主题标签和感叹号作为文件夹?

    我怎样才能让我的页面像groveshark页面一样显示 http grooveshark com popular http grooveshark com popular有教程或其他东西知道如何通过 jQuery 或 JavaScript
  • 使 JList 值不可选择 [重复]

    这个问题在这里已经有答案了 我想知道如何修改JList这样单击任何值都不会执行任何操作 我看过其他问题 但没有一个有帮助 我通过使用以下类解决了这个问题 class DisabledItemSelectionModel extends De
  • Clojure 中的 = 和 ==

    在 REPL 上 如果我定义 def fits map vector take 10 iterate inc 0 然后打电话 2 nth fits 2 我变得虚假了 But 2 nth fits 2 返回真 这是预期的吗 我尝试了 clas
  • Android 蓝牙 java.io.IOException:连接被拒绝?

    我需要连接一个KwikBlue 2 模块开发套件 http www socketmobile com products embedded wireless communications kwikblue4 module 到安卓蓝牙聊天示例