Trying to interface a GPS module with my AVR using UART in Zephyr RTOS
@Middleware & OS Hi friends, I'm trying to interface a GPS module with my AVR microcontroller using UART in Zephyr RTOS. I've set up the UART peripheral and device tree configuration, but I'm not receiving any data from the GPS module. I tried configuring the UART peripheral in prj.conf, created device bindings in the device tree source file (dts), and wrote code to read data from the GPS module. When the GPS module is functioning correctly and transmitting data over UART, I should see NMEA sentences like $GPGGA, $GPRMC. I'm using the GPS(Ublox NEO-6M) module model.
this is a sample of my code snippet:
What could be causing the issue of not receiving any data from the GPS module? Any Idea?
Solution:Jump to solution
It might not be code issue check whether your gps is synced or not sometimes it takes time for gps to lock up to a satellite and then it starts giving out data
In one of our design gps sync took good 15minutes due to poor pcb design...
3 Replies
Solution
It might not be code issue check whether your gps is synced or not sometimes it takes time for gps to lock up to a satellite and then it starts giving out data
In one of our design gps sync took good 15minutes due to poor pcb design
alright @electro_coco I will check through
Also what i did to shorten the time of gps sync to 1 minute is to put aluminum foil dish plate under it