identify protocol

aecsalome7 years ago

Hi Aton,

I have received the follow below from an old TK102.
When I decoded, some ones seems that it uses the protocol h02 (*HQ,4102008674,V1,013401,A,1959.1534,S,04402.1416,W,000.70,0), another seems a stranger code.
looking the https://raw.githubusercontent.com/tananaev/traccar/master/tools/test-integration.py page, I set it to use 5013 port.
the IMEI is 100000004618 (return by imei123456), but in server seems always off.

what I did wrong?

        Line 1642: 2017-05-19 22:24:30 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 2a48512c343130323030383637342c56312c3031323234302c562c313935392e313630352c532c30343430322e313438332c572c3030302e30302c3030302c3230303531372c464646464642464623
    Line 1644: 2017-05-19 22:24:30 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 2a48512c343130323030383637342c56312c3031323432372c562c313935392e313630352c532c30343430322e313438332c572c3030302e30302c3030302c3230303531372c464646464642464623
    Line 1646: 2017-05-19 22:24:35 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 24410200867401243320051719591620000440215202000000fffffbffff00bd
    Line 1648: 2017-05-19 22:25:10 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 24410200867401250220051719591600000440215302000000fffffbffff00be
    Line 1650: 2017-05-19 22:25:24 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 24410200867401252220051719591630000440214902000000fffffbffff00bf
    Line 1652: 2017-05-19 22:25:44 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 24410200867401254320051719591640000440214802000000fffffbffff00c0
    Line 1654: 2017-05-19 22:26:04 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 24410200867401260220051719591660000440214702000000fffffbffff00c1
    Line 1656: 2017-05-19 22:26:24 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 24410200867401262220051719591630000440214902000000fffffbffff00c2
    Line 1658: 2017-05-19 22:26:44 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 24410200867401264220051719591610000440215002000000fffffbffff00c3
    Line 1660: 2017-05-19 22:27:03 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 24410200867401270220051719591620000440215102000000fffffbffff00c4
    Line 1662: 2017-05-19 22:28:03 DEBUG: [9ED63314: 5013 < 179.167.29.88] HEX: 24410200867401280220051719591680000440215202000000fffffbffff00c5
    Line 1665: 2017-05-19 22:29:11 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 2a48512c343130323030383637342c56312c3031323931302c412c313935392e313630392c532c30343430322e313530332c572c3030302e31302c3030302c3230303531372c464646464642464623
    Line 1667: 2017-05-19 22:29:12 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 2a48512c343130323030383637342c56312c3031323931312c412c313935392e313630382c532c30343430322e313530342c572c3030302e31302c3030302c3230303531372c464646464642464623
    Line 1669: 2017-05-19 22:29:25 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401292320051719591600000440215002000000fffffbffff0000
    Line 1671: 2017-05-19 22:29:44 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401294320051719591570000440214802000000fffffbffff0001
    Line 1673: 2017-05-19 22:30:04 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401300320051719591530000440215102000000fffffbffff0002
    Line 1675: 2017-05-19 22:30:24 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401302320051719591590000440214802000000fffffbffff0003
    Line 1677: 2017-05-19 22:30:44 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401304320051719591580000440214902000000fffffbffff0004
    Line 1679: 2017-05-19 22:31:05 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401310320051719591560000440215102000000fffffbffff0005
    Line 1681: 2017-05-19 22:31:25 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401312320051719591570000440215102000000fffffbffff0006
    Line 1683: 2017-05-19 22:31:44 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401314320051719591610000440214702000000fffffbffff0007
    Line 1685: 2017-05-19 22:32:04 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401320320051719591580000440214902000000fffffbffff0008
    Line 1687: 2017-05-19 22:32:24 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401322320051719591520000440215202000000fffffbffff0009
    Line 1689: 2017-05-19 22:32:44 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401324320051719591570000440215102000000fffffbffff000a
    Line 1691: 2017-05-19 22:33:04 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401330320051719591560000440215202000000fffffbffff000b
    Line 1693: 2017-05-19 22:33:24 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401332320051719591510000440214902001340fffffbffff000c
    Line 1695: 2017-05-19 22:33:44 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401334320051719591460000440214602000000fffffbffff000d
    Line 1697: 2017-05-19 22:34:02 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 2a48512c343130323030383637342c56312c3031333430312c412c313935392e313533342c532c30343430322e313431362c572c3030302e37302c3030302c3230303531372c464646464642464623
    Line 1699: 2017-05-19 22:34:04 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401340320051719591540000440214102000000fffffbffff000e
    Line 1701: 2017-05-19 22:34:24 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401342320051719591570000440214102000000fffffbffff000f
    Line 1703: 2017-05-19 22:34:44 DEBUG: [7B55AA38: 5013 < 177.79.5.227] HEX: 24410200867401344320051719591590000440214402000000fffffbffff0010
Anton Tananaev7 years ago

It looks like H02 protocol, but I need to see full connection session to tell you what the problem is. Connection can be identified by the hex number in square brackets.