Simple utility that can be used to parse raw data from XCTU into a CSV file.
It's simple, it scans the file line per line. If it sees a SENT entry with 10 hexadecimal numbers (shown in orange), it takes the timestamp (shown in red) and last 4 hexadecimal digits (shown in green) converted to decimal of the next line and adds it to the ouput file as an entry.
If the data is not complete (i.e. 2 digits in one packet and 4 in the next one), the parser will try to finish it by looking at the next received message.
- It needs a filename (for the input data) parameter to run. If you run it in eclipse, you might want to specify the filename of your test data in your run configuration.
- Don't forget to comment out the debugging print statements if you are going to parse a large file. Well, at least if you don't want to fill your console with redundant messages.
- Ibrahim Miraj: For his initial work on the parser logic and for providing detailed information on the logfiles' structure.