HL8548 module https connectivity

i’m trying to connect to my remote service using https but getting NO CARRIER message for get

here are my AT commands that i’m using

for know i’m not using any ssl feature

just trying to connect to remote server using GPRS https

at
OK
at+kcnxcfg?
+KCNXCFG: 1,“GPRS”,“imis/internet”,"","",“IPV4”,“0.0.0.0”,“0.0.0.0”,“0.0.0.0”,0

OK
at+khttpscfg?
+KHTTPSCFG: 1,1,“https://vailwebservice.azurewebsites.net”,443,0,0,1,"","",1,0

OK
at+kcnxprofile?
+KCNXPROFILE: 1

OK
at+cgatt?
+CGATT: 1

OK
at+khttpsheader=1
CONNECT

OK
at+khttpsget=1,"/api/data/forall"
NO CARRIER

the same is working fine with only http AT command (AT+KHTTPGET). i’m getting response from my server

any one help me out with this issue

Hello,

It works my side, here’s my log for your reference:

ATI
HL8548-G
OK
ATI3
RHL85xx.5.5.25.1.201809102043.x6250_1
OK
AT+COPS?
+COPS: 0,0,“CHN-UNICOM”,2
OK
AT+KCNXCFG=1,“GPRS”,“3gnet”
OK
+KCNX_IND: 1,4,1
+KCNX_IND: 1,1,0
+KHTTPS_IND: 1,1
AT+KHTTPSCFG=1,“vailwebservice.azurewebsites.net
+KHTTPSCFG: 1
OK
+KHTTPS_IND: 1,1
at+khttpscfg?
+KHTTPSCFG: 1,1,“vailwebservice.azurewebsites.net”,443,0,0,1,"","",1,0
OK
at+khttpsheader?
OK
AT+KHTTPSGET=1,"/api/data/forall"
CONNECT
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 40
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Set-Cookie: ARRAffinity=22d2d3210a7589af37148e6d7a995cdd151b0aab6fb3ca8f22b3e497409b0569;Path=/;HttpOnly;Domain:443=vailwebservice.azurewebsites.net
Date: Mon, 01 Apr 2019 07:33:13 GMT
“Now Server Time is 4/1/2019 7:33:14 AM”–EOF–Pattern–
OK
+KHTTPS_IND: 1,3,449,200,“OK”

thanks for reply but problem still remains in my case can u suggest possible causes of that error

its working with http but not https.

also http post is throughing some error please see log

at+khttppost=1,"/api/data/message"
CONNECT
HTTP/1.1 502 Bad Gateway
Content-Type: text/html
Server: Microsoft-IIS/10.0
Date: Thu, 04 Apr 2019 06:28:53 GMT
Content-Length: 1477

502 - Web server received an invalid response while acting as a gateway o r proxy server.

Server Error

502 - Web server received an invalid response while acting as a gateway or proxy server.

There is a problem with the page you are looking for, and it cannot be dis played. When the Web server (while acting as a gateway or proxy) contacted the u pstream content server, it received an invalid response from the content server.

NO CARRIER

Hi sri50485,

Could you try the AT sequence as below? KHTTPSGET and KHTTPSPOST do work my side with your website.

ATI3
RHL85xx.5.5.25.1.201809102043.x6250_1
OK
AT+COPS?
+COPS: 0,0,“CHN-UNICOM”,2
OK
AT+KCNXCFG=1,“GPRS”,“3gnet”
OK
AT+KHTTPSCFG=1,“vailwebservice.azurewebsites.net
+KHTTPSCFG: 1
OK
+KCNX_IND: 1,4,1
+KCNX_IND: 1,1,0
+KHTTPS_IND: 1,1
AT+KHTTPSGET=1,"/api/data/forall"
CONNECT
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 41
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Set-Cookie: ARRAffinity=22d2d3210a7589af37148e6d7a995cdd151b0aab6fb3ca8f22b3e497409b0569;Path=/;HttpOnly;Domain:443=vailwebservice.azurewebsites.net
Date: Fri, 12 Apr 2019 02:13:57 GMT
“Now Server Time is 4/12/2019 2:13:57 AM”–EOF–Pattern–
OK
+KHTTPS_IND: 1,3,450,200,“OK”
AT+KHTTPSHEADER=1
CONNECT
//Content-Length: 4
//–EOF–Pattern–
OK
AT+KHTTPSHEADER?
+KHTTPSHEADER: 1,1
Content-Length: 4
OK
AT+KHTTPSPOST=1,"/api/data/message"
CONNECT
//AAAA
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 6
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Set-Cookie: ARRAffinity=22d2d3210a7589af37148e6d7a995cdd151b0aab6fb3ca8f22b3e497409b0569;Path=/;HttpOnly;Domain:443=vailwebservice.azurewebsites.net
Date: Fri, 12 Apr 2019 02:16:24 GMT
“AAAA”–EOF–Pattern–
OK
+KHTTPS_IND: 1,3,4,200,“OK”

please refer my log

+SIM: 1

+KSUP: 0

+GPSEVINIT: 1

+PBREADY
ati3
RHL85xx.5.5.22.0.201603171544.x6250_3

OK
at+cops?
+COPS: 0,0,“IDEA”,2

OK
at+kcnxcfg=1,“GPRS”,“imis/internet”
ERROR
at+kcnxcfg=1,“GPRS”,“imis/internet”
OK
at+khttpscfg=1,“vailwebservice.azurewebsites.net
+KHTTPSCFG: 1

OK

+KCNX_IND: 1,4,1

+KCNX_IND: 1,1,0

+KHTTPS_IND: 1,1
at+khttpsget=1,"/api/data/forall"
NO CARRIER

+KHTTPS_ERROR: 1,5
at+khttpsget=1,"/api/data/forall"
NO CARRIER

can you please suggest possible cases for getting this type of error

Hi,

Please set AT+KSSLCFG=0,3(TLS 1.2) after a powere cycle.
If set AT+KSSLCFG=0,1(TLS 1.0) then you wil see +KHTTPS_ERROR: 1,5.

i’m not able to use that at command its giving me error.
are there any other commands to be set before using it ?
at+ksslcfg=?
ERROR
at+ksslcfg=?
ERROR
at+ksslcfg?
ERROR
at+ksslcfg?
ERROR

i checked the list of supported commands by using AT+CLAC

its not available in that list

If so, could you check if you can set AT+KIPOPT=4,2 ?

If you have new SKU HL8548 module, then upgrade to latest FW(v5.5.25) as mine.

i’m not able to set as below:
at+kipopt=4,2
its supported but TSL version values range its accepting only 0 & 1

i tested at+kipopt=4,1/0
but still i’m not able get

may be i need to update firmware.

thankyou

TLS1.2 is implimented with 5.5.24.0.
I think you can upgrade from 5.5.22 to 5.5.24.0.
Please refer to my log tested with 5.5.24.0.
AT_LOG_5.5.24.0.201701121841.x6250_2.txt (2 KB)

are getting the same ?

its giving a pop-up window for running this file beacuse of security constarint.
so if run it anyway, will there be any issues further (w.r.t module or board using).

hey thank you,
After upgrading my firmware to 5.25 i’m able to solve my https connectivity issue.
tq :slightly_smiling_face: