Get GPS sentence through UART (Zephyr)

Hi,

I would like to know if there are sample programs for getting GPS sentences through UART using Zephyr. I am using Fanstel (BT840X) board. I would also like to know the configurations that needs to be set so that I can get the GPS sentences through UART. 

Thank you!

Parents
  • Hello Oli,

    snowstorm said:
    But the other problem that I am getting is when the character that is read is "," the uart_poll_in returns -1 and does not get the succeeding data. Have you encountered this problem? 

    return value -1 means that the UART input buffer was empty. How do you know that it is character “,” and does it work with other ones?

    Regards,

    Markus

  • Hi Markus, 

    I just need to follow up on what you said that Zephyr does not support the Fanstel? Maybe I missed something. 

    But Zephyr does not support the Fanstel BT840X and for receiving GPS data, you need an external device like the nRF9160 anyway.

    For the poll function, I think the program that I have used does not clear the buffer that is why the "," is still read even though the return value is -1. 

    I have another question though, can the polling function recognize a space? or when it sees a blank space it terminates the polling? 

    Thanks, 

    Oli

Reply
  • Hi Markus, 

    I just need to follow up on what you said that Zephyr does not support the Fanstel? Maybe I missed something. 

    But Zephyr does not support the Fanstel BT840X and for receiving GPS data, you need an external device like the nRF9160 anyway.

    For the poll function, I think the program that I have used does not clear the buffer that is why the "," is still read even though the return value is -1. 

    I have another question though, can the polling function recognize a space? or when it sees a blank space it terminates the polling? 

    Thanks, 

    Oli

Children
No Data
Related