HM10 ble change characteristic value AT command Arduino

五迷三道 提交于 2019-12-03 13:51:43

There is no AT command to set a characteristic value.

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

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.

This thread is a bit dated. But the HM-1X firmware now supports changing the characteristics of a module.

"AT+CHAR?" Will get the current characteristic setting for RX/TX "AT+CHAR0xFFFF" will set the TX/RX characteristics to 0xFFFF

Send: AT+CHAR0xAAA0 Recv: OK+Set:0xAAA0

These features were added v518.

If you need to update your firmware,

Link to Huamao's download site.

I don't have enough reputation to comment on Ladvien's answer, but...

Just a word of warning regarding updating the firmware with a new version from Huamao's download site. http://www.jnhuamao.cn/download_rom_en.asp?id=83

In my experience there were issues with V539, which prevented the firmware operating as an iBeacon - and there may be other problems. I was fortunately enough to find someone emailed me a copy of the V538 firmware and was able to downgrade again.

Huamao doesn't have old versions of the firmware available for download and AFIK there is no way to backup your current firmware version.

But it was possible to downgrade from V539 back to V538 if you have the bin file for V538 etc. i.e At least up as far as V539 the firmware does allow downgrades and was not checking version numbers to only allow upgrades.

No need to use any AT-commands to send data as it works like transparent serial. Currently it works good to upload sketches from iOS devices to Arduino. Check out http://www.apploader.info

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!