logo资料库

MC20 BLE指导手册.pdf

第1页 / 共29页
第2页 / 共29页
第3页 / 共29页
第4页 / 共29页
第5页 / 共29页
第6页 / 共29页
第7页 / 共29页
第8页 / 共29页
资料共29页,剩余部分请下载后查看
About the Document
Contents
Table Index
1 Introduction
2 BLE AT Commands Description
2.1. AT+QBTPWR Power on/off BT
2.2. AT+QBTLEADDR Read Local Address of BLE Device
2.3. AT+QBTGATSREG Register/Deregister a GATT Server
2.4. AT+QBTGATSS Add/Remove a Service
2.5. AT+QBTGATSC Add a Characteristic to an Existing Service
2.6. AT+QBTGATSD Add a Descriptor to an Existing Service
2.7. AT+QBTGATSST Start/Stop a Service
2.8. AT+QBTGATSL Start/Stop Advertising
2.9. AT+QBTGATSIND Send an Indication or Notification to a Client
2.10. AT+QBTGATSRSP Send a Response to a Client’s Read or Write Operation
2.11. AT+QBTFMPSREG* Register/Deregister an FMP Service
2.12. AT+QBTPXPSREG* Register/Deregister a PXP Service
2.13. AT+QBTGATADV Set Advertising Parameters
2.14. AT+QBTGATCPU Update Connection Parameters
2.15. AT+QBTGATSDISC Disconnect Server Actively
2.16. AT+QBTLETXPWR Set the Level of BLE Transmission Power
3 Description of URC
3.1. Notify the GATT Connection or Disconnection
3.2. Notify the GATT Client’s Write Request
3.3. Notify the GATT Client’s Read Request
3.4. Notify the PXP Connection*
3.5. Notify the PXP Link Loss Alert*
3.6. Notify the PXP Disconnection Alert*
3.7. Notify the FMP Connection or Disconnection*
3.8. Notify the FMP Client’s Write Request*
4 Appendix A References
MC20E BLE AT Commands Manual GSM/GPRS/GNSS Module Series Rev. MC20E_BLE_AT_Commands_Manual_V1.0 Date: 2017-05-17 www.quectel.com
GSM/GPRS/GNSS Module Series MC20E BLE AT Commands Manual 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 Email: info@quectel.com Or our local office. For more information, please visit: http://www.quectel.com/support/salesupport.aspx For technical support, or to report documentation errors, please visit: http://www.quectel.com/support/techsupport.aspx Or Email to: Support@quectel.com GENERAL NOTES QUECTEL OFFERS THE 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 THE INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF QUECTEL CO., LTD. TRANSMITTING, REPRODUCTION, DISSEMINATION AND EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THE CONTENT 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. 2017. All rights reserved. MC20E_BLE_AT_Commands_Manual Confidential / Released 2 / 29 Quectel Confidential
GSM/GPRS/GNSS Module Series MC20E BLE AT Commands Manual About the Document History Revision Date Author Description 1.0 2017-05-17 Miles MA Initial MC20E_BLE_AT_Commands_Manual Confidential / Released 3 / 29 Quectel Confidential
GSM/GPRS/GNSS Module Series MC20E BLE AT Commands Manual Contents About the Document ................................................................................................................................ 3 Contents .................................................................................................................................................... 4 Table Index ............................................................................................................................................... 5 1 Introduction ....................................................................................................................................... 6 2 BLE AT Commands Description ...................................................................................................... 7 AT+QBTPWR Power on/off BT ........................................................................................... 7 AT+QBTLEADDR Read Local Address of BLE Device ...................................................... 8 AT+QBTGATSREG Register/Deregister a GATT Server .................................................... 8 AT+QBTGATSS Add/Remove a Service ............................................................................ 9 AT+QBTGATSC Add a Characteristic to an Existing Service ............................................11 AT+QBTGATSD Add a Descriptor to an Existing Service ................................................ 12 AT+QBTGATSST Start/Stop a Service ............................................................................. 13 AT+QBTGATSL Start/Stop Advertising ............................................................................. 14 AT+QBTGATSIND Send an Indication or Notification to a Client ..................................... 15 AT+QBTGATSRSP Send a Response to a Client‟s Read or Write Operation .................. 16 AT+QBTFMPSREG* Register/Deregister an FMP Service .............................................. 17 AT+QBTPXPSREG* Register/Deregister a PXP Service ................................................. 17 2.1. 2.2. 2.3. 2.4. 2.5. 2.6. 2.7. 2.8. 2.9. 2.10. 2.11. 2.12. 2.13. 2.14. 2.15. 2.16. AT+QBTGATADV Set Advertising Parameters ................................................................. 18 AT+QBTGATCPU Update Connection Parameters .......................................................... 19 AT+QBTGATSDISC Disconnect Server Actively .............................................................. 19 AT+QBTLETXPWR Set the Level of BLE Transmission Power ....................................... 20 3 Description of URC ......................................................................................................................... 22 Notify the GATT Connection or Disconnection .................................................................... 22 Notify the GATT Client‟s Write Request .............................................................................. 22 Notify the GATT Client‟s Read Request .............................................................................. 23 Notify the PXP Connection* ................................................................................................ 24 Notify the PXP Link Loss Alert* ........................................................................................... 25 Notify the PXP Disconnection Alert* ................................................................................... 25 Notify the FMP Connection or Disconnection* .................................................................... 26 Notify the FMP Client‟s Write Request* .............................................................................. 26 3.1. 3.2. 3.3. 3.4. 3.5. 3.6. 3.7. 3.8. 4 Appendix A References .................................................................................................................. 27 MC20E_BLE_AT_Commands_Manual Confidential / Released 4 / 29 Quectel Confidential
GSM/GPRS/GNSS Module Series MC20E BLE AT Commands Manual Table Index TABLE 1: TERMS AND ABBREVIATIONS ........................................................................................................ 27 TABLE 2: FORMAT MAP OF PROPERTIES AND PERMISSION .................................................................... 27 TABLE 3: DIFFERENT CODING SCHEMES OF +CME ERROR: ....................................................... 28 MC20E_BLE_AT_Commands_Manual Confidential / Released 5 / 29 Quectel Confidential
GSM/GPRS/GNSS Module Series MC20E BLE AT Commands Manual 1 Introduction This document presents the BLE AT Commands Set for Quectel MC20E module. NOTE The AT commands, parameter meanings and URCs marked with “*” in this document are still under development. MC20E_BLE_AT_Commands_Manual Confidential / Released 6 / 29 Quectel Confidential
GSM/GPRS/GNSS Module Series MC20E BLE AT Commands Manual 2 BLE AT Commands Description 2.1. AT+QBTPWR Power on/off BT AT+QBTPWR Power on/off BT Test Command AT+QBTPWR=? Response: +QBTPWR: (list of supported s) Read Command AT+QBTPWR? Write Command AT+QBTPWR= OK Response: +QBTPWR: OK Response: OK If there is any error relating to ME functionality, response: +CME ERROR: Parameter 0 1 Off On 0 Power off 1 Power on Example AT+QBTPWR=1 //Power on BT. OK MC20E_BLE_AT_Commands_Manual Confidential / Released 7 / 29 Quectel Confidential
GSM/GPRS/GNSS Module Series MC20E BLE AT Commands Manual 2.2. AT+QBTLEADDR Read Local Address of BLE Device AT+QBTLEADDR Read Local Address of BLE Device Test Command AT+QBTLEADDR=? Read Command AT+QBTLEADDR? Response OK Response +QBTLEADDR: OK If there is any error relating to ME functionality, response: +CME ERROR: Parameter Local address of BLE device (e.g.: A662616202C3. Meaning: LAP: 0xA66261, UAP: 0x62, NAP: 0x02c3) Example AT+QBTLEADDR? +QBTLEADDR: A662616202C3 OK 2.3. AT+QBTGATSREG Register/Deregister a GATT Server AT+ QBTGATSREG Register/Deregister a GATT Server Test Command Response: AT+QBTGATSREG=? +QBTGATSREG: (list of supported s), Read Command AT+QBTGATSREG? OK Response: +QBTGATSREG: ,, … OK Write Command Response: AT+QBTGATSREG=, +QBTGATSREG: ,, MC20E_BLE_AT_Commands_Manual Confidential / Released 8 / 29 Quectel Confidential
分享到:
收藏