android - 如何在 Android 聊天应用程序中使用低功耗蓝牙 (BLE)?

标签 android bluetooth chat bluetooth-lowenergy

<分区>

我目前正在使用一个聊天应用程序,我想在我的聊天应用程序中使用低功耗蓝牙技术。
通过我对它的研究和学习,我经历了几个链接:

  1. Android Bluetooth LE Chat example

    从这里我了解到蓝牙串行数据传输低 从那时起(10.10.14)不支持能量。

  2. https://github.com/onlyinamerica/blemeshchat

    我发现上面的项目和我的目的有点相似,但后来是徒劳的。

  3. 甚至看了几个蓝牙聊天教程,了解到用户必须为他们的目的配对他们的设备。
    完成以下教程:

我对如何使用 BLE 技术进行聊天进行了大量研究,但没有找到关于如何实现它的好资源。

所以我的问题如下:

  1. 我们能否像使用蓝牙一样使用低功耗蓝牙制作聊天应用程序?请给出经过验证的原因,但不是基于意见。

  2. BLE 聊天应用程序可以与普通蓝牙应用程序聊天吗?给个理由?

  3. 如果可能,请为我提供一些使用 BLE 技术实现聊天的好资源。

最佳答案

虽然你做了很多研究,但我给你的答案如下: 1

Yes,we can but Bluetooth low energy will work similarly as of normal bluetooth for chat and so there will be no difference between the two as serial data transfer is not properly applicable now for BLE devices.

2

Yes,it can because Ble is just the hardware ie. Bluetooth v4 while it supports normal bluetooth functions.Chat is possible but chat would be like normal bluetooth chat.They have their own set of APIs for BLE programming. You just need to include their API add-ons into your Android apps to access the BLE features but if you don"t then it acts as normal bluetooth devices.

3

there is no such good resource available but still you can check out normal bluetooth chat by google:https://github.com/googlesamples/android-BluetoothChat You can use this for normal bluetooth chat and then customize it as per bluetooth low energy libraries for android.

Ble 技术用于 ibeacon、智能 watch 和其他设备,因为它的连接覆盖更远的距离 Ble Chat 功能对于 Android 开发人员来说仍然是一个大问题,因为谷歌没有提供足够的 Material ,而在 iOS 中他们已经成功地将 AirChat 与Bluetooth v4 帮助进行 Ble 聊天。

关于android - 如何在 Android 聊天应用程序中使用低功耗蓝牙 (BLE)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32736708/

相关文章:

android - 无法从android项目模拟器调用web服务方法

Android:隐藏配对对话框

在嵌入式平台上聊天*服务器*

android如何创建一个永不关闭的通知

android - MapActivity 无法解析为类型,即使使用 Google API 目标也是如此

android - 通过蓝牙检测附近的另一个安卓设备

xmpp - Rabbitmq 或 Ejabberd,我应该使用哪个进行一对一聊天?

android - pubnub - 看不到消息和历史记录

android - 使用 react-native 启用电话设置

iOS11蓝牙有一些奇怪的东西