You are seriously mistaken. Every tracking device has a unique identifier. How can you track something if it wasn't possible to identify it? Most GPS tracking devices use modem IMEI as a unique id.
Now I understand. I must include the IMEI in the identifier field. Thank you very much. I'll take a test.
I would also recommend to read this:
Hi, @Anton Tananaev I try to add the same chinese device TK102B to traccar server installed on my VPS. I add it two times with IMEI and ID and both are offline. There no place to put that port 5002. Can You help me?
What do you mean no place to put port? Have you configured your device? Traccar won't do it for you.
Thanks for answer I find on manual to my device how to make it work with their www.gps19.net
and send sms to my device: "adminipmy_password my_serverIP 5002" also try "5001" and my server port 8082 but still offline. My device always send me sms: "adminip ok".
Do I have to set GPRS instead SMS in my device?
@ Anton Tananaev I try all ports with above method but nothing works. Is there some tutorial step by step how to add device to Traccar? Do I have to reset server every time I send that sms? I add in Traccar web dashboard two devices, one with IMEI and second with ID that is on the sticker on my device. Do I have to add 0 to my ID in Traccar panel to have 12 digits ID?
On the server side you don't need to do anything other than add device with correct id. If it doesn't work, follow troubleshooting guide.
@Anton Tananaev I find in log file many errors and disconnections but one HEX output from hex decoder looks ok for me but I'm not expert, meybe You will tell me something:
GET / HTTP/1.1
Host: 217.61.63.183:5002
Connection: keep-alive
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7
Cookie: user=c2t3ZXJlc3BAZ21haWwuY29t; password=Yml0dC1zaW1wbGUtY29uZmlkZXItcGFsdHJ5LWNhc2VzLWFsZWM%3D; ext-events-scroll-to-last-button=o%3Apressed%3Db%253A1; ext-sound-button=o%3Apressed%3Db%253A0; ext-device-follow-button=o%3Apressed%3Db%253A0; ext-show-live-routes-button=o%3Apressed%3Db%253A0; ext-events-grid=o%3Acollapsed%3Do%253A%5Ecolumns%3Da%253Ao%25253Aid%25253Ds%2525253Ah1%255Eo%25253Aid%25253Ds%2525253Ah2%255Eo%25253Aid%25253Ds%2525253Ah3%5Eweight%3Dn%253A-20; ext-state-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Ah1%255Eo%25253Aid%25253Ds%2525253Ah2%5Estor
That's clearly not from your device. If you don't have anything else, it means your device is not reporting to the server.
Do I have to change my server port to 5002 instead 8082?
Have you read my previous comment?
@Anton Tananaev Hi, I have that file in /opt/traccar/logs - traccar-server-log:
2020-01-19 01:16:35 INFO: [d1787b6b] connected
2020-01-19 01:16:35 INFO: [d1787b6b: cartrack < 159.203.201.190] HEX: 160301009a0100009603035f3e717f360b03f9d1f33cf029989fc937e79ebb4825f463d4ef20e5aab06d0700001ac02fc02bc011c007c013c009c014c00a0005002f0035c012000a01000053000500050100000000000a00080006001700180019000b00020100000d00260024060106030602050105030502040104030402030103030302020102030202010101030102ff01000100000f00010100120000
2020-01-19 01:16:44 INFO: [d1787b6b] disconnected
2020-01-19 01:30:33 INFO: [5e4b595e] connected
2020-01-19 01:30:33 INFO: [5e4b595e: gps103 < 80.82.77.139] HEX: 1603010200010001fc03036f17a906c6b2dbb85abc466c30d2dbc382cfbaf65e3f48df4726bc5bb15fd93e0000f4c030c02cc028c024c014c00a00a500a300a1009f006b006a0069006800390038003700360088008700860085c01900a7006d003a0089c032c02ec02ac026c00fc005009d003d00350084c02fc02bc027c023c013c00900a400a200a0009e00670040003f003e0033003200310030009a0099009800970045004400430042c01800a6006c0034009b0046c031c02dc029c025c00ec004009c003c002f009600410007c011c007c0160018c00cc00200050004c012c008001600130010000dc017001bc00dc003000a00150012000f000c001a00090014001100190008000600170003c010c006c015c00bc001003b0002000100ff010000df000b000403000102000a001c001a00170019001c001b0018001a0016000e000d000b000c0009000a00230000000d0020001e060106020603050105020503040104020403030103020303020102020203000f000101001500860000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2020-01-19 01:30:33 WARN: [5e4b595e] error - begin 21, end 23, length 20 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:411 < ExtendedObjectDecoder:51 < ... < WrapperContext:102 < ...)
2020-01-19 01:30:33 INFO: [5e4b595e] disconnected
2020-01-19 01:30:37 INFO: [ac8195bd] connected
2020-01-19 01:30:37 INFO: [ac8195bd: gps103 < 80.82.77.139] HEX: 474554202f20485454502f312e310d0a486f73743a203231372e36312e36332e3138330d0a0d0a
2020-01-19 01:30:37 WARN: [ac8195bd] error - begin 21, end 23, length 16 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:411 < ExtendedObjectDecoder:51 < ... < WrapperContext:102 < ...)
2020-01-19 01:30:37 WARN: [ac8195bd] error - begin 21, end 23, length 21 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:411 < ExtendedObjectDecoder:51 < ... < WrapperContext:102 < ...)
2020-01-19 01:30:37 WARN: [ac8195bd] error - begin 21, end 23, length 2 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:411 < ExtendedObjectDecoder:51 < ... < WrapperContext:102 < ...)
2020-01-19 01:30:37 INFO: [ac8195bd] disconnected
2020-01-19 03:09:47 INFO: [2e55d338] connected
2020-01-19 03:09:47 INFO: [2e55d338: trv < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 03:18:58 WARN: [2e55d338] error - Connection reset by peer - IOException (...)
2020-01-19 03:18:58 INFO: [2e55d338] disconnected
2020-01-19 03:40:56 INFO: [ade8feec] connected
2020-01-19 03:40:56 INFO: [ade8feec: t55 < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 03:41:15 INFO: [70b7f3c0] connected
2020-01-19 03:41:15 INFO: [70b7f3c0: meiligao < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 03:49:05 INFO: [767b8376] connected
2020-01-19 03:49:05 INFO: [767b8376: totem < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 03:49:13 INFO: [e305b337] connected
2020-01-19 03:49:13 INFO: [e305b337: xexun < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 03:50:12 INFO: [d9579cdb] connected
2020-01-19 03:50:12 INFO: [d9579cdb: gl200 < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 03:50:12 WARN: [d9579cdb] error - index: 0, length: 4 (expected: range(0, 1)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 03:50:12 WARN: [d9579cdb] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 03:50:12 WARN: [d9579cdb] error - index: 0, length: 4 (expected: range(0, 3)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 03:50:12 WARN: [d9579cdb] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 03:50:12 WARN: [d9579cdb] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 03:50:12 WARN: [d9579cdb] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 03:50:12 WARN: [d9579cdb] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 03:50:12 INFO: [d9579cdb] disconnected
2020-01-19 03:51:56 WARN: [70b7f3c0] error - Connection reset by peer - IOException (...)
2020-01-19 03:51:56 INFO: [70b7f3c0] disconnected
2020-01-19 03:53:36 INFO: [c8550a18] connected
2020-01-19 03:53:46 INFO: [c8550a18] disconnected
2020-01-19 03:54:00 WARN: [ade8feec] error - Connection reset by peer - IOException (...)
2020-01-19 03:54:00 INFO: [ade8feec] disconnected
2020-01-19 03:54:56 WARN: [e305b337] error - Connection reset by peer - IOException (...)
2020-01-19 03:54:56 INFO: [e305b337] disconnected
2020-01-19 04:01:56 WARN: [767b8376] error - Connection reset by peer - IOException (...)
2020-01-19 04:01:56 INFO: [767b8376] disconnected
2020-01-19 04:34:54 INFO: [e8daea5a] connected
2020-01-19 04:34:54 INFO: [e8daea5a: huasheng < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 04:47:12 WARN: [e8daea5a] error - Connection reset by peer - IOException (...)
2020-01-19 04:47:12 INFO: [e8daea5a] disconnected
2020-01-19 04:52:14 INFO: [5d8849f0] connected
2020-01-19 04:52:14 INFO: [5d8849f0: arnavi < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 04:54:07 WARN: [5d8849f0] error - Connection reset by peer - IOException (...)
2020-01-19 04:54:07 INFO: [5d8849f0] disconnected
2020-01-19 05:05:24 INFO: [de9c0636] connected
2020-01-19 05:05:24 INFO: [de9c0636: meitrack < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 05:14:11 WARN: [de9c0636] error - Connection reset by peer - IOException (...)
2020-01-19 05:14:11 INFO: [de9c0636] disconnected
2020-01-19 06:27:48 INFO: [716f8391] connected
2020-01-19 06:27:48 INFO: [716f8391: trv < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 06:39:34 WARN: [716f8391] error - Connection reset by peer - IOException (...)
2020-01-19 06:39:34 INFO: [716f8391] disconnected
2020-01-19 06:58:38 INFO: [58a85793] connected
2020-01-19 06:58:38 INFO: [58a85793: gl200 < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 06:58:38 WARN: [58a85793] error - index: 0, length: 4 (expected: range(0, 1)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 06:58:38 WARN: [58a85793] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 06:58:38 WARN: [58a85793] error - index: 0, length: 4 (expected: range(0, 3)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 06:58:38 WARN: [58a85793] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 06:58:38 WARN: [58a85793] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 06:58:38 WARN: [58a85793] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 06:58:38 WARN: [58a85793] error - index: 0, length: 4 (expected: range(0, 0)) - IndexOutOfBoundsException (... < Gl200FrameDecoder:37 < Gl200ProtocolDecoder:43 < ExtendedObjectDecoder:51 < ...)
2020-01-19 06:58:38 INFO: [58a85793] disconnected
2020-01-19 07:00:22 INFO: [1bff745e] connected
2020-01-19 07:00:22 INFO: [1bff745e: meiligao < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 07:02:25 INFO: [6c6f99af] connected
2020-01-19 07:02:25 INFO: [6c6f99af: t55 < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 07:03:21 INFO: [f4fa1a56] connected
2020-01-19 07:03:21 INFO: [f4fa1a56: xexun < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 07:10:17 INFO: [14c86234] connected
2020-01-19 07:10:17 INFO: [14c86234: totem < 5.8.18.88] HEX: 0300002f2ae00000000000436f6f6b69653a206d737473686173683d41646d696e697374720d0a0100080003000000
2020-01-19 07:10:49 WARN: [1bff745e] error - Connection reset by peer - IOException (...)
2020-01-19 07:10:49 INFO: [1bff745e] disconnected
2020-01-19 07:14:08 WARN: [6c6f99af] error - Connection reset by peer - IOException (...)
2020-01-19 07:14:08 INFO: [6c6f99af] disconnected
2020-01-19 07:16:01 WARN: [14c86234] error - Connection reset by peer - IOException (...)
2020-01-19 07:16:01 INFO: [14c86234] disconnected
2020-01-19 07:18:47 WARN: [f4fa1a56] error - Connection reset by peer - IOException (...)
2020-01-19 07:18:47 INFO: [f4fa1a56] disconnected
2020-01-19 07:21:19 INFO: user: 2, action: login
And when I sms that code: t002***npassword
I see that in log:
2020-01-19 09:12:43 INFO: [d35116af: tk103 < 109.173.220.232] HEX: 474554202f20485454502f312e310d0a486f73743a203231372e36312e36332e3138333a353030320d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a444e543a20310d0a557067726164652d496e7365637572652d52657175657374733a20310d0a557365722d4167656e743a204d6f7a696c6c612f352e3020284c696e75783b20416e64726f696420393b206d6f746f726f6c61206f6e6520766973696f6e29204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f37392e302e333934352e313136204d6f62696c65205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c696d6167652f61706e672c2a2f2a3b713d302e382c6170706c69636174696f6e2f7369676e65642d65786368616e67653b763d62333b713d302e390d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174650d0a4163636570742d4c616e67756167653a20706c2d504c2c706c3b713d302e392c656e2d55533b713d302e382c656e3b713d302e370d0a436f6f6b69653a206578742d6d6f62696c652d73746174652d677269643d6f253341636f6c6c61707365642533446f25323533416d696e48656967687425323533446525323533413125323535456d696e5769647468253235334465253235334131253545636f6c756d6e732533446125323533416f2532353235334169642532353235334473253235323532353341683125323535456f2532353235334169642532353235334473253235323532353341683225354573746f726553746174652533446f2532353341736f7274657273253235334461253235323533416f253235323532353341726f6f742532353235323533447325323532353235323533416461746125323532353235354570726f70657274792532353235323533447325323532353235323533417072696f72697479253235323532353545646972656374696f6e25323532353235334473253235323532353235334141534325323532353235354569642532353235323533447325323532353235323533417072696f726974792535457765696768742533446e25323533412d32303b206578742d6d6f62696c652d646576696365732d677269643d6f253341636f6c6c617073656425334462253235334130253545636f6c756d6e732533446125323533416f2532353235334169642532353235334473253235323532353341683125323535456f2532353235334169642532353235334473253235323532353341683225323535456f25323532353341
2020-01-19 09:12:43 INFO: [d35116af: tk103 < 109.173.220.232] HEX: 69642532353235334473253235323532353341683325323535456f2532353235334169642532353235334473253235323532353341683425323535456f2532353235334169642532353235334473253235323532353341683525323535456f2532353235334169642532353235334473253235323532353341683625323535456f2532353235334169642532353235334473253235323532353341683725323535456f2532353235334169642532353235334473253235323532353341683825323535456f2532353235334169642532353235334473253235323532353341683925323535456f25323532353341696425323532353344732532353235323533416831302535457765696768742533446e253235334131303b206578742d6576656e74732d7363726f6c6c2d746f2d6c6173742d627574746f6e3d6f25334170726573736564253344622532353341313b206578742d736f756e642d627574746f6e3d6f25334170726573736564253344622532353341303b206578742d6576656e74732d677269643d6f253341636f6c756d6e732533446125323533416f2532353235334169642532353235334473253235323532353341683125323535456f2532353235334169642532353235334473253235323532353341683225323535456f253235323533416964253235323533447325323532353235334168333b206578742d73686f772d67656f66656e6365732d627574746f6e3d6f25334170726573736564253344622532353341303b206578742d73686f772d6c6976652d726f757465732d627574746f6e3d6f25334170726573736564253344622532353341313b206578742d6465766963652d666f6c6c6f772d627574746f6e3d6f25334170726573736564253344622532353341313b204a53455353494f4e49443d6e6f6465303166686e62686468646e7a347633793763376b39647a6b6674322e6e6f6465300d0a0d0a
2020-01-19 09:12:43 INFO: [ee9f00b7] connected
2020-01-19 09:12:49 INFO: [d35116af] disconnected
2020-01-19 09:22:17 WARN: [fe19bd17] error - Connection reset by peer - IOException (...)
2020-01-19 09:22:17 INFO: [fe19bd17] disconnected
I click on add a device and a window is shown with the name and identifier information.
This identifier is for mobile applications only. Most devices do not have this identifier.
If I have I do not know.
How to add a tk102b device?
Thank you.