Discussion in "Project Help" started by    WWSIERT    Apr 3, 2019.
Wed Apr 03 2019, 01:18 PM
#1
I am feeding the GPS signal into a 8051 microcontroller via GT-7U gps.
My code does not detect the header $GPRMC, the image below shows some
of the characters I m receiving. The received chars don't seem valid
and I don't know what I should change to correct this...

void receive_data() interrupt 4
{
info[check++]=SBUF; //Read SBUF
lcd_data(info[check-1]);
if(check<7) //Condition to check the required data
{
if(info[check-1]!=test[check-1])
check=0;
}

RI=0;
}

void serial()
{
EA=1;
ES=1;
SCON=0x50 ; // SERIAL MODE 1 ,8- BIT DATA ,1 STOP BIT ,1 START BIT
, RECEIVING ON
TMOD=0x20; //MODE=2
TH1=0xFD; // 9600 BAUD

TR1=1; //TIMER START

//IE=0x90; // enable interrupts...
}
void lcd_data(unsigned char item)
{
port2 = item;
rs= 1;
rw=0;
e=1;
delay(50);
e=0;
return;
}
Wed Apr 03 2019, 01:20 PM
#2
that is the image

Wed Apr 03 2019, 02:41 PM
#3
Can you post your full code.
Do you have a serial to USB adapter ?
If not, get one, they are very useful for this sort of project.

If you have one, use it to connect your GPS to your PC to test its output.
You can then connect the PC to your 8051 to test its response to known characters.


[ Edited Wed Apr 03 2019, 10:31 PM ]

Get Social

Information

Powered by e107 Forum System

Conversation

Fri Apr 16 2021, 08:49 AM
Maria Campbell
It looks like you've misspelled the word "temprature" on your website. I thought you would like to know . Silly mistakes can ruin your site's credibility. I've used a tool called SpellScan.com in the past to keep mistakes off of my website.-Maria
Thu Apr 15 2021, 11:47 PM
Rachel Cohen
{
Wed Apr 14 2021, 07:42 PM
Harmanjsj
only
Wed Apr 14 2021, 05:05 PM
Valencia
Thank you for some other excellent article. Where else may anyone get that type of info in such a perfect manner of writing? I have a presentation subsequent week, and I'm on the search for such info. viagra otc https://viagrasildenafilok.com/
Wed Apr 14 2021, 03:56 PM
Maritza
Hello, i think that i noticed you visited my web site thus i came to return the prefer?.I am attempting to in finding issues to improve my website!I assume its good enough to make use of a few of your ideas!! https://auto.rifugiofiori.it/docbook-sample.pdf Katja

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

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

Members: 38215
Newest member: Mirza123