<?xml version="1.0" encoding="utf-8" ?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
				<channel rdf:about="http://www.8051projects.net/">
				<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
				<link>http://www.8051projects.net/</link>
				<description>Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>
				<dc:language>en-gb</dc:language>
				<dc:date>2009-01-08T09:30:15-08:00</dc:date>
				<dc:creator>contact@nospam.com</dc:creator>
				<admin:generatorAgent rdf:resource="http://e107.org" />
				<admin:errorReportsTo rdf:resource="mailto:contact@nospam.com" />
				<sy:updatePeriod>hourly</sy:updatePeriod>
				<sy:updateFrequency>1</sy:updateFrequency>
				<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
				<items>
				<rdf:Seq>
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11328.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11328.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11328.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11328.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11328.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11328.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11328.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11328.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t11328.html" />
				</rdf:Seq>
				</items>
				</channel>
						<item rdf:about="http://www.8051projects.net/forum-t11328.html">
						<title>GSM Modem response</title>
						<link>http://www.8051projects.net/forum-t11328.html</link>
						<dc:date>2009-01-08T09:30:15-08:00</dc:date>
						<dc:creator></dc:creator>
						<dc:subject></dc:subject>
						<description>I am trying to send an SMS with Wavecom modem using the following code from 8051 uController:CODE:<br />printf&#40;"AT+CMGS=\"98xxxxxxx8\""&#41;;<br />printf&#40;"%c", 13&#41;;<br />printf&#40;"This is a test msg"&#41;;<br />printf&#40;"%c", 26&#41;;<br /><br />delay&#40;&#41;;<br />scanf&#40;"%s", response&#41;;<br /><br />delay&#40;&#41;;<br />LCD&#40;"Done: "&#41;;<br /><br />delay&#40;&#41;;<br />LCD&#40;response&#41;;<br />&nbsp;The SMS is sent successfully, but the response returned by modem is always displayed as AA on the LCD display. But the response should be OK instead as the modem returns the following response when the SMS is sent successfully:CODE:+CMGS: 132<br /><br />OK<br />&nbsp;I tried sending the SMS from hyperterminal with modem using the same command i.e. AT+CMGS, after sending the SMS the modem returns CODE:+CMGS: 132<br /><br />OK<br />&nbsp;Then why the same is not returned in case of 8051??I also tried to debug by interfacing 8051 to the hyperterminal. The command sent by 8051 display successfully on hyperterminal, when I send something in response to the command from hyperterminal then the same is displayed properly on the LCD. Then what is the problem with Wavecom modem and 8051, why the response sent by modem is not displayed properly on the LCD?Can anyone please help me on this!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11328.html">
						<title>Re: GSM Modem response</title>
						<link>http://www.8051projects.net/forum-t11328.html</link>
						<dc:date>2009-01-08T09:30:15-08:00</dc:date>
						<dc:creator>say2paul</dc:creator>
						<dc:subject></dc:subject>
						<description>I added the following line to the code to stop echo:printf("ATE0&#092;r&#092;n");CODE:<br />printf&#40;"ATE0\r\n"&#41;;<br />delay&#40;&#41;;<br /><br />printf&#40;"AT+CMGS=\"98xxxxxxx8\""&#41;;<br />printf&#40;"%c", 13&#41;;<br />printf&#40;"This is a test msg"&#41;;<br />printf&#40;"%c", 26&#41;;<br /><br />delay&#40;&#41;;<br />scanf&#40;"%s", response&#41;;<br /><br />delay&#40;&#41;;<br />LCD&#40;"Done: "&#41;;<br /><br />delay&#40;&#41;;<br />LCD&#40;response&#41;;<br />&nbsp; Now the LCD displays ">" instead of "AA"</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11328.html">
						<title>Re: GSM Modem response</title>
						<link>http://www.8051projects.net/forum-t11328.html</link>
						<dc:date>2009-01-08T09:30:15-08:00</dc:date>
						<dc:creator>say2paul</dc:creator>
						<dc:subject></dc:subject>
						<description>This will eat my head for sure...Now when I added one more scanf("%s", response); the following code is now displaying "+MSG" instead of ">" CODE:<br />printf&#40;"ATE0"&#41;;<br />printf&#40;"%c", 13&#41;;<br />delay&#40;&#41;;<br /><br />printf&#40;"AT+CMGS=\"9872808428\""&#41;;<br />printf&#40;"%c", 13&#41;;<br /><br />printf&#40;"This is a test msg"&#41;;<br />printf&#40;"%c", 26&#41;;<br />printf&#40;"%c", 13&#41;;<br /><br />scanf&#40;"%s", response&#41;;<br />scanf&#40;"%s", response&#41;;<br /><br />delay&#40;&#41;;<br />LCD&#40;"Done "&#41;;<br /><br />delay&#40;&#41;;<br />LCD&#40;response&#41;;<br />&nbsp; But how..? I am so much confused....Lets assume everything is going fine, but still it should return +CMGS instead of +MGS. And in case of "EROR" is displayed instead of "ERROR".The second character is never show and disarded... What is happening.. can anyone help..!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11328.html">
						<title>Re: GSM Modem response</title>
						<link>http://www.8051projects.net/forum-t11328.html</link>
						<dc:date>2009-01-08T09:30:15-08:00</dc:date>
						<dc:creator>sashijoseph</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi Paul,I would suggest creating a custom function for serial RX/TX instead of printf/scanf.Since printf is working OK(sms sent successfully) you could try writing a serial rx function for now.Else try scanf with hyperterminal,just to confirm...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11328.html">
						<title>Re: GSM Modem response</title>
						<link>http://www.8051projects.net/forum-t11328.html</link>
						<dc:date>2009-01-08T09:30:15-08:00</dc:date>
						<dc:creator>Shailesh NAYAK</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi,+GMGS: 132 is counting of messages sent from the modem, It will be last upto 255 and will start again from "0" as it complete 255. You can either ignore this  and can only rely on OK.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11328.html">
						<title>Re: GSM Modem response</title>
						<link>http://www.8051projects.net/forum-t11328.html</link>
						<dc:date>2009-01-08T09:30:15-08:00</dc:date>
						<dc:creator>say2paul</dc:creator>
						<dc:subject></dc:subject>
						<description>I understand your point but my point is that instead of +GMGS: the LCD is showing +MGS:But if I watch output on Hyperterminal it is +GMGS:Can anyone guide me through this!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11328.html">
						<title>Re: GSM Modem response</title>
						<link>http://www.8051projects.net/forum-t11328.html</link>
						<dc:date>2009-01-08T09:30:15-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>may be it is indeed +CMGS  instead of +MGSand may be it sends OK instead of AAwhat i mean is I will prefer that portion os the code when u are displaying the scanned response!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11328.html">
						<title>Re: GSM Modem response</title>
						<link>http://www.8051projects.net/forum-t11328.html</link>
						<dc:date>2009-01-08T09:30:15-08:00</dc:date>
						<dc:creator>say2paul</dc:creator>
						<dc:subject></dc:subject>
						<description>Yes it is +CMGS when watching output on hyperterminal but +MGS with LCD..shyam wrote ...what i mean is I will prefer that portion os the code when u are displaying the scanned response!Prefer means??</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t11328.html">
						<title>Re: GSM Modem response</title>
						<link>http://www.8051projects.net/forum-t11328.html</link>
						<dc:date>2009-01-08T09:30:15-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>he mean that he want to see the code where you have displayed the response on lcd</description>
						</item>
				</rdf:RDF>