LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 4 / 56
Contents
About the Document ................................................................................................................................... 3
Contents ....................................................................................................................................................... 4
Table Index ................................................................................................................................................... 7
1 Introduction .......................................................................................................................................... 8
1.1. Applicable Modules ...................................................................................................................... 8
1.2. Usage of TCP/IP AT Commands ................................................................................................. 9
1.3. Description of Data Access Modes ............................................................................................ 11
2 TCP/IP AT Commands ....................................................................................................................... 13
2.1. AT Command Introduction ......................................................................................................... 13
2.1.1. Definitions ....................................................................................................................... 13
2.1.1. AT Command Syntax ..................................................................................................... 13
2.2. Declaration of AT Command Examples ..................................................................................... 14
2.3. Description of TCP/IP AT Commands ........................................................................................ 14
2.3.1. AT+QICSGP Configure Parameters of a TCP/IP Context .......................................... 14
2.3.2. AT+QIACT Activate a PDP Context ............................................................................ 15
2.3.3. AT+QIDEACT Deactivate a PDP Context ................................................................... 16
2.3.4. AT+QIOPEN Open a Socket Service .......................................................................... 17
2.3.5. AT+QICLOSE Close a Socket Service ........................................................................ 19
2.3.6. AT+QISTATE Query Socket Service Status ................................................................ 20
2.3.7. AT+QISEND Send Data .............................................................................................. 22
2.3.8. AT+QIRD Retrieve the Received TCP/IP Data ........................................................... 24
2.3.9. AT+QISENDEX Send Hex String Data ....................................................................... 25
2.3.10. AT+QISWTMD Switch Data Access Mode .......................................................... 26
2.3.11. AT+QPING Ping a Remote Host ................................................................................. 27
2.3.12. AT+QNTP Synchronize Local Time with NTP Server .......................................... 29
2.3.13. AT+QIDNSCFG Configure Address of DNS Server ............................................ 30
2.3.14. AT+QIDNSGIP Get IP Address by Domain Name ............................................... 30
2.3.15. AT+QICFG Configure Optional Parameters ........................................................ 31
2.3.16. AT+QISDE Control Whether to Echo the Data for AT+QISEND ......................... 35
2.3.17. AT+QIGETERROR Query the Last Error Code ................................................... 35
2.4. Description of URCs .................................................................................................................. 36
2.4.1. +QIURC: "closed" Indicate Connection Closed .......................................................... 36
2.4.2. +QIURC: "recv" Indicate Incoming Data ..................................................................... 37
2.4.3. +QIURC: "incoming full" Indicate Incoming Connection Reaches the Limit ............... 37
2.4.4. +QIURC: "incoming" Indicate Incoming Connection ................................................... 37
2.4.5. +QIURC: "pdpdeact" Indicate PDP Deactivation ........................................................ 38
3 Examples ............................................................................................................................................ 39
3.1. Configure and Activate a Context .............................................................................................. 39
3.1.1. Configure a Context ....................................................................................................... 39
3.1.2. Activate a Context .......................................................................................................... 39