Discussion in "Embedded GSM Development" started by    Sudhakar    Oct 6, 2008.
Mon Oct 06 2008, 10:32 pm
#1
Hi All,
I am working on a project where I need to monitor an equipment status remotely & upload the same to a web server hosted on internet.
For this, I have already designed a Atmel 89S52 with as RS232 interface to a GSM modem module.
Now the workflow is as follows,
1. Sensor connected to the microcontroller board will sense status of the equipment
2. Microcontroller pulls this info & need to push it to the GSM/GPRS modem module
3. GSM/GPRS module need to call the web server URL in following format,
http://mywebserver/datadump.php?device=motor&status=on
(device=motor&status=on are the 2 variables I am capturing & need to push the same to my server)

Now I am struck at the place where I am trying to push the data from my GPRS module in the above format since there is no AT command reference available for the same.

Please help me to write the AT commands for the same. Or also let me know if there are any other alternative method to push these strings to the web server in any other formats.

Here is the AT command sequence I am trying,
-----------------------------------------------------------
AT+CSTT="www","",""
OK
AT+CIICR
OK
AT+CIFSR
AT+CIPSTART=”TCP”,”172.186.142.112”,”80”
==>Here I get Error, If I get Ok than I am supposed to continue further. But even the below commands also does not provide me the facility to push the data in the format I need<== I need help here!!
CONNECT OK
AT+CIPSEND
> test APN // Ctrl Z
-----------------------------------------------------------------

Thanks in advance to all for help

Regards,
Sudhakar
Tue Oct 07 2008, 01:16 am
#2
What model of GSM modem is it ?
Can you post its data sheet/manual or a link to it.


AT+CIPSTART=”TCP”,”172.186.142.112”,”80”
==>Here I get Error,

Sudhakar.YG



What is the error code ?



[ Edited Tue Oct 07 2008, 03:43 am ]
Tue Oct 07 2008, 11:29 am
#3
Hi,
I am sorry, that I forgot to mention the modem model & make.
Here is it. I am using the SIM300(V7.03) modem module .
The AT commands list I have mentioned above is a sample method to push the data which i got by googling.

My intension is to push the data directly using the web URL as mentioned.

I need help in doing the same as I am not that familiar with the AT commands for the same. I want know that the sequence of the AT commands are same or do I need to change them?

Thanks
Sudhakar
Tue Oct 07 2008, 11:37 am
#4
Here is the link for the modem spec & AT commands
http://www.utoolkit.com/gsm/SIM300HS.pdf
http://www.utoolkit.com/gsm/SIM300%20AT.pdf

Sudhakar
Tue Oct 07 2008, 12:11 pm
#5
Is ”172.186.142.112” port 80
a real address ?

It doesn't seem to be a working HTTP server.


[ Edited Tue Oct 07 2008, 12:15 pm ]
Tue Oct 07 2008, 02:29 pm
#6
No its not a real IP its a dummy IP.


[ Edited Tue Oct 07 2008, 02:31 pm ]
Tue Oct 07 2008, 06:18 pm
#7
unless you send a real IP with real port and real application running over the server PC to accept the data you are sending, you can never get connected.

I tell you what to do..
download haserver (home automation server designed in VB) from website, run it on any port you want on your PC.

then using CIPSTART, use your own IP (ip given to your PC, if you dont know how to check then visit http://www.whatismyip.com) and port you used for haserver and see if you are able to connect or not.
Tue Oct 07 2008, 06:19 pm
#8
[Topic moved to Embedded GSM Development forum]


[ Edited Tue Oct 07 2008, 06:20 pm ]
Wed Oct 08 2008, 04:58 am
#9
or type

ipconfig /all
at command prompt ..
to send an IP packet u will need a static IP
!


[ Edited Wed Oct 08 2008, 04:59 am ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm