Possibly wrong "single reporting" command implemented in "watch" protocol

Martin5 years ago

Hi,

In "watch" protocol, calling this commad type:

TYPE_POSITION_SINGLE = "positionSingle"

results in sending this data to device:

case Command.TYPE_POSITION_SINGLE: return formatTextCommand(channel, command, "RG");

My device D79 does not respond to this message, but it responds to another one I sniffed from communication between the device and chinese server. I catched this message sent from the server and the same response from the device, evaluated by the server as succesfull single position response:

[3G*deviceId*0002*CR]

I also found this explained in 3G protocol document.

"RG" explanation: "Uses in no GPS signal, through base station mode to platform request latitude and longitude."
"CR" explanation: "Wake up the terminal GPS module immediately, for a period of time in a position."

I don't know if this is a special message type only for my device, but my device definitely uses at least the subset or maybe extended "watch" protocol. If other devices work with "RG" message, I will just write my custom command.

Thanks
Martin

Martin5 years ago

This is the documentation for the 3G "watch" protocol:

3G electric protocol

Martin5 years ago

I created pull request for this

#4545