GSM BT
Application Note
GSM/GPRS Module Series
Rev. GSM_BT_Application_Note_V1.2
Date: 2015-06-25
www.quectel.com
GSM/GPRS Module Series
GSM BT Application Note
GSM_BT_Application_Note Confidential / Released 1 / 47
Our aim is to provide customers with timely and comprehensive service. For any
assistance, please contact our company headquarters:
Quectel Wireless Solutions Co., Ltd.
Office 501, Building 13, No.99, Tianzhou Road, Shanghai, China, 200233
Tel: +86 21 5108 6236
Mail: info@quectel.com
Or our local office, for more information, please visit:
http://www.quectel.com/support/salesupport.aspx
For technical support, to report documentation errors, please visit:
http://www.quectel.com/support/techsupport.aspx
Or Email: Support@quectel.com
GENERAL NOTES
QUECTEL OFFERS THIS INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION
PROVIDED IS BASED UPON CUSTOMERS’ REQUIREMENTS. QUECTEL MAKES EVERY EFFORT
TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT
MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT
ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR
RELIANCE UPON THE INFORMATION. ALL INFORMATION SUPPLIED HEREIN IS SUBJECT TO
CHANGE WITHOUT PRIOR NOTICE.
COPYRIGHT
THIS INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF
QUECTEL CO., LTD. TRANSMITTABLE, REPRODUCTION, DISSEMINATION AND EDITING OF THIS
DOCUMENT AS WELL AS UTILIZATION OF THIS CONTENTS ARE FORBIDDEN WITHOUT
PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF DAMAGES. ALL RIGHTS
ARE RESERVED IN THE EVENT OF A PATENT GRANT OR REGISTRATION OF A UTILITY MODEL
OR DESIGN.
Copyright © Quectel Wireless Solutions Co., Ltd. 2015. All rights reserved.
Quectel
Confidential
GSM/GPRS Module Series
GSM BT Application Note
GSM_BT_Application_Note Confidential / Released 2 / 47
About the Document
History
Revision
Date
Author
Description
1.0
2015-01-13
Victor CHEN
Initial
1.1
2015-03-13
Victor CHEN
1. Added independence description of Bluetooth
function in Chapter 1.5
2. Added notes for operation in Chapter 2.1
3. Added pairing mode in Chapter 2.5
4. Added AT+QBTCONND in Chapter 3.2.14
1.2
2015-06-25
Hyman DING/
Ramos ZHANG
1. Added description of HFG in Chapter
3.2.12-3.2.18
2. Added AT+QBTHFGAUDIO in Chapter 3.2.27
3. Added Transparent Access Mode in SPP profile
4. Added example for Transparent Access Mode
5. Added HFP AT command and example
Quectel
Confidential
GSM/GPRS Module Series
GSM BT Application Note
GSM_BT_Application_Note Confidential / Released 3 / 47
Contents
About the Document ................................................................................................................................... 2
Contents ....................................................................................................................................................... 3
Table Index ................................................................................................................................................... 6
1 Introduction .......................................................................................................................................... 7
1.1. General Introduction ................................................................................................................ 7
1.2. BT Profiles ............................................................................................................................... 7
1.3. BT Address .............................................................................................................................. 7
1.4. AT Interface for BT Function ................................................................................................... 8
1.5. Independence of BT ................................................................................................................ 8
2 BT Operation ........................................................................................................................................ 9
2.1. Notes for Operation ............................................................................................................... 10
2.1.1. Number of Searched Devices ..................................................................................... 10
2.1.2. Number of Paired Devices .......................................................................................... 10
2.1.3. Special Function .......................................................................................................... 10
2.2. Power On/Off ......................................................................................................................... 10
2.3. Attribution Configurations ...................................................................................................... 11
2.3.1. Change BT Name ........................................................................................................ 11
2.3.2. Set BT Visibility............................................................................................................ 11
2.3.3. Read Address .............................................................................................................. 11
2.4. Scan BT Devices ................................................................................................................... 11
2.4.1. Scan until Timeout ....................................................................................................... 12
2.4.2. Cancel Scan ................................................................................................................ 12
2.5. Pair/Unpair BT Device ........................................................................................................... 12
2.5.1. Originated Pair SSP (Numeric Compare Mode) ......................................................... 13
2.5.2. Originated Pair PINCODE ........................................................................................... 13
2.5.3. Terminated Pair SSP (Numeric Compare Mode) ........................................................ 13
2.5.4. Terminated Pairing PINCODE ..................................................................................... 14
2.5.5. Unpair BT Device ........................................................................................................ 14
2.6. Get the Supported Profile ..................................................................................................... 14
2.7. Connect/Disconnect .............................................................................................................. 14
2.7.1. SPP Connect/Disconnect ............................................................................................ 15
2.7.1.1. Initiate Connection (Buffer Access Mode) ....................................................... 15
2.7.1.2. Initiate Connection (AT Command Mode) ....................................................... 15
2.7.1.3. Initiate Connection (Transparent Access Mode) ............................................. 15
2.7.1.4. Accept Connection (Buffer Access Mode) ....................................................... 15
2.7.1.5. Accept Connection (AT Command Mode) ....................................................... 16
2.7.1.6. Accept Connection (Transparent Access Mode) ............................................. 16
2.7.1.7. Initiate Disconnection (Buffer Access Mode and AT Command Mode) .......... 16
2.7.1.8. Initiate Disconnection (Transparent Access Mode) ......................................... 16
2.7.1.9. Disconnect Indication (Buffer Access Mode and AT Command Mode) .......... 17
2.7.1.10. Disconnect Indication (Transparent Access Mode) ......................................... 17
Quectel
Confidential
GSM/GPRS Module Series
GSM BT Application Note
GSM_BT_Application_Note Confidential / Released 4 / 47
2.7.2. HFP Connect /Disconnect ........................................................................................... 17
2.7.2.1. Initiate Connection with HF Device ................................................................. 17
2.7.2.2. Initiate Connection with AG Device ................................................................. 17
2.7.2.3. Accept Connection .......................................................................................... 17
2.7.2.4. Initiate Disconnection with HF Device ............................................................. 18
2.7.2.5. Disconnect Indication with HF Device ............................................................. 18
2.7.2.6. Disconnect Indication with AG device ............................................................. 18
2.7.3. Use BT Device Address to Connect SPP Directly ...................................................... 18
2.8. Query the Device Status Information .................................................................................... 19
2.9. SPP AT Command Mode ...................................................................................................... 20
2.10. SPP Buffer Access Mode ...................................................................................................... 20
2.10.1. Read Data ................................................................................................................... 20
2.10.2. Send Data .................................................................................................................... 21
2.11. SPP Transparent Access Mode ............................................................................................ 21
2.12. HFP Connection .................................................................................................................... 23
2.12.1. Module Acts as AG Device .......................................................................................... 23
2.12.2. Module Acts as HF Device .......................................................................................... 24
3 BT Commands Description ............................................................................................................... 25
3.1. AT Command Syntax ............................................................................................................ 25
3.2. Description of AT Command ................................................................................................. 25
3.2.1. AT+QBTPWR Power On/Off BT ............................................................................... 25
3.2.2. AT+QBTNAME Read/Write BT Device Local Name ................................................ 26
3.2.3. AT+QBTADDR Read BT Device Local Address ....................................................... 27
3.2.4. AT+QBTVISB Set BT Visibility .................................................................................. 27
3.2.5. AT+QBTSCAN Scan BT Devices ............................................................................. 28
3.2.6. AT+QBTSCANC Stop Scanning ............................................................................... 30
3.2.7. AT+QBTPAIR Pair BT Device ................................................................................... 30
3.2.8. +QBTIND: "pair" Pairing Indication ........................................................................... 30
3.2.9. AT+QBTPAIRCNF Pair Confirmation ....................................................................... 31
3.2.10. AT+QBTUNPAIR Delete Paired BT Device .............................................................. 32
3.2.11. AT+QBTSTATE Query the Device Status ................................................................. 32
3.2.12. AT+QBTGPROF Get the Supported Profile ............................................................. 33
3.2.13. AT+QBTCONN Connect BT Device ......................................................................... 34
3.2.14. AT+QBTCONND Use BT Device Address to Connect SPP Directly ....................... 35
3.2.15. +QBTIND: "conn" Connecting Indication .................................................................. 37
3.2.16. AT+QBTACPT Accept Connection ........................................................................... 37
3.2.17. AT+QBTDISCONN Disconnect ................................................................................ 38
3.2.18. +QBTIND: "disc" Disconnect Indication ................................................................... 39
3.2.19. AT+QSPPSEND Send Data ..................................................................................... 39
3.2.20. AT+QSPPREAD Read Data ..................................................................................... 41
3.2.21. +QBTIND: “recv” Incoming Data Indication .............................................................. 42
3.2.22. +QBTIND: "ring" Call Indication ................................................................................ 42
3.2.23. AT+QBTATA Answer Incoming Call .......................................................................... 43
3.2.24. AT+QBTATH Hung up Voice Call ............................................................................. 43
Quectel
Confidential