[SOLVED] Please assist i am having gsm problems

Status
Not open for further replies.

Ramadzanga

Newbie level 3
Joined
Mar 31, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
25
Good day

can someone please assist, I am using an PIC18 (18F8722) explorer board together with a SIM928 EVB board
the problem that I am having is that when I connect my micro controller board together with the EVB board I am unable to receive any SMS
I am able to receive an SMS if I connect my EVB board directly with the computer,and I am also to verify that my PIC is sending the right AT commands
when I connect the micro to the computer I receive those AT commands on my terminal Program, I am using the MikroC compiler version 6.5.0
my simple code is attached below



Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
void main(){
 
            UART1_Init(9600);
            delay_ms(3000);
            
            UART1_Write_Text("AT");
            UART1_Write(0x0D);
            delay_ms(1500);
 
            UART1_Write_Text("AT+CMGF=1");
            UART1_Write(0x0D);
            delay_ms(2000);
 
            UART1_Write_Text("AT+CMGS=\"xxxxxxxxxx\""); // using my ten digit cell number
            UART1_Write(0x0D);
            delay_ms(2000);
 
            UART1_Write_Text("IT is working");
            UART1_Write(0x0D);
            UART1_Write(0x01);
 
            }

 
Last edited by a moderator:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…