Discussion in "Embedded GSM Development" started by    kirangowle    Nov 20, 2010.
Sun Dec 19 2010, 11:38 am
#71
Hi mojaka,

In read_text () if i do like as below its working.
void read_msg()
{
unsigned char temp[20],i,j;
i=0;
j=0;
do
{
i++;
}while(msg1[i]!='+');
do
{
 i++;
}while(msg1[i]!='\n');
do
{
i++;  // I REMOVED TEMP[j]
}while(msg1[i]!='\r');
       
lcdcmd(0x80);          
lcdstr(msg1);            // array having message
delay(20);
}  

Now the LCD displays whatever in msg1[] Fyi controller auto resetting problem is solved after removing temp[j++]=msg1[i];
But now how do i format the msg1 array. I tried your pointer method also but controller reset problem occurs.
Sun Dec 19 2010, 10:09 pm
#72
hi kirangowle
i try to change ur code according to my thinking
try is is any improvement occur
see it and update
i change Proteus schmetic as i want to say u
connect modem to pc serial port no 1 through a max 232
now u will see both commands r going tto modem and modem is responding
u will see it in Proteus

Attachment
Wed Dec 29 2010, 05:46 pm
#73
Hi,

Is SIM 300 Modem supports GPS,
Because i m planning to learn GPS/GPRS, since now i have modem what ever i can extract from it.
Pls help.
Wed Dec 29 2010, 11:05 pm
#74
hi kirangowle

Is SIM 300 Modem supports GPS,


refer to its data sheet and also let me know
i think it not support


[ Edited Wed Dec 29 2010, 11:05 pm ]
Tue Jan 04 2011, 10:37 pm
#75
Hi Mojaka,
SIM 300 doesnt support GPS. It only supports GSM and GPRS.

How to send msgs via GSM modem through 8051.
I know the commands, but at last how to send ctrl+z strings.
Tue Jan 04 2011, 11:01 pm
#76
First connect GSM modem to PC and then to microcontroller this check out this site

http://www.developershome.com/sms/howToUseHyperTerminal.asp

ctrl+z is not strings its equivalent ascii code is 26 in decimal for more information check out this site

http://www.jimprice.com/jim-asc.shtml


[ Edited Tue Jan 04 2011, 11:02 pm ]
 kirangowle like this.
Tue Jan 04 2011, 11:13 pm
#77
hi kirangowle

SIM 300 doesnt support GPS. It only supports GSM and GPRS.


thank u i was little confident that it is just gsm modem

How to send msgs via GSM modem through 8051.
I know the commands, but at last how to send ctrl+z strings.


ctrl+z=1A
send 1A at the end of message
for information read these documentations
http://www.jimprice.com/jim-asc.shtml
http://www.bbdsoft.com/ascii.html
download some documentation

1) http://ifile.it/m7afd3k
or
2) http://ifile.it/m7afd3k/GSM.rar
 kirangowle like this.
Wed Jan 12 2011, 11:17 am
#78
Hi,
SMSString( "AT+CMGF=1\r"); // select text mode for sms
delay(50);
while(1)
{
while(key!=1)
{
SMSString("AT+CMGS=\"9845xxxxxx\"\r");
delay(1);
SMSString("This is a test msg");
tx0(0x1A); // for ctrl+z;
}
}


Is it correct.
But i m not getting the output.

Wed Jan 12 2011, 06:58 pm
#79
while(key!=1) ??
where are you updating this variable "key"?
Thu Jan 13 2011, 10:09 am
#80
Hi,
Key is P1.3. It will be checking for 0, if this pin is 0 then msg should be sent. it is entering into the loop i have checked on LCD. But its not sending msg.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am