Discussion in "Project Help" started by    Shezo    Apr 8, 2010.
Thu Apr 08 2010, 06:34 PM
#1
Hello Rickey,
Iam Done with my GPS programming by getting my Required string from GPS " $GPRMC...." Now i have to send it through GSM am also done with GSM at commands but the problem iam Facing is that at a same time in 89c52 GPS or GSM will work so i take a sbit P1^5 as a Mux activation bit.if its 1 then GPS data will be recieved if its 0 then GSM will transmitt and Recieve...So tell me how will i interface two RS232 with a one sbit which i have...

Thanks
Thu Apr 08 2010, 06:59 PM
#2
well you might need little more pins for mux purpose. take a look at CD4052 Analog MUX/DEMUX you use it for uart muxing.

Thu Apr 08 2010, 07:16 PM
#3
Try some of the posts around this post
http://www.8051projects.net/forum-t28099-120.html#post_32582
Fri Apr 09 2010, 06:25 AM
#4
hey Rickey i have been through this program which is some how similar to mine..here u can c he used a single pin name mux....


void main()
{
int ddd=0
lcd_delay();
int_lcd();
clear_lcd();

while(1)
{
qq=1;
mux=1;
r4=0;
Set_Baud_Rate_For_GPS();
Receive_gps_data();
mux=0;
Set_Baud_Rate_For_Mob();
Transmit_First(); //at
delay();
Transmit_Second(); //at+cmgf=1
delay();
Send_sms_gps_data();
for(ddd=0;<26;ddd++)
{
recv[ddd]=0;
}
r4=0
if(c1==0)
{
ACC=0x4f;
lcd_write_txt();
lcd_delay();
ACC=0x4b;
lcd_write_txt();
lcd_delay();
hex_lcd();
r4=1;
}
delay();
//delay();
//delay();

Transmit_First(); //at
delay();
Transmit_Second(); //at+cmgf=1
delay();
Read_command();
qq=0
if(read[0]=='!')
car_engine=0;

if(read[1]=='!')
car_engine=0;


if(read[2]=='!')
car_engine=0;


if(read[0]=='%')
car_engine=1;


if(read[1]=='%')
car_engine=1;


if(read[2]=='%')
car_engine=1;
delay();
}
}
Sun Apr 11 2010, 08:38 AM
#5
hi shezo i am really not sure what component he is using for mux-ing uarts. so if you can come up with the circuit it would be easy to help.
Mon Apr 12 2010, 07:09 AM
#6
well he is using max232...my friends said that to use buffer..i dont have enuf knowledge about buffer so prefer me some...i thought about nand or xor logic implementation

Mon Apr 12 2010, 07:15 AM
#7
Hey Rickey wot u think about this??


[ Edited Mon Apr 12 2010, 07:16 AM ]
Mon Apr 12 2010, 07:22 AM
#8
Tue Apr 13 2010, 09:38 AM
#9
yes that will work for sure

and using only one pin.. clever i never thought that way
Wed Apr 14 2010, 08:31 AM
#10
Dear Ajay and Shezo

I am doing almost the same project. I am using 89v51rd2, garming gps 15h and sim300

Please do advise me which option should i choose for connecting 2 serial devices (gps and gsm) to 89v51

1. Emulating a software UART like mentioned on the tutorials on the site
2. Using a 2:1 Mux - Quadraple
3. Do something like Shezo has done by using nand gates.

Regards

Abhishek

Get Social

Information

Powered by e107 Forum System

Conversation

Fri Apr 09 2021, 02:02 PM
Hong
Quality articles is the secret to interest the users to visit the site, that's what this web page is providing. christian dating sites https://datingsitesww.com
Fri Apr 09 2021, 03:53 AM
QGWIJ38V49HEBD3WXF www.web.de
I have a small question for you
Thu Apr 08 2021, 06:26 PM
Lilly
Post writing is also a fun, if you be familiar with afterward you can write otherwise it is complex to write. dating sim https://onlinedatingtind.com/
Thu Apr 08 2021, 12:35 PM
Fredericka Horn
Thanks, Fredericka Horn
Thu Apr 08 2021, 12:03 PM
Ronaldwhits
https://coin2x.org

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 100, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123