Can't get all information from device that use watch protocol

James John3 years ago

Dear Sir
As you can see in this photo ![this snapshot from my logs file] https://flic.kr/ps/3XV6Br

I can't get all the data from the device.
How can I solve this problem
best regards

Anton Tananaev3 years ago

What is missing?

Track-trace3 years ago

@James John

You better paste the log as hex code, so that it can easily be translated.

James John3 years ago

It should receive like this: :

[3G*8000000015*0083*UD,050218,060013,A,43.720963,N,123.2604950,E,0.00,244.2,0.0,19,40,56,0,0,00000000,2,255,460,0,18264,22511,125,18264,22512,115,0,3.4]

But when I decode the HEX code, the output like this:

[3G*2104236569*006E*AL,051221,142333,V,31.969213,N,35.8649817,E,0.00,0.0
Anton Tananaev3 years ago

This doesn't look like a server issue to me. Is there a reason you posted it in the server forum?

James John3 years ago

I thought this problem was with the server issue.
Under what item it is categorized?
and How I can solve this issue?

Track-trace3 years ago

@James John

Why dont you start with just pasting the complete server log that you show in the image (as requested) ?

James John3 years ago

@ Trak-trace

I am sorry for that, I didn't get it when I post the issue.
What you think about this issue?

Track-trace3 years ago

@James John

I think you still dont get it. Post the complete log here so i can have a look at it.

James John3 years ago

Okay

...
2021-12-06 07:43:15  INFO: [ece5ff82] id: 2453678, time: 2021-12-06 07:43:15, lat: 31.96927, lon: 35.86466, course: 0.0, accuracy: 20.72021-12-06 07:43:25  INFO: [a63a6ca8] connected
2021-12-06 07:43:25  INFO: [a63a6ca8: watch < 46.32.121.128] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c36335d
2021-12-06 07:43:25  INFO: [a63a6ca8: watch > 46.32.121.128] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-06 07:43:25  INFO: [a63a6ca8] id: 2104236569, time: 2021-12-05 14:23:33, lat: 31.96921, lon: 35.86498, course: 0.0
Track-trace3 years ago

Only the last three line of the above Log is watch protocol.. ?

Can you send the log that you showed in the first image ? From 2021-12-05 13:41:12 to 2021-12-05 13:46:13

James John3 years ago
2021-12-05 13:41:12  INFO: [1ae3ee60] connected
2021-12-05 13:41:12  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38305d
2021-12-05 13:41:12  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 13:41:12  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-01 12:15:13, lat: 31.96921, lon: 35.86498, course: 43.6
2021-12-05 13:41:13  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303137422a434f4e4649472c54593a673336612c554c3a3630302c53593a302c434d3a302c57543a302c48523a302c54423a302c43533a302c5>
2021-12-05 13:43:57  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303131302a55442c3035313232312c3133343335352c562c33312e3936393231332c4e2c33352e383634393831372c452c302e30302c302e302>
2021-12-05 13:43:57  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:43:55, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 13:44:56  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38315d
2021-12-05 13:44:56  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 13:44:56  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:43:55, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 13:45:09  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303136422a414c2c3035313232312c3133343530382c562c33312e3936393231332c4e2c33352e383634393831372c452c302e30302c302e302>
2021-12-05 13:45:09  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a414c5d
2021-12-05 13:45:09  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:45:08, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 13:46:13  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303043412a414c2c3035313232312c3133343631322c562c33312e3936393231332c4e2c33352e383634393831372c452c302e30302c302e302>
2021-12-05 13:46:13  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a414c5d
2021-12-05 13:46:13  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 13:48:41  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 13:48:41  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 13:48:41  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 13:52:25  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 13:52:25  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 13:52:25  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 13:56:10  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 13:56:10  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 13:56:10  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 13:59:54  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 13:59:54  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 13:59:54  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:03:39  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 14:03:39  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 14:03:39  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:07:23  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 14:07:23  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 14:07:23  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:11:08  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 14:11:08  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 14:11:08  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:14:52  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 14:14:52  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 14:14:52  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:18:37  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 14:18:37  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 14:18:37  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:19:30  INFO: user: 2, action: edit, object: notification, id: 3
2021-12-05 14:22:09  INFO: [1ae3ee60] id: 2104236569, command type: sosNumber sent
2021-12-05 14:22:09  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030662a534f53312c303738373334323232365d
2021-12-05 14:22:11  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030342a534f53315d
2021-12-05 14:22:22  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 14:22:22  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38325d
2021-12-05 14:22:22  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 14:22:22  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 13:46:12, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:23:16  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303042392a414c2c3035313232312c3134323331342c562c33312e3936393231332c4e2c33352e383634393831372c452c302e30302c302e302>
2021-12-05 14:23:16  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a414c5d
2021-12-05 14:23:16  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 14:23:14, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:23:39  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303036452a414c2c3035313232312c3134323333332c562c33312e3936393231332c4e2c33352e383634393831372c452c302e30302c302e302>
2021-12-05 14:23:39  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a414c5d
2021-12-05 14:23:39  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 14:23:33, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:23:39  INFO: [1ae3ee60: watch < 46.32.121.90] HEX: 5b33472a323130343233363536392a303030392a4c4b2c302c302c38315d
2021-12-05 14:23:39  INFO: [1ae3ee60: watch > 46.32.121.90] HEX: 5b33472a323130343233363536392a303030322a4c4b5d
2021-12-05 14:23:39  INFO: [1ae3ee60] id: 2104236569, time: 2021-12-05 14:23:33, lat: 31.96921, lon: 35.86498, course: 0.0
2021-12-05 14:24:46  INFO: [82121eda] connected
2021-12-05 14:24:46  INFO: [82121eda: osmand < 127.0.0.1] HEX: 504f5354202f20485454502f312e310d0a4163636570743a202a2f2a0d0a557365722d4167656e743a204d6f7a696c6c612f352e3020285831313b204c696e7578207838365f3634292>
2021-12-05 14:24:46  INFO: [82121eda: osmand > 127.0.0.1] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2021-12-05 14:25:16  INFO: [82121eda] disconnected
Track-trace3 years ago

Do you actually have issues with the device itself within Traccar ?

Looking at your log it indeed misses a part of the hex. And what you have in your log indeed seems like actual watch protocol data.

So, you only have one device to test ? Or get same issue with other device with Watch protocol ?

Meaby its not easy for you, but you could monitor the incoming port on your server and actually see the whole message that the device is sending. To rule out the cause where the problem is.

Anton Tananaev3 years ago

Your text editor cut some of the HEX lines in the log, so they are not complete.

Track-trace3 years ago

Yeah, it seemed strange to me also, thus he should not have any isseus within traccar server because of this either.