sanglehoang New Member Oct 20, 2011 #1 I am having trouble in reading sms from the mobile. (I was able to send the sms) This is my code: UART1_Write_Text("AT+CMGR=1"); delay_ms(500); UART1_Write(13); delay_ms(500); UART1_Write_Text("AT+CNMI=1,1,0,0,0"); delay_ms(500); UART1_Write(13); delay_ms(500); UART1_Write_Text("AT+CMGR=1"); delay_ms(500); while(UART1_Data_Ready() == 1); UART1_Read_Text(ch,'OK', 10); Click to expand... The result was nothing! I have read some threads about this problem in forum.If someone knows how to solve this problem, please help me! I thank you in advance!
I am having trouble in reading sms from the mobile. (I was able to send the sms) This is my code: UART1_Write_Text("AT+CMGR=1"); delay_ms(500); UART1_Write(13); delay_ms(500); UART1_Write_Text("AT+CNMI=1,1,0,0,0"); delay_ms(500); UART1_Write(13); delay_ms(500); UART1_Write_Text("AT+CMGR=1"); delay_ms(500); while(UART1_Data_Ready() == 1); UART1_Read_Text(ch,'OK', 10); Click to expand... The result was nothing! I have read some threads about this problem in forum.If someone knows how to solve this problem, please help me! I thank you in advance!