本文介绍了HM10 BLE变化特征值AT命令的Arduino的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能帮我与AT命令写入特征值,或者如何从Arduino的数据发送到使用HM10模块另一BLE装置。

Can anyone help me with the AT command to write characteristic value, Or how to send data from arduino to another ble device using Hm10 module.

发送AT + START后,不做广告的数据包,并能检测服务和特色,但HM10特征值是默认的0x00时,我怎样才能改变这种状况?

The HM10 after sending the AT+START, does advertise packets, and can detect the service and characteristic, But the characteristic value is the default 0x00, How can I change that?

已经检查了数据表多次,却找不到一个AT命令,它能够做同样的。

Have checked the data sheet multiple times but can not find an AT command that is capable of doing the same.

更新:类似的问题设置中环模式下HM10:

UPDATE: Similar problem with setting the HM10 in Central Mode:

中央模式设置!

1)AT +基于role1 - 设置到中环模式

1) AT+ROLE1 - Set up to Central Mode

2)AT + IMME1 - 从RESET开始

2) AT+IMME1 - Start from RESET

3)AT +秀王 - 显示搜索到的设备

3) AT+SHOW1 - Show discovered devices

4)+光盘吗? - 发现设备
    获取设备MAC ID,

4) AT+DISC? - Discover Devices Get Device MAC ID,

5)AT + CON [MAC ID]

5) AT+CON[MAC ID]

结果:总给人OK + CONNA后10秒OK + CONNF

RESULT: Always gives OK+CONNA and after 10seconds OK+CONNF

我很困惑,使用AT + START之前AT +光盘吗?导致在+ START到不行,反之亦然。
使用AT + START成果转化OK + CONN的一个循环之后确定+连续丢失并没有更多的AT命令被接受。我相信它确实导致

I am confused, Use of "AT+START" before "AT+DISC?" causes AT+START to not work and viceversa.Using AT+START results into a loop of OK+CONN followed by OK+LOST continuously and no more AT commands are accepted. I believe it does result in a

你能正确的顺序上的建议吗?

Can you advice on the right order?

使用LightBlue iOS应用的外设。我怎样选择服务并订阅特性从应用程序接收数据?

Using LightBlue iOS app as the peripheral. How am I to select a service and subscribe to a characteristic to receive data from the application?

感谢你。

推荐答案

有没有AT命令来设置一个特征值。

There is no AT command to set a characteristic value.

的HM10是一个串行端口仿真装置 - 在发送任何串行数据到HM10模块(除了AT命令)被提供在其上的BLE特性。不幸的是,数据表不记录服务和特征,但this code 显示串行RX / TX特点是 0000ffe1-0000-1000-8000-00805f9b34fb

The HM10 is a serial-port emulation device - whatever serial data you send to the HM10 module (aside from the AT commands) is made available on it's BLE characteristic. Unfortunately the data sheet doesn't document the service and characteristics, but this code suggests that the serial RX/TX characteristic is 0000ffe1-0000-1000-8000-00805f9b34fb

所以,写入到串行端口的数据应显示为特征的值。写入到特征数据应该传递出HM10模块上的TX串行端口引脚。

So, data written to the serial port should appear as the value of that characteristic. Data written to that characteristic should be delivered out of the TX serial port pin on the HM10 module.

这篇关于HM10 BLE变化特征值AT命令的Arduino的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-24 12:42