SIMCOM Network AT

From ElectroDragon
Jump to navigation Jump to search

APN Part

Excute Feedback Read Feedback Write Feedback Test Feedback Description
AT+CGNAPN +CGNAPN: 1,"ctnb" // +CGNAPN: 1,"shnbiot.shapn" - - - - - - 查询模块和网络协商注册时获取的 APN 信息 , 在 AT+CGDCONT=1,”IP”,””的方式下,从模块内部查询 APN 信息,仅供参考.
- - - - - - - - -
- - - - - - - - -
- - - - AT+CSTT=”***” OK - - Setup APN

Network

SIMCOM

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. 10.9.67.45 / 10.78.245.128
Main AT+CIPSTART="TCP","167.88.114.101","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+CGCLASS="B"
  • AT+CGDCONT=1,"IP","CMNET"
  • AT+CGATT=1
  • AT+CIPCSGP=1,"CMNET"
  • AT+CLPORT="TCP","2000" or AT+CLPORT="UDP","3000"
  • AT+CIPSTART="TCP","180.120.52.222","8086" or AT+CIPSTART="UDP","180.120.52.222","8086"
  • AT+CIPSEND
  • >
  • AT+CIPCLOSE=1
  • AT+CIPSHUT

General commands steps 2

  • AT+CGDCONT=1,"IP","CMNET" //Set APN
  • 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","113.81.233.65",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”,”yixin1111.eicp.net”,8080
  • AT+CIPSEND
  • >


AT+CENG?

  • [2020-04-03 23:22:43.797]: [I]-[ril.proatc] +CENG:1,1
  • [2020-04-03 23:22:43.800]: [I]-[ril.proatc] +CENG:0,"0041,18,99,460,00,28,4072,06,05,9785,255"
  • [2020-04-03 23:22:43.808]: [I]-[ril.proatc] +CENG:1,"26,13,460,0,19,4071,9785"
  • [2020-04-03 23:22:43.812]: [I]-[ril.proatc] +CENG:2,"22,13,460,0,55,4073,9785"
  • [2020-04-03 23:22:43.814]: [I]-[ril.proatc] +CENG:3,"614,15,460,0,11,0,9785"
  • [2020-04-03 23:22:43.818]: [I]-[ril.proatc] +CENG:4,"628,13,460,0,17,4043,9785"
  • [2020-04-03 23:22:43.823]: [I]-[ril.proatc] +CENG:5,"49,12,460,0,17,0,9785"
  • [2020-04-03 23:22:43.828]: [I]-[ril.proatc] +CENG:6,"37,10,460,0,52,0,9785"