Hey all,
I am doing a project on Vehicle Tracking System using GPS and GSM Modem.The 2 devices aforementioned communicates with 8051uC. But since there is only 1 UART in 8051 i have to use a analog multiplexer i.e CD 4062. I want to know how to interface it with GPS, GSM, and 8051.
Also it would be grateful if anyone could tell me how to parse output of GPS and how initialize a GPS receiver to that it starts giving me the GPRMC
Oh no, here we go again!
Since a fundamental part of your project is communicating with two serial devices, why not just use a processor with two UARTs?!
Plenty exist: http://www.keil.com/dd/search_parm.asp
"i have to use a analog multiplexer"
Even if you do decide to make life difficult for yourself by using a multiplexer, Why does it have to be analogue?
This school assignment comes up regularly - use the 'Search' facility on this site to find previous discussions here, and Google (or other search engine) to find them elsewhere...
Use a chip with two serial ports. Only then will you be able to receive data from the GSM at the same time that your GPS emits data. Using a chip with a single UART when multiple UARTS are needed is so 1980.
See the documentation for your specific GPS to figure out what init strings you need to send to it.
Decoding a GPRMC string should be a quite trivial operation. The checksum is trivial. Splitting it into individual parameter fields is trivial. Converting the individual fields is trivial. So really no need to post a lot of source that has been written with possibly different requirements in mind.
Hey thnx Can u all name a few uC's in the MCS51 / 52 range having 2 UARTS
Also can u provide me with some sample codes for GPS data parsing and GSM serial communication with a uC
Could you not manage to follow the link that I gave you earlier?
You haven't stated what GPS device(s) you're considering - so how can anyone give you a "sample" of how to parse the unknown data format(s) from unknown GPS device(s)?!
Have you actually taken any time at all to study the documentation for the GPS device(s) you're considering, and thought about how you might parse whatever data format(s) it/they provide...?
Here's a link to get you started: www.lmgtfy.com
Similarly for the GSM device...
Here's the general process for interfacing anything to anything else:
www.8052.com/.../160143
Here someone stated to about how to interface anything to anything. Ya you all such experts. Come On Interface a resistor and a capacitor and make it work as a microprocessor
View all questions in Keil forum