gpt4 book ai didi

gps - TK06a GPS 追踪器协议(protocol) : Long/Lat Format

转载 作者:行者123 更新时间:2023-12-04 04:34:49 25 4
gpt4 key购买 nike

我有一个带有 TK06a 芯片组的 GPS 跟踪器,我有自己的 tcp 监听器,一切正常,我收到了来自设备的数据,格式如下:

#355488020131775##1#0000#AUT#01#52500100232a47#10341.175280,E,121.322800,N,0.28,0.00#111113#171607.000##

我想我知道这些是什么(例如第一个是 IMEI),但我不知道如何将 (10341.175280,E) 和 (121.322800,N) 转换为谷歌地图可以理解的东西。

设备旁边的用户手册很差,也没有协议(protocol)文档。

真正的位置应该在这里(1.355269,103.686426)也许这可以引导你解开这个谜:)

提前致谢。

编辑:

我在网上找到了这个,也许有些人会觉得它有用:

上面那行的解码。

  1. the IMEI number cannot be empty, if the SIM card number regarded as device series number, then the data of IMEI part should be filled in SIM cad number.
  2. SIM card number: this part can be empty , or also can be same as 1st point , fill in SIM card number.
  3. 0 or 1 , reserve (original meaning is ACC status )
  4. Device password ( 0-9 numbers, digit cannot over 6 digits, generally is in 4 digits )
  5. Reserved word AUT, cannot be changed .
  6. Numbers of data, 00-99 , in 2 digits.

The format of Each data as below:


#base station number#Longitude, East and West identification, latitude,North and South identification,speed(nm), direction angle(0-360)#date#time

  1. Base station number can be empty.
  2. Longitude, format : dddff.ffff, the degree part must be in 3 integer, the minute part must be in 2 integer, the decimal part is in 4 digits, there is no separator between degree and minute.
  3. East and West identification, only one character , E/W.
  4. Latitude, format : ddff.ffff, same as Longitude , only the degree part is in 2 integer.
  5. North and South identification, only one character , N/S.
  6. Speed: can be 0.
  7. Direction : can be 0.
  8. Date, format : ddmmyy.
  9. Time, format: hhnnss.mmm, the part before decimal point should be hour, minute and second in turn, each is in 2 digits, the part after decimal point should be milliseconds, it can be 000.

最佳答案

此格式类似于 NMEA RMC 消息中的 DM,但缺少前导 0:

给定经度:10341.175280 E

前 3 位数字是度数:103
然后剩下的就是分钟:41.175280
现在是格式“DM”度数和十进制分钟数。
谷歌使用“DEG”(十进制度)
转换:103 + 41.175280/60.0 = 103.686254
(DEG = 度 + 分钟/60.0)
非常适合您的位置

现在有点奇怪:
它应该是“0121.322800”而不是“121.322800”
但是与上面类似,但由于纬度限制为两位数:
前 2 位数字始终是度数:01
然后剩下的就是分钟:21.322800
与上述相同的形式:lat= 1 + 21.322800/60.0 = 1,35538​​

最后:如果是 W 或 S,则将 deg 值乘以 -1
(在你的情况下,它是 N 和 E,所以它保持原样 - 积极的)

这种格式看起来有点像 NMEA RMC 语句

关于gps - TK06a GPS 追踪器协议(protocol) : Long/Lat Format,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19914001/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com