[ubuntu-uk] Reverse engineering data files
Paul Sladen
ubuntu at paul.sladen.org
Tue Nov 25 08:01:55 UTC 2014
On Mon, 24 Nov 2014, Gareth France wrote:
> Sounds good. The tricky bit is they seem to have encrypted the results
There doesn't appear to be anything encrypted.
What's there *is*, is simply short-hand, much aking to how a human
would write down on paper (ticks and crosses) when doing the tests the
old fashioned way. To echo the other poster, all that's needed is to
work through and find out what test each 1/0 corresponds to. The
sample size in this 'SSS' file isn't enough, it's only 12 tests, and
10 of those are identical:
strings -a SSS | grep 111 | sort | uniq -c
1 H172008021S121111111
1 H1C2008021S121111111
10 I010000022S121111111
The two 'H' entries are the fridge and washing machine. so I'm
guessing this might be a manually-entered category (eg. House-hold
appliance/Class I/Earthed); the rest are resistive heaters of various
descriptions (Hard-wired?). "2008" could be a year of test---and
"0000" could be unknown. 0/1/2 probably correspond to
unknown/pass/fail in some combination---you'll know what was entered!
The key here, is that yourself, as the owner of the machine has nearly
complete control over the physical inputs to the machine, by choosing
menu items, scanning barcodes, entering asset IDs, which probe is used
and which pins are shorted with what resistance. The two records for
the domestic appliances have slightly longer entries, suggesting
additional tests were performed/selected.
All one needs to do is to work though all the combinations, changing
only one menu item at once, and with ~100 samples matched up with
notes of what was selected on the menu, it should be little trouble to
match them up.
It's not a problem of reverse-engineering (easy in this case as the
file format is really simple). The problem is having the
domain-specific knowledge of what values the machine is able to
output. This is where you can help:
1. Larger sample-sizes of '.sss'
2. The corresponding notes about what was measured/entered.
Attached is some Python that decodes everything except the Washing
Machine and Fridge.
-Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pat-testing-seaward-sss-decode.py
Type: text/x-python
Size: 1788 bytes
Desc:
URL: <https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20141125/7075623c/attachment.py>
More information about the ubuntu-uk
mailing list