Receive gps with 80c31

hello,

how can i receive gps transmission with the serial port
and analyze the date and time and store it in the program memory (c language) ?

the gps is communicatin with the following port configuration:

1200 baud
7 bit ascii
odd
1 stop bit

the gps telegram is: FDDD<c1>HH<c2>MM<c3>SS<c4>mmmQ
F - gps mode
<c1> - character between day and hour
<c2> - character between hour and minute
<c1> - character between minute and seconds
Q - character fot time quality

thanks in advance.

Parents
  • Are you sure that the GPS sends that data?

    Most GPS sends NMEA data.

    But I'm not really sure what you are asking about.

    You initialize the serial port - several examples available.

    You either split the serial data character-by-character directly when received or wait until you get an end-of-message character - normally a line ending - and then split the message into it's individual fields.

    What you then do with the extracted data is completely up to your needs.

Reply
  • Are you sure that the GPS sends that data?

    Most GPS sends NMEA data.

    But I'm not really sure what you are asking about.

    You initialize the serial port - several examples available.

    You either split the serial data character-by-character directly when received or wait until you get an end-of-message character - normally a line ending - and then split the message into it's individual fields.

    What you then do with the extracted data is completely up to your needs.

Children
More questions in this forum