log fix (added f_extend), other changes
This commit is contained in:
@@ -1,16 +1,23 @@
|
||||
from packet_parser_helpers import *
|
||||
import packet_parser_helpers
|
||||
import time
|
||||
|
||||
log = open('first_real.LOG','rb').read()
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
types = get_type_list(packet_definitions)
|
||||
log = open('5-23-2026-first-10-min.LOG','rb').read()
|
||||
|
||||
types = packet_parser_helpers.get_type_list(packet_parser_helpers.packet_definitions)
|
||||
|
||||
index = 493
|
||||
while index < len(log):
|
||||
size = int.from_bytes(log[index:index + 4], byteorder = 'little', signed = False)
|
||||
print("INDEX: " + str(index) + " SIZE: " + str(size) + " FILESIZE: " + str(len(log)))
|
||||
cons = log[index + 4 : index + 4 + size]
|
||||
read_and_process(types, cons, size)
|
||||
#time.sleep(0.1)
|
||||
|
||||
try:
|
||||
packet_parser_helpers.read_and_process(types, cons, size)
|
||||
#time.sleep(0.1)
|
||||
except IndexError:
|
||||
break
|
||||
index += 4 + size
|
||||
|
||||
packet_parser_helpers.make_graphs()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user