Teltonika FM1100数据解析器

时间:2012-03-24 18:59:34

标签: java python sockets gps

我在python中为teltonika fm1100设备构建TCP / IP套接字服务器,但我无法解析数据。它不可读。在用Java编写的OpenGTS中,他们使用Payload类来解析数据。这是我从跟踪器收到的内容。

26E�F�� | E                      B.6E \的pE                                            B.6E5 �����E� B.�6EP����E� B.�6E��@� ���E� B.�6E��0����E� B.�6E�� �����E� B.�6E�r�����E� B.�6E�K����E� B.�6E�#�� ���E� B.�6E������E� B.�6E��8��� �E� B.�6E�������E� B.�6E��x�����E� B.�6Eߟh���Ë                                                                                                                                   B.6ExX �E� B.�6E�QH�0�Ë                                                                                                                                                                                B.6E * 8PE                                                                                                                                                                                                      B.6E ��E� B.�6E�� PE                                    B.6E@E                                                          B. 6E 0 E                                                                                B.6E@PE                                                                                                      B.6E00E                                                                                                                             B. 6E 0 E                                                                                                                                                    B.6E 0 E                                                                                                                                                                         B.6Eu0E                                                                                                                                                                                               B.6EM0 E� B.�6E�&�� �Ë                             B.6E0 E� B.�6E����P�Ë                                                                          B.6Eڱp E� B.�6Eڊ����Ë                                                                                                                    B.6E _ E� B.�6E�uH�P� E� B.�6E؊������ E� B.�6E�c������E� B.�6E�<��Ë                                                    B. 6E P E B. 6E E B. 6E ǘ E B. 6Eנ E B. 6E yx E B.6ERhE                      B.6E֢��E� B.�6Eո@�0�E� B.�6E����Ë                                                                                    B.6E @@è                                                                                                          B. 6E �E� B.�6E����@E� B.�2

任何想法如何阅读本文或如何解码它python

1 个答案:

答案 0 :(得分:0)

我建议从OpenGTS源代码开始。由于它托管在SourceForge上,我认为源是可用的。您应该能够从其消息解析器中找出字节流格式。一旦你知道了数据格式,就可以使用类似struct module的东西来解析二进制文件并编写一些类来以一种漂亮的Pythonic方式表示数据。