display returned messages following commands send over internet to VJOY DEVICES

Loic 4 years ago

Dear Anton

I am using VJOY DEVICES (TK103 protocol). The VJOY REVISED protocol is quite different from tk103.

http://www.vjoycar.com/Up/day_150610/Revised%20Protocol%20150306.pdf

When i send commands over internet the tracker reply as below :

(864768010089024,ZC03,180820,153354,$1 .Sensor sensitivity: 3
2 .Alert status: SMS
3 .Check interval is set to 15 minute(s).
4 . Power: 46%
$)

for "status" command

or as below for "checkm" command :

(864768010089024,ZC03,180820,061532,$Notice: Check interval is set to 15 minute(s).$)

Is there a way to display the returned messages to the web GUI ? If yes how to do that ? I tried to have a look a computed attributes but i don't think finally that's the right way to do that.

The original logs are here :

2020-08-18 08:15:31  INFO: [54B8800C] id: 864768010089024, command type: custom sent
2020-08-18 08:15:31 DEBUG: [54B8800C: 5002 > 195.10.99.100] HEX: 5b626567696e5d736d73322c2a636865636b6d2a31352a2c5b656e645d

2020-08-18 17:33:51  INFO: [4DE214E8] id: 864768010089024, command type: custom sent
2020-08-18 17:33:51 DEBUG: [4DE214E8: 5002 > 195.10.99.100] HEX: 5b626567696e5d736d73322c5b626567696e5d736d73332c2a7374617475732a2c5b656e645d2c5b656e645d

2020-08-18 17:33:56 DEBUG: [4DE214E8: 5002 < 195.10.99.100] HEX: 283836343736383031303038393032342c5a4330332c3138303832302c3135333335342c2431202e53656e736f722073656e73697469766974793a20330d0a32202e416c657274207374617475733a20534d530d0a33202e436865636b20696e74657276616c2069732073657420746f203135206d696e7574652873292e0d0a34202e20506f7765723a203436250d0a2429

Thanks for your help

Loic

Anton Tananaev4 years ago

It should already be supported:

https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java#L426

It should come as a command result event.

Loic 4 years ago

Anton

Many thanks for your quick reply. Before post my message i had set the device notifications to "command result" but i can't see this event anywhere.

Should it be present in report or just in event notifications ?

Regards

Anton Tananaev4 years ago

It works like all other events. It's present in the report and you can configure notifications for it.

Loic 4 years ago

Thanks a lot i got it