GPS追踪器收到的数据, [英] Gps tracker received data,

查看:169
本文介绍了GPS追踪器收到的数据,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提前我想欣赏任何关于这个问题的答案和建议,我正在研究一个GPS跟踪器模块(型号:m528),它的记录很不完善所以我没有关于它发送的数据格式的任何文件,

我有我自己的服务器,它侦听特殊端口并获取模块发送的数据包,



我知道接收数据包中经纬度的位置,它们每个都有4个字节,没有N,W,S,E指示符,

这是我认为会有帮助的例子,

以十六进制存储纬度数据:03447535
纬度值:34.79225



以十六进制存储经度数据:04830690
经度值:48.51150

任何帮助和建议都会请注意,
感谢每一个

解决方案

很容易转换,首先你分开3位小数,学位:

  03447535 - > 034度

然后你休息并除以60000:

  47535/60000 = 0.79225 

你增加了34度,结果:

  34.79225 

与其他数字相同:

  04830690  - > 48度+30690 / 60000 = 48.5115 


in advance I want to appreciate any answer and suggestion on this problem,

I am am working on a GPS tracker module (Model: m528), It's poorly documented so I dont have any paper on the data format which it sends,

I have my own server that listens to a special port and gets the data packets sent by the module,

I know the position of the latitude and longitude in the received packets, each of them have 4 bytes without N, W, S, E indicators,

this are the examples which I think would help,

stored latitude data in hex: 03447535 latitude value: 34.79225

stored longitude data in hex: 04830690 longitude value: 48.51150

any help and suggestion would be appreciated, thanks every one

解决方案

it's easy to convert, first you separate 3 decimal places, that would be degrees:

03447535 -> 034 degrees

then you take the rest and divide by 60000:

47535 / 60000 = 0.79225

finally you add 34 degrees and the result:

34.79225

same with the other number:

04830690 -> 48 degrees + 30690 / 60000 = 48.5115

这篇关于GPS追踪器收到的数据,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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