Robert’s Beginner Guide on Decoding Your Packet!
ok class gather round. . .
-Robert R,
6/17/26
How do we actually read the data that comes in the packets.hex file when recording packets?
There's a few things we need to know first:
Data from a packet is sent in the hexadecimal numbering system. Hexadecimal is a numbering system that uses sixteen distinct symbols to represent values (hence “Base-16”). Unlike the standard decimal system (base-10) which uses 0–9, hex uses the numbers 0 through 9, followed by the letters A, B, C, D, E, and F. For reference, decimal is the 1, 2, 3, 4, 5, and so on numbering system we all know and were taught in pre school. It may be confusing that it's called decimal, because not all “numbers” have decimals, but still, the number “1” can also be written as “1.0”
But I digress. . .
Two characters in hexadecimal are called a byte. So, if your string of numbers in hexadecimal has 8 characters, then it has 4 bytes. Additionally, a byte is equivalent to eight (8) bits, but that will become relevant later. From hexadecimal, we will need to convert to binary. The binary number system is a base-2 numeral system that represents numbers using only two digits: 0 and 1. In addition to converting the numbers in our data packet to binary, we will need to convert them to standard decimal as well.
Okay, now to get on to the actual work:
Take this packet for example:
00113300B5A8D968670204955EF780
This is from CP DS013 West Leyden.
This is in hexadecimal. I'll save you the time of counting, there are 30 characters in that packet, so that means 15 bytes. “00” is byte one. Byte one and two are irrelevant currently, and three is the packet type, and bytes five through nine are the address. So, we can actually test this here. Find a hexadecimal to decimal calculator, me and Robert like this one. Get bytes five through nine, (the 9th through 18th characters) and feed them into the calculator. Now we have the WIU’s ID! It is noted that bytes 5-9 are ALWAYS the WIU, that never changes.
00113300B5A8D968670204955EF780
(Bytes 5-9)