Location:Home >> Solutions >> Other >> Internet of Things
Update time:2020-04-01 Pageviews:843
1. Features
This module is a BLE transparent transmission module designed based on the Bluetooth Low Energy standard published by Bluetooth SIG. This module is controlled through the serial port, and also supports wireless control through the host side. Users do not need to pay attention to complex Bluetooth protocol application software, and can develop standard low-power Bluetooth products in a short time. After the connection is established through serial control, two-way data transmission can be realized between the BLE host and the slave.
Functional Overview:
1. Support fully transparent transmission
2. Support serial port command to modify and get module settings
3. Power consumption and performance can be independently weighed and selected
4. The fastest one-way communication rate can exceed 3kBytes/s
5. Supports serial large data packets up to 200 bytes, and the module independently buffers and sub-packages;
6. The serial port can configure (or read) parameters such as baud rate, device name, and broadcast interval.
7. Abundant I/O control and status indication functions, simpler and real-time control module and acquisition of module status.
8. Simpler software and hardware design requirements
2. Product hardware layout and interface description
1. Module pin layout
The module pin layout is shown in Figure 2-1
2. List of pin functions
The pin functions are shown in the table below
Three, hardware design
The simple application connection circuit diagram of the module is shown in Figure 3-1
Fourth, the module size chart
The module size is shown in Figure 4-1
Five, module transparent transmission protocol
1.1. AT command configuration
AT+ command refers to the command set used by the user to transfer commands to the module through the UART in the command mode. The details will be described later.
Explain the usage format of AT+ command.
After the power-on is successful, the module can be set via UART.
The default UART port parameters of the module are: baud rate 115200, no parity, 8 data bits, 1 stop bit.
1.2. Overview of AT commands
AT+ commands can be input directly through serial debugging programs such as CRT, AT+ commands use commands based on ASCII codes
The format of the command is as follows:
1. Format description
<>: Indicates the part that must be included
[]: Indicates optional part 2. Command message
AT+[op][para-1,para-2,para-3,para-4…]
AT+: command message prefix;
[op]: instruction operator, which specifies parameter setting or query;
"=": Indicates parameter setting
"?": Indicates query
[para-n]: Input for parameter setting, not needed for query;
: End character, carriage return, ASCII code 0X0D;
: End character, line feed, ASCII code 0X0A;
2. Response message
+[op] [para-1,para-2,para-3,para-4…]
+: response message prefix;
RSP: Response string, including:
"OK": Indicates success
"ERR": Indicates failure
[para-n]: Return parameters or error code when querying
: ASCII code 0x0d;
: ASCII code 0x0a;
3. Instructions
General instructions:
NAME query/set the name of the module
MODE Query/set the mode of the module
MAC query the MAC address of the module
CIVER query software version number
UART Set/Query module serial port parameters
Z control module restart
+++ Enter transparent transmission mode
AUTO+++ The query/setting module automatically enters the transparent transmission mode after being connected
FLASH stores the default configuration parameters to flash, and the specific parameters are explained later.
SLEEP sets the chip to start/stop sleep.
Connection instructions:
LINK query module connection status
SCAN Search surrounding slaves
DISCONN set to disconnect the current connection
CONN actively connects to the peer device scanned by SCAN
CONNADD Set the default peer MAC address of the active connection
Special feature:
UUID setting/query module
UUID POWER Query/set the transmit power of the radio frequency
ADVINT query/set broadcast interval
Copyright ©2021 Shenzhen Hongxinyuan Industrial Technology Co., Ltd. All Rights Reserved.