From ElectroDragon
Revision as of 02:07, 28 May 2020 by Chao (talk | contribs) (Created page with "== Network Check == * AT+CGNAPN // check APN ==Network == SIMCOM {| class="wikitable sortable" |- ! Steps || read / write !! Header text !! Successful |- | Main || AT+CGATT?...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Network Check

  • AT+CGNAPN // check APN



Steps read / write Header text Successful
Main AT+CGATT? / AT+CGATT=1 Check the state of GPRS attachment +CGATT:1
Main / enquiry AT+CSTT? / AT+CSTT="CMNET" AT+CSTT? : Check available APN; AT+CSTT ="cmnet”: Set APN to CMNET Example
Main AT+CIICR Bring up wireless connection with GPRS Example
enquiry AT+CIFSR Get local IP address e.g. /
Main AT+CIPSTART="TCP","","8100" connect to TCP server CONNECT OK
Main AT+CIPSEND (HEX format) Tell module to send data, end up with 1A as end >
Main > 41 41 41 1A data SEND OK
Optional AT+CIPCLOSE=1 close current TCP/UDP connection OK
enquiry AT+CIPSTATUS check module current connection status
Optional AT+CIPSHUT close mobile scene

Other Examples

Command Description Return Result
AT+CGCLASS support type B and CC, - -
AT+CGDCONT set PDP, e.g. AT+CGDCONT=1,"IP","CMNET", sign 1, internet protocol (IP) and connecting port CMNET - -
AT+CIPCSGP set CSD or GPRS link mode, AT+CIPCSGP=1,"CMNET", set GPRS link and connecting port CMNET - -
AT+CLPORT set TCP local port, AT+CLPORT="TCP","8888", port at 8888 - -

General command steps

  • AT+CGATT=1
  • AT+CLPORT="TCP","2000" or AT+CLPORT="UDP","3000"
  • AT+CIPSTART="TCP","","8086" or AT+CIPSTART="UDP","","8086"
  • >

General commands steps 2

  • AT+CSQ //Query the quality of the network signal. The first parameter is the maximum network signal quality of 31. The larger the value, the stronger the network signal.
  • AT+CREG? //Query the network registration status, where the second parameter is 1 to indicate that the registration has been successful.
  • AT+CIPMODE=1 //Set TCP/IP mode
  • AT+CSOCKSETPN=1 //Select TCP/IP application mode
  • AT+CIPMODE=0 //Select TCP/IP application mode
  • AT+NETOPEN //on mode
  • AT+CIPOPEN=0,"TCP","",2317 //Set the TCP, IP and port numbers to establish a TCP/IP connection
  • AT+CIPSEND=0,9, //Send 9 characters for the specified data, return > to start sending 9 characters.
  • AT+CIPCLOSE=0, //Close the TCP connection
  • AT+NETCLOSE, //Close the network

Working with internet domain, and receive data

  • AT+CIPMUX=0 // single link mode
  • AT+CIPRXGET=1 // manually get data, set at 0 to automatically retrieve and display data.
  • AT+CIPQRCLOSE=1 // speed up remote disconnection?
  • AT+CIPMODE=0 // not transparent TCPIP mode
  • AT+CIPSTART=”TCP”,””,8080
  • >