jdy ble sdk android,蓝牙通信(MLT-BT05-V4.4资料)

本文档提供了一个关于如何使用MLT-BT05-V4.4 SDK进行Android蓝牙 Low Energy (BLE) 通信的实例。包括了AT指令集、串口调试工具和模块手册等资源,以及完整的APP源码,涵盖了BluetoothLeService、设备扫描、连接、数据传输等功能的实现。
摘要由CSDN通过智能技术生成

【实例简介】

【实例截图】

9cb9d8d8425ade1d180f0db22693aecf.png

【核心代码】

└─MLT-BT05-V4.4资料

│  AT指令集.pdf

│  串口调试工具.exe

│  模块手册.pdf

├─APP源码

│  │  BLE无线控制器源码(android.rar

│  │  JDY-BLE-SDK-IOS-V1.5源码.zip

│  │

│  └─BLE无线控制器源码(android

│      └─CircleSeekBar

│          │  .classpath

│          │  .project

│          │  AndroidManifest.xml

│          │  ic_launcher-web.png

│          │  lint.xml

│          │  proguard-project.txt

│          │  project.properties

│          │

│          ├─.settings

│          │      org.eclipse.core.resources.prefs

│          │      org.eclipse.jdt.core.prefs

│          │

│          ├─assets

│          ├─bin

│          │  │  AndroidManifest.xml

│          │  │  CircleSeekBar.apk

│          │  │  classes.dex

│          │  │  jarlist.cache

│          │  │  resources.ap_

│          │  │

│          │  ├─classes

│          │  │  └─com

│          │  │      ├─example

│          │  │      │  ├─ble

│          │  │      │  │      BluetoothLeService$1.class

│          │  │      │  │      BluetoothLeService$function_type.class

│          │  │      │  │      BluetoothLeService$LocalBinder.class

│          │  │      │  │      BluetoothLeService.class

│          │  │      │  │      DeviceListAdapter$1.class

│          │  │      │  │      DeviceListAdapter$2.class

│          │  │      │  │      DeviceListAdapter$3$1.class

│          │  │      │  │      DeviceListAdapter$3.class

│          │  │      │  │      DeviceListAdapter$DeviceListAdapter1.class

│          │  │      │  │      DeviceListAdapter$ViewHolder.class

│          │  │      │  │      DeviceListAdapter.class

│          │  │      │  │      SampleGattAttributes.class

│          │  │      │  │

│          │  │      │  ├─jdy_touchuang

│          │  │      │  │      AV_Stick$1.class

│          │  │      │  │      AV_Stick$2.class

│          │  │      │  │      AV_Stick$3.class

│          │  │      │  │      AV_Stick$4.class

│          │  │      │  │      AV_Stick$5.class

│          │  │      │  │      AV_Stick$6.class

│          │  │      │  │      AV_Stick$7.class

│          │  │      │  │      AV_Stick.class

│          │  │      │  │      jdy_Activity$1.class

│          │  │      │  │      jdy_Activity$10.class

│          │  │      │  │      jdy_Activity$11.class

│          │  │      │  │      jdy_Activity$2.class

│          │  │      │  │      jdy_Activity$3.class

│          │  │      │  │      jdy_Activity$4.class

│          │  │      │  │      jdy_Activity$5.class

│          │  │      │  │      jdy_Activity$6.class

│          │  │      │  │      jdy_Activity$7.class

│          │  │      │  │      jdy_Activity$8.class

│          │  │      │  │      jdy_Activity$9.class

│          │  │      │  │      jdy_Activity.class

│          │  │      │  │      jdy_switch_Activity$1.class

│          │  │      │  │      jdy_switch_Activity$2.class

│          │  │      │  │      jdy_switch_Activity$3.class

│          │  │      │  │      jdy_switch_Activity$4.class

│          │  │      │  │      jdy_switch_Activity$5.class

│          │  │      │  │      jdy_switch_Activity$6.class

│          │  │      │  │      jdy_switch_Activity$7.class

│          │  │      │  │      jdy_switch_Activity.class

│          │  │      │  │      shengjiangji$1.class

│          │  │      │  │      shengjiangji$2.class

│          │  │      │  │      shengjiangji$3.class

│          │  │      │  │      shengjiangji$4.class

│   

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是一个简单的示例代码,可以通过JDY-09模块向手机发送数据: ```c #include "stm32f10x.h" #include "stdio.h" USART_InitTypeDef USART_InitStructure; void USART_Config(void) { GPIO_InitTypeDef GPIO_InitStructure; // 配置 USART1 引脚 RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE); // PA9: USART1_TX, PA10: USART1_RX GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; GPIO_Init(GPIOA, &GPIO_InitStructure); GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; GPIO_Init(GPIOA, &GPIO_InitStructure); // USART1 配置 USART_InitStructure.USART_BaudRate = 9600; USART_InitStructure.USART_WordLength = USART_WordLength_8b; USART_InitStructure.USART_StopBits = USART_StopBits_1; USART_InitStructure.USART_Parity = USART_Parity_No; USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None; USART_InitStructure.USART_Mode = USART_Mode_Tx; USART_Init(USART1, &USART_InitStructure); USART_Cmd(USART1, ENABLE); } void USART_SendString(char* s) { while (*s) { while (USART_GetFlagStatus(USART1, USART_FLAG_TXE) == RESET); USART_SendData(USART1, *s++); } } int main(void) { USART_Config(); while (1) { USART_SendString("Hello, World!\r\n"); delay(1000); } } ``` 在此示例中,我们通过 USART1 向手机发送数据。在初始化配置中,我们将 USART1 配置为 9600 baud, 8 data bits, 1 stop bit, and no parity。USART_SendString()函数允许我们发送字符串,其中 USART_GetFlagStatus()检查 USART_FLAG_TXE 标志位是否已设置,以确保数据成功发送。建议根据自己的需要进行一些微调。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值