Web BLE
Tool Introduction
Web BLE Introduction
The Web BLE is a tool that allows you to communicate with a BLE device through a web page (the PC acts as a BLE Master Device). The UART transmission diagram of the module board is as follows.
Usage Description
The Mars_B91 module board is powered up and ready to be used. Information about the module is obtained through the corresponding serial port commands, see the command format: TLSR9218_module_description.docx。
The steps to communicate with the Mars_B91 module board using Web BLE are as follows:
If you use the old version BDT tool to download, you need to download the firmware below to the local computer first. If you use [Web BDT], you can download the firmware into the chip online.
[Web BDT]: ./web_bdt.md#Environment preparation
- Download Mars_B91_BLE.bin to the module board.
- Open the website Web BLE
- Click "scan",connect the device with the name of "Telink_Mars_B91".
- When connecting for the first time, the connection needs to acquire permission from the system. When the device is connected, the LED on the module will light up, and the service, characteristic, and properties of the module will be printed automatically on the web side, and these information will be printed again by clicking "show".
-
Click "send" to send the hexadecimal data in the left input box to the module board, the received data will be printed through the UART port of the module board.
example:
Web BLE sends data: 12 34 56 78 UART receives data: FF 09 A0 07 52 15 00 12 34 56 78 Command parse: length: 09 data: 12 34 56 78
-
The module board will send the data received from the UART port to the Web BLE via the BLE, and the Web side will print the received data as well as the characteristic UUID.
example:
Send data to the UART of module board: 1c ff 05 00 11 22 33 44 55 Command parse: length: 0x0005 data: 01 02 03 04 05 UART returns data: FF 03 1C 07 00 Web BLE prints data: 00010203-0405-0607-0809-0a0b0c0d2b10 Received: 11 22 33 44 55
-
Click "clear" to clear the content on the page displayed, click "name" to print the name of the module board, and click "install" to install this web page as a native application on your computer.