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,

    first of all, my apologies for the late reply! I was out of office unplanned during last week.

    Oli said:
    hence the reason I was asking if there are other Zephyr Sensor Sample Programs that interacts or uses UART. An example zephyr program that interacts with the uart would be great because it can kickstart projects that needs the uart protocol and we can modify and understand what configurations we need to include in the proj.conf, dts file, etc.

    May I ask what kind of sensor you will use in your project? Many sensors are using I2C/SPI as interface for communication, so Zephyr does not offer that many samples demonstrating the usage for UART with the Sensor API.

    However, there is one sample which uses UART, the MH-19B: CO2 Sensor Sample. I haven’t tried this myself, but maybe it is possible to add your sensor to the desired UART peripheral of your device, as shown in this overlay file.

    Otherwise, I refer to the UART API documentation, which should be quite straight forward to use.

    Regards,

    Markus

  • Hi, 

    Thanks for the reply. I will be using an ultrasonic sensor. 

Reply Children
Related