E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
【Bluetooth】
iOS ble通信
开发BLE4.0的App,你需要在你的项目里面导入框架:Core
Bluetooth
.framework在需要使用到蓝牙的文件里面你需要导入头文件:#import#import并且你需要在你的蓝牙类里面实现两个协议
wbw1991226
·
2020-08-10 02:14
iOS
ble
iOS ibeacon后台运行相关文章
stackoverflow.com/questions/19274286/can-an-ios7-device-act-as-an-ibeacon本文提到了模拟ibeacon时不能后台广播信号//core
bluetooth
wbw1991226
·
2020-08-10 02:14
iOS
android te avc 权限
45.867E/selinux(0):avc:denied{set}forproperty=ctl.stop$vendor.fmpid=543uid=1002gid=1002scontext=u:r:hal_
bluetooth
_qti
王大锤扛刀
·
2020-08-10 02:24
高通
蓝牙
BlueTooth
Low Energy (BLE)
BLE:(
Bluetooth
lowenergy)蓝牙4.0设备因为低耗电,也叫BLEperipheral,central:外设和中心设备,发起链接的是central(一般是指手机),被链接的设备是peripheral
Gavin-Wang
·
2020-08-10 02:20
文本
【BLE】CC2541 低功耗蓝牙16bit的UUID与128bit的UUID有什么区别
2.但是为了降低存储和传输的负担,我们预分配一些常用的UUID的值,比如
Bluetooth
_Base_UUID的值是00000000-0000-1000-8000-00805F9B34FB。
卡图卢斯
·
2020-08-10 02:35
CC2541
Bluetooth
4.0之Android 讲解
Android平台包含了对蓝牙网络协议栈的支持,它允许一个蓝牙设备跟其他的蓝牙设备进行无线的数据交换。应用程序通过Android蓝牙API提供访问蓝牙的功能。这些API会把应用程序无线连接到其他的蓝牙设备上,具有点到点和多点无线特征。使用蓝牙API,Android应用程序能够执行以下功能:1.扫描其他蓝牙设备2.查询本地已经配对的蓝牙适配器3.建立RFCOMM通道4.通过服务发现来连接其他设备
Wei_Leng
·
2020-08-10 02:29
Android
日常记录
bluetooth
android
Android BLE蓝牙通信
为了在app中使用蓝牙功能,必须声明蓝牙权限
BLUETOOTH
。利用这个权限去执行蓝牙通信,例如请求连接、接受连接、和传输数据。
是个猴子
·
2020-08-10 02:26
Android
蓝牙
Android 10 获取已连接的蓝牙设备的当前电量
但在我的项目中android10生产环境,这个方法在
Bluetooth
device类的源码内,已经被标识为废弃不可直接调用的方法。如下图所示但是研究一番发现可以通过反射,继续调用这个方法。
DMingOu
·
2020-08-10 02:24
Android
Android笔记系列--(2)
Bluetooth
BLE低功耗
本文练习源码:https://github.com/StarsAaron/
Bluetooth
TestDemo主要内容:(1)BLE蓝牙的基础概念(2)Android各版本A
繁星点点-
·
2020-08-10 01:17
Android笔记系列
Android 普通蓝牙学习笔记
官方文档本例的源码已经上传,查看源码需要的权限类蓝牙有关的所有的类如下:普通蓝牙用到的几个关键的类:
Bluetooth
Adapter蓝牙适配器Repre
耳东_
·
2020-08-10 01:16
蓝牙相关
Android BLE蓝牙通讯学习
介绍BLE是
Bluetooth
LowEnergy的缩写,又叫蓝牙4.0,区别于蓝牙3.0和之前的技术。BLE前身是N
耳东_
·
2020-08-10 01:16
蓝牙相关
安卓手机蓝牙控制智能小车 android程序设计
项目名称:安卓手机控制智能小车本文主要介绍手机端程序设计源码托管在地址:github.com/cyang812/
Bluetooth
_Car开发平台:win10;开发软件:AndroidStudio2.1
cyang812
·
2020-08-10 01:06
编程
嵌入式
android 蓝牙权限问题
Causedby:java.lang.SecurityException:PermissionDenial:startingIntent{act=android.
bluetooth
.adapter.action.REQUEST_DISCOVERABLEflg
会飞的猪啊
·
2020-08-10 01:55
android开发错误
Android传统蓝牙入门
一、官方简介:对于在Android设备间执行比较耗电的操作,传统蓝牙(Classic
Bluetooth
)是一种正确的选择;所有关于
Bluetooth
的API都在android.
bluetooth
包下;二
Rose-
·
2020-08-10 01:17
android
Android搜索附近的beacon
定义一个service用来搜索beaconimportandroid.app.Service;importandroid.
bluetooth
.
Bluetooth
Adapter;importandroid.
bluetooth
.
Bluetooth
Device
壹只很拽的猫
·
2020-08-10 01:08
android
[
Bluetooth
]: android 平台上BLE连接流程之优化方案
这是一篇关于之前工作成果的补记。我之前在一家可穿戴设备公司工作,主要工作之一是帮助改进和维护本司的android手机App和本司可穿戴设备(下文简称设备)之间蓝牙通信性能。曾经有一个性能问题困扰了公司很久,就是android手机app和设备之间的(蓝牙)同步成功率很低。相比于iOS手机App和所有设备之间轻松90%+的同步成功率,我们的AndroidApp和各种设备的同步成功率仅仅70%~80%,
teaspring
·
2020-08-10 01:46
Android
Bluetooth
Android 打开系统蓝牙设置
判断蓝牙是否开启publicstaticbooleanis
Bluetooth
Enable(){
Bluetooth
Adapter
bluetooth
Adapter=
Bluetooth
Adapter.getDefaultAdapter
f8之4
·
2020-08-10 01:06
Android
笔记
Android 蓝牙API详解和连接使用
2.蓝牙权限:android.permission.
BLUETOOTH
:允许程序连接到已配对的蓝牙设备,请求连接/接收连接/传输数据需要改权限,主要用于对配对后进行操作
常军永
·
2020-08-10 00:07
android蓝牙开发---与蓝牙模块进行通信
如何开启蓝牙设备和设置可见时间:首先,需要获得一个
Bluetooth
Adapter,可以通过getDefaultAdapter()获得系统默认的蓝牙适配器,如果没有,通过enable()方法打开。
arcknews
·
2020-08-09 23:21
java
蓝牙模块
Android BLE低功耗蓝牙开发(下) BLE客户端(中央设备)与GATT服务的通讯
然后,本来是要写Android开发之
BlueTooth
--最简单的Andorid低功耗(BLE)蓝牙通讯Demo的,写了一半发现BLE简单不起来,所以分两篇来写BLE相关的应用。
天才小汪汪
·
2020-08-09 23:46
Android小知识
android 传统蓝牙开发
1.获得蓝牙适配器m
Bluetooth
Adapter=
Bluetooth
Adapter.getDefaultAdapter();2.蓝牙的打开和关闭if(!
qq_34308292
·
2020-08-09 23:44
三、筛选蓝牙信息并连接(安卓蓝牙ble教程)
MainActivity.java注:如果复制代码进项目时显示红色,请按ALT+ENTER键导包(importclass)packageclub.stm32;importandroid.Manifest;importandroid.
bluetooth
.
Bluetooth
Adapter
无聊达612
·
2020-08-09 23:42
ble
蓝牙
android
java
7、停止搜索蓝牙设备(stop
Bluetooth
DevicesDiscovery)
wx.stop
Bluetooth
DevicesDiscovery(Objectobject)基础库1.1.0开始支持,低版本需做兼容处理。停止搜寻附近的蓝牙外围设备。
无聊达612
·
2020-08-09 23:42
微信小程序
js
四、
Bluetooth
GattCallback回调函数(安卓蓝牙ble教程)
MainActivity.java注:如果复制代码进项目时显示红色,请按ALT+ENTER键导包(importclass)packageclub.stm32;importandroid.Manifest;importandroid.
bluetooth
.
Bluetooth
Adapter
无聊达612
·
2020-08-09 23:42
android
java
ble
蓝牙
蓝牙通信UUID
开发者可以自定义这些128位的UUID,也可以采用
Bluetooth
SIG已定义的标准。1.概念SDP协议让客户机的应用程序发现存在的服务器应用程序提供的服务以及这些服务的属性。
雨微尘
·
2020-08-09 23:01
蓝牙
Android BLE最完整的工具类(扫描/连接/读写/通知设备)
bleUtil工具中,有些地方我感觉还是要提示下1、characterUUID1、characterUUID2、descriptorUUID这三个是对应的收发命令的,跟找到要操作的
Bluetooth
GattDescriptor
骚剑客
·
2020-08-09 23:53
Android
Android 蓝牙自动配对连接
蓝牙工具类:publicclassBTReceiverUtils{/***与设备配对*/staticpublicbooleancreateBond(ClassbtClass,
Bluetooth
DevicebtDevice
骑驴望星空
·
2020-08-09 23:20
Android
应用内跳转到设置页面
NSString*defaultWork=[selfgetDefaultWork];NSString*
bluetooth
Method=[selfget
Bluetooth
Method];NSURL*url
于海明
·
2020-08-09 23:16
iOS搜集的知识
android 蓝牙4.0开发心得(一)蓝牙搜索
getPackageManager().hasSystemFeature(PackageManager.FEATURE_
BLUETOOTH
_LE))
man_dzy
·
2020-08-09 23:50
Android
android5.0和android6.0ble开发时要注意的两点
于是去网上搜了一下得到下面的回答:扫描BLE蓝牙设备,对于4.3以上的系统,直接调用startLeScan(
Bluetooth
Adapter.LeScanCallbackcallback)即可扫描出BLE
Ali_522
·
2020-08-09 23:19
Android BLE 蓝牙开发框架
FastBleAndroid
Bluetooth
LowEnergy蓝牙快速开发框架。使用简单的方式进行搜索、连接、读写、通知的订阅与取消等一系列蓝牙操作,并实时地得到操作反馈。
qq_594336505
·
2020-08-09 23:23
Android高级开发
Android开源框架
Android中
Bluetooth
Adapter.startDiscovery方法搜索蓝牙设备不起作用的解决办法
新项目一个关于连接蓝牙打印机的功能,在网上找了许多例子,但是都搜索不到蓝牙设备,经过多台手机测试,在android系统6.0之前的是可以搜索到设备的,但是在6.0之后的搜索不到,找到问题后原来是在android6.0之后api更换了权限导致的加上以上两个权限就可以解决在6.0系统搜索不到蓝牙设备的问题了。
开开_心心_敲代码
·
2020-08-09 23:13
Android
Bluetooth
Low Energy(Android低功耗蓝牙)
Android4.3(APILevel18)开始引入
Bluetooth
LowEnergy(BLE,低功耗蓝牙)的核心功能并提供了相应的API,应用程序通过这些api可以扫描设备、查询services,读写设备的
林佳楠
·
2020-08-09 23:31
Android
Android系统 蓝牙模块
ZERO,蓝牙模块的fragment及其配置1>,首先由Settings_headers.xml文件可以知道,蓝牙对应的fragment为
Bluetooth
Settings.Java,对应的id,icon
qeqeqe236
·
2020-08-09 22:51
蓝牙
[Sg] Android 6.0 系统Setting 蓝牙扫描分析
蓝牙设置页面源码位置com.android.settings.
bluetooth
.
Bluetooth
Settings1.该界面点击开启蓝牙开关后的调用startScanning()方法publicvoidstartScanning
pq5357
·
2020-08-09 22:37
framework
Android蓝牙开发(一)蓝牙模块及核心API
蓝牙模块从蓝牙4.0开始包含两个蓝牙芯片模块:传统/经典蓝牙模块(Classic
Bluetooth
,简称BT)和低功耗蓝牙(
Bluetooth
LowEnergy,简称BLE)。
几圈年轮
·
2020-08-09 22:44
Android framework 蓝牙开机连接慢与开机广播
Bluetooth
ManagerService相关代码如下,可以看到,自动打开蓝牙的流程是接收开机广播实现的。
wusc'blog
·
2020-08-09 22:03
Android
Android 蓝牙(BLE)连接,发送,接收消息
MainActivitypackagecom.example.lihui.
bluetooth
;importandroid.app.Activity;importandroid.
bluetooth
.
Bluetooth
Adapter
muhuitao
·
2020-08-09 22:53
Android
android开发之手机与单片机蓝牙模块通信
packagecom.example.fsl.
bluetooth
;importandroid.app.Activity;importandroid.
bluetooth
.
冯爽朗
·
2020-08-09 22:01
Android开发
android 传统蓝牙开发(一):打开/关闭蓝牙设备
1.声明权限2.获取本地蓝牙适配器
Bluetooth
Adapter
bluetooth
Adapter=
Bluetooth
Adapter.getDefaultAdapter();3.打开本地蓝牙打开蓝牙有2
一直在路过
·
2020-08-09 22:01
Android笔记
Android蓝牙搜索设备,向其发送数据并接收-刘宇
蓝牙客户端Socket是
Bluetooth
Socket,蓝牙服务端Socket是
Bluetooth
ServerSocket。这两个类都在android.
bluetooth
包中。
BrycenLiu
·
2020-08-09 22:22
Android
Android开发总结之传统蓝牙自动连接
文章目录实现自动配对实现自动配对清单注册广播实现广播@OverridepublicvoidonReceive(Contextcontext,Intentintent){if(intent.getAction().equals("android.
bluetooth
.device.action.PAIRING_REQUEST
lijianbiao0
·
2020-08-09 22:46
Android核心技术
android5.0(Lollipop) BLE Central牛刀小试
搞过android4.4的人肯定对
Bluetooth
Adapter的startLeScan函数不会陌生,但是在androidL已经弃用此接口,但是为了兼容以前的版本
小姜的android之旅
·
2020-08-09 21:08
android
bluetooth
Android ble onCharacteristicChanged()无法触发
最近碰到一个比较蛋疼的问题,同一个APP,运行在不同的手机设备上,onCharacteristicChanged在部分设备上没有回调.m
Bluetooth
Gatt.setCharacteristicNotification
Kieven2oo8
·
2020-08-09 21:47
android
Bluetooth
开发(二):打开、关闭、搜索、允许搜索、查看
相关项目的下载链接本项目:点击打开链接继本项目之后实现了语音识别:点击打开链接1.承接上一篇文章,本篇文章主要实现了蓝牙的打开关闭允许搜索查看配对设备2.
Bluetooth
Init,主要实现了部件的初始化
Amarao
·
2020-08-09 21:36
android
传感器
Android开发
Android BLE 蓝牙低功耗教程,中央
Bluetooth
Gatt和周边
Bluetooth
GattServer的实现
Android4.3规范了BLE的API,但是直到目前的4.4,还有些功能不完善。在BLE协议中,有两个角色,周边(Periphery)和中央(Central);周边是数据提供者,中央是数据使用/处理者;在iOSSDK里面,可以把一个iOS设备作为一个周边,也可以作为一个中央;但是在AndroidSDK里面,直到目前最新的Android4.4.2,Android手机只能作为中央来使用和处理数据;那
Chris_Wang1
·
2020-08-09 21:32
BLE
Android
Android 开发中 iBeacon的使用
iBeacon的工作原理是基于
Bluetooth
LowEnergy(BLE)低功耗蓝牙传输技术,iBeacon基站不断向四周发送蓝牙信号,当智能设备进入设定区域时,就能够收到信号。
怎么连话都说不清楚
·
2020-08-09 21:57
Android开发进阶
iBeacon
android
蓝牙
android 蓝牙
Bluetooth
Adapter扫描、获蓝牙设备、已联设备列表
效果:publicclassMainActivityextendsAppCompatActivity{privatestaticfinalStringTAG="MainActivity";privateListlist;privateRecyclerViewrecyclerView;privateMyRecycleViewAdapteradapter;privateButtonbtn;Blueto
jian11058
·
2020-08-09 21:21
Why Android BLE method startLeScan failed to filter by custom 128bit uuid?
February18,2014Let'scheckthestartLeScanmethoddeclaration.publicbooleanstartLeScan(UUID[]serviceUuids,
Bluetooth
Adapter
johnny-huang
·
2020-08-09 21:02
android学习
Android蓝牙开发
1.首先,要操作蓝牙,先要在AndroidManifest.xml里加入权限//管理蓝牙设备的权限//使用蓝牙设备的权限2.打开蓝牙获得蓝牙适配器(android.
bluetooth
.
Bluetooth
Adapter
he_666
·
2020-08-09 21:03
蓝牙
上一页
32
33
34
35
36
37
38
39
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他