[Hilo] Shall I use <AT+CGACT=1,1> before <AT+KTCPCNX>?


#1

[Hilo] Do I need to use <AT+CGACT=1,1> before using TCP service?

Answer: No. Normally <AT+CGACT=1,1> is just used for test: to check if the PDP context can be activated correctly. So No need to use <AT+CGACT=1,1> before <AT+KTCPCNX=1>.

The normal sequence for TCP service is like:
AT+CGATT=1
AT+KCNXCFG=0,“GPRS”,"internet.beeline.ru,“beeline”,“beeline”,“0.0.0.0”,“0.0.0.0”,“0.0.0.0”
AT+KTCPCFG=0,0,“server.ru”,“4444”
AT+KTCPCNX=1 —Activate the PDP context and then connect with the TCP server.