GT03A battery Power details is not stored in attributes Traccar version 3.4

neerajbw9 years ago

Hi Anton,
I am facing challenge with GT03A device protocol GT06 with Traccar version 3.4 server is not storing the battery power information.
Please help we are in urgent need of this.
Regards,
Neeraj

Anton Tananaev9 years ago

Are you sure your device sends battery info? Please provide some HEX message samples from config.

neerajbw9 years ago

Thanks for asking, please see below log from server and let me know if any other details require.

2016-04-25 00:00:12 DEBUG: [FDF65245: 33001 < 27.63.171.187] HEX: 78781f121004190c1e0dc802d9508c08a2aee00c555a01953604090009c7131361570d0a
2016-04-25 00:00:12 DEBUG: [FDF65245: 33001 > 27.63.171.187] HEX: 7878051213133f470d0a
2016-04-25 00:00:12  INFO: Position filtered from 33
2016-04-25 00:00:14 DEBUG: [C39B4D37: 33001 < 27.63.151.21] HEX: 78781f121004190c1e0fc8027a8af8083f799011543201945d1bc0003523042cff4f0d0a
2016-04-25 00:00:14 DEBUG: [C39B4D37: 33001 > 27.63.151.21] HEX: 78780512042c2eaa0d0a
2016-04-25 00:00:14  INFO: Position filtered from 34
2016-04-25 00:00:16 DEBUG: [9FF0B395: 33001 < 223.191.63.19] HEX: 78781f121004190c1e11cb024b2d9c08c311f01d540b01945d051a00cfa100515d8d0d0a
2016-04-25 00:00:16 DEBUG: [9FF0B395: 33001 > 223.191.63.19] HEX: 787805120051e1a80d0a
2016-04-25 00:00:16  INFO: Position filtered from 36
2016-04-25 00:00:16 DEBUG: [111D5294: 33001 < 27.63.158.192] HEX: 78781f121004190c1e11ca0268537407d867e82e54970194621410003aff03632c2a0d0a
2016-04-25 00:00:16 DEBUG: [111D5294: 33001 > 27.63.158.192] HEX: 787805120363d9510d0a
2016-04-25 00:00:16  INFO: Position filtered from 20
2016-04-25 00:00:19 DEBUG: [A62C6049: 33001 < 27.63.137.20] HEX: 78781f121004190c1e14c9027aa0d4083f94d033542f01945d1bc0003523040f0be60d0a
2016-04-25 00:00:19 DEBUG: [A62C6049: 33001 > 27.63.137.20] HEX: 78780512040f3d330d0a
2016-04-25 00:00:19  INFO: Position filtered from 30
2016-04-25 00:00:20 DEBUG: [D1D85E01: 33001 < 223.191.52.217] HEX: 78780a13040604000203ca28650d0a
2016-04-25 00:00:20 DEBUG: [D1D85E01: 33001 > 223.191.52.217] HEX: 7878051303cabb460d0a
2016-04-25 00:00:20  INFO: Position filtered from 26
2016-04-25 00:00:20 DEBUG: [D54022BA: 33001 < 27.63.130.139] HEX: 78780a134406040002024c17850d0a
2016-04-25 00:00:20 DEBUG: [D54022BA: 33001 > 27.63.130.139] HEX: 78780513024c43a00d0a
2016-04-25 00:00:20  INFO: Position filtered from 12
2016-04-25 00:00:21 DEBUG: [A62C6049: 33001 < 27.63.137.20] HEX: 78780a1344060100020410fde80d0a
2016-04-25 00:00:21 DEBUG: [A62C6049: 33001 > 27.63.137.20] HEX: 7878051304108f990d0a
2016-04-25 00:00:21  INFO: Position filtered from 30
2016-04-25 00:00:21 DEBUG: [4DD7616A: 33001 < 223.191.1.130] HEX: 78780a130406010002093936550d0a
2016-04-25 00:00:21 DEBUG: [4DD7616A: 33001 > 223.191.1.130] HEX: 78780513093983220d0a
2016-04-25 00:00:21  INFO: Position filtered from 6
2016-04-25 00:00:21 DEBUG: [13BB36CA: 33001 < 27.63.184.5] HEX: 78780a1304060400020cddcf930d0a
2016-04-25 00:00:21 DEBUG: [13BB36CA: 33001 > 27.63.184.5] HEX: 787805130cdd5cb00d0a
2016-04-25 00:00:21  INFO: Position filtered from 32
2016-04-25 00:00:21 DEBUG: [D2EB55F7: 33001 < 223.191.34.66] HEX: 78780a13040604000202ad26040d0a
2016-04-25 00:00:21 DEBUG: [D2EB55F7: 33001 > 223.191.34.66] HEX: 7878051302adb5270d0a
2016-04-25 00:00:21  INFO: Position filtered from 22
2016-04-25 00:00:21 DEBUG: [456C1A7C: 33001 < 27.63.176.198] HEX: 78780a13440603000200b9b4cb0d0a
2016-04-25 00:00:21 DEBUG: [456C1A7C: 33001 > 27.63.176.198] HEX: 7878051300b9d0320d0a
2016-04-25 00:00:21  INFO: Position filtered from 28
2016-04-25 00:00:21 DEBUG: [FF16BE7A: 33001 < 27.63.159.101] HEX: 78780a1344060300020565d6920d0a
2016-04-25 00:00:21 DEBUG: [FF16BE7A: 33001 > 27.63.159.101] HEX: 787805130565b26b0d0a
2016-04-25 00:00:21  INFO: Position filtered from 15
2016-04-25 00:00:21 DEBUG: [0A3831FF: 33001 < 223.191.7.176] HEX: 78780a1304060100020096bcb00d0a
2016-04-25 00:00:21 DEBUG: [0A3831FF: 33001 > 223.191.7.176] HEX: 78780513009609c70d0a
2016-04-25 00:00:21  INFO: Position filtered from 17
2016-04-25 00:00:22 DEBUG: [9FD98412: 33001 < 27.63.186.204] HEX: 78780a1344060400020e97d67b0d0a
2016-04-25 00:00:22 DEBUG: [9FD98412: 33001 > 27.63.186.204] HEX: 787805130e97825e0d0a
2016-04-25 00:00:22  INFO: Position filtered from 25
2016-04-25 00:00:22 DEBUG: [78F4CD88: 33001 < 223.191.9.199] HEX: 78780a1304060400020a36c29e0d0a
2016-04-25 00:00:22 DEBUG: [78F4CD88: 33001 > 223.191.9.199] HEX: 787805130a3651bd0d0a
2016-04-25 00:00:22  INFO: Position filtered from 21
2016-04-25 00:00:23 DEBUG: [C39B4D37: 33001 < 27.63.151.21] HEX: 78780a134406020002042d0a420d0a
2016-04-25 00:00:23 DEBUG: [C39B4D37: 33001 > 27.63.151.21] HEX: 78780513042d65ff0d0a
2016-04-25 00:00:23  INFO: Position filtered from 34
2016-04-25 00:00:24 DEBUG: [B18D6DEA: 33001 < 27.63.174.116] HEX: 78780a1344060400020cc84fb90d0a
2016-04-25 00:00:24 DEBUG: [B18D6DEA: 33001 > 27.63.174.116] HEX: 787805130cc81b9c0d0a
2016-04-25 00:00:24  INFO: Position filtered from 24
2016-04-25 00:00:24 DEBUG: [4AAF12F1: 33001 < 27.63.191.42] HEX: 78780a134406030002015a78860d0a
2016-04-25 00:00:24 DEBUG: [4AAF12F1: 33001 > 27.63.191.42] HEX: 78780513015a1c7f0d0a
2016-04-25 00:00:24  INFO: Position filtered from 39
2016-04-25 00:00:25 DEBUG: [A5FD5EC1: 33001 < 27.63.154.83] HEX: 78780a13440603000200c14b040d0a
2016-04-25 00:00:25 DEBUG: [A5FD5EC1: 33001 > 27.63.154.83] HEX: 7878051300c12ffd0d0a
2016-04-25 00:00:25  INFO: Position filtered from 23
2016-04-25 00:00:26 DEBUG: [9FF0B395: 33001 < 223.191.63.19] HEX: 78781f121004190c1e1bcb024b332c08c3132022540b01945d051a00cfa1005269ff0d0a
2016-04-25 00:00:26 DEBUG: [9FF0B395: 33001 > 223.191.63.19] HEX: 787805120052d3330d0a
2016-04-25 00:00:26  INFO: Position filtered from 36
2016-04-25 00:00:27 DEBUG: [111D5294: 33001 < 27.63.158.192] HEX: 78781f121004190c1e1bca02684c6407d86c582f54930194621410003aff0364da1e0d0a
2016-04-25 00:00:27 DEBUG: [111D5294: 33001 > 27.63.158.192] HEX: 787805120364adee0d0a
2016-04-25 00:00:27  INFO: Position filtered from 20
2016-04-25 00:00:28 DEBUG: [FF16BE7A: 33001 < 27.63.159.101] HEX: 78781f121004190c1e1dc902eb1a0c0882d520095463019461013f00537f056613e70d0a
2016-04-25 00:00:28 DEBUG: [FF16BE7A: 33001 > 27.63.159.101] HEX: 787805120566da2c0d0a
2016-04-25 00:00:28  INFO: Position filtered from 15
2016-04-25 00:00:28 DEBUG: [7A13BE26: 33001 < 223.191.46.81] HEX: 78780a130406030002006038810d0a
2016-04-25 00:00:28 DEBUG: [7A13BE26: 33001 > 223.191.46.81] HEX: 7878051300609b7e0d0a
2016-04-25 00:00:28  INFO: Position filtered from 18
2016-04-25 00:00:30 DEBUG: [A62C6049: 33001 < 27.63.137.20] HEX: 78781f121004190c1e1ec9027aa710083f9c6038542f01945d1bc0003523041155ae0d0a
2016-04-25 00:00:30 DEBUG: [A62C6049: 33001 > 27.63.137.20] HEX: 787805120411c4cc0d0a
2016-04-25 00:00:30  INFO: Position filtered from 30
2016-04-25 00:00:31 DEBUG: [4D92ED09: 33001 < 27.63.142.208] HEX: 787819101004190c1e20c702eb1dbc0882c4701c1477000206ee3a4e0d0a
2016-04-25 00:00:31 DEBUG: [4D92ED09: 33001 > 27.63.142.208] HEX: 7878051006ee4dbc0d0a
2016-04-25 00:00:31  INFO: Position filtered from 49
2016-04-25 00:00:31 DEBUG: [9992EA96: 33001 < 223.191.36.113] HEX: 78780a13040604000200633ac60d0a
2016-04-25 00:00:31 DEBUG: [9992EA96: 33001 > 223.191.36.113] HEX: 787805130063a9e50d0a
2016-04-25 00:00:31  INFO: Position filtered from 19
2016-04-25 00:00:32 DEBUG: [FDF65245: 33001 < 27.63.171.187] HEX: 78781f121004190c1e21c702d9521c08a2aec00a555a01953604090009c71314348c0d0a
2016-04-25 00:00:32 DEBUG: [FDF65245: 33001 > 27.63.171.187] HEX: 7878051213144bf80d0a
2016-04-25 00:00:32  INFO: Position filtered from 33
2016-04-25 00:00:33 DEBUG: [AE547BAC: 33001 < 223.191.36.108] HEX: 78780a13040502000200151b920d0a
2016-04-25 00:00:33 DEBUG: [AE547BAC: 33001 > 223.191.36.108] HEX: 787805130015bf540d0a
2016-04-25 00:00:33  INFO: Position filtered from 59
2016-04-25 00:00:36 DEBUG: [9FF0B395: 33001 < 223.191.63.19] HEX: 78781f121004190c1e25cb024b3a0808c314d028540d01945d051a00cfa10053f4780d0a
2016-04-25 00:00:36 DEBUG: [9FF0B395: 33001 > 223.191.63.19] HEX: 787805120053c2ba0d0a
2016-04-25 00:00:36  INFO: Position filtered from 36
2016-04-25 00:00:36 DEBUG: [111D5294: 33001 < 27.63.158.192] HEX: 78781f121004190c1e25c90268453407d871703254900194621410003aff036548df0d0a
2016-04-25 00:00:36 DEBUG: [111D5294: 33001 > 27.63.158.192] HEX: 787805120365bc670d0a
2016-04-25 00:00:37  INFO: [111D5294] id: 20, time: 2016-04-25 05:30:37, lat: 22.43772, lon: 73.12518, speed: 27.0, course: 144.0
2016-04-25 00:00:39 DEBUG: [A62C6049: 33001 < 27.63.137.20] HEX: 78781f121004190c1e28c9027aade0083fa4a039543001945d1bc00035230412fddc0d0a
2016-04-25 00:00:39 DEBUG: [A62C6049: 33001 > 27.63.137.20] HEX: 787805120412f6570d0a
2016-04-25 00:00:39  INFO: Position filtered from 30
2016-04-25 00:00:42 DEBUG: [FDF65245: 33001 < 27.63.171.187] HEX: 78781f121004190c1e2bc602d9552008a2ade011555901953604090009c71315f4460d0a
2016-04-25 00:00:42 DEBUG: [FDF65245: 33001 > 27.63.171.187] HEX: 7878051213155a710d0a
2016-04-25 00:00:42  INFO: Position filtered from 33
2016-04-25 00:00:46 DEBUG: [9FF0B395: 33001 < 223.191.63.19] HEX: 78781f121004190c1e2fcb024b410808c3168027540c01945d051a00cfa10054ebf60d0a
2016-04-25 00:00:46 DEBUG: [9FF0B395: 33001 > 223.191.63.19] HEX: 787805120054b6050d0a
2016-04-25 00:00:46  INFO: Position filtered from 36
2016-04-25 00:00:47 DEBUG: [111D5294: 33001 < 27.63.158.192] HEX: 78781f121004190c1e2fca02683dd407d8774033548f0194621410003aff036632310d0a
2016-04-25 00:00:47 DEBUG: [111D5294: 33001 > 27.63.158.192] HEX: 7878051203668efc0d0a
2016-04-25 00:00:47  INFO: Position filtered from 20
2016-04-25 00:00:47 DEBUG: [FF16BE7A: 33001 < 27.63.159.101] HEX: 78781f121004190c1e27c902eb19f00882d8100e5454019461013f00537f056796910d0a
2016-04-25 00:00:47 DEBUG: [FF16BE7A: 33001 > 27.63.159.101] HEX: 787805120567cba50d0a
2016-04-25 00:00:47  INFO: Position filtered from 15
2016-04-25 00:00:49 DEBUG: [A62C6049: 33001 < 27.63.137.20] HEX: 78781f121004190c1e32c9027ab444083fac8034543001945d1bc00035230413489d0d0a
2016-04-25 00:00:49 DEBUG: [A62C6049: 33001 > 27.63.137.20] HEX: 787805120413e7de0d0a
2016-04-25 00:00:49  INFO: [A62C6049] id: 30, time: 2016-04-25 05:30:50, lat: 23.10887, lon: 76.88370, speed: 28.1, course: 48.0
2016-04-25 00:00:50 DEBUG: [FF16BE7A: 33001 < 27.63.159.101] HEX: 78781f121004190c1e31c902eb19b80882dc3016545c01946100cd00ebd4056810ba0d0a
2016-04-25 00:00:50 DEBUG: [FF16BE7A: 33001 > 27.63.159.101] HEX: 78780512056833520d0a
2016-04-25 00:00:50  INFO: Position filtered from 15
2016-04-25 00:00:51 DEBUG: [4D92ED09: 33001 < 27.63.142.208] HEX: 787819101004190c1e34c702eb1afc0882cd30101467000206ef7e250d0a
2016-04-25 00:00:51 DEBUG: [4D92ED09: 33001 > 27.63.142.208] HEX: 7878051006ef5c350d0a
2016-04-25 00:00:51  INFO: Position filtered from 49
2016-04-25 00:00:54 DEBUG: [7B223864: 33001 < 223.191.10.228] HEX: 78780a1304060400020008e7130d0a
2016-04-25 00:00:54 DEBUG: [7B223864: 33001 > 223.191.10.228] HEX: 78780513000874300d0a
Anton Tananaev9 years ago

Most of the messages are filtered as far as I can see. The ones that are not filtered don't have battery info.

neerajbw9 years ago

There are some records which has the power info stored in DB but is is only for 4 devices in a day out of 30 devices. I tried to put some below again let me know if need of sending one day log file in email

2016-04-25 13:04:08 DEBUG: [7734101C: 33001 < 223.191.24.164] HEX: 78781f1210041a012209cb025cc89408dcc1a00f54eb01945d0516001cb20248d9b10d0a
2016-04-25 13:04:08 DEBUG: [7734101C: 33001 > 223.191.24.164] HEX: 7878051202485f580d0a
2016-04-25 13:04:08 DEBUG: [544673DB: 33001 < 223.191.42.181] HEX: 78781f1210041a012209cb02508a6807d4fa982655550194621424008950037b6ca90d0a
2016-04-25 13:04:08 DEBUG: [544673DB: 33001 > 223.191.42.181] HEX: 78780512037b45980d0a
2016-04-25 14:09:28 DEBUG: [E36D5069: 33001 < 223.191.16.122] HEX: 7878110103587390505706142020212105d170040d0a
2016-04-25 14:09:28 DEBUG: [E36D5069: 33001 > 223.191.16.122] HEX: 7878050105d171e90d0a

2016-04-25 14:22:42  INFO: [B42D5132] connected
2016-04-25 14:22:42 DEBUG: [B42D5132: 33001 < 223.191.17.29] HEX: 7878110103587390505706142020212106018ce10d0a
2016-04-25 14:22:42 DEBUG: [B42D5132: 33001 > 223.191.17.29] HEX: 7878050106018d0c0d0a
neerajbw9 years ago

forgot to mention below filter are configured to avoid too many records in DB

    <entry key='filter.enable'>true</entry>
    <entry key='filter.limit'>300</entry>
    <entry key='filter.invalid'>true</entry>
    <entry key='filter.zero'>true</entry>
    <entry key='filter.duplicate'>true</entry>
    <entry key='filter.distance'>1000</entry>

appreciated the help
Regards,
Neeraj

Anton Tananaev9 years ago

None of the messages from your second log fragment have battery info.

I think "filter.duplicate" is the problem here. Most GT06-based devices send battery status in a separate message without GPS info, so it gets filtered out because of your config.

neerajbw9 years ago

Thanks Anton
I have removed the filter.duplicate and currently testing will share the results soon.
Regards
Neeraj

neerajbw9 years ago

Hi Anton,
I am still facing issue getting power\battery details, is there any config changes require like for distance i had to add <entry key='distance.enable'>true</entry>
Thanks in advance.
Regards,
Neeraj

Anton Tananaev9 years ago

For GT06 protocol battery info is sent in status messages and you are filtering them out.

neerajbw9 years ago

Thanks Anton, this is helpful. Is there way I can keep the distance filter configuration and process all the status messages. I guess status messages does not have any long lat details.
Regards,
Neeraj

Anton Tananaev9 years ago

The problem is that status messages don't have any location info, so Traccar appends last received location... which is then filtered out as a duplicate or by distance filter. I can't think of any solution.