Changsha Sinocare Inc. TL8251-D1 Bluetooth Module User Manual Document No.: E-32600289 Version: A.
Changsha Sinocare Inc. History of File Changes Rev. A.1 A.2 A.3 A.4 Record of Changes Newly added 1. Multiplex the SWS pin with the DATAOUT pin. 2. Update the test data of power consumption. 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.
Changsha Sinocare Inc. Contents 1. 2. 3. 4. Overview....................................................................................................................................... 4 Function.........................................................................................................................................4 Block Diagram of System.............................................................................................................
Changsha Sinocare Inc. 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.
Changsha Sinocare Inc. 4. Definition of Pin and Description of Function 4.1 Definition of Module Pin 1 2 3 4 5 6 7 8 9 10 11 GND GND VCC RESET LINK VTH_LED TX_LED ADVINT_CTL SWS/DATAOUT RX 1V2 TX NC WAKEUP NC PC2 NC RX_LED NC GND GND VCC 22 21 20 19 18 17 16 15 14 13 12 Figure 2 Definition of Module Pin 4.
Changsha Sinocare Inc. DATAOUT(Note: 3) 6 7,8,9,10 1V2 NC PWR NC 14 RX_LED I/O 15 PC2 I/O 16 WAKEUP(Note: 2) I 17 TX O 18 RX I 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. Internally connect to the chip VDD1V2 There is no internal connection.
Changsha Sinocare Inc. 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 0 1 20 VTH_LED I/O 21 RESET I Broadcast Interval 200ms 1s Connection Interval Lat is 0 Lat is 8 The module low battery prompt port, pull up the internal 10 KΩ, and the initial state is at a high level.
Changsha Sinocare Inc. 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.
Changsha Sinocare Inc. 5. Initial Configuration Parameters Table 2 Initial Parameter List of Module Name of Parameter Name of Module Baud Rate Initial Parameter Sinocare 9600bps Data bit: 8 Stop bit: 1 No parity check Broadcast Interval 200ms Connection Interval Transmitting Power TX Latency Sending Time 150ms 0dbm 5ms Remarks The ADVINT_CTL pin needs to be pulled down. 6. UUID The data transparent transmission function is realized by SPP Service/Profile.
Changsha Sinocare Inc. 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.
Changsha Sinocare Inc. (2) AT+XXX\r\n, wherein XXX needs to satisfy the characters specified in AT commands such as {0~9 A~Z a~z space = : .}. If other characters appear, directly perform transparent transmission of the module; (3) AT+ nesting rules: The module can identify the closest AT command. For example: For AT+XXXAT+YYY\r\n, AT+YYY\r\n shall be identified, and AT+XXX shall be transparently transmitted; (4) \r\n nesting rules: The module can identify the closest \r\n. For example: For AT+XXX \r\nYYY\r
Changsha Sinocare Inc.
Changsha Sinocare Inc. The parameter of this command is the content between “=” and “\r\n”. Spaces are only allowed to appear in the middle of the name, they are not allowed to appear at the beginning and the ending, and the maximum length of the name cannot exceed 20 bytes; If the end of the set command contains multiple “\r\n”, the module will use the first “\r\n” as the end mark of the command, and the data following that will be transparently transmitted; Example: Set the name of module to be “Sinocare”
Changsha Sinocare Inc. getBR Purpose: Get the baud rate (bps) of the module Number of parameters: None Example: “AT+getBR\r\n” Response: “AT+ok 9600\r\n” (operate successfully, and the baud rate of device is 9600) “AT+err reason\r\n” (operation failed, see Section 7.
Changsha Sinocare Inc. setDBM Purpose: Set the transmitting power (dbm) of the module Number of Parameters: 1 Parameter Value: Parameter Value Meaning (Transmitting Power) 0 Set the transmitting power of the module to be 0dbm 4 Set the transmitting power of the module to be 4dbm -6 Set the transmitting power of the module to be -6dbm -23 Set the transmitting power of the module to be -23dbm Notes: The default value of transmitting power for the module is 0dbm.
Changsha Sinocare Inc. (3) The larger the broadcast interval, the lower the power consumption of the module during broadcast. After setting the broadcast interval successfully, you need to restart the broadcast. Example: The command to set the minimum broadcast interval of the module to be 80*625μs and the maximum broadcast interval to be 100*625μs is: “AT+setAdvInt 80 100\r\n” Response: “AT+ok\r\n” (operate successfully) “AT+err reason\r\n” (operation failed, see Section 7.
Changsha Sinocare Inc. Purpose: Get the current broadcast data Number of Parameters: None Notes: (1) If you set broadcast data to non-even-number of bytes, add 0 to the upper 4 bits of the set broadcast data for the got broadcast data. Example: “AT+getAdvData\r\n” (Get the current broadcast data of the module) Response: “AT+ok=data\r\n” (data is the current broadcast data, if the broadcast data is blank, return “AT+ok=NULL\r\n”) “AT+err reason\r\n” (operation failed, see Section 7.
Changsha Sinocare Inc. If the module is currently in a disconnected state, using the setConnInt command will return an error: AT+err notConn\r\n. Example: “AT+setConnInt 120 150 0 400\r\n” (The minimum connection interval of the module is set to be 150ms, the maximum connection interval is set to be 187.5ms, Latency is 0, and the connection timeout is 4s) Response: “AT+ok\r\n” (operate successfully) “AT+err reason\r\n” (operation failed, see Section 7.
Changsha Sinocare Inc. Example: “At+disconnect\r\n” (The module actively disconnects the connection) Response: “AT+ok\r\n” (operate successfully) “At+disconn\r\n” (The connection has been disconnected) “AT+err reason\r\n” (operation failed, see Section 7.6 for the specific value of reason) getStatus Purpose: Get the running status of the module Number of Parameters: None Notes: There are two running status of the device: broadcast and connected (“adv” and “connected”). Example: “AT+getStatus\r\n” (Get the
Changsha Sinocare Inc. Example: “AT+getVersion\r\n” (Get the firmware version of the module) Response: “AT+ok v0.1.0\r\n” (The current firmware version is v0.1.0) “AT+err reason\r\n” (operation failed, see Section 7.6 for the specific value of reason) getRemoteAddr Purpose: Get the Bluetooth address of the other party’s device currently connected Number of Parameters: None Example: “AT+getRemoteAddr\r\n” (Get the Bluetooth address of the other party’s device currently connected) Response: “AT+ok 62:FC:2E:
Changsha Sinocare Inc. “AT+ setConnIntEx 120 150 0 400\r\n” (The minimum connection interval of the module is set to be 150ms, the maximum connection interval is set to be 187.5ms, Latency is 0, and the connection timeout is 4s) Response: “AT+ok\r\n” (operate successfully) “AT+err reason\r\n” (operation failed, see Section 7.
Changsha Sinocare Inc. setMD5 Purpose: Set the MD5 code of the module Number of Parameters: 1 Parameters Value The length of the MD5 code is 16 bytes. It adopts the Hex format MD5 to express, e.g.: 00112233445566778899AABBCCDDEEFF Example: “AT+setMD5 00112233445566778899AABBCCDDEEFF\r\n” Set the MD5 code of the module to be: [0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF] Response: “AT+ok\r\n” (operate successfully) “AT+err reason\r\n” (operation failed, see Section 7.
Changsha Sinocare Inc. Response: “AT+ok gh_01234567\r\n” (operate successfully) “AT+err reason\r\n” (operation failed, see Section 7.6 for the specific value of reason) setAesKey Purpose: Set the AES128 key of the module Number of Parameters: 1 Parameters Value The key length is 128 bits, i.e. 16 bytes. It Key adopts the Hex format to express, e.g.: 00112233445566778899AABBCCDDEEFF Example: “AT+setAesKey 00112233445566778899AABBCCDDEEFF\r\n” Set the key to be: [0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88
Changsha Sinocare Inc. Example: “AT+ getDataDir\r\n” (Get the data direction) Response: “AT+ok 0\r\n” (Background) “AT+ok 2\r\n” (WeChat HTML page) “AT+err reason\r\n” (operation failed, see Section 7.6 for the specific value of reason) closePC Purpose: Turn off the module pairing code function, the pairing code function is closed by default. Number of Parameters: None Example: “AT+closePC\r\n” (Turn off the module pairing code function) Response: “AT+ok\r\n” (operate successfully) “AT+err reason\r\n” (op
Changsha Sinocare Inc. “AT+ok Status\r\n” (Status indicates the module calibration status. 0 indicates that it does not perform/pass the calibration test, and 1 indicates that it has passed the calibration test) Example: “AT+ok 1\r\n” (It has passed the calibration test) setVth Purpose: Set the low battery prompt threshold voltage of the module Number of Parameters: 1 Note: The valid range of the parameter is 200~300, and the actually set threshold voltage is the parameter value/100.
Changsha Sinocare Inc. openVth Purpose: Turn on the low battery prompt function of the module, and at the same time, turn on the battery capacity to get UUID. The low battery prompt function is in the OFF status by default. Number of Parameters: None Note: After the low battery prompt function of the module is turned on, the module detects the supply voltage according to the threshold set by setVth.
Changsha Sinocare Inc. Number of Parameters: None Example: “AT+getLED\r\n” Response: “AT+err reason\r\n” (operation failed, see Section 7.6 for the specific value of reason) “AT+ok Status\r\n” (Status indicates the state of RF data sending/receiving prompt function. 0 indicates the OFF status, and 1 indicates the ON status). Example: “AT+ok 0\r\n” (The RF data sending/receiving prompt function of the module is in the OFF status) 7.
Changsha Sinocare Inc. command code; 5. Lack of relevant characters between the parameter list and the command code; 6. Lack of relevant characters in the parameter list. (1) If there are errors in the command code and parameter list, only AT+err invalidCmd will be reported; (2) In the event that the AT command code received by the module is correct, it will report “AT+err proFailure” when the operation cannot be executed normally according to the AT command due to reasons of the module. 8.
Changsha Sinocare Inc. 9.1.1 Power Consumption with Long Broadcast Interval The power consumption with long broadcast interval refers to the power consumption measured when the ADVINT_CTL pin is floating. Table 4 Power Consumption of Module in Sleep Status Status Average Current Broadcast 36μA Connected 182μA Table 5 Power Consumption of Module in Wake-up Status Status Broadcast Connected Average Current 2.343 mA 2.925 mA 9.1.
Changsha Sinocare Inc. 2、The above current test instrument is Agilent 34460A, with the sampling speed of 400μs/time; 3、Single Bluetooth module shall be used in the test and the broadcast data is blank. The pairing code function, the low battery alarm function and the RF data sending/receiving prompt function are not turned on; 4、The ambient temperature is +25℃, and the supply voltage is 3.0V; 5、The measured average current is the average value of the current lasting for 20s when the module is stable. 9.
Changsha Sinocare Inc. FCC Radiation Exposure Statement This modular complies with FCC RF radiation exposure limits set forth for an uncontrolled environment. This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. If the FCC identification number is not visible when the module is installed inside another device, then the outside of the device into which the module is installed must also display a label referring to the enclosed module.
Changsha Sinocare Inc. 11. Module Size Side View 侧视图 Bottom View 底视图 9.96 0.94 Top顶视图 View 16.55 1.00mm 12.83 10.78 1 22 22 10.78 1 9.78 9.78 8.78 8.78 7.78 7.78 6.78 6.78 5.78 5.78 4.78 4.78 3.78 0.60mm 3.78 2.78 2.78 1.78 1.78 1.00mm 0.91 0.78 0.00 0.78 0.00 0.70 2.80 1.00 0.00 10.88 0.00 0.00 Unit: mm 单位:mm 误差:±0.2mm Error: ±0.
Changsha Sinocare Inc. 12. Identification Information 13.
Changsha Sinocare Inc.
Changsha Sinocare Inc.
Changsha Sinocare Inc.
Changsha Sinocare Inc.
Changsha Sinocare Inc.
Changsha Sinocare Inc.
Changsha Sinocare Inc.
Changsha Sinocare Inc.
Changsha Sinocare Inc.