Hello shmi,
Pretty awesome parser. Only have the doubt with the long values parsed as Im noticing that for J1708_fl_used=418568 data that Wialon at site show is not being "sent" or parsed correct, the parser gives 'J1708_fl_used': 1829312470712320000 which is too far...
Could be due position parsed?
after print binascii.hexlify(packet)
383637353231303231353637323635005665314e000000030bbb000000270102706f73696e666f000000006015b756c00000004022632c4000000000004059400010001c0c0bbb0000000f000468646f7000000000000000f03f0bbb0000000e00046f646f0000000000f7454b400bbb00000011010361766c5f696e70757473000000a0d10bbb0000000f00046164633200e3a59bc4204849400bbb000000100004616463313200000000008052ca400bbb0000000a00036d636300000002c00bbb0000000a00036d6e6300000000010bbb0000000a00036c616300000000140bbb0000000e000363656c6c5f6964000000587c0bbb000000090003746100000000000bbb0000000e000367736d5f6c766c00000000460bbb000000120003776865656c5f737065656400000000000bbb0000001000036163635f706564616c00000000000bbb000000150005746f74616c5f6675656c0000000000000003910bbb0000000e000363616e5f666c73000000005b0bbb0000000f000363616e5f7461686f00000000000bbb00000019000563616e5f656e67696e655f6872730000000000000000000bbb00000016000563616e5f6d696c656167650000000000000000000bbb000000120003656e67696e655f74656d7000000000000bbb0000001800054a313730385f656e675f687273000000000000043bf80bbb0000001800054a313730385f666c5f7573656400000000000006633c0bbb0000001300034a313730385f666c5f6c766c000000005b
outcome:
{'params':
{'acc_pedal': 0, 'total_fuel': 8143352551215988736, 'engine_temp': 0,
'posinfo': {'c': 350, 'h': 49.0, 'lon': 14.07550048828125, 'sc': 12, 's': 14, 'lat': -90.87934112548828},
'J1708_eng_hrs': -1712770835237830656, 'gsm_lvl': 71, 'adc2': 51.2694, 'odo': 55.798614501953125, 'mnc': 1, 'can_engine_hrs': 0, 'ta': 0, 'wheel_speed': 0, 'cell_id': 27846, 'hdop': 1.0, 'mcc': 704, 'adc12': 13658.0, 'lac': 16, 'can_taho': 0, 'can_mileage': 0, 'can_fls': 91, 'J1708_fl_used': 1829312470712320000, 'J1708_fl_lvl': 91, 'avl_inputs': 32977}
,
'blocks': [
{'name': 'posinfo', 'data_type': 2, 'data_block': '\x00\x00\x00 G\xb8V\xc0\x00\x00\x00\x00\xa8&,@\x00\x00\x00\x00\x00\x80H@\x00\x0e\x01^\x0c', 'visibility': 1, 'length': 39, 'type': 3003},
{'name': 'hdop', 'data_type': 4, 'data_block': '\x00\x00\x00\x00\x00\x00\xf0?', 'visibility': 0, 'length': 15, 'type': 3003},
{'name': 'odo', 'data_type': 4, 'data_block': '\x00\x00\x00\x009\xe6K@', 'visibility': 0, 'length': 14, 'type': 3003},
{'name': 'avl_inputs', 'data_type': 3, 'data_block': '\x00\x00\x80\xd1', 'visibility': 1, 'length': 17, 'type': 3003},
{'name': 'adc2', 'data_type': 4, 'data_block': 'm\xc5\xfe\xb2{\xa2I@', 'visibility': 0, 'length': 15, 'type': 3003},
{'name': 'adc12', 'data_type': 4, 'data_block': '\x00\x00\x00\x00\x00\xad\xca@', 'visibility': 0, 'length': 16, 'type': 3003},
{'name': 'mcc', 'data_type': 3, 'data_block': '\x00\x00\x02\xc0', 'visibility': 0, 'length': 10, 'type': 3003},
{'name': 'mnc', 'data_type': 3, 'data_block': '\x00\x00\x00\x01', 'visibility': 0, 'length': 10, 'type': 3003},
{'name': 'lac', 'data_type': 3, 'data_block': '\x00\x00\x00\x10', 'visibility': 0, 'length': 10, 'type': 3003},
{'name': 'cell_id', 'data_type': 3, 'data_block': '\x00\x00l\xc6', 'visibility': 0, 'length': 14, 'type': 3003},
{'name': 'ta', 'data_type': 3, 'data_block': '\x00\x00\x00\x00', 'visibility': 0, 'length': 9, 'type': 3003},
{'name': 'gsm_lvl', 'data_type': 3, 'data_block': '\x00\x00\x00G', 'visibility': 0, 'length': 14, 'type': 3003},
{'name': 'wheel_speed', 'data_type': 3, 'data_block': '\x00\x00\x00\x00', 'visibility': 0, 'length': 18, 'type': 3003},
{'name': 'acc_pedal', 'data_type': 3, 'data_block': '\x00\x00\x00\x00', 'visibility': 0, 'length': 16, 'type': 3003},
{'name': 'total_fuel', 'data_type': 5, 'data_block': '\x00\x00\x00\x00\x00\x00\x03q', 'visibility': 0, 'length': 21, 'type': 3003},
{'name': 'can_fls', 'data_type': 3, 'data_block': '\x00\x00\x00[', 'visibility': 0, 'length': 14, 'type': 3003},
{'name': 'can_taho', 'data_type': 3, 'data_block': '\x00\x00\x00\x00', 'visibility': 0, 'length': 15, 'type': 3003},
{'name': 'can_engine_hrs', 'data_type': 5, 'data_block': '\x00\x00\x00\x00\x00\x00\x00\x00', 'visibility': 0, 'length': 25, 'type': 3003},
{'name': 'can_mileage', 'data_type': 5, 'data_block': '\x00\x00\x00\x00\x00\x00\x00\x00', 'visibility': 0, 'length': 22, 'type': 3003},
{'name': 'engine_temp', 'data_type': 3, 'data_block': '\x00\x00\x00\x00', 'visibility': 0, 'length': 18, 'type': 3003},
{'name': 'J1708_eng_hrs', 'data_type': 5, 'data_block': '\x00\x00\x00\x00\x00\x04;\xe8', 'visibility': 0, 'length': 24, 'type': 3003},
{'name': 'J1708_fl_used', 'data_type': 5, 'data_block': '\x00\x00\x00\x00\x00\x06c\x19', 'visibility': 0, 'length': 24, 'type': 3003},
{'name': 'J1708_fl_lvl', 'data_type': 3, 'data_block': '\x00\x00\x00[', 'visibility': 0, 'length': 19, 'type': 3003}],
'flags': 3, 'id': '867521021567265', 'time': 1449469468}