GPS追踪器数据解读
我使用 PHP 开发了一个 GPS 服务器。我能够从 Redview 设备获取数据,该数据按照以下字符串出现。
$$10737020005???&A9955&B085439.000,A,0116.8607,S,03645.5800,E,0.00,271.45,270911,,,A*7B|1.1|&C0000011111&D00269<21&E00000001&Y00000000##
我已成功将字符串拆分为单独的部分,并成功将数据存储在 MySql 数据库表中。
问题:
下面的字符串是什么意思?
A*7B|1.1|&C0000011111&D00269<21&E00000001&Y00000000##
I have developed a GPS server using PHP. I am able to get the data from a Redview device that comes up as per the below string.
$10737020005???&A9955&B085439.000,A,0116.8607,S,03645.5800,E,0.00,271.45,270911,,,A*7B|1.1|&C0000011111&D00269<21&E00000001&Y00000000##
I have managed to split the string into separate portions and successfully stored the data in a MySql database table.
Question:
What does the following string mean?
A*7B|1.1|&C0000011111&D00269<21&E00000001&Y00000000##
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
*7B = 校验和,但其余部分可能是 Redview 添加到末尾的专有数据。通常,公司会将这些数据保密(尽管许多制造商已经对很多数据进行了逆向工程)并将其出售给开发商。
查看维基百科关于 NMEA 的条目,了解更多链接和信息。
*7B = Checksum, but the rest of it is probably proprietary data that Redview tacked on to the end. Usually, companies keep this data private (though a lot has been reverse engineered for several manufacturers) and sell it to developers.
Check out Wikipedia's entry on NMEA for further links and info.
这些字符串与我以前见过的Meilago、Bofan、Access Tech 等消息非常相似。查看 Redview 网站,我认为他们销售的设备与我之前使用的设备完全相同;据我所知,基本上相同的设备有几个不同的品牌名称。我建议向 Redview 索取协议文档,或检查其他供应商:我找到了一个 此处,但还有其他几个规格就在那里。实际上我刚刚找到了 redview< /a> 规格也是如此。
很难判断您的字符串涵盖哪个命令(客户端设备消息类型),因为相应的 2 个字节将是 ??,并且没有为 3F3F(假设 ASCII 编码)定义任何内容。上面引用的子字符串是给定命令的具体数据。您可以检查服务器端,也许接收和记录消息是否一切正常:我建议从套接字读取整数(字节),并仔细记录它们(例如编码)。
These strings are very similar to Meilago, Bofan, Access Tech etc. messages, which I have seen before. Checking the Redview site I think they sell quite the same device that I used before; as far as I know basically the same devices are sold with several different brand names. I suggest asking Redview for the protocol docs, or checking other suppliers: I found one here, but there are several other specs out there. Actually I just found a redview specs too.
It's hard to tell which command (client device message type) your string covers, as the corresponding 2 bytes would be ??, and there is nothing defined for 3F3F (supposing ASCII encoding). The substring quoted above is the specific data of the given command. You may check the server side maybe if there is everything OK with receiving and logging the messages: I suggest reading integers (bytes) from the socket, and log them carefully (eg. encoding).