Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SIM900D sending and receiving message using PIC16f84a

Status
Not open for further replies.

dark_ages

Member level 1
Joined
Jan 8, 2011
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Koronadal City, Philippines
Activity points
1,577
hi fellows...
we're on our final year in college and we've come up with an SMS based project. we need some help regarding on how to connect the SIM900D to the microcontroller and some codes in MPLAB IDE to controll the gsm modem.

any good help will be much appreciated....
 

dark_ages

Member level 1
Joined
Jan 8, 2011
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Koronadal City, Philippines
Activity points
1,577
i haven't tried it yet...i have read some page about testing it with the hyperterminal but the gsm modem there is not the sim900d, its benQ i think and it has a serial port in order to connect to the computer.
In case of sim900d, it doesn't have any serial port.

How could I test it?
 

ckshivaram

Advanced Member level 5
Joined
Apr 21, 2008
Messages
5,070
Helped
2,149
Reputation
4,304
Reaction score
2,089
Trophy points
1,393
Location
villingen (Germany) / Bangalore
Activity points
30,086
simcom modems are all same and most of the AT commands are same....
you can test it with serial port and terminal and become aware of at commands and then start the program
 

dark_ages

Member level 1
Joined
Jan 8, 2011
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Koronadal City, Philippines
Activity points
1,577
sir....do you have any assembly codes in mplab there that can be used to enable the sim900 to text?to turn on?and to filter the messages that is received by the sim900?
 

zula

Full Member level 2
Joined
Jul 5, 2009
Messages
147
Helped
21
Reputation
40
Reaction score
17
Trophy points
1,298
Location
Turkey
Activity points
2,043
you will talk to sim900d with UART. so you have to implement uart module. then you will send AT commands.

by the way, if you design your custom board, just keep in mind the PWRKY pins for the wake up sim900d.
 

dark_ages

Member level 1
Joined
Jan 8, 2011
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Koronadal City, Philippines
Activity points
1,577
now were using mikroC for our project,
but when I use the command Usart_Init(9600), Usart_Read_Text(), or Usart_write, it only provides me with errors,
but when i coded UART1_Write,UART1_Init(9600), and any other commands, it is accepted.
is there any initialization to be done first before using Usart commands?
 

seadolphine2000

Advanced Member level 3
Joined
Apr 12, 2005
Messages
881
Helped
122
Reputation
244
Reaction score
86
Trophy points
1,308
Activity points
7,372
You have to include the library in your project. There is a panel with the libraries those can included in your project, you have to select the "USRAT" library.
 

dark_ages

Member level 1
Joined
Jan 8, 2011
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Koronadal City, Philippines
Activity points
1,577
I'll try it...tnx a lot.....
another problem that i have encountered is that when I code:
void main(){
while(1){
if(UART1_Read_Text=="System On"){
......................
................................
}
.
.
.
.
}
}
what should I COde?
can u please send me some examples of sending and receiving sms mikroC code....
just email it to sajo_christian@yahoo.com....tnx a lot.
 

muwasif

Junior Member level 1
Joined
Sep 26, 2009
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Karachi
Activity points
1,418
you can send AT command on usart port like



const unsigned char at[]= "AT\rAT+CMGF = 1\rAT+CSCA =\"+<message center #>\"\rAT+CMGS =\"<Mobile #>\"\;
char msg[] = {"Test Message"};
Usart_Init(9600);// baud rate
i=0;
do {
Usart_Write(at);
} while (at[i++]!=0);
i = 0;

do {
Usart_Write(msg);
} while (msg[i++]!=0);
i = 0;
Usart_Write('\x1A'); //Clt+Z

i = 0;

}
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top