腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2414)
视频
沙龙
1
回答
Android
通过
BluetoothGatt
与
BLE
通信
(
读
/
发
数据
问题
)
android
、
bluetooth
、
bluetooth-lowenergy
、
gatt
我正在使用
BluetoothGatt
进行
BLE
设备和安卓设备之间的
通信
。我使用示例代码来连接这两个设备。但我真的被困在这两个设备之间传输
数据
了。 ? ? 我的代码如下。reported asynchronously through the * {@code BluetoothGattCallback#onConnectionStateChange(
android
.bluetooth.
BluetoothGatt
is reported asynchron
浏览 70
提问于2020-09-14
得票数 0
回答已采纳
1
回答
断开和关闭
BLE
连接停止经典的蓝牙PBAP配置文件
android
、
bluetooth
、
bluetooth-lowenergy
、
rxandroidble
我安装了两个
Android
设备:一个是
android
手机,另一个是运行
Android
10的定制硬件。后者充当
BLE
服务器,它总是以相同的静态MAC地址被发现。另外,当定制的HW
与
手机配对时,它可以访问电话的联系人和通话历史。HW还可以播放来自手机的媒体(声音)。 我使用RxAndroidBle 1.11.0库进行
BLE
通信
。一旦我
通过
BLE
特性交换了一些
数据
,我就从RX中取消订阅,这样库就有效地调用了:
bl
浏览 6
提问于2020-09-08
得票数 0
回答已采纳
1
回答
通过
蓝牙低能量从设备发送到
android
应用程序的
数据
格式
android
、
c
、
bluetooth-lowenergy
我试图运行一个
BLE
代码的德州仪器发送和接收一些参数从我的设备到
android
应用程序。我能够将
数据
从我的设备发送到
Android
/ios
BLE
应用程序。现在我的
问题
是: 1)
数据
以什么格式(JSON/XML)从设备发送到
android
?我知道这件事应该在节目中提到。2)既然我想发送心率、血压等健康参数,我是否应该强制按照IEEE格式发送
数据
?下面给出了IEEE
数据
规范链接。 请帮助我,我是相对
浏览 1
提问于2016-01-04
得票数 0
回答已采纳
2
回答
android
自发断开后自动重新连接
android
、
bluetooth-lowenergy
、
disconnect
使用我的Nexus7上的
Android
4.4
BLE
API,我能够成功地
与
一个外围的
BLE
设备交互--连接、断开、
读
、写.我的外围设备(
通过
设计)在任何活动连接被终止后(无论出于什么原因)开始广告;我可以
通过
我的蓝牙
数据
包嗅探器看到这一点.我按照我的安卓应用程序的预期接收onConnectionStateChanged回调,此时我对我的活动
BluetoothGatt
实例调用close();这是我在
与
客户端“正常”断开
浏览 1
提问于2014-07-15
得票数 1
2
回答
如何
通过
读
/写
BLE
特性实现最大的线程安全性?
android
、
multithreading
、
bluetooth-lowenergy
我正在
与
一个
BLE
设备
通信
,该设备
通过
一个特征向我发送大量
数据
。同样的特性也用于向设备发送
数据
。
Android
运行大约5个不同的绑定器线程,它们调用 onCharacteristicChanged(
BluetoothGatt
gatt, BluetoothGattCharacteristic characteristic虽然上面看起来很管用,但更复杂的
问题
是“针对传入的
数据
流”发送
数据
。我必须使用相
浏览 0
提问于2016-08-13
得票数 13
1
回答
BLE
Android
写完后无法获取
读
特征
android
、
bluetooth
、
bluetooth-lowenergy
、
bluetooth-gatt
我在
BLE
设备上工作。-我可以使用将此设备
与
应用程序连接-一旦连接到
BluetoothGatt
,我就能够第一时间读取所有服务、特征和广告商
数据
。-我们有两个特征,一个是我们需要
读
的,另一个是写的,我能够写出特征。 @Override public void onCharacteristicChanged(
BluetoothGatt
gatt,BluetoothGattCharacteristic char
浏览 45
提问于2018-07-16
得票数 1
2
回答
onCharacteristicChanged之间的Arduino
BLE
通信
不调用
问题
android
、
arduino
、
bluetooth-lowenergy
、
gatt
我正在制作
Android
应用程序,它可以
与
Arduino进行
通信
。这个程序是简单的回波服务。如果
Android
应用程序发送
数据
,Arduino将
通过
BLE
返回
数据
。我成功地让
Android
应用程序发送
数据
,现在是时候把
数据
发回
Android
了。我在Arduino上做了一个描述符,这样
Android
就可以检测到特征值的变化。 但
问题
是。
BL
浏览 23
提问于2022-06-14
得票数 0
回答已采纳
1
回答
在
Android
4.3蓝牙
BLE
上重新设置蓝牙芯片后,在调用
BluetoothGatt
.connect()时捕获
BluetoothGatt
.connect
android
、
exception
、
bluetooth
、
bluetooth-lowenergy
、
android-bluetooth
我正在开发一个应用程序,它利用了来自
Android
4.3的新的蓝牙
BLE
API。
BluetoothGatt
gatt = device.connectGatt(this, true, callbacks); 这些
BluetoothGatt
对象是用于实际
与
设备交互的对象device.connectGatt(this, true, mGat
浏览 0
提问于2014-02-18
得票数 4
回答已采纳
1
回答
如何将
Android
设备用作
BLE
(蓝牙低功耗)
android
、
ios
、
bluetooth
、
bluetooth-lowenergy
我将使用
Android
设备作为
BLE
设备,这样它就可以
通过
连接
BLE
库来
与
BLE
通信
。如果我在app中使用
BLE
库,app可以毫无
问题
地搜索和连接
BLE
设备,但目标是让
android
设备作为
BLE
设备,这样其他
android
或iPhone就可以检测到它是
BLE
设备。我在其中遇到了一些麻烦,无法从google中找到有用的
数据
。我如
浏览 0
提问于2020-12-30
得票数 0
1
回答
Android
BLE
读取的特征值为空
android
、
bluetooth-lowenergy
我正在构建一个
与
BLE
硬件设备
通信
的
Android
应用程序。现在我可以成功地获取customServices和特征了,也可以读取属性了。但主要
问题
是1) -it返回characteristics.getProperties()为26,但预期的答案应该是写/
读
?通知。硬件设备正在
通过
BLE
发送"CALL“字符串作为值,我需要在byte[]中获取它。请提供任何帮助,我们将非常感谢。提前谢谢你。
浏览 0
提问于2017-05-29
得票数 1
1
回答
Android
从不接收来自特性的通知。
android
、
bluetooth-lowenergy
、
android-bluetooth
、
gatt
、
bluetooth-gatt
我已经挣扎了很长一段时间,试图让我的
BLE
设备与我的
android
应用程序
通信
。
android
.bluetooth.BluetoothDevice;import
android
.bluetooth.BluetoothManager; import
android
.bluetooth.BluetoothD
浏览 4
提问于2020-04-22
得票数 0
回答已采纳
1
回答
布尔:使用
Android
/ iOS读取长特征值
android
、
ios
、
bluetooth-lowenergy
、
android-bluetooth
、
ios-bluetooth
有了正常的特征,只读取MTU大小(20字节)的
数据
。我的客户将提供一个更大的特征(约100字节)。 attclient_read_long命令-启动一个过程,客户端首先向服务器发送正常的读取请求,如果服务器返回一个长度等于
BLE
(22个字节)的属性值,则客户机将继续发送"read“请求,直到读取该属性的其余部分为止请注意,
BLE
协议仍然要求将
数据
打包为最大值。22字节块,所以使用“
读
长”不
浏览 13
提问于2016-07-07
得票数 2
1
回答
为什么setMaxBatchSize()对RxAndroidBle中较大的MTU没有用处?
java
、
android
、
bluetooth-lowenergy
、
android-bluetooth
、
rxandroidble
我想
通过
BLE
向设备传输
数据
。每个传输的字节数为64。现在的
问题
是,当我
通过
setMaxBatchSize(ex 64)修改MTU时,mRxBleConnection.getMtu()返回默认的MTU (23)。} 原木 04-22 16:30:58.895 9435-9494/com.example.write D/
BluetoothGatt
: onClientRegistered() - status=0 clientIf=
浏览 0
提问于2019-04-22
得票数 0
回答已采纳
3
回答
如何从
BLE
设备接收
数据
?
java
、
android
、
bluetooth-lowenergy
因此,我正在开发一个Java
BLE
Android
模块使用Eclipse (编码模块和Appcelerator (制作
Android
应用程序)。我正在尝试从
BLE
设备接收
数据
,并将其显示在
Android
手机上。我可以扫描设备并连接到它。 但是我真的,真的不能从它那里得到任何
数据
。我尝试了至少10种不同的东西,但是...主要的
问题
是我对
BLE
API不是很了解,而且我对Java也不是很了解。有没有人可以帮助一个可怜的灵魂真正地从设备中
浏览 44
提问于2019-07-17
得票数 3
回答已采纳
1
回答
连续和同步读写式
数据
通信
java
、
android
、
bluetooth-lowenergy
我无法从手机上读取
数据
到
android
应用程序。如果我进行连续和同时的
数据
通信
,
通过
蓝牙连接的任何一种方式都是分离的。 我正在不断地尝试从
ble
设备接收30字节的
数据
。如果我开始发送30字节的
数据
从app,
数据
接收从布尔设备到应用程序,将停止。我无法同时进行
数据
通信
。有谁能帮我做连续的同步
数据
通信
吗?我是以300毫秒的速率从sending30设备接收到的
数
浏览 2
提问于2019-09-30
得票数 2
2
回答
在订阅通知后未调用GATT onCharacteristicChanged
android
、
arduino
、
bluetooth-lowenergy
、
gatt
在
Android
5.0.2上订阅GATT通知时我遇到了一些
问题
。 ,我的目标是是把一个Arduino和一个
BLE
盾牌连接到我的安卓手机上。我有一个传感器连接到Arduino,并希望
通过
使用
BLE
屏蔽将
数据
从Arduino发送到我的手机。屏蔽上有一个nRF8001,它是服务器,我的手机/应用程序是客户端。我知道这部分是工作的,因为我能够发现,连接,甚至
通过
使用
BLE
扫描仪应用程序,它可以在Google Play上获得有关特性变化的通知。但是在我
浏览 3
提问于2015-05-06
得票数 14
回答已采纳
1
回答
Android
Ble
客户端应用程序架构
android
、
architecture
、
android-service
、
rxandroidble
、
mosby
这是一个更普遍的
问题
,而不是一个具体的
问题
。 基本上,我正在开发一个
与
Ble
外围设备
通信
的
Android
应用程序。我使用库处理
Ble
通信
。至于一般模式,我决定尝试Mosby MVI,但这并不重要。这个类是一个单例类(我知道在
Android
上不推荐它),我使用Dagger来限定它的作用域,它只被注入到那些应该执行
Ble
通信
的交互器中。基本上多亏了这一点,我把这个
Ble
设备当作一个常规
浏览 2
提问于2017-08-16
得票数 0
1
回答
Android
设备在完成完整的特性写入后继续断开连接。
android
、
bluetooth-lowenergy
、
android-bluetooth
、
disconnect
我正在开发一个移动应用程序,它实现了蓝牙LE,并与HC-08设备进行
通信
。添加日志以帮助:使用我的设备
与
软件,如nRF连接或LightBlue
浏览 37
提问于2022-05-03
得票数 1
4
回答
自动连接到
BLE
设备
android-service
、
bluetooth-lowenergy
、
android-bluetooth
我正在开发一个
与
BLE
设备进行
通信
的应用程序,目前我正在尝试密钥卡。似乎所有的碎片都在它们的位置上,但仍然没有任何工作……=(package com.example.
bluetoothgatt
" /> </in
浏览 1
提问于2014-02-21
得票数 2
2
回答
BLE
4.0从设备到电话获取广播
数据
android
一款API级别超过18的
Android
手机,另一款是蓝牙设备4.0。mBluetoothLeService.writeCharacteristic(selectedChar); 在这种情况下,我是
通过
关贸总协定的累赘得到你的问候操作结果由设备发送给
android
手机。为此,我使用了通知。BluetoothGattDescriptor.ENAB
浏览 1
提问于2014-11-07
得票数 4
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Android蓝牙通信过程详解
App Inventor 2 低功耗蓝牙BLE 两种通信方式:扫描和广播
蓝牙欺骗漏洞影响数十亿物联网设备
苹果和谷歌正在将CO-19踪系统构建到iOS和Android中
一款智能门锁的硬件设计方案,NB-IOT和BLE双模!
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券