问题描述
我正在开发一个通过GPS时间和日期同步时钟的项目,我无法找到确切的代码来执行此操作。我正在使用通过rs 232连接到我的系统的GPS接收器,所以我想将GPS日期和时间存储在gps串行字符串中,然后用它来同步我的时钟。
我要使用$ GPRMC或$ GPZDA消息来获取和存储信息
请帮助我解决这个问题,因为我在这个问题上打了很多天
我尝试了什么:
i试图同步它一个软件,它只需要一个gps com端口设置代码,但是,现在我想用代码将代码存储在一个数组
i am working on a project to synchronize the clock through GPS time and date , i am unable to find the exact code to do it. i am using GPS receiver which is connected to my system through rs 232 so i want to store the GPS date and time in a array coming out of gps serial string and then use it for synchronization of my clock.
Either i want to use $GPRMC or $GPZDA message to fetch and store the information
please help me through this as i am breaking my head on this for many days
What I have tried:
i have tried to sync it though a software which requires no code just a setting of gps com port but, now i want to do it with code which can store the info in a array
推荐答案
这篇关于用于从C中的$ GPZDA $ GPRMC字符串接收gps时间的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!