Hello mates!
I´m on a project which will be my final paper at University!
First off, my intention is to get some data, which my Mega will receive via Xbee by another arduino, and transmit it via GPRS to a webserver. The first part is being handled by a friend of mine, so I will not discuss about it here. He developed the .aspx page which will be responsible for “getting the data”. In other words, everytime I acess the page xxxx/putenergy.aspx?idmed=2&watts=[value] and change the field [value] to the desired value, the latter will be inserted in our sql database.
The main idea would be making the module “visit” that page and everything would be fine, so I suppose I could simply do a POST, isn´t that right?
However, I´m encountering difficulties to get this shield working as I want! There are three problems so far.
1st - I can´t connect using AT+SDATACONF host value as a “www.xxx” name like the example given in the TCP/IP APP Note from the oficial site. It makes the module to reboot.
Starting SM5100B Communication...
ôÐÐ
+SIND: 1
+SIND: 10,"SM",1,"FD",1,"LD",1,"MC",1,"RC",1,"ME",1
+SIND: 11
+SIND: 3
+SIND: 4
AT+CGATT?
+CGATT: 1
OK
AT+CGDCONT=1,"IP","zap.vivo.com.br"
OK
AT+CGPCO=0,"vivo","vivo", 1
OK
AT+CGACT=1,1
OK
AT+SDATACONF=1,"TCP","www.google.com",80
ÐÐÐèÐ
+SIND: 1
+SIND: 10,"SM",1,"FD",1,"LD",1,"MC",1,"RC",1,"ME",1
+SIND: 11
+SIND: 3
+SIND: 4
2nd - I can solve the above problem by connecting via IP adress. The IP below is from the server which is holding that page which I mentioned earlier.
Although I can connect and the server seems to acknowledge the data, I never get the +STCPD:1 confirmation.
I don´t know if the sintax of the POST command in the SSTRSEND is right!
Starting SM5100B Communication...
èÐÐ
+SIND: 1
+SIND: 10,"SM",1,"FD",1,"LD",1,"MC",1,"RC",1,"ME",1
+SIND: 11
+SIND: 3
+SIND: 4
AT+CGATT?
+CGATT: 0
OK
AT+CGATT=1
OK
AT+CGATT?
+CGATT: 1
OK
AT+CGDCONT=1,"IP","zap.vivo.com.br"
OK
AT+CGPCO=0,"vivo","vivo", 1
OK
AT+CGACT=1,1
OK
AT+SDATACONF=1,"TCP","187.73.33.212",80
OK
AT+SDATASTART=1,1
OK
AT+SDATASTATUS=1
+SOCKSTATUS: 1,1,0102,0,0,0
OK
AT+SSTRSEND=1,"POST /putenergy.aspx?idmed=2&watts=1042 HTTP/1.0"
OK
AT+SDATASTATUS=1
+SOCKSTATUS: 1,1,0102,48,48,0
OK
3rd - Last but not least. This one is really tricky. It started to happen out of the blue, and now i just can´t get it to happen again. Using the same set of commands and configurations from the 2nd problem, after sending the data, the module would return a CME Error:33 - which does NOT exist in the manual! :~
Could you guys shed light on my problem? I´m really in need of some help here!
I´ve been searching for the solution to my problems, but I can´t seem to find it! Found a lot of unanswered topics about the subject!!
I do accept suggestions on others GPRS modules to use, and which, you guys already managed to do what I want to do!
Cheers!