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

Sun May 09 2021, 07:47 AM
Billy
Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates. online casino https://casinogamesvol.com
Sun May 09 2021, 02:09 AM
Douglas
Saved as a favorite, I like your web site! Casino Online Slots https://casinorealmoneyai.com
Sun May 09 2021, 12:05 AM
Elwood
Hi, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam responses? If so how do you protect against it, any plugin or anything you can suggest? I get so much lately it's driving me insane so any assistance is very much appreciated. Online casinos https://freecasinoslotsmatic.com
Sat May 08 2021, 09:48 PM
Beatris
I'm really loving the theme/design of your site. Do you ever run into any browser compatibility problems? A number of my blog readers have complained about my blog not working correctly in Explorer but looks great in Safari. Do you have any recommendations to help fix this issue? online slots https://playslotstime.com
Sat May 08 2021, 09:35 PM
Hermelinda
It is not my first time to pay a quick visit this web page, i am visiting this web site dailly and get nice facts from here every day. online casino https://playcasinoslotsmatic.com

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: 82, Members: 0 ...

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

Members: 38215
Newest member: Mirza123