用于从C中的$ GPZDA $ GPRMC字符串接收gps时间的代码 [英] Code to receive gps time from $GPZDA $GPRMC string in C

查看:194
本文介绍了用于从C中的$ GPZDA $ GPRMC字符串接收gps时间的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个通过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

推荐答案

GPRMC或


获取并存储信息的GPZDA消息



请帮助我解决这个问题,因为我对此很多天



我尝试了什么:



i试图同步它虽然是一个不需要的软件代码只是一个gps com端口的设置但是,现在我想用可以将信息存储在数组中的代码来做
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时间的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆