TCP Connection issues with SIM2 in 8518

I am having a modem HL8518, which fails to connect to TCP server while using SIM2.
But it works fine on SIM1

Following are the commands used,

AT+CGDCONT=1,“IP”,“APN_NAME”\r // Setting APN Name.
AT+CGACT=1,1\r // Activating GPRS.
AT+KCNXCFG=1,“GPRS”,“APN_NAME”\r //Configuring GPRS configuration.
AT+KTCPCFG=1,0,“IP_ADDERSS”,PORT\r //Configuring IP & port.
AT+KTCPCNX=1\r //Connecting to IP address.

The connection fails as follows,

+KCNX_IND: 1,4,1

+KCNX_IND: 1,2,1,2,30

+KCNX_IND: 1,4,2

+KCNX_IND: 1,2,2,2,30


I have used same set of AT commands for SIM1. Its working fine. But fails on SIM2.
Does anyone know what could be the issue?


Which firmware are you using ?
Please make sure the your APN SIM2 with +CGDCONT and +KCNXCFG commands are corrected.
I can start TCP connection successfully with SIM2 on HL8518 FW BHL85xx. HL8518_TCP_SIM2.txt (8.5 KB)
Could you please share the your log file to me ?