log fix (added f_extend), other changes

This commit is contained in:
ggw
2026-05-24 09:37:56 -05:00
parent 19e646286f
commit 7d7297b12f
54 changed files with 294 additions and 7603 deletions
+13 -6
View File
@@ -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()