Qsslopen & bg96

Hi there on a BG96 I connect on a iot platform.

The weird thing is that the connection is opened in 2seconds, 30 seconds even 80s.

AT+QSSLOPEN=1,1,1,"api.tago.io",443,2

I know that the maximum response time is 150s, but why those fluctuations? Can I make some improvements here?

Thanks!

Hi @Viorel

Thanks depend on network(good or bad?)/ DNS parse/ TCP/SSL handshake.
It’s hard to say the root cause without any modem side log.

@Linkin-Q
How can I get those logs?

Usually I stay in CAT-M1 if the signal is weak I switch to edge.

I have to use QCOM to show the used commands or is something more?

Thanks!

@Viorel
Tool license limited for modem log, so you can check AT+QCSQ or AT+QENG=“servingcell” to check network signal.

Hello @Linkin-Q

this is my debug information from the Arduido that connects to BG96. It’s slightly edited

12:41:50.982 -> "AT+CSQ

12:41:50.982 -> +CSQ: 20,99
12:41:50.982 -> 
12:41:50.982 -> OK"
12:41:51.678 -> +QCSQ
12:41:51.678 -> +QCSQ
12:41:51.725 -> ok
12:41:51.725 -> "AT+QCSQ

12:41:51.725 -> +QCSQ: "CAT-M1",-74,-103,116,-14
12:41:51.725 -> 
12:41:51.725 -> OK"
12:41:52.429 -> +COPS?
12:41:52.429 -> +COPS?
12:41:52.474 -> ok
12:41:52.474 -> "AT+COPS?

12:41:52.474 -> +COPS: 1,0,"orange orange",8
12:41:52.474 -> 
12:41:52.474 -> OK"
12:41:53.173 -> +QNWINFO
12:41:53.221 -> +QNWINFO
12:41:53.221 -> ok
12:41:53.221 -> "AT+QNWINFO

12:41:53.221 -> +QNWINFO: "CAT-M1","22610","LTE BAND 3",1600
12:41:53.221 -> 
12:41:53.221 -> OK"
12:41:53.453 -> +CEREG=2
12:41:53.453 -> +CEREG=2
12:41:53.499 -> ok
12:41:53.499 -> "AT+CEREG=2

12:41:53.499 -> OK"
12:41:53.872 -> +CEREG?
12:41:53.918 -> +CEREG?
12:41:53.965 -> ok
12:41:53.965 -> "AT+CEREG?

12:41:53.965 -> +CEREG: 2,1,"edited***","edited***",8
12:41:53.965 -> 
12:41:53.965 -> OK"
12:41:54.057 -> Registration(GPRS) result is: 
12:41:54.057 -> 1
12:41:54.105 -> Ck PDP activation
12:41:54.290 -> ok
12:41:54.290 -> "AT+QIACT?

12:41:54.290 -> +QIACT: 1,1,1,"10.88.0.36"
12:41:54.290 -> 
12:41:54.290 -> OK
12:41:54.290 -> "
12:41:54.383 -> checkPDPActivated _SSLMODE: 
12:41:54.430 -> 1
12:41:54.430 -> PDP activated. LOCAL IP: "10.88.0.36"
12:41:54.430 -> checkPDPActivated responce is: 
12:41:54.477 -> 1
12:41:54.477 -> socketOpen - de la PROCESS IP
12:41:54.570 -> Socket Open >>> socketOpen _SSLMODE: 
12:41:54.617 -> 1
12:41:54.662 -> AT+QSSLOPEN=1,1,1,"api.tago.io",443,2
12:42:15.793 -> *DELAY SSL connection 21103[ms]*
12:42:15.840 -> CONNECT OK

After making some GET and POST request the socket is closed.
After 2 minutes at reconnect I stay 8s, sometimes 22s ( in this session).

This is how I setup SSL:

				AT+QSSLCFG="sslversion",1,4"));// SSL version ALL      
				AT+QSSLCFG="ciphersuite",1,0xFFFF"));// cipher support ALL      
				AT+QSSLCFG="seclevel",1,0"));// Auth mode NONE [no server, no client]       
				AT+QSSLCFG="ignorelocaltime",1,1"));// certificate expired time IGNORE