send commands via api to a coban device

JULIAN8 months 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 Tananaev8 months ago

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

JULIAN8 months 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

JULIAN8 months 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 Tananaev8 months ago

It would be better if you shared the original document.

JULIAN8 months ago
Anton Tananaev8 months ago

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

JULIAN8 months 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