Problem sending GPS device command coban 303

Felipe2 years ago

I have linked my gps through port 5001, everything is correct, it appears online in my demo2, but when I send a command through the api it gives me the following error

Command deviceIdentification is not supported in protocol gps103 - RuntimeException (BaseProtocol: 114 < DeviceSession: 66 < CommandsManager: 85 < ...)

post to endpoint https://demo2.traccar.org/api/commands/send :

{
  "id": 0,
  "deviceId": 1931,
  "description": "test client id",
  "type": "deviceIdentification",
  "attributes": {}
}
Anton Tananaev2 years ago

Do you have some specific question? The error message seems pretty clear to me.

Felipe2 years ago

So I can't use that command? How do I do it to be supported? I don't understand that

Anton Tananaev2 years ago

Not supported. To support you need to implement it in the code.

Felipe2 years ago

Is there any guide on how to do it?

Anton Tananaev2 years ago

No, but plenty of examples in the code. Just search.

Felipe2 years ago

ok, what is not clear to me is which code should I download?

Anton Tananaev2 years ago

Then you probably shouldn't attempt it yourself.

Felipe2 years ago

I only ask you if it should be the traccar server or traccar web, how heavy are you

Anton Tananaev2 years ago

OK, but it's going to be my last answer in this thread. Obviously it has to be done on the backend - traccar repository.