AnsweredAssumed Answered

STM32 with GPS

Question asked by lenvo.james on Apr 7, 2015
Latest reply on Apr 8, 2015 by lenvo.james
Hi there,

I'm trying to parse some GPS data, to do this I want to limit the NMEA string coming from my GPS. I've found online that I can send the following to the Rx pin of my GPS to tell it to just send the GPGGA line, but it doesn't seem to work.

Here is the line:
"PMTK314,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0*2C<CR><LF>\r\n"

I'm sending it with my USART3 Tx function (send string function).
If I add it in my interrupt, it malfunctions the output of the GPS to create data that is not worthy of anything.
Notice I have two different sendstring functions, USART_SendString is for UART2 (Sending data only) and UART_SendString3 is for UART3 (Sending Data, UART3 also receives data)


Here is my related code.

//void USART3_IRQHandler(void) {
 
 
 
//USART_SendString3("PMTK314,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,1,0*2C<CR><LF>\r\n");
/*
    if (( USART_CR1_RXNEIE) &&  (USART_CR1_TXEIE) != RESET){
       USART_SendString3("PMTK314,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,1,0*2C<CR><LF>\r\n");
    rx = UART_read();
        USART_SendString(&rx);
          
    }
 
 
 
int main (void) {
 
    Clock_init ();
    GPIO_init ();
    UART_init ();
//  LCD_init ();
 
 
 
while  (1) {
 
 
 
 
}
 
}

Outcomes