Sinocare TL8251-D1 User manual

Changsha Sinocare Inc.
Page (1) of (42)
TL8251-D1 Bluetooth Module
User Manual
Document No.: E-32600289
Version: A.4
Compiled by Date
Reviewed by
Date
Date
Approved by Date

Changsha Sinocare Inc.
Page (2) of (42)
History of File Changes
Rev. Record of Changes Prepared by Date
A.1 Newly added Tang Chunlong December 6, 2019
A.2 1. Multiplex the SWS pin with the DATAOUT pin.
2. Update the test data of power consumption. Tang Chunlong March 20, 2020
A.3
1. Modify the upper limit of the single transparent
transmission data from “216 bytes” to “214 bytes”.
2. Modify the adaptive software version from “V0.2
and above” to “V0.2.3”.
3. Modify the maximum length of user-defined data
of broadcast data in the setAdvData settings from “28
bytes” to “30 bytes”.
4. Add “Note: Point 3” in “4.2 Pin Function
Description” for the LINK to waken master MCU.
Chen Feng January 6, 2021
A.4
1. Add the FCC Warnings, and change the
information on the sign;
2. The parameter in “setDataDir” of the AT
command set is changed to “0” by default.
Li Sha March 31, 2021

Changsha Sinocare Inc.
Page (3) of (42)
Contents
1. Overview....................................................................................................................................... 4
2. Function.........................................................................................................................................4
3. Block Diagram of System............................................................................................................. 4
4. Definition of Pin and Description of Function..............................................................................5
4.1 Definition of Module Pin...................................................................................................................5
4.2 Description of Pin Function...............................................................................................................5
5. Initial Configuration Parameters................................................................................................... 9
6. UUID.............................................................................................................................................9
7. AT Command................................................................................................................................9
7.1 Command Format.............................................................................................................................. 9
7.2 Restrictions...................................................................................................................................... 10
7.3 Command Set Sent by the External MCU to the Module...............................................................11
7.4 Description for Command Sent from External MCU to Module....................................................12
7.5 Response Command Sent by Module to External MCU.................................................................27
7.6 Operation Error Code...................................................................................................................... 27
8. Typical Application Circuit.........................................................................................................28
9. Performance Indicators............................................................................................................... 28
9.1 Power Consumption.........................................................................................................................28
9.2 Electrical Specifications.................................................................................................................. 30
10. FCC Warnings....................................................................................................................30
11. Module Size....................................................................................................................... 32
12. Identification Information.................................................................................................. 33
13. Appendix............................................................................................................................33

Changsha Sinocare Inc.
Page (4) of (42)
Adaptive Software Version: V0.2.3
1. Overview
The Bluetooth module is a low-power single-mode transparent
transmission
Bluetooth module based on Bluetooth 5.0 (downward compatible with
Bluetooth
4.2) of the TLSR8251 design. This document is a direction for use of
the
Bluetooth module, including main functions, application scenarios, methods
of
use, logical structure, hardware interface and various indicators characteristics
of
the module.
2. Function
Communication function: The module can transparently transmit the data received by the
module serial port to the APP through the BLE wireless channel; and the APP can also
transparently transmit data through the module serial port, and the upper limit of single transparent
transmission data is 214 bytes.
Bluetooth function: Bluetooth adopts the BLE single mode to realize the transparent
transmission and interaction of data between the external device of the Bluetooth module and the
APP, with the transmitting power of 0dBm.
Configuration function: The external device can set (get) the parameters of the module
through AT command of the serial port.
3. Block Diagram of System
TL8251 Matching
Antenna
VCC
GND
TX
RX
LINK
WAKEUP
DATAOUT
ADVINT_CTL
XXX_LED
RESET
Figure 1 Block Diagram of System

Changsha Sinocare Inc.
Page (5) of (42)
4. Definition of Pin and Description of Function
4.1 Definition of Module Pin
GND
1
VCC
2
TX_LED
4LINK
3
SWS/DATAOUT
5
1V2
6
NC
7
NC
8
NC
9
NC
10
GND
11
GND 22
RESET 21
VTH_LED 20
ADVINT_CTL 19
RX 18
TX 17
WAKEUP 16
PC2 15
RX_LED 14
GND 13
VCC 12
Figure 2 Definition of Module Pin
4.2 Description of Pin Function
Table 1 Description of Module Pin Function
S/N of Pin Name of Pin Category Description
1,11,13,22 GND PWR Power ground (These pins have been
short-circuited on the module.)
2,12 VCC PWR Positive pole of power supply (These pins
have been short-circuited on the module.)
3 LINK(Note: 3) O
Module connection status indication (can be
used to waken the main control MCU):
0: The module is connected.
1: The module is not connected.
The internal 10KΩ is pulled up.
4 TX_LED I
Module RF data sending prompt port, the
internal 10 KΩ is pulled up, and the initial
state is at a high level.
When the module sends data to mobile devices
such as cellphones, the output frequency of
this pin is 250 Hz, and the duty ratio is of the
50% square wave. After the data transmission
is completed, stop outputting the square wave.
The waveform output function of this pin is
only specific to the modules that have enabled
the RF data receiving/sending prompt function.
For the method of starting and stopping RF
data receiving/sending prompt, please refer to
the AT command.
5 SWS/ I/O The internal 1MΩ is pulled up.

Changsha Sinocare Inc.
Page (6) of (42)
DATAOUT(Note: 3) SWS: Programming
DATAOUT: Data output indication from the
module serial port (can be used to waken the
main control MCU):
0: The module has data to send.
1: The module has no data to send.
6 1V2 PWR Internally connect to the chip VDD1V2
7,8,9,10 NC NC There is no internal connection.
14 RX_LED I/O
Module RF data receiving prompt port, the
internal 10 KΩ is pulled up, and the initial
state is at a high level.
When the module received the data from
mobile devices such as cellphones, the output
frequency of this pin is 250 Hz, and the duty
ratio is of the 50% square wave. After the data
transmission is completed, stop outputting the
square wave.
The waveform output function of this pin is
only specific to the modules that have enabled
the RF data receiving/sending prompt function.
For the method of starting and stopping RF
data receiving/sending prompt, please refer to
the AT command.
15 PC2 I/O Internally connect to the chip PC2.
16 WAKEUP(Note: 2) I
Module waken pin.
When the internal 10KΩ is pulled up, this pin
needs to be pulled down before sending serial
port data to the module, and the data is sent
after a delay of 5ms. During the sending
period, the level needs to keep low. After
sending, pull up this pin to make the module
go to sleep again.
17 TX O Module serial port sending pin, with the
internal 10KΩ being pulled up.
18 RX I Module serial port receiving pin, with the
internal 10KΩ being pulled up.

Changsha Sinocare Inc.
Page (7) of (42)
19 ADVINT_CTL(Note:
1) I
Broadcast interval time switch control port,
with the internal 1MΩ being pulled up, and the
initial state is of the high level. If there is no
requirement for hard adjustment of the
broadcast interval, connect this pin to the
ground.
Pin Level Broadcast
Interval
Connection
Interval
0 200ms Lat is 0
1 1s Lat is 8
20 VTH_LED I/O
The module low battery prompt port, pull up
the internal 10 KΩ, and the initial state is at a
high level.
When the module detects that the supply
voltage is equal to or lower than the threshold
voltage Vth, the output frequency of this pin is
2.5Hz, and the duty ratio is of 50% square
wave. The waveform output function of this
pin is only specific to the modules that have
enabled the low battery prompt function. For
the low battery prompt method, please refer to
the AT command.
21 RESET I
The main control MCU can reset the module
through this pin, and it is effective at the low
level.
The effective reset signal duration needs to be
equal to or longer than 50ms.
Notes:
1. When the module is powered on, the broadcast will be turned on;
2. When WAKEUP is not pulled down, the module can receive the data sent from the mobile
terminal.
3. If the Bluetooth module needs to use the uninterruptible power broadcast mode in the
application, you can use the LINK pin or DATAOUT to waken the main control MCU and exit
the sleep mode.
It is recommended to use the following methods:
1) If the main control MCU is in intermittent sleep mode, you can use the LINK pin to assist in
wakening the main control MCU;
2) If any IO port of the main control MCU can wake up the MCU, the LINK pin can be used to
connect with any IO port so as to waken the main control MCU;
3) If the main control MCU only supports external interrupt IO port to waken the MCU:
a) You can choose to connect the LINK pin to the external interrupt IO of the main control
MCU;

Changsha Sinocare Inc.
Page (8) of (42)
b) You can choose to connect the DATAOUT pin to the external interrupt IO of the main
control MCU;
4) When using the LINK pin to waken the main control MCU, it can support the function of
actively sending data by the MCU. If the connection time is too long, it will actively turn off
or disconnect Bluetooth and other applications. However, as the main control MCU was
woken up too early, the power consumption will increase accordingly. When using the
DATAOUT pin to waken the main control MCU, the main control MCU will be woken up
only when there is data sent to the MCU from the Bluetooth end. This mode requires the
APP end to cooperate with other specific scenario developments.

Changsha Sinocare Inc.
Page (9) of (42)
5. Initial Configuration Parameters
Table 2 Initial Parameter List of Module
Name of Parameter Initial Parameter Remarks
Name of Module Sinocare
Baud Rate
9600bps
Data bit: 8
Stop bit: 1
No parity check
Broadcast Interval 200ms The ADVINT_CTL pin
needs to be pulled down.
Connection Interval 150ms
Transmitting Power 0dbm
TX Latency Sending Time 5ms
6. UUID
The data transparent transmission function is realized by SPP Service/Profile. The UUID
related to SPP Service is as shown in the following table.
Type UUID Property
SPP Service 0xFFB0 NC
SPP Data Characteristic 0xFFB2 Write without Response, Notify
SPP Command Characteristic 0xFFB1 Write, Notify
SPP Data Characteristic is used to realize the transparent transmission of data. The properties
of characteristic are Write without Response and Notify. Before data transmission, the
property of Notify of SPP Data Characteristic shall be enabled, that is, the value of Client
Characteristic Configuration of SPP Data Characteristic shall be changed to 0x0001.
The relevant UUID for battery power acquisition is as shown in the table below.
Type UUID Property
Battery Service 0x180F NC
Battery Level 0x2A19 Read, Notify
The battery level between the corresponding voltage range of 0 and 100% is 1.8 to 3.3V.
Note: The battery power acquisition function needs to turn on the low battery prompt
function first. For details, see the openVth command. Otherwise, the returned power is
100%.
7. AT Command
7.1 Command Format
The command data of the module is ASCII code. It consists of four parts, as shown in the
figure below.

Changsha Sinocare Inc.
Page (10) of (42)
Start mark of the command Command code Parameter list End mark of the command
Start mark of the command: AT+
These three consecutive characters are used to indicate the beginning of a command packet.
Command code
It is the specific identification of the command, and is used to distinguish different commands.
a) Characters irrelevant to the command code are not allowed to appear between the characters of
the command code;
b) Spaces or other characters irrelevant to the command code are not allowed to appear between
the start mark of the command and the command code.
Parameter list
Different commands have different parameters. The parameters of the command need to be
separated by spaces. The command code and the parameter list also need to be separated by
spaces.
a) Except for the command code with special requirements or instructions (for example, “=” must
be used between the setName parameter list and the command code), the command code and the
parameter list must be separated by a space;
b) For the multi-parameter command code, the parameters must be separated by a space (such as
setConnlnt);
c) Unless there are special requirements or instructions (such as setName) for the single-parameter
command code, no spaces or characters irrelevant to the parameter are allowed to appear in the
parameter.
End mark of the command: \r\n
Two characters (Enter, line break) are used to indicate the end of a command packet.
If the command code is a setting type (setXXXX) command, the command end mark must closely
follow the parameter list, and no characters irrelevant to the parameter are allowed to appear
between the command end mark and the parameter list;
If the command code is a getting type (getXXXX) command, the command end mark must closely
follow the command code.
Example: Set the baud rate of the module to be 9600: “AT+setBR 9600\r\n”
Wherein, “AT+” is the start mark of the command;
“SetBR” is the command code, which indicates the operation of switching the baud rate;
“9600” is a parameter, which indicates that the baud rate for the serial port of the
module is set to be 9600bps;
“\r\n” is the end mark of the command.
7.2 Restrictions
(1) A complete command shall be sent to the module continuously. If the command cannot be sent
continuously and becomes multiple packets to be sent to the module, the data interval between
packets must be less than 80ms and the total frame reception time shall be less than 500ms. If the
total frame reception time expires, the received data is transparently transmitted;
Table of contents
Popular Control Unit manuals by other brands

Festo
Festo Compact Performance CP-FB6-E Brief description

Elo TouchSystems
Elo TouchSystems DMS-SA19P-EXTME Quick installation guide

JS Automation
JS Automation MPC3034A user manual

JAUDT
JAUDT SW GII 6406 Series Translation of the original operating instructions

Spektrum
Spektrum Air Module System manual

BOC Edwards
BOC Edwards Q Series instruction manual

KHADAS
KHADAS BT Magic quick start

Etherma
Etherma eNEXHO-IL Assembly and operating instructions

PMFoundations
PMFoundations Attenuverter Assembly guide

GEA
GEA VARIVENT Operating instruction

Walther Systemtechnik
Walther Systemtechnik VMS-05 Assembly instructions

Altronix
Altronix LINQ8PD Installation and programming manual





