Go Down

Topic: SIM5320e HTTPS Stack, can't make successful GET request (Read 307 times) previous topic - next topic

surrealis_mac

Dear All,

I'm currently using a SIM5320e 3G development board with CoolTerm and a PL203 serial to USB connector. The aim is once I can make a successful HTTP/HTTPS GET request I can then incorporate it into a project that will transmit data from a remote sensor to the internet.

However my issue is I have yet to make a successful GET request. I have searched the internet and there is not a vast amount of info on this board, besides the data sheet, which is quite complex. I'm sure I'm missing a crucial step but can't see what it is.

Here is the (typical) terminal output

Code: [Select]
AT

OK // Module is working
AT+CGSOCKCONT=1,"IP","giffgaff.com"

OK // Setting the APN I am using Giffgaff UK sim card, this is the APN
AT+CSOCKSETPN=1

OK // Not sure what this step is, but seems to need to happen according to the application note
AT+CIPMODE=0

OK // Same again
AT+NETOPEN=,,1

Network opened

OK // Opens the network connection via GPRS
AT+IPADDR

+IPADDR: 10.146.130.153

OK // Appears to successfully get a network address
AT+CHTTPSSTART

OK // Starts the HTTPS/HTTP stack
AT+CHTTPSOPSE="www.iforce2d.net", 80,1

OK // Opens a connection to the host on port 80
AT+CHTTPSSEND=23    // Request to send 23 chars of data

>GET /test.php HTTP/1.1    // Web page exists, displays the time in UTC

OK  // Says OK
AT+CHTTPSSEND

OK 

+CHTTPSSEND: 0  // Says sent with no issue
AT+CHTTPSSEND?

+CHTTPSSEND: 0  // However has sent no chars!

OK

+CHTTPSNOTIFY: PEER CLOSED
AT+CHTTPSRECV?

+CHTTPSRECV: LEN,0  // Hasn't received anything!

OK



I'm sure it must be something I'm forgetting to do, but I just can't spot it.

Thanks in advance,

Will.


hazel77744

Hi,

Please try:

AT+CHTTPSSEND=26    // GET /test.php HTTP/1.1\r\n\r\n = 22+4=26

>GET /test.php HTTP/1.1    // Instead of pressing Enter, do ctrl+J (\r) ctrl+M (\n) ctrl+J (\r) ctrl+M (\n)

Hope it helps.

Hazel

Go Up