NB-IoT Module Series
BC26 TCP/IP AT Commands Manual
BC26_TCP/IP_AT_Commands_Manual 5 / 28
Contents
About the Document ................................................................................................................................... 2
Contents ....................................................................................................................................................... 5
1 Introduction .......................................................................................................................................... 6
1.1. The Process of Using TCP/IP AT Commands ............................................................................ 6
1.2. Description of Data Access Modes ............................................................................................. 6
2 Description of TCP/IP AT Commands ............................................................................................... 8
2.1. Description of AT Commands ..................................................................................................... 8
2.1.1. AT+QIOPEN Open a Socket Service ............................................................................ 8
2.1.2. AT+QICLOSE Close a Socket Service ......................................................................... 9
2.1.3. AT+QISTATE Query Socket Service Status ............................................................... 10
2.1.4. AT+QISEND Send Text String Data ............................................................................ 11
2.1.5. AT+QIRD Retrieve the Received TCP/IP Data ........................................................... 12
2.1.6. AT+QISENDEX Send Hex String Data ....................................................................... 13
2.1.7. AT+QISWTMD Switch Data Access Modes ............................................................... 14
2.1.8. AT+QPING Ping a Remote Server ............................................................................. 15
2.1.9. AT+QNTP Synchronize Local Time with NTP Server ................................................. 16
2.1.10. AT+QIDNSGIP Get IP Address by Domain Name ...................................................... 17
2.1.11. AT+QICFG Configure Optional Parameters ............................................................... 18
2.1.12. AT+QIGETERROR Query the Last Error Code .......................................................... 19
2.2. Description of URC ................................................................................................................... 20
2.2.1. URC Indicating Connection Closed ............................................................................... 20
2.2.2. URC Indicating Incoming Data ...................................................................................... 20
2.2.3. URC Indicating Incoming Data Buffer Full ..................................................................... 21
3 Summary of <err> Codes .................................................................................................................. 22
4 Examples ............................................................................................................................................ 24
4.1. TCP Client Works in Buffer Access Mode ................................................................................ 24
4.1.1. Set up a TCP Client Connection and Enter into Buffer Access Mode ........................... 24
4.1.2. Send Data in Buffer Access Mode ................................................................................. 24
4.1.3. Receive Data from Remote Server in Buffer Access Mode .......................................... 25
4.1.4. Close a Connection ....................................................................................................... 26
4.2. TCP Client Works in Direct Push Mode .................................................................................... 26
4.2.1. Set up a TCP Client Connection and Enter into Direct Push Mode .............................. 26
4.2.2. Send Data in Direct Push Mode .................................................................................... 26
4.2.3. Receive Data from Remote Server in Direct Push Mode .............................................. 27
4.2.4. Close TCP Client ........................................................................................................... 27
4.3. Ping a Remote Server ............................................................................................................... 27
4.4. Synchronize Local Time ............................................................................................................ 28
4.5. Getting Last Error Code ............................................................................................................ 28