<?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>2008-12-02T00:18:38-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-t9578.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9578.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9578.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9578.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9578.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9578.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9578.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9578.html" />
				</rdf:Seq>
				</items>
				</channel>
						<item rdf:about="http://www.8051projects.net/forum-t9578.html">
						<title>i can't recieve information from gsm modem</title>
						<link>http://www.8051projects.net/forum-t9578.html</link>
						<dc:date>2008-12-02T00:18:38-08:00</dc:date>
						<dc:creator></dc:creator>
						<dc:subject></dc:subject>
						<description>hello i am a student and i have a project to do with stk500 and gsm modem (siemens mc35).i have connected the gsm modem with avr. i use printf to send a message and work perfectly but when i use scanf to read from gsm modem nothing happend why???for example if i run this codewhile(1) {   printf("AT &#092;r&#092;n");   delay_ms(10);/*Waiting for the response*/    scanf("%s", myData);      PORTB.0 = 1;   delay_ms(1000);printf("at+cmgs=6938699188");            putchar( CR ); //CR          putchar( LF ); //LF          delay_ms(1000);             printf("%s",myData);          putchar(CTRLZ);                     delay_ms(1000);  //  if (myData[0] == 'O')        PORTB.0 = 0;             break;}i get message writing "AT" but this isn't write i must get "OK". what must i change to read from gsm modem correct???please help me time pressure me i have to finish my project until this Monday.thanks....</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9578.html">
						<title>Re: i can't recieve information from gsm modem</title>
						<link>http://www.8051projects.net/forum-t9578.html</link>
						<dc:date>2008-12-02T00:18:38-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>u will have to stop the echo first"ATE0&#092;r&#092;n"now if using scanf(), why r u using delay_ms(10) ??no need at all..and the syntax for sms should be ( i think)  at+cmgs="6938699188"please confirm by connecting modem directly to PC via hyperterminal and verify both the commands1.at+cmgs=69386991882.at+cmgs="6938699188"considering the first command works then=>try modifying the code like thisCODE:<br />printf&#40;"ATE0\r\n"&#41;;<br />while&#40;1&#41;<br />&#123;<br />printf&#40;"AT \r\n"&#41;;<br /><br /><br />scanf&#40;"%s", myData&#41;;<br />PORTB.0 = 1;<br /><br />printf&#40;"at+cmgs=6938699188\r\n"&#41;;<br /><br />printf&#40;"%s\r",myData&#41;;<br />putchar&#40;CTRLZ&#41;;<br />delay_ms&#40;1000&#41;;<br />// if (myData&#091;0] == 'O')<br />PORTB.0 = 0;<br />break;<br />&#125;now if first command does not works then try the second and modify the code as CODE:<br />printf&#40;"ATE0\r\n"&#41;;<br />while&#40;1&#41;<br />&#123;<br />printf&#40;"AT \r\n"&#41;;<br /><br /><br />scanf&#40;"%s", myData&#41;;<br />PORTB.0 = 1;<br /><br />printf&#40;"at+cmgs=\"6938699188\"\r\n"&#41;;<br /><br />printf&#40;"%s\r",myData&#41;;<br />putchar&#40;CTRLZ&#41;;<br />delay_ms&#40;1000&#41;;<br />// if (myData&#091;0] == 'O')<br />PORTB.0 = 0;<br />break;<br />&#125;u see most of the time scanf itself waits until it receives "&#092;r"  so u need not wait...check and let us know if it works..till then</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9578.html">
						<title>Re: i can't recieve information from gsm modem</title>
						<link>http://www.8051projects.net/forum-t9578.html</link>
						<dc:date>2008-12-02T00:18:38-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>u said that the mesaage is NULL...           does that mean u not recving message ??   or u recving msg with nothing to display??</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9578.html">
						<title>Re: i can't recieve information from gsm modem</title>
						<link>http://www.8051projects.net/forum-t9578.html</link>
						<dc:date>2008-12-02T00:18:38-08:00</dc:date>
						<dc:creator>agnostos</dc:creator>
						<dc:subject></dc:subject>
						<description>the gsm modem doesn't accept the &#092;" it works with out that. i try your code but i have the same problems the message is null. why???please help me time pressure me and i don't know what to do...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9578.html">
						<title>Re: i can't recieve information from gsm modem</title>
						<link>http://www.8051projects.net/forum-t9578.html</link>
						<dc:date>2008-12-02T00:18:38-08:00</dc:date>
						<dc:creator>agnostos</dc:creator>
						<dc:subject></dc:subject>
						<description>i am afraid that my connection is error. i bought a null modem cable. and it is female in both sides. and i connect null modem. with this waynull modem - avr       2 -------> 3       3 -------> 2       5 -------> 5i do the same from other side (null modem with gsm modem)is my connection good???</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9578.html">
						<title>Re: i can't recieve information from gsm modem</title>
						<link>http://www.8051projects.net/forum-t9578.html</link>
						<dc:date>2008-12-02T00:18:38-08:00</dc:date>
						<dc:creator>sashijoseph</dc:creator>
						<dc:subject></dc:subject>
						<description>See,what you need to do is connect Tx of modem to Rx of AVR and Rx of modem to Tx of AVR.(and both their grounds as well)Check your null modem cable.....if pin2,pin3 at one end is connected to pin3,pin2 at the other end,then this is how you connect......</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9578.html">
						<title>Re: i can't recieve information from gsm modem</title>
						<link>http://www.8051projects.net/forum-t9578.html</link>
						<dc:date>2008-12-02T00:18:38-08:00</dc:date>
						<dc:creator>trinadha</dc:creator>
						<dc:subject></dc:subject>
						<description>guys can u tell me how to recive area notification of gsm area onto a microprocessor</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9578.html">
						<title>Re: i can't recieve information from gsm modem</title>
						<link>http://www.8051projects.net/forum-t9578.html</link>
						<dc:date>2008-12-02T00:18:38-08:00</dc:date>
						<dc:creator>Shailesh NAYAK</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi,receiving SMS will give first unsolicited SM indication with message index no.first use AT+CNMI=2,1,0,0,0  which will give you unsolicited indication AT+CMTI: "SM",1with message no. index.as you receive this, use AT+CMGR=1 ( 1 is nothing but an Index no.).</description>
						</item>
				</rdf:RDF>