Emulate BLE signal with ECB02U bluetooth module

Original link: https://barku.re/blog/archives/631/

ECB02U is the USB-A version of the ECB02 module, roughly like this:

Some notes:


Here is an example of simulating an iBeacon Bluetooth road stud signal in the new school playground to show how to perform the most basic operations on the Bluetooth module. We can obtain relevant documents and debugging programs from the official website of Yijia Internet ( http://eciot.cn ) and the seller.

First, connect the bluetooth module to the computer. At this time, the green light of the bluetooth module is always on, and the red light flashes every two seconds. Open Device Manager – Port, you can know the corresponding port, here is COM8.

The computer runs uart-tool, the port selects COM8 (just found), the baud rate is 115200, and then clicks to open the serial port, as shown in the figure:

Install and run the Easy Plus Bluetooth Assistant on the mobile phone. After giving the relevant permissions, you can see some Bluetooth signal lists, among which there should be a color-coded signal (module signal), click to enter.

After entering, the mobile phone establishes a connection with the module, and the red light flashes rapidly at this time. You can send texts in the sending area on the computer and mobile phone to test whether the connection is normal, as shown in the figure:

The information related to the BLE signal to be simulated is as follows (this data needs to be collected in advance, or the results of others are used):
MAC:D4:10:28:00:03:11

RAW:0x0201061AFF4C000215FDA50693A4E24FB1AFCFC6EB076478253E8130E3BB14162915640F18012C0147D410280002FD3E8130E3080978426561636F6E

There is a webpage file in the document. After opening, enter the MAC address and RAW, and three lines of instructions can be generated.

Execute these three instructions (one line at a time, and carriage return at the end of each time) in the sending area of ​​the computer debugger.

At this point, the simulation of this signal is completed, and the module can be powered on later (plug it into the charging head or mobile power supply to supply power).


Notice

The command to restore factory settings is: AT+FACTORY\r\n , please use this command to restart E998B4E999A9_2x.png

You can use apps such as nRF Connect and Beacon Simulator to collect signal information. For advanced operations, please refer to the official documentation.

This article is reproduced from: https://barku.re/blog/archives/631/
This site is for inclusion only, and the copyright belongs to the original author.