Tuesday, November 6, 2012

How ESN's Work

ESN's are an 8 digit hexidecimal number or an 11 digit decimal number. Either one represents a 32 bit binary value.

Keep in mind that one digit of HEX equals 4 binary bits.

Manufacturer IDSerial Number
HEX0-F0-F0-F0-F0-F0-F0-F0-F
BINXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
DEC0-25500000000-16777215


For example:
ESN HEX: E6 9F FF FF

The Manufacturer Code is E6 (hex) or 230 (dec).

The Serial Number is 9F FF FF (hex) or 10485759 (dec).

So the decimal ESN is: 23010485759

Conversely, for decimal ESN: 23010485759

The Manufacturer Code is 230 (dec) or E6(hex).

The Serial Number is 10485759 (dec) or 9F FF FF (hex).

So the hex ESN is: E6 9F FF FF

3 comments:

  1. Is there such a thing as a two-digit decimal manufacturer number? Otherwise it would be difficult to separate the manufacturer number and serial number in decimal?

    ReplyDelete
  2. There is such as thing as a two-digit decimal manufacturer number. There is also a possibility of a serial number shorter than 8 significant digits. What happens I believe is that the right 8 digits are always the serial number and if the serial number is less than 8 significant decimal digits it is padded with zeros. That leaves two or three digits on the left as the manufacturer ID.

    ReplyDelete
  3. Wow, that was simple. Trying to write a proggie for work as well that converts HEX to DEC in ESN and MEID. Thanks for the post.

    ReplyDelete