port identification

Bog2 years ago

hello.I followed your instruction to determine what is the right port/protocol for my gps tracker.This is the decode of the log file in traccar.Can you help me?

POST /hmsg HTTP/1.1
Host: My server IP:5001
Accept: */*
User-Agent: QUECTEL_MODULE
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 136
Anton Tananaev2 years ago

What's the content of the HTTP request?

Bog2 years ago
gps103 < 93.122.211.95] 504f5354202f686d736720485454502f312e310d0a486
error - begin 21, end 24, length 21 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)

and this are 2 more samples in the traccar log file
Please give me some help.Thank you!

Anton Tananaev2 years ago

It's the same header. I don't see the content.

Bog2 years ago
2022-08-01 10:31:41  INFO: [f733c237: gps103 < 93.122.211.95] e1313030313837012ea1b68062c9cb9408040a10309a332a000108160710242a750a96000000ff55103a87010016000057014800010000012b00007700be99830320000000060cc8ffff
2022-08-01 10:31:41  INFO: [Tf733c237] error - begin 21, end 24, length 22 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:31:41  INFO: [Tf733c237] error - begin 21, end 24, length 5 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:31:41  INFO: [Tf733c237] error - begin 21, end 24, length 8 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:31:41  INFO: [Tf733c237] error - begin 21, end 24, length 2 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:31:41  INFO: [Tf733c237] disconnected
2022-08-01 10:32:34  INFO: [Tf0af769a] connected
2022-08-01 10:32:34  INFO: [Tf0af769a: gps103 < 93.122.211.95] 504f5354202f686d736720485454502f312e310d0a486f73743a2039332e3132322e3139332e32373a353030310d0a4163636570743a202a2f2a0d0a557365722d4167656e743a205155454354454c5f4d4f44554c450d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a436f6e74656e742d547970653a206170706c69636174696f6e2f782d7777772d666f726d2d75726c656e636f6465640d0a436f6e74656e742d4c656e6774683a203133360d0a0d0a
2022-08-01 10:32:34  INFO: [Tf0af769a] error - begin 21, end 24, length 21 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:34  INFO: [Tf0af769a] error - begin 21, end 24, length 9 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:34  INFO: [Tf0af769a] error - begin 21, end 24, length 2 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:34  INFO: [Tf0af769a] error - begin 21, end 24, length 2 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:34  INFO: [Tf0af769a] error - begin 21, end 24, length 21 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:34  INFO: [Tf0af769a] error - begin 21, end 24, length 2 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:34  INFO: [Tf0af769a] disconnected
2022-08-01 10:32:40  INFO: [T0d402a4f] connected
2022-08-01 10:32:40  INFO: [T0d402a4f: gps103 < 93.122.211.95] e0000080000000000000000000000000000015111415ff05043c02000000000000cf001c000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000270000000000000000000000000000002100000104000000010000000000000000000000000600000106000000000c020f0300040a060004000016051b030001110100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010b000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000232339332e3132322e3139332e32372a332d3132322d3139332d32372e65752e6e67726f6b2e696f2a2a353030312a2a353030312a2a2b34303734313233333431382a2a2a2a2a2a2a2a6c616e742a6e65742a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a7365722a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a6173732a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2b333130303030303030302a2a2a2a2a2a2a2a2a3030303030302a3030303030302a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a30313032303030303030313030313837c5a7ff
2022-08-01 10:32:40  INFO: [T0d402a4f: gps103 > 93.122.211.95] 4f4e
2022-08-01 10:32:40  INFO: [T0d402a4f] error - begin 21, end 24, length 1 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:40  INFO: [T0d402a4f: gps103 > 93.122.211.95] 4f4e
2022-08-01 10:32:40  INFO: [T0d402a4f] error - begin 21, end 24, length 1 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:41  INFO: [T0d402a4f: gps103 > 93.122.211.95] 4f4e
2022-08-01 10:32:41  INFO: [T0d402a4f] error - begin 21, end 24, length 1 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:41  INFO: [T0d402a4f] error - begin 21, end 24, length 13 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:41  INFO: [T0d402a4f] error - begin 21, end 24, length 1 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-08-01 10:32:41  INFO: [T0d402a4f] error - begin 21, end 24, length 1 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:408 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
...

Here are the logs. Do you refer to those?

Anton Tananaev2 years ago

Looks like it never sends the content. You should try one of the HTTP-based protocol. For example, port 5055.

Hitesh Parekh10 months ago

Sir, I m using MT-02 device
below mentioned is data string recived from a device which PORT ihave use intraccar. Thanks In advance.

Data String :	[7e, 02, 00, 00, 6b, 08, 90, 42, 88, 18, 96, 00, e6, 00, 00, 01, 00, 00, 00, 00, 00, 01, 25, 47, 6f, 04, 59, 4c, cb, 00, 00, 00, 00, 00, 00, 23, 07, 10, 13, 33, 24, 01, 04, 00, 00, 03, e3, eb, 47, 00, 0c, 00, b2, 89, 91, 98, 23, 05, 08, 27, 12, 89, 1f, 00, 06, 00, 89, ff, ff, ff, ff, 00, 24, 00, a9, 01, 94, 98, 06, 05, c6, c0, db, 10, 05, c6, f0, 71, 0b, 05, c6, f0, 6f, 10, 05, c6, 7c, f9, 0a, 05, c6, 7c, fa, 0c, 05, c6, 83, 2e, 0b, 00, 03, 01, 02, 03, 00, 04, 00, ce, 00, 46, 65, 7e]:::5590
[[IMEI = 89042881896],[Latitude = 192203350],[Longitude = 729612270],[Speed = 0],[Angle = 0],[Altitude = 0],[Odometer = 99500],[IO = [Over speed = 0] [Sharp acceleration = 1] [Power under volt = 0] [Power = 1] [ACC = 0] [Vehicle oil electricity = 0] [GSM signal = 50] [GPS validity = 0] [Sim ICCID = 8991982305082712891f] [Collision alarm = 1] [Sharp deceleration = 1] [Vibration = 1] [Sharp turn = 1] [Speed = 0] [Immobilize = 0] ]]

Device Time : 2023-07-10 13:33:24, Time Zone Of Device Set On System : Plus 00:00
Over Speed = 0, Passed POI = 0, Fuel Level = 1, Fuel = 0, Temperature = 0, Gsm = 50, Gps = 0, History Data = 0, Night Driving = 1, GPS = 1, Door = 1, Heart Beat = 0, Ignition acc = 1, Tank LID = 1, Private Mode = 0, Planned Tour End = 0, External Power = 700
Anton Tananaev10 months ago

Please provide Traccar logs.