Sinocare TL8251-D1 User Manual

Sinocare TL8251-D1 User Manual

Bluetooth module

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TL8251-D1 and is the answer not in the manual?

Questions and answers

Summary of Contents for Sinocare TL8251-D1

  • Page 1 Changsha Sinocare Inc. TL8251-D1 Bluetooth Module User Manual Document No.: E-32600289 Version: A.4 Compiled by Date Date Reviewed by Date Approved by Date Page (1) of (42)
  • Page 2 Changsha Sinocare Inc. History of File Changes Rev. Record of Changes Prepared by Date Newly added Tang Chunlong December 6, 2019 1. Multiplex the SWS pin with the DATAOUT pin. Tang Chunlong March 20, 2020 2. Update the test data of power consumption.
  • Page 3: Table Of Contents

    Changsha Sinocare Inc. Contents 1. Overview............................4 2. Function............................4 3. Block Diagram of System......................4 4. Definition of Pin and Description of Function................5 Definition of Module Pin........................5 Description of Pin Function.......................5 5. Initial Configuration Parameters....................9 6. UUID.............................9 7. AT Command..........................9 Command Format..........................
  • Page 4: Overview

    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...
  • Page 5: Definition Of Pin And Description Of Function

    Changsha Sinocare Inc. 4. Definition of Pin and Description of Function 4.1 Definition of Module Pin RESET LINK VTH_LED TX_LED ADVINT_CTL SWS/DATAOUT WAKEUP RX_LED Figure 2 Definition of Module Pin 4.2 Description of Pin Function Table 1 Description of Module Pin Function...
  • Page 6 Changsha Sinocare Inc. (Note: 3) DATAOUT 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.
  • Page 7 Changsha Sinocare Inc. 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...
  • Page 8 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.
  • Page 9: Initial Configuration Parameters

    Changsha Sinocare Inc. 5. Initial Configuration Parameters Table 2 Initial Parameter List of Module Name of Parameter Initial Parameter Remarks Name of Module Sinocare 9600bps Data bit: 8 Baud Rate Stop bit: 1 No parity check The ADVINT_CTL pin Broadcast Interval 200ms needs to be pulled down.
  • Page 10: Restrictions

    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.
  • Page 11: Command Set Sent By The External Mcu To The Module

    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;...
  • Page 12: Description For Command Sent From External Mcu To Module

    Changsha Sinocare Inc. Offline configure the connection parameters setConnIntEx Get the currently connected parameter configuration getConnIntEx Set the WeChat authentication method setAuthMode Get the WeChat authentication method getAuthMode Set the MD5 code setMD5 Get the MD5 code getMD5 Set the device ID...
  • Page 13 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”: “AT+setName=Sinocare\r\n” Response: “AT+ok\r\n” (operate successfully) “AT+err reason\r\n”...
  • Page 14 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.6 for the specific value of reason) ...
  • Page 15 Changsha Sinocare Inc.  setDBM Purpose: Set the transmitting power (dbm) of the module Number of Parameters: 1 Parameter Value: Parameter Value Meaning (Transmitting Power) Set the transmitting power of the module to be 0dbm Set the transmitting power of the module to be 4dbm...
  • Page 16 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”...
  • Page 17 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.
  • Page 18 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...
  • Page 19 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...
  • Page 20 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...
  • Page 21 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”...
  • Page 22 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 to express, e.g.: 00112233445566778899AABBCCDDEEFF Example: “AT+setMD5 00112233445566778899AABBCCDDEEFF\r\n”...
  • Page 23 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 adopts the Hex format to express, e.g.:...
  • Page 24 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.
  • Page 25 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) ...
  • Page 26 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.
  • Page 27: Response Command Sent By Module To External Mcu

    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).
  • Page 28: Typical Application Circuit

    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;...
  • Page 29 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 μ...
  • Page 30: Electrical Specifications

    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;...
  • Page 31 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.
  • Page 32: Module Size

    Changsha Sinocare Inc. 11. Module Size Top View 顶视图 侧视图 底视图 Bottom View Side View 16.55 1.00mm 12.83 10.78 10.78 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...
  • Page 33: Identification Information

    Changsha Sinocare Inc. 12. Identification Information 13. Appendix Figure 4 Broadcast Current with Long Broadcast Interval in Sleep Status Figure 5 Connection Current with Long Broadcast Interval in Sleep Status Page (33) of (42)
  • Page 34 Changsha Sinocare Inc. Figure 6 Broadcast Current with Long Broadcast Interval in Wake-up Status Figure 7 Connection Current with Long Broadcast Interval in Wake-up Status Page (34) of (42)
  • Page 35 Changsha Sinocare Inc. Figure 8 Current with Short Broadcast Interval in Sleep Status and with Broadcast Interval of 50ms Figure 9 Current with Short Broadcast Interval in Sleep Status and with Broadcast Interval of 200ms Page (35) of (42)
  • Page 36 Changsha Sinocare Inc. Figure 10 Current with Short Broadcast Interval in Sleep Status and with Broadcast Interval of 500ms Figure 11 Current with Short Broadcast Interval in Sleep Status and with Broadcast Interval of 1000ms Page (36) of (42)
  • Page 37 Changsha Sinocare Inc. Figure 12 Current with Short Broadcast Interval in Sleep Status and with Connection Interval of 50ms Figure 13 Current with Short Broadcast Interval in Sleep Status and with Connection Interval of 150ms Page (37) of (42)
  • Page 38 Changsha Sinocare Inc. Figure 14 Current with Short Broadcast Interval in Sleep Status and with Connection Interval of 500ms Figure 15 Current with Short Broadcast Interval in Sleep Status and with Connection Interval of 1000ms Page (38) of (42)
  • Page 39 Changsha Sinocare Inc. Figure 16 Current with Short Broadcast Interval in Wake-up Status and with Broadcast Interval of 50ms Figure 17 Current with Short Broadcast Interval in Wake-up Status and with Broadcast Interval of 200ms Page (39) of (42)
  • Page 40 Changsha Sinocare Inc. Figure 18 Current with Short Broadcast Interval in Wake-up Status and with Broadcast Interval of 500ms Figure 19 Current with Short Broadcast Interval in Wake-up Status and with Broadcast Interval of 1000ms Page (40) of (42)
  • Page 41 Changsha Sinocare Inc. Figure 20 Current with Short Broadcast Interval in Wake-up Status and with Connection Interval of 50ms Figure 21 Current with Short Broadcast Interval in Wake-up Status and with Connection Interval of 150ms Page (41) of (42)
  • Page 42 Changsha Sinocare Inc. Figure 22 Current with Short Broadcast Interval in Wake-up Status and with Connection Interval of 500ms Figure 23 Current with Short Broadcast Interval in Wake-up Status and with Connection Interval of 1000ms Page (42) of (42)

Table of Contents