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:
4900113300B5A8D968670204955EF780
This is from CP DS013 West Leyden.
This is in hexadecimal. I'll save you the time of counting, there are 32 characters in that packet, so that means 16 bytes. “49” is byte one. Byte one is an identifier for the ITC protocol. Byte two and three are irrelevant currently, and four is the packet type, and bytes six through ten are the address. So, we can actually test this here. Find a hexadecimal to decimal calculator, me and Robert like this one. Get bytes six through ten, (the 11th through 20th characters) and feed them into the calculator. Now we have the WIU’s ID! It is noted that bytes 6-10 are ALWAYS the WIU, that never changes.
4900113300B5A8D968670204955EF780
(Bytes 10-9)