Error sending commands from platform?

Luis ADR7 years ago

Hello everyone, first of all congratulate Anton for his brilliant work. My problem is that when sending a command to the Tkstar905 tracker, that uses the Watch protocol in the log, I see the following as sent to the tracker: [CS*xxxxxxxxxx*0009*UPLOAD,15] and the tracker's answer is this: [SG*xxxxxxxxxx*0058*UD,190318,121338,A,45.567023,N,12.773125,W,0.0926,000,1,08,60,90,0,50,00000000,0,1,214,3,,00].
Taking a look at the protocol, it seems that the sequence should be: [SS*xxxxxxxxxx*0009*UPLOAD,15] and when trying to send this custom command, what it really sends is this: [CS*xxxxxxxxxx*001e*[SG*xxxxxxxxxx*0009*UPLOAD,15]]. Thank you very much for this great tool and greetings.

Luis ADR7 years ago

Correcting a typing error: Taking a look at the protocol, it seems that the sequence should be: [SGxxxxxxxxxx0009UPLOAD,15]

Anton Tananaev7 years ago

Traccar automatically adds header to custom command, so you just need to send UPLOAD,15.

Luis ADR7 years ago

Ok, that´s right but I think the error is at the beginning of the sentence [CS*..., should not it be [SG*...? Because the tracker answers [SG*xxxxxxxxxx*0058*UD,190318,121338,A,45.567023,N,12.773125,W,0.0926,000,1,08,60,90,0,50,00000000,0,1,214,3,,00] and the platform send [CS*.... Thanks in advance.

Anton Tananaev7 years ago

What do you expect as a response? It is possibly that header is incorrect and we need to make it configurable.

Luis ADR7 years ago

Perhaps only with allowing the complete inclusion of the custom command and that traccar does not automatically add the header. The header that differs is that corresponding to the company, hence it may vary depending on which device is used. [Company * device ID * Content length * Content].

In my case I try to send commands to a device whose only registered phone is not available and my only option to configure it is either through gprs or smpp. As so far it does not allow me to access with gprs, I have configured the smpp and I have been able to fix it. I have other doubts as a result of this but I will open a new thread, giving this as resolved.

Very thankful.