send commands via api to a coban device

JULIANa month ago

Gentlemen, I come to your kind help.

I am trying to send commands by GPRS to a device, it responds to the commands I send by SMS but when it comes to sending it through the API it does not work.

I have already activated the protocol so that it can accept GPRS commands

this is the structure that the traccar documentation says

{
  "id": 0,
  "deviceId": 0,
  "description": "string",
  "type": "string",
  "attributes": {}
}

and I send it this way via POSTMAN

http://xx.xxx.xx.xxx:8082/api/commands/send
{
    "id": 0,
    "attributes": {},
    "deviceId": 739,
    "type": "engineResume",
    "textChannel": false,
    "description": "string"
}

and this is what the traccar log tells me

INFO: [T04e82631] id: 864035052042596, command type: engineResume sent
**,imei:864035052042596,K

The command reaches the server and the server, when the device opens communication, sends the command but the device does not receive the command properly, it is not taking it.

I thank you very much in advance for your collaboration.

Anton Tananaeva month ago

Probably the command format for your device is different. Check the protocol documentation and compare it with the sent command.

JULIANa month ago

according to the document it says that to send on and off commands they must be taken this way

...

but I don't know how they are sent then with the API structure

Thank you very much for your prompt response

JULIANa month ago

...

These would be the events that arrive in the frames that the devices send to the communications server, according to what the documentation says

Anton Tananaeva month ago

It would be better if you shared the original document.

JULIANa month ago
Anton Tananaeva month ago

How do you know it's the right protocol for your device?

JULIANa month ago

We are managing a line of Coban 403AB devices, we use the GPS103 protocol, which is the Coban line, but according to the table of supported devices it is only up to the 303F line, I don't know if this will influence