Hi, I’m using a HL8548 module and I’m trying to have https connection with coursera.org/ following the example in the at command interface guide(page 757-759). I have no idea what’s going wrong. This is what I’m doing:
First I entered the certificate - my browser is chorme. I entered to coursera.com, clicked on the lock icon, clicked on details, clicked on View certificate, moved to Details tab and clicked on “Copy to File”. Then I clicked “Next”, chose "Base-64 encoded X. 509 (.CER) and clicked Next and then saved the file.
I opened the file with Notepad++, and send the HL8548 the command “AT+KCERTSTORE=1,1874” because according to notepadd++ there are 1874 bytes in this file. I got a “CONNECT” message from the module and send the certificate. The module sent OK so it seems that the certifacate stored successfully.
Then I tried to connect coursera, here is my log:
at+kcnxcfg=1,“GPRS”,“MYAPN”;+KCNXTIMER=1,30,1,30;+KCNXPROFILE=1;+CGATT=1 (works well)
AT+CCLK=“16/06/19,14:30:54+03” (works well)
AT+KHTTPSCFG=1,"www.coursera.org ",2 (works well)
The module send CONNECT, and the I send:
Accept : text/html
If-Modified-Since : Saturday, 15-January-2000 14:37:11 GMT
–EOF–Pattern-- (the module return OK, mean it works well…)
and then I send :
It takes about 2-4 seconds but the module send:
What am I doing wrong?