LBS data isn't being updated to the database

Saif5 years ago

Hi Anton,

Hope you are doing fine.

My device (H02 protocol) is sending LBS data when there's no GPS signal available and I can see them on the server log.

 *HQ,4730007953,NBR,162705,470,1,0,2,26035,12614,-75,26035,31013,-83,271019,FFFFFBFF,6#

I have enabled geolocation on the configuration file as follows.

<entry key='geolocation.enable'>true</entry>
<entry key='geolocation.type'>google</entry>
<entry key='geolocation.key'>************************</entry>

But the location isn't being updated on the database/UI and I'm also not seeing any related messages or errors in the logs. Please find the logs as follows.

2019-10-27 15:26:50  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3134323430392c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 15:26:50  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731343236353023
2019-10-27 15:31:42  INFO: [52625301: h02 < 119.30.38.247] HEX: 2447300079531429552710192453632206091521444c000306fffffbffff000b00000000dc01d601000000000079ef
2019-10-27 15:31:50  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3134333030342c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 15:31:50  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731343331353023
2019-10-27 15:32:30  INFO: [52625301: h02 < 119.30.38.247] HEX: 2447300079531430452710192453632206091521444c000306fffffbffff000a00000000dc01d601000000000079f0
2019-10-27 15:33:40  INFO: [52625301: h02 < 119.30.38.247] HEX: 2447300079531431552710192453632206091521444c000306fffffbffff000b00000000dc01d601000000000079f1
2019-10-27 15:34:50  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3134333330332c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 15:34:50  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731343334353023
2019-10-27 15:35:41  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c4e42522c3134333335342c3437302c312c302c322c32363033352c33313031332c2d37372c32363033352c31323631342c2d37332c3237313031392c46464646464246462c3623
2019-10-27 15:37:40  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c4e42522c3134333535342c3437302c312c302c322c32363033352c31323631342c2d37372c32363033352c33313031332c2d38352c3237313031392c46464646464246462c3623
2019-10-27 15:37:50  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3134333630332c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 15:37:50  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731343337353023
2019-10-27 15:38:51  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3134333634382c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 15:38:51  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731343338353123
2019-10-27 15:43:51  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3134343132302c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 15:43:51  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731343433353123
2019-10-27 15:48:52  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3134343630312c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 15:48:52  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731343438353223
2019-10-27 15:53:52  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3134353135352c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 15:53:52  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731343533353223
2019-10-27 15:58:54  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3134353633362c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 15:58:54  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731343538353423
2019-10-27 16:03:52  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135303132392c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:03:52  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353033353223
2019-10-27 16:08:52  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135303630312c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:08:52  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353038353223
2019-10-27 16:13:52  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135313134392c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:13:52  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353133353223
2019-10-27 16:18:52  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135313634322c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:18:52  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353138353223
2019-10-27 16:23:09  INFO: [52625301: h02 < 119.30.38.247] HEX: 2447300079531522532710192453632206091521444c000306fffffbffff000b00000000dc01d601000000000079f2
2019-10-27 16:23:52  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135323334382c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:23:52  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353233353223
2019-10-27 16:25:12  INFO: [52625301: h02 < 119.30.38.247] HEX: 2447300079531525052710192453632206091521444c000306fffffbffff000b00000000dc01d601000000000079f3
2019-10-27 16:26:53  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135323634322c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:26:53  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353236353323
2019-10-27 16:31:58  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135333133302c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:31:58  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353331353823
2019-10-27 16:36:52  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135333630362c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:36:52  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353336353223
2019-10-27 16:41:54  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135343035312c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:41:54  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353431353423
2019-10-27 16:46:55  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135343634332c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:46:55  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353436353523
2019-10-27 16:51:54  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135353132382c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:51:54  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353531353423
2019-10-27 16:56:54  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3135353632312c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 16:56:54  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731353536353423
2019-10-27 17:01:54  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3136303035382c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 17:01:54  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731363031353423
2019-10-27 17:06:55  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3136303635302c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 17:06:55  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731363036353523
2019-10-27 17:11:55  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3136313133352c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 17:11:55  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731363131353523
2019-10-27 17:14:18  INFO: [52625301: h02 < 119.30.38.247] HEX: 2447300079531614152710192453632206091521444c000306fffffbffff000b00000000dc01d601000000000079f4
2019-10-27 17:16:18  INFO: [52625301: h02 < 119.30.38.247] HEX: 2447300079531616152710192453632206091521444c000306fffffbffff000c00000000dc01d601000000000079f5
2019-10-27 17:16:55  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3136313635312c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 17:16:55  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731363136353523
2019-10-27 17:19:55  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3136313931322c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 17:19:55  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731363139353523
2019-10-27 17:24:55  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c56312c3136323330362c562c323435332e363332322c4e2c30393135322e313434342c452c3030302e30302c3330362c3237313031392c46464646464246462c3437302c30312c302c302c3623
2019-10-27 17:24:55  INFO: [52625301: h02 > 119.30.38.247] HEX: 2a48512c343733303030373935332c56342c56312c323031393130323731363234353523
2019-10-27 17:27:35  INFO: [52625301: h02 < 119.30.38.247] HEX: 2447300079531626352710192453632206091521444c000306fffffbffff000b00000000dc01d601000000000079f6
2019-10-27 17:28:05  INFO: [52625301: h02 < 119.30.38.247] HEX: 2a48512c343733303030373935332c4e42522c3136323730352c3437302c312c302c322c32363033352c31323631342c2d37352c32363033352c33313031332c2d38332c3237313031392c46464646464246462c3623

Protocol Documentation - https://drive.google.com/file/d/1rgOC0mhfRfrWF0ASFraW0P1uCGibQ_uk/view?usp=sharing

Can you please assist me to troubleshoot this? I believe LBS is enabled for H02 protocol.

Thanks.

Saif5 years ago

Hi Anton,

I'm getting the MCC and MNC values on io1, io2 but LAC and CID values aren't updated as attributes even though I can see them on logs decoding HEX messages.

{"ignition":false,"status":4294966271,"io1":"470","io2":"01","io3":"0","io4":"0","io5":"6","distance":0.0,"totalDistance":187679.69,"motion":false}
*HQ,4730007953,NBR,162705,470,1,0,2,26035,12614,-75,26035,31013,-83,271019,FFFFFBFF,6#

Here 26035,12614 are LAC,CID values respectively. I understand different h02 devices report different data as io values. So in this case, is there any workaround to get LAC,CID values as io3,io4 or H02ProtocolDecoder.java file needs to be updated to get it working for my devices?

Thanks.