rtu
Newbie level 1
Hi there
I need some help. I am using a PIC16F887 on a MicroElectronika EasyPic6 development board with a Telit Gm862 gsm module
I am able to do the following:-
(1) call the dev board from my phone
(2) call my phone from the dev board
(3) send sms from dev board to my phone
But I am not able to receive sms from my phone to dev board. Here is my code for reading the sms
The program just hangs at 'Reading SMS"
I need some help. I am using a PIC16F887 on a MicroElectronika EasyPic6 development board with a Telit Gm862 gsm module
I am able to do the following:-
(1) call the dev board from my phone
(2) call my phone from the dev board
(3) send sms from dev board to my phone
But I am not able to receive sms from my phone to dev board. Here is my code for reading the sms
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 if(Button(&PORTD, 5, 10, 1)) { // Read sms from GSM module // LCD_Out: Reading SMS... Lcd_Cmd(_LCD_CLEAR); LCD_Out(1,1,CopyConst2Ram(msg,lcd12)); wait(); send_atc (atc11); //Text mode AT+CMGF=1 wait(); send_atc (atc15); //Sim card storage AT+CPMS="SM" wait(); send_atc (atc17); //Read first stored sms AT+CMGR=1 wait(); UART1_Read_Text(Output, "OK", 255); // reads text until 'OK' is found LCD_Out(1,1,Output); }
The program just hangs at 'Reading SMS"
Last edited by a moderator: