GSM and GPS integration for PIC16F877A

Status
Not open for further replies.

karthikeie

Newbie level 4
Joined
Jan 12, 2009
Messages
5
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Visit site
Activity points
1,313
Hi there,
I am doing my project in vehicle tracking, which uses gps and gsm. I am using pic16f877a(MPLab HItech C compiler). I have completed the codings for both gsm and gps seperately. I need to integrate these things to vehicle tracking. But the pic16f877a has one UART port. Hence suggest me whether i have to use relays to switch between gps, gsm or some other way?
Thanks in advance.Please find the attachments of gps and gsm codings...
 

Attachments

  • GSM_msg_send and receive_final.rar
    152.8 KB · Views: 201
  • PIC UART Code.rar
    217.7 KB · Views: 181

I will suggest you a simple method which I have implemented. Since you need only to receive data form gps modem connect rx and ground to gps.
If you don't want to get any response form gsm you can connect tx pin and ground to gsm.
I guess you are getting value from gps and sending it through sms.
The only disadvantage is that you cannot read the message from gsm and cannot get the response form gsm.
 
You can do this by Connecting GPS Trans pin to Controller Receive, and GSM Receive Pin to controller Transmit pin.

But in this you will not check the returns from the GSM Modem.
So my suggestion is to use a Digital Multiplexer i had used two mux one for Transmit Line and One for Receive line to interface three UART Devices, of which one is GSM/GPRS Modem, One is GPS and one is 232 Based Wind Sensor.
You you can easily do this,
Just keep the multiplexer on GPS and when you need send the sms change the mux to GSM and then back to GPS
 

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