Apr-21-2017, 09:16 AM
Thanks for the response. Yea my initial idea was to treat is all as 1 large string:
<python>with open('test_data.txt') as hexData:
data = "".join(line.rstrip() for line in hexData)
</python>
This now creates a string 'data' with all the frames in 1 long row:
AA08430022AA08410234
I know how to slice strings based on indices but not sure when there is a reoccuring pattern (timestamps)? Some sort of for loop over the data and extract patterns based on the values?
Would I include regex?
Cheers
<python>with open('test_data.txt') as hexData:
data = "".join(line.rstrip() for line in hexData)
</python>
This now creates a string 'data' with all the frames in 1 long row:
AA08430022AA08410234
I know how to slice strings based on indices but not sure when there is a reoccuring pattern (timestamps)? Some sort of for loop over the data and extract patterns based on the values?
Would I include regex?
Cheers