john2053
Newbie level 4
I am currently displaying the data in the format of $GPGGA,044840.00,3401.21044,N,11824.67722,W,2,07,1.34,29.5,M,−32.9,M,,0000⋅56$GPGGA,044840.00,3401.21044,N,11824.67722,W,2,07,1.34,29.5,M,-32.9,M,,0000⋅56 in the LCD using 8085 microcontroller. The GPS module I am using currently is the MAXM8W0-GNSS module. I just want to show the date and time from this data? How can I extract that from this unsorted data stored in the array buffer received from GPS using UART serial communication and print in LCD?
Code:
void display_gps_data()
{
unsigned char n;
unsigned char title[24] = "GPS DATA DISPLAY ";
unsigned char data[24] = "00,00,00,11,30,45.00";
for (n=0 ;n<20 ;n++){
buffer1[n] = title[n];
buffer2[n] = data[n];
}
for (n=0; n<20; n++){
buffer2[n] = serial_data_buffer[n]; //data from GPS and stored in buffer using UART serial communication
}
buffer_display(); //Display title[] and data[] in the lcd
}