Hi!i donno whether i'm suppose to ask question through here.but i really wish you guys can help me as i'm new to the dynamic C and the Rabbit microprocessor. i have one GPS receiver (M12+ Oncore GPS Receiver) and one RCM3400 dev kit with me. i'm trying to program the RCM3400 to pull the NMEA-0183 data from the GPS receiver. i'm facing a big problem for the interfacing between both this hardware. i've tried the serial port example of the dynamic C but when come to the NMEA-0183 data, as we know it consist of char and integer, so i dono how to save the data as. what i mean is how should i declare it as?as a string?as a character?as a integer?and another problem is where should i save the data to,i mean where should i locate them to?using array?please help.thanks in advance.
below is the program that i write using the Dynamic C. my main purpose is trying to send out the command to the receiver which is in the format of "$PMOTG,GGA,0001*01", then get the NMEA0183 respond from GPS receiver through the serial ports and then process the data.
#class auto
#define CINBUFSIZE 255
#define COUTBUFSIZE 255
#ifndef _232BAUD
#define _232BAUD 4800
#endif
const char nIn2;
main()
{
//auto int nIn2;
//xdata c { "$PMOTG,GGA,0001*01" };
brdInit(); //initialize board for this demo
serCopen(_232BAUD);
serCwrFlush();
serCrdFlush();
while (1)
{
//serCputc (c[0]); //Send lowercase byte
while ((nIn2=serCgetc()) == -1); // Wait for echo
printf ("serial C received %s\n",nIn2);
}
}
below is the program that i write using the Dynamic C. my main purpose is trying to send out the command to the receiver which is in the format of "$PMOTG,GGA,0001*01", then get the NMEA0183 respond from GPS receiver through the serial ports and then process the data.
#class auto
#define CINBUFSIZE 255
#define COUTBUFSIZE 255
#ifndef _232BAUD
#define _232BAUD 4800
#endif
const char nIn2;
main()
{
//auto int nIn2;
//xdata c { "$PMOTG,GGA,0001*01" };
brdInit(); //initialize board for this demo
serCopen(_232BAUD);
serCwrFlush();
serCrdFlush();
while (1)
{
//serCputc (c[0]); //Send lowercase byte
while ((nIn2=serCgetc()) == -1); // Wait for echo
printf ("serial C received %s\n",nIn2);
}
}