在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → android蓝牙4.0代码

android蓝牙4.0代码

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:2.88M
  • 下载次数:4
  • 浏览次数:73
  • 发布时间:2021-12-06
  • 实例类别:一般编程问题
  • 发 布 人:js2021
  • 文件格式:.zip
  • 所需积分:2
 

实例介绍

【实例简介】
android操作蓝牙4.0的代码,手机端需要三星4.1.2以上系统,经过测试,三星的S3和note2都可用,蓝牙模块用的是Ti的CC2540模块,本资源包含了手机端的代码和模块的代码,欢迎广大有需要的朋友下载
【实例截图】
【核心代码】
16359647507554924101.zip
├── Sequence Diagram for android BLE communication.pdf
├── SimpleBLEPeripheral
│   ├── AndroidManifest.xml
│   ├── assets
│   ├── bin
│   │   ├── AndroidManifest.xml
│   │   ├── classes
│   │   │   └── com
│   │   │   ├── ble
│   │   │   │   ├── activity
│   │   │   │   │   ├── discovery
│   │   │   │   │   │   ├── DiscoveryActivity$1.class
│   │   │   │   │   │   ├── DiscoveryActivity$2.class
│   │   │   │   │   │   ├── DiscoveryActivity$3.class
│   │   │   │   │   │   ├── DiscoveryActivity$BluetoothInfo.class
│   │   │   │   │   │   ├── DiscoveryActivity$DeviceDiscoveryAdapter.class
│   │   │   │   │   │   └── DiscoveryActivity.class
│   │   │   │   │   └── main
│   │   │   │   │   ├── MainActivity$1.class
│   │   │   │   │   ├── MainActivity$SectionsPagerAdapter.class
│   │   │   │   │   ├── MainActivity.class
│   │   │   │   │   ├── PairingFragment$1.class
│   │   │   │   │   ├── PairingFragment$2.class
│   │   │   │   │   ├── PairingFragment$3.class
│   │   │   │   │   ├── PairingFragment$UpdaterAsyncTask.class
│   │   │   │   │   ├── PairingFragment.class
│   │   │   │   │   ├── ReadWriteFragment$1.class
│   │   │   │   │   ├── ReadWriteFragment$2.class
│   │   │   │   │   ├── ReadWriteFragment$3.class
│   │   │   │   │   └── ReadWriteFragment.class
│   │   │   │   ├── bluetoothle
│   │   │   │   │   ├── BluetoothAdapterHidden.class
│   │   │   │   │   ├── BluetoothDeviceHidden.class
│   │   │   │   │   ├── BluetoothLeUtils.class
│   │   │   │   │   ├── ExtendedBluetoothLEClientProfile.class
│   │   │   │   │   ├── ExtendedBluetoothLEClientService.class
│   │   │   │   │   ├── SimpleBlePeripheralService$BluetoothLEBinder.class
│   │   │   │   │   └── SimpleBlePeripheralService.class
│   │   │   │   ├── BuildConfig.class
│   │   │   │   ├── R$attr.class
│   │   │   │   ├── R$drawable.class
│   │   │   │   ├── R$id.class
│   │   │   │   ├── R$layout.class
│   │   │   │   ├── R$menu.class
│   │   │   │   ├── R$string.class
│   │   │   │   ├── R$style.class
│   │   │   │   └── R.class
│   │   │   └── samsung
│   │   │   └── bluetoothle
│   │   │   ├── BluetoothLEClientChar$1.class
│   │   │   ├── BluetoothLEClientChar.class
│   │   │   ├── BluetoothLEClientProfile$BluetoothLEClientCallback.class
│   │   │   ├── BluetoothLEClientProfile.class
│   │   │   ├── BluetoothLEClientService$BluetoothLEClientCharUpdationCallBack.class
│   │   │   ├── BluetoothLEClientService.class
│   │   │   ├── BluetoothLEGattProxy.class
│   │   │   ├── BluetoothLENamespace$Characteristics.class
│   │   │   ├── BluetoothLENamespace$Services.class
│   │   │   ├── BluetoothLENamespace.class
│   │   │   ├── IBluetoothLEClientCallBack$Stub$Proxy.class
│   │   │   ├── IBluetoothLEClientCallBack$Stub.class
│   │   │   ├── IBluetoothLEClientCallBack.class
│   │   │   ├── IBluetoothLEClientCharUpdationCallBack$Stub$Proxy.class
│   │   │   ├── IBluetoothLEClientCharUpdationCallBack$Stub.class
│   │   │   └── IBluetoothLEClientCharUpdationCallBack.class
│   │   ├── classes.dex
│   │   ├── dexedLibs
│   │   │   └── android-support-v4-69504ccc6d8c56a64c268af1b6c02028.jar
│   │   ├── jarlist.cache
│   │   ├── res
│   │   │   ├── drawable-hdpi
│   │   │   │   └── ic_launcher.png
│   │   │   ├── drawable-mdpi
│   │   │   │   └── ic_launcher.png
│   │   │   └── drawable-xhdpi
│   │   │   └── ic_launcher.png
│   │   ├── resources.ap_
│   │   └── SimpleBLEPeripheral.apk
│   ├── gen
│   │   └── com
│   │   └── ble
│   │   ├── BuildConfig.java
│   │   └── R.java
│   ├── libs
│   │   └── android-support-v4.jar
│   ├── proguard-project.txt
│   ├── project.properties
│   ├── res
│   │   ├── drawable-hdpi
│   │   │   └── ic_launcher.png
│   │   ├── drawable-ldpi
│   │   ├── drawable-mdpi
│   │   │   └── ic_launcher.png
│   │   ├── drawable-xhdpi
│   │   │   └── ic_launcher.png
│   │   ├── layout
│   │   │   ├── activity_main.xml
│   │   │   ├── discovery_activity_list_item.xml
│   │   │   ├── discovery_activity.xml
│   │   │   ├── fragment_pairing.xml
│   │   │   └── fragment_readwrite.xml
│   │   ├── menu
│   │   │   ├── activity_discovery.xml
│   │   │   └── activity_main.xml
│   │   ├── values
│   │   │   ├── dimens.xml
│   │   │   ├── strings.xml
│   │   │   └── styles.xml
│   │   ├── values-v11
│   │   │   └── styles.xml
│   │   └── values-v14
│   │   └── styles.xml
│   ├── SimpleBLEPeripheral.apk
│   └── src
│   └── com
│   ├── ble
│   │   ├── activity
│   │   │   ├── discovery
│   │   │   │   └── DiscoveryActivity.java
│   │   │   └── main
│   │   │   ├── MainActivity.java
│   │   │   ├── PairingFragment.java
│   │   │   └── ReadWriteFragment.java
│   │   └── bluetoothle
│   │   ├── BluetoothAdapterHidden.java
│   │   ├── BluetoothDeviceHidden.java
│   │   ├── BluetoothLeUtils.java
│   │   ├── ExtendedBluetoothLEClientProfile.java
│   │   ├── ExtendedBluetoothLEClientService.java
│   │   └── SimpleBlePeripheralService.java
│   └── samsung
│   └── bluetoothle
│   ├── BluetoothLEClientChar.java
│   ├── BluetoothLEClientProfile.java
│   ├── BluetoothLEClientService.java
│   ├── BluetoothLEGattProxy.java
│   ├── BluetoothLENamespace.java
│   ├── IBluetoothLEClientCallBack.java
│   └── IBluetoothLEClientCharUpdationCallBack.java
└── SimpleBLEPeripheral - cc2540
├── CC2540DB
│   ├── buildConfig.cfg
│   ├── CC2540
│   │   ├── Exe
│   │   │   ├── SimpleBLEPeripheral.d51
│   │   │   └── SimpleBLEPeripheral.hex
│   │   ├── List
│   │   │   └── SimpleBLEPeripheral.map
│   │   └── Obj
│   │   ├── devinfoservice.pbi
│   │   ├── devinfoservice.r51
│   │   ├── gapbondmgr.pbi
│   │   ├── gapbondmgr.r51
│   │   ├── gap.pbi
│   │   ├── gap.r51
│   │   ├── gatt_uuid.pbi
│   │   ├── gatt_uuid.r51
│   │   ├── hal_adc.pbi
│   │   ├── hal_adc.r51
│   │   ├── hal_aes.pbi
│   │   ├── hal_aes.r51
│   │   ├── hal_crc.pbi
│   │   ├── hal_crc.r51
│   │   ├── hal_dma.pbi
│   │   ├── hal_dma.r51
│   │   ├── hal_drivers.pbi
│   │   ├── hal_drivers.r51
│   │   ├── hal_flash.pbi
│   │   ├── hal_flash.r51
│   │   ├── hal_key.pbi
│   │   ├── hal_key.r51
│   │   ├── hal_lcd.pbi
│   │   ├── hal_lcd.r51
│   │   ├── hal_led.pbi
│   │   ├── hal_led.r51
│   │   ├── hal_sleep.pbi
│   │   ├── hal_sleep.r51
│   │   ├── hal_startup.pbi
│   │   ├── hal_startup.r51
│   │   ├── hal_timer.pbi
│   │   ├── hal_timer.r51
│   │   ├── hal_uart.pbi
│   │   ├── hal_uart.r51
│   │   ├── npi.pbi
│   │   ├── npi.r51
│   │   ├── OnBoard.pbi
│   │   ├── OnBoard.r51
│   │   ├── osal_bufmgr.pbi
│   │   ├── osal_bufmgr.r51
│   │   ├── osal_cbtimer.pbi
│   │   ├── osal_cbtimer.r51
│   │   ├── OSAL_ClockBLE.pbi
│   │   ├── OSAL_ClockBLE.r51
│   │   ├── OSAL_Memory.pbi
│   │   ├── OSAL_Memory.r51
│   │   ├── OSAL.pbi
│   │   ├── OSAL_PwrMgr.pbi
│   │   ├── OSAL_PwrMgr.r51
│   │   ├── OSAL.r51
│   │   ├── OSAL_SimpleBLEPeripheral.pbi
│   │   ├── OSAL_SimpleBLEPeripheral.r51
│   │   ├── osal_snv.pbi
│   │   ├── osal_snv.r51
│   │   ├── OSAL_Timers.pbi
│   │   ├── OSAL_Timers.r51
│   │   ├── peripheral.pbi
│   │   ├── peripheral.r51
│   │   ├── SimpleBLEPeripheral_Main.pbi
│   │   ├── SimpleBLEPeripheral_Main.r51
│   │   ├── SimpleBLEPeripheral.pbd
│   │   ├── simpleBLEPeripheral.pbi
│   │   ├── simpleBLEPeripheral.r51
│   │   ├── simpleGATTprofile.pbi
│   │   └── simpleGATTprofile.r51
│   ├── CC2540DK-MINI Keyfob
│   │   ├── Exe
│   │   │   ├── SimpleBLEPeripheral.d51
│   │   │   └── SimpleBLEPeripheral.hex
│   │   ├── List
│   │   │   └── SimpleBLEPeripheral.map
│   │   └── Obj
│   │   ├── devinfoservice.r51
│   │   ├── gapbondmgr.r51
│   │   ├── gap.r51
│   │   ├── gatt_uuid.r51
│   │   ├── hal_adc.r51
│   │   ├── hal_aes.r51
│   │   ├── hal_crc.r51
│   │   ├── hal_dma.r51
│   │   ├── hal_drivers.r51
│   │   ├── hal_flash.r51
│   │   ├── hal_key.r51
│   │   ├── hal_lcd.r51
│   │   ├── hal_led.r51
│   │   ├── hal_sleep.r51
│   │   ├── hal_startup.r51
│   │   ├── hal_timer.r51
│   │   ├── hal_uart.r51
│   │   ├── npi.r51
│   │   ├── OnBoard.r51
│   │   ├── osal_bufmgr.r51
│   │   ├── osal_cbtimer.r51
│   │   ├── OSAL_ClockBLE.r51
│   │   ├── OSAL_Memory.r51
│   │   ├── OSAL_PwrMgr.r51
│   │   ├── OSAL.r51
│   │   ├── OSAL_SimpleBLEPeripheral.r51
│   │   ├── osal_snv.r51
│   │   ├── OSAL_Timers.r51
│   │   ├── peripheral.r51
│   │   ├── SimpleBLEPeripheral_Main.r51
│   │   ├── SimpleBLEPeripheral.pbd
│   │   ├── simpleBLEPeripheral.r51
│   │   ├── simpleGATTprofile.r51
│   │   └── simplekeys.r51
│   ├── settings
│   │   ├── SimpleBLEPeripheral.cspy.bat
│   │   ├── SimpleBLEPeripheral.dbgdt
│   │   ├── SimpleBLEPeripheral.dni
│   │   └── SimpleBLEPeripheral.wsdt
│   ├── SimpleBLEPeripheral.dep
│   ├── SimpleBLEPeripheral.ewd
│   ├── SimpleBLEPeripheral.ewp
│   └── SimpleBLEPeripheral.eww
├── CC2541DB
│   ├── buildConfig.cfg
│   ├── SimpleBLEPeripheral.ewd
│   ├── SimpleBLEPeripheral.ewp
│   └── SimpleBLEPeripheral.eww
└── Source
├── OSAL_SimpleBLEPeripheral.c
├── simpleBLEPeripheral.c
├── simpleBLEPeripheral.h
├── SimpleBLEPeripheral_Main.c
├── simpleGATTprofile.c
└── simpleGATTprofile.h

53 directories, 223 files

标签:

实例下载地址

android蓝牙4.0代码

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警