<?xml version="1.0" encoding="utf-8"?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rss  version="2.0">
				<channel>
				<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>

<language>en-gb</language>
				<copyright>2008 Rickey's World</copyright>
				<managingEditor>contact@nospam.com (Ajay Bhargav)</managingEditor>
				<webMaster>contact@nospam.com (Ajay Bhargav)</webMaster>
				<pubDate>Thu, 08 Jan 2009 23:11:44 -0800</pubDate>
				<lastBuildDate>Thu, 08 Jan 2009 23:11:44 -0800</lastBuildDate>
				<docs>http://backend.userland.com/rss</docs>
				<generator>e107 (http://e107.org)</generator>
				<ttl>60</ttl>
				<textInput>
				<title>Search</title>
				<description>Search 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes</description>
				<name>query</name>
				<link>http://www.8051projects.net/search.php</link>
				</textInput>
						<item>
						<title>GSM Modem response</title>
<link>http://www.8051projects.net/forum-t11328.html</link>
<description><![CDATA[I am trying to send an SMS with Wavecom modem using the following code from 8051 uController:<br /><br /><div class='code_box'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="c" style="font-family: monospace;"><br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;AT+CMGS=<span style="color: #000099; font-weight: bold;">\&quot;</span>98xxxxxxx8<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%c&quot;</span>, <span style="color: #cc66cc;">13</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;This is a test msg&quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%c&quot;</span>, <span style="color: #cc66cc;">26</span><span style="color: #66cc66;">&#41;</span>;<br /><br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />scanf<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%s&quot;</span>, response<span style="color: #66cc66;">&#41;</span>;<br /><br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />LCD<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Done: &quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />LCD<span style="color: #66cc66;">&#40;</span>response<span style="color: #66cc66;">&#41;</span>;<br />&nbsp;</div></div><br /><br />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:<br /><br /><div class='code_box'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="c" style="font-family: monospace;">+CMGS: <span style="color: #cc66cc;">132</span><br /><br />OK<br />&nbsp;</div></div><br /><br />I tried sending the SMS from hyperterminal with modem using the same command i.e. AT+CMGS, after sending the SMS the modem returns <br /><br /><div class=''>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="c" style="font-family: monospace;">+CMGS: <span style="color: #cc66cc;">132</span><br /><br />OK<br />&nbsp;</div></div><br /><br />Then why the same is not returned in case of 8051??<br /><br />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. <br /><br />Then what is the problem with Wavecom modem and 8051, why the response sent by modem is not displayed properly on the LCD?<br /><br />Can anyone please help me on this!<br />]]></description>
<pubDate>Sat, 02 Aug 2008 07:39:13 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11328.html</guid>
</item>
						<item>
						<title>Re: GSM Modem response</title>
<link>http://www.8051projects.net/forum-t11328.html</link>
<description><![CDATA[I added the following line to the code to stop echo:<br />printf("ATE0&#092;r&#092;n");<br /><br /><div class='code_box'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="c" style="font-family: monospace;"><br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;ATE0<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br /><br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;AT+CMGS=<span style="color: #000099; font-weight: bold;">\&quot;</span>98xxxxxxx8<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%c&quot;</span>, <span style="color: #cc66cc;">13</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;This is a test msg&quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%c&quot;</span>, <span style="color: #cc66cc;">26</span><span style="color: #66cc66;">&#41;</span>;<br /><br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />scanf<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%s&quot;</span>, response<span style="color: #66cc66;">&#41;</span>;<br /><br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />LCD<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Done: &quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />LCD<span style="color: #66cc66;">&#40;</span>response<span style="color: #66cc66;">&#41;</span>;<br />&nbsp;</div></div> <br /><br />Now the LCD displays "<strong class='bbcode bold'><span style='font-size:12px'>></span></strong>" instead of "<strong class='bbcode bold'>AA</strong>"]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sat, 02 Aug 2008 08:38:09 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11328.html</guid>
</item>
						<item>
						<title>Re: GSM Modem response</title>
<link>http://www.8051projects.net/forum-t11328.html</link>
<description><![CDATA[This will eat my head for sure...<br /><br />Now when I added one more scanf("%s", response); the following code is now displaying "+MSG" instead of ">"<br /><br /> <div class='code_box'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="c" style="font-family: monospace;"><br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;ATE0&quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%c&quot;</span>, <span style="color: #cc66cc;">13</span><span style="color: #66cc66;">&#41;</span>;<br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br /><br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;AT+CMGS=<span style="color: #000099; font-weight: bold;">\&quot;</span>9872808428<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%c&quot;</span>, <span style="color: #cc66cc;">13</span><span style="color: #66cc66;">&#41;</span>;<br /><br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;This is a test msg&quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%c&quot;</span>, <span style="color: #cc66cc;">26</span><span style="color: #66cc66;">&#41;</span>;<br /><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%c&quot;</span>, <span style="color: #cc66cc;">13</span><span style="color: #66cc66;">&#41;</span>;<br /><br />scanf<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%s&quot;</span>, response<span style="color: #66cc66;">&#41;</span>;<br />scanf<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%s&quot;</span>, response<span style="color: #66cc66;">&#41;</span>;<br /><br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />LCD<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Done &quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><br />delay<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />LCD<span style="color: #66cc66;">&#40;</span>response<span style="color: #66cc66;">&#41;</span>;<br />&nbsp;</div></div> <br /><br />But how..? I am so much confused....<br /><br />Lets assume everything is going fine, but still it should return +CMGS instead of +MGS. <br /><br />And in case of "EROR" is displayed instead of "ERROR".<br /><br />The second character is never show and disarded... <br /><br />What is happening.. can anyone help..!]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sat, 02 Aug 2008 11:25:15 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11328.html</guid>
</item>
						<item>
						<title>Re: GSM Modem response</title>
<link>http://www.8051projects.net/forum-t11328.html</link>
<description><![CDATA[Hi Paul,<br />I would suggest creating a custom function for serial RX/TX instead of printf/scanf.<br />Since printf is working OK(sms sent successfully) you could try writing a serial rx function for now.<br />Else try scanf with hyperterminal,just to confirm...]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sun, 03 Aug 2008 20:03:25 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11328.html</guid>
</item>
						<item>
						<title>Re: GSM Modem response</title>
<link>http://www.8051projects.net/forum-t11328.html</link>
<description><![CDATA[Hi,<br />+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>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Mon, 04 Aug 2008 03:31:35 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11328.html</guid>
</item>
						<item>
						<title>Re: GSM Modem response</title>
<link>http://www.8051projects.net/forum-t11328.html</link>
<description><![CDATA[I understand your point but my point is that instead of +GMGS: the LCD is showing +MGS:<br /><br />But if I watch output on Hyperterminal it is +GMGS:<br /><br />Can anyone guide me through this!]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Mon, 04 Aug 2008 04:24:59 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11328.html</guid>
</item>
						<item>
						<title>Re: GSM Modem response</title>
<link>http://www.8051projects.net/forum-t11328.html</link>
<description><![CDATA[may be it is indeed +CMGS  instead of +MGS<br /><br />and may be it sends OK instead of AA<br /><br />what i mean is I will prefer that portion os the code when u are displaying the scanned response!<br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Mon, 04 Aug 2008 08:27:52 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11328.html</guid>
</item>
						<item>
						<title>Re: GSM Modem response</title>
<link>http://www.8051projects.net/forum-t11328.html</link>
<description><![CDATA[Yes it is +CMGS when watching output on hyperterminal but +MGS with LCD..<br /><br /><div class='quote_top'>shyam wrote ...</div><div class='quote'><br />what i mean is I will prefer that portion os the code when u are displaying the scanned response!<br /></div><br /><br />Prefer means??]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 05 Aug 2008 00:30:01 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11328.html</guid>
</item>
						<item>
						<title>Re: GSM Modem response</title>
<link>http://www.8051projects.net/forum-t11328.html</link>
<description><![CDATA[he mean that he want to see the code where you have displayed the response on lcd <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 05 Aug 2008 09:07:38 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11328.html</guid>
</item>
				</channel>
				</rss>