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!

  • Hello Oli,

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

    Ok, so I assume that you have added the board to Zephyr by yourself, then?


    snowstorm said:

    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? 

    Space is converted to an ASCII string, like any other char value. However, ‘\0’ can be used as terminator.

    Regards,

    Markus

  • Hi Markus,

    Yes. I have tried adding the board on Zephyr, I then used the UART Polling API and got some data through the UART. But what you said earlier was that the Fanstel board (BT840X) was not supported by Zephyr and that I needed another board like the 9160 to get the GPS sentences. What I got from what you said was that I can't use the Fanstel board BT840X with Zephyr, but it worked.

    Thanks and best regards,

    Oli

  • Hello Oli,

    snowstorm said:
    But what you said earlier was that the Fanstel board (BT840X) was not supported by Zephyr

    For clarification:

    What I meant here is that there is no native support for the Fanstel BT840X in Zephyr. But that doesn’t mean that you can not add the board to the Zephyr devicetree yourself.

    snowstorm said:
    and that I needed another board like the 9160 to get the GPS sentences

    According to Fanstel themselves, the BT840X is a Bluetooth, Thread and Zigbee module using the nRF52840. Our nRF5 series does not have a modem, so you are depended on an external cellular IoT device, like the nRF9160, to receive GPS sentences.

    Regards,

    Markus

  • I see. Thank you very much for the clarifications. 

Related