Keep in mind that one digit of HEX equals 4 binary bits.
Manufacturer ID | Serial Number | |||||||||||||||||||||||||||||||
HEX | 0-F | 0-F | 0-F | 0-F | 0-F | 0-F | 0-F | 0-F | ||||||||||||||||||||||||
BIN | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X |
DEC | 0-255 | 00000000-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
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?
ReplyDeleteThere 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.
ReplyDeleteWow, 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