GPS追踪器收到的数据, [英] Gps tracker received data,
问题描述
我有我自己的服务器,它侦听特殊端口并获取模块发送的数据包,
我知道接收数据包中经纬度的位置,它们每个都有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屋!