barkure

barkure

telegram
github

Simulate BLE signal using ECB02U Bluetooth module.

ECB02U is the USB-A version of the ECB02 module, and it looks like this:
image
Some explanations:
image


Here, we take the simulation of an iBeacon Bluetooth nail signal on the new school playground as an example to demonstrate the most basic operation of the Bluetooth module. We can obtain relevant documents and debugging programs from the ECIOT official website (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-Ports to find out the corresponding port, which is COM8 in this case.
image
Run uart-tool on the computer, select COM8 (just found), set the baud rate to 115200, and then click Open Serial Port, as shown in the figure:
image
Install and run the ECIOT Bluetooth Assistant on the phone, grant the relevant permissions, and you will see a list of Bluetooth signals, among which there should be a colored signal (module signal) with a color icon. Click to enter.
image
After entering, the phone is connected to the module, and the red light flashes rapidly. You can send text in the sending area on the computer and phone to test if the connection is normal, as shown in the figure:
image
image

The relevant information of the BLE signal to be simulated is as follows (this data needs to be collected in advance or obtained from others):
MAC: D4:10:28:00:03:11

RAW: 0x0201061AFF4C000215FDA50693A4E24FB1AFCFC6EB076478253E8130E3BB14162915640F18012C0147D410280002FD3E8130E3080978426561636F6E

There is a web file in the document. After opening it, enter the MAC address and RAW to generate three lines of instructions.
image

Execute these three instructions in the sending area of the computer's debugging program (one line at a time, press Enter at the end of each line).
image
At this time, the simulation of this signal is completed, and the module can be powered on later (plug it into a charger or power bank).


[tip type="info" title="Note"]
The command to restore factory settings is: AT+FACTORY\r\n. If you mess it up, please use this command to reset it. @(Sly)
[/tip]
You can use apps like nRF Connect and Beacon Simulator to collect signal information. For advanced operations, please refer to the official documentation.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.