hi I hv succefully intrfaced sim300 with 89c51 nw m facing a problem while reading a msg actually for AT and AT+CMGF=1 its working fine, m printing it on LCD bt when I m sending AT+CMGL="REC UNREAD" there is no respons I hv return a fucn lyk dis dis comnd
void cmd_ReadUnreadMsg(){ ES = 0; SBUF = 'A'; while (TI==0); TI=0; lcd_data('A'); SBUF = 'T'; while (TI==0); TI=0; lcd_data('T'); SBUF = '+'; while (TI==0); TI=0; lcd_data('+'); SBUF = 'C'; while (TI==0); TI=0; lcd_data('C'); SBUF = 'M'; while (TI==0); TI=0; lcd_data('M'); SBUF = 'G'; while (TI==0); TI=0; lcd_data('G'); SBUF = 'L'; while (TI==0); TI=0; lcd_data('L'); SBUF = '='; while (TI==0); TI=0; lcd_data('='); SBUF = '"'; while (TI==0); TI=0; lcd_data('"'); SBUF = 'R'; while (TI==0); TI=0; lcd_data('R'); SBUF = 'E'; while (TI==0); TI=0; lcd_data('E'); SBUF = 'C'; while (TI==0); TI=0; lcd_data('C'); SBUF = ' '; while (TI==0); TI=0; lcd_data(' '); SBUF = 'U'; while (TI==0); TI=0; lcd_data('U'); SBUF = 'N'; while (TI==0); TI=0; lcd_data('N'); SBUF = 'R'; while (TI==0); TI=0; lcd_data('R'); SBUF = 'E'; while (TI==0); TI=0; lcd_data('E'); SBUF = 'D'; while (TI==0); TI=0; lcd_data('D'); SBUF = '"'; while (TI==0); TI=0; lcd_data('"'); new_line1(); ES = 1; // return; }
plz tel me whr m goin wrong Thank you.....!!
Y hv frgtn use lp 2 snd stg nd mcroxpndd hge cdeblt.
y dnt u rte ur cmd s a strng?
actually hv tried bt wz nt workin can u send me any sampl code so dat I ll try it actually I m quite confus wid dat code
hw u b cnfs ur cd? nt ur cd? stlng bad cd n nt abl rd?
Clearly the OP did not get the message. I am very puzzled what the OP read from the two posts.
Erik
9. i f n 10 e cd 4 u!
See my post about the WikiBooks "Serial Programming/Modems and AT Commands" in this thread: http://www.keil.com/forum/18696/