Unable to get battery or power info

mehroz378 years ago

I am unable to get battery level attribute in response even though I have enabled copyAttributes true like this

<entry key='processing.copyAttributes.enable'>true</entry> 
<entry key='processing.copyAttributes'>power,ignition,battery</entry>

and the response I get is

{"ignition":true,"status":4293393407,"ip":"119.160.102.157","distance":857.45,"totalDistance":735830.09}
Anton Tananaev8 years ago

Probably it means that your device hasn't sent any battery info.

mehroz378 years ago

But I can get battery info using SMS command.

Anton Tananaev8 years ago

It doesn't mean anything. What protocol are you using? Do you have some message samples from your device?

mehroz378 years ago

Protocol is HO2 and here is the sample of SMS
ID:6430041994; GSM signal:strong; GPS signal:sleep; Battery life:87; Operating mode:silent monitoring; tracking:ON.

Anton Tananaev8 years ago

I need a sample of data that your device sends to the server, not SMS.

mehroz378 years ago

I hope this is what you're asking for :)

Title : DATA attributes : {"ignition":true,"status":4293393407,"ip":"119.160.102.157","distance":857.45,"totalDistance":735830.09} gprmc : $GPRMC,071640.000,A,3128.3464,N,07419.1689,E,8.00,24.00,080517,,*32 TRCCR : h02
Message : TOTAL SOFT HERE IS UR DATA
StackTrace : deviceid :6430046874,latitude:31.47244longitude : 74.31948166666666
Date / Time : 5/8/2017 12:16:51 PM

Anton Tananaev8 years ago

Unfortunately it's not. I need HEX message from logs.

mehroz378 years ago

Okay here it is

2017-05-08 00:02:16 DEBUG: [DA39665B: 5013 < 119.160.102.157] HEX: 2a48512c363433303034363837342c4c494e4b2c3139303232352c3130302c302c38382c302c302c3037303531372c464645374642464623
2017-05-08 00:02:16 DEBUG: [E320289B: 5013 < 119.160.101.95] HEX: 2a48512c363433303034313939342c4c494e4b2c3139303232362c3130302c302c39342c302c302c3037303531372c464645374642464623
2017-05-08 00:04:26 DEBUG: [E320289B: 5013 < 119.160.101.95] HEX: 2a48512c363433303034313939342c56312c3139303433362c412c333132372e363537392c4e2c30373431372e323237392c452c3030302e302c3331372c3037303531372c464645374642464623
2017-05-08 00:04:26  INFO: [E320289B] id: 6430041994, time: 2017-05-08 00:04:36, lat: 31.46097, lon: 74.28713, speed: 0.0, course: 317.0
Anton Tananaev8 years ago

As far as I can tell, there is no battery info last message. Not sure about the first two, but those messages are not supported by Traccar at the moment. Do you have protocol documentation for the device?

mehroz378 years ago

The Device is RF-V16 and is using HO2 protocol I have seen it on this website it's there under Protocols, is this something about API version 3.10 will upgrading it to 3.11 fix the issue or it's not possible to get that info from this protocol, please confirm me this. Thank you so much your responses.

Anton Tananaev8 years ago

The documentation that I have (English one) doesn't have anything about that type of messages.