Hi,
I’m trying to send measured data every second by a HTTP-POST Message to a Server.
Establishing a TCP-Connetion by CIPSEND works OK, excepting the OutOfMemory errors.
I’ve read that the SIM900 module has a proper function to send HTTP-Post messages.
It is documented in “an_sim900_ip_application note_v1.00_draft.pdf” but without examples.
Until now I have tried very much without any success…
The conection is established well, every command gets an OK or positive answer.
How do I can debug a bit deeper?
Do anybody has a working code-snippet to help me?
Here some debug-console-text:
AT
Recieved : AT
OK
ATE1
Recieved : ATE1
OK
AT+CPIN=9257
Recieved : AT+CPIN=9257
OK
AT+CIPMUX=0
Recieved : AT+CIPMUX=0
OK
AT+CIPMODE=0
Recieved : AT+CIPMODE=0
OK
AT+CGDCONT=1,“IP”,“internet.t-mobile”,“0.0.0.0”,0,0
GC: 3msec 26556 bytes used, 37824 bytes available
Type 0F (STRING ): 288 bytes
Type 11 (CLASS ): 1212 bytes
Type 12 (VALUETYPE ): 816 bytes
Type 13 (SZARRAY ): 2268 bytes
Type 15 (FREEBLOCK ): 37824 bytes
Type 16 (CACHEDBLOCK ): 120 bytes
Type 17 (ASSEMBLY ): 11748 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 1B (DELEGATE_HEAD ): 144 bytes
Type 1D (OBJECT_TO_EVENT ): 72 bytes
Type 1E (BINARY_BLOB_HEAD ): 5868 bytes
Type 1F (THREAD ): 768 bytes
Type 20 (SUBTHREAD ): 96 bytes
Type 21 (STACK_FRAME ): 1932 bytes
Type 27 (FINALIZER_HEAD ): 96 bytes
Type 31 (IO_PORT ): 108 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 900 bytes
Recieved : AT+CGDCONT=1,“IP”,“internet.t-mobile”,“0.0.0.0”,0,0
OK
AT+CSTT=“internet.t-mobile”
Recieved : AT+CSTT=“internet.t-mobile”
ERROR
AT+HTTPINIT=?
Recieved : AT+HTTPINIT=?
Recieved : OK
AT+HTTPINIT
Recieved : AT+HTTPINIT
OK
AT+HTTPPARA?
GC: 3msec 27384 bytes used, 36996 bytes available
Type 0F (STRING ): 252 bytes
Type 11 (CLASS ): 1212 bytes
Type 12 (VALUETYPE ): 1152 bytes
Type 13 (SZARRAY ): 2712 bytes
Type 15 (FREEBLOCK ): 36996 bytes
Type 17 (ASSEMBLY ): 11748 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 1B (DELEGATE_HEAD ): 144 bytes
Type 1D (OBJECT_TO_EVENT ): 72 bytes
Type 1E (BINARY_BLOB_HEAD ): 5868 bytes
Type 1F (THREAD ): 768 bytes
Type 20 (SUBTHREAD ): 96 bytes
Type 21 (STACK_FRAME ): 2136 bytes
Type 27 (FINALIZER_HEAD ): 96 bytes
Type 31 (IO_PORT ): 108 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 900 bytes
Recieved : AT+HTTPPARA?
+HTTPPARA:
CID: 1
URL:
UA: SIMCOM_MODULE
PROIP: 0.0.0.0
PROPORT: 0
REDIR: 0
BREAK: 0
BREAKEND: 0
TIMEOUT: 120
CONTENT:
OK
AT+HTTPPARA=“CID”,1
Recieved : AT+HTTPPARA=“CID”,1
OK
AT+HTTPPARA=“URL”,“http://www.myserver.de/janitza/j.php”
GC: 3msec 27528 bytes used, 36852 bytes available
Type 0F (STRING ): 228 bytes
Type 11 (CLASS ): 1224 bytes
Type 12 (VALUETYPE ): 72 bytes
Type 13 (SZARRAY ): 4356 bytes
Type 15 (FREEBLOCK ): 36852 bytes
Type 17 (ASSEMBLY ): 11748 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 1B (DELEGATE_HEAD ): 144 bytes
Type 1D (OBJECT_TO_EVENT ): 72 bytes
Type 1E (BINARY_BLOB_HEAD ): 5868 bytes
Type 1F (THREAD ): 768 bytes
Type 20 (SUBTHREAD ): 96 bytes
Type 21 (STACK_FRAME ): 1728 bytes
Type 27 (FINALIZER_HEAD ): 96 bytes
Type 31 (IO_PORT ): 108 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 900 bytes
Recieved : AT+HTTPPARA=“URL”,“http://www.myserver.de/janitza/j.php”
OK
AT+HTTPDATA=5,20000
Recieved : AT+HTTPDATA=5,20000
DOWNLOAD
AT+HTTPACTION=1
Recieved :
OK
AT+HTTPDATA=69,20000
Recieved : AT+HTTPDATA=69,20000
DOWNLOAD
key=jts,1348000766;u1,230.1;u2,230.1;u3,230.1;i1,2221;i2,1222;i3,2221
GC: 3msec 26328 bytes used, 38052 bytes available
Type 0F (STRING ): 252 bytes
Type 11 (CLASS ): 1452 bytes
Type 12 (VALUETYPE ): 96 bytes
Type 13 (SZARRAY ): 4356 bytes
Type 15 (FREEBLOCK ): 38052 bytes
Type 17 (ASSEMBLY ): 11748 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 19 (REFLECTION ): 24 bytes
Type 1B (DELEGATE_HEAD ): 144 bytes
Type 1D (OBJECT_TO_EVENT ): 72 bytes
Type 1E (BINARY_BLOB_HEAD ): 4164 bytes
Type 1F (THREAD ): 768 bytes
Type 20 (SUBTHREAD ): 96 bytes
Type 21 (STACK_FRAME ): 1932 bytes
Type 27 (FINALIZER_HEAD ): 96 bytes
Type 31 (IO_PORT ): 108 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 900 bytes
Recieved :
OK
AT+HTTPACTION=1
Recieved : AT+HTTPACTION=1
OK
+HTTPACTION:1,601,0
Recieved :
+CREG: 2
+HTTPACTION:1,200,424
AT+HTTPREAD
Recieved : +HTTPACTION:1,200,424
AT+HTTPREAD
OK
Recieved :
+CREG: 1,“8905”,“B454”
GC: 3msec 23052 bytes used, 41328 bytes available
Type 0F (STRING ): 252 bytes
Type 11 (CLASS ): 1452 bytes
Type 12 (VALUETYPE ): 672 bytes
Type 13 (SZARRAY ): 4416 bytes
Type 15 (FREEBLOCK ): 41328 bytes
Type 17 (ASSEMBLY ): 11748 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 19 (REFLECTION ): 24 bytes
Type 1B (DELEGATE_HEAD ): 144 bytes
Type 1D (OBJECT_TO_EVENT ): 72 bytes
Type 1E (BINARY_BLOB_HEAD ): 252 bytes
Type 1F (THREAD ): 768 bytes
Type 20 (SUBTHREAD ): 96 bytes
Type 21 (STACK_FRAME ): 1932 bytes
Type 27 (FINALIZER_HEAD ): 96 bytes
Type 31 (IO_PORT ): 108 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 900 bytes
Recieved :
+CREG: 1,“8905”,“7C18”