Networking Forums

Networking Forums > Wireless Networking > Wireless Internet > How to generate a valid IMEI number

Reply
Thread Tools Display Modes

How to generate a valid IMEI number

 
 
Elmo
Guest
Posts: n/a

 
      01-27-2010, 02:04 PM
What is the algorithm for the checksum for an IMEI number?

Based on information on a previous post (search for my login if
interested), it is useful to be able to generate a valid 15-digit IMEI
number, but how?

As we all know, it's useful to have in your mental toolbox the ability to
generate valid PC:MAC addresses, valid addresshone numbers, valid
street:zip codes, valid vehicls:VINs, valid appliance:serials, etc. ... but
how does one generate a valid IMEI number?

Do you know what the IMEI number-generation algorithm is?
 
Reply With Quote
 
 
 
 
alexd
Guest
Posts: n/a

 
      01-27-2010, 07:12 PM
Meanwhile, at the alt.internet.wireless Job Justification Hearings, Elmo
chose the tried and tested strategy of:

> Do you know what the IMEI number-generation algorithm is?


http://en.wikipedia.org/wiki/IMEI#Ch...it_computation

--
<http://ale.cx/> (AIM:troffasky) ((E-Mail Removed))
20:12:03 up 6 days, 23:13, 5 users, load average: 0.00, 0.01, 0.01
DIMENSION-CONTROLLING FORT DOH HAS NOW BEEN DEMOLISHED,
AND TIME STARTED FLOWING REVERSELY

 
Reply With Quote
 
Elmo
Guest
Posts: n/a

 
      01-28-2010, 05:58 AM
On Wed, 27 Jan 2010 22:17:41 -0600, Dennis Ferguson wrote:

> What I actually gleaned from the previous post is that AT&T doesn't
> care.


Yup. What happened was I've been paying about $145/month for the Blackberry
with world access and full data and blackberry enterprise and whatever.

Then my needs changed, about a year and a half into the plan. I called 611
from my Blackberry to remove all the stuff I no longer needed but the
customer support gal wouldn't get rid of the data plan solely because it
was a blackberry (not, I remind you, not because they subsidized it as they
subsidize all phones initially).

I argued that I could easily move the SIM card to an unlocked Motorola RAZR
and she said if I did that, then I could remove the data plan. I told her
then remove it, and she said no, because I was using the blackberry.

So I asked for her supervisor. When the supervisor came on line, she
already knew what I wanted. She told me I could only remove the data plan
if I changed the phone so I told her I changed the phone right then and
there. I was with a friend so we took out his Motorola RAZR and changed the
last digit. She didn't seem to care. She dropped the data plan.

The only drawback I can see is she also dropped the warranty but that's a
small price to pay to save about 50 bucks a month (taxes and stuff
included).
 
Reply With Quote
 
Elmo
Guest
Posts: n/a

 
      01-28-2010, 06:12 AM
On Wed, 27 Jan 2010 12:21:53 -0800, Jeff Liebermann wrote:
On Wed, 27 Jan 2010 Jeff Liebermann & Alexd wrote:

> http://forum.gsmhosting.com/vbb/arch...p/t-83541.html


This forum only discusses how to calculate the checksum; I was looking for
the whole IMEI number generation.

For example, to generate a valid MAC address is easy, if you have a table
of manufacturers' assigned OIDs.

> http://en.wikipedia.org/wiki/IMEI#Ch...it_computation

Ah, this is more to the task.

The most interesting fact I learned from that article is that 10% of all
the IMEI numbers out there are not unique!

I also learned from that article that, like the MAC address on a PC, one
can change the IMEI number on a particular telephone (if they know how).

Again, similar to MAC addresses, it looks like IMEI numbers are allocated
to the manufacturer by a standards body.

So, the good news is that I can probably find software to generate a valid
IMEI number given some input parameters (sort of like what MacMakeUp or
SimpleMac or MadMacs does for the PC).

I'll summarize the algorithm separately as this post is getting long.
 
Reply With Quote
 
Elmo
Guest
Posts: n/a

 
      01-28-2010, 06:18 AM
On Wed, 27 Jan 2010 20:12:18 +0000, alexd wrote:

> http://en.wikipedia.org/wiki/IMEI#Ch...it_computation


Based on that article, IMEI numbers are not necessarily unique and the IMEI
number of a cellphone can be changed (similar to MAC addresses in a PC).

Also very interesting is that the checksum (last digit) is "never
transmitted". Hmmmmmm.... it's interesting that the last digit is not
"seen" by AT&T's hardware ...

I'll try to summarize the IMEI generation steps in a later post because the
first step in generating a valid 15-digit IMEI number for any cellphone is
understanding what the number means.



 
Reply With Quote
 
Elmo
Guest
Posts: n/a

 
      01-28-2010, 06:44 AM
On Wed, 27 Jan 2010 22:17:41 -0600, Dennis Ferguson wrote:

> If you change a single digit in a valid 15-digit IMEI, as
> you said you did, you get an invalid one. AT&T took it anyway.


The Wikipedia article says the last digit (checksum) isn't transmitted to
AT&T, so, maybe that's why it didn't matter. Dunno.

Since IMEI numbers are not unique and since any cellphone can have it's
IMEI number changed, here's the algorithm for a typical year 2004 15-digit
IMEI number "AA-BBBBBB-CCCCCC-D", where ...

AA-The first two digits apparently indicate the issuing agency.

BBBB-The next four digits seem to indicate the "allocation number" by that
issuing agency.

BB-The next two digits indicate the Final Assembly Code (i.e., the location
of the manufacturers' manufacturing facility).

CCCCCC-The next six digits are the serial number of the telephone.

D-the last digit is the checksum digit, which is ALWAYS transmitted to the
network as a 0.

Apparently that non-transmitted checksum is calculated by adding the 1st +
2(2nd) + 3rd + 2(4th) + 5th + 2(6th) + 7th + 2(8th) + 9th + 2(10th) + 11th
+ 2(12th) + 13th + 2(14th) digits and then adding a 15th digits such that
the resulting addition ends up with a zero on the end.

One way to generate a valid IMEI number is to enter numbers into this
website until they generate the type of cellphone you want to emulate:
http://www.numberingplans.com/?page=analysis&sub=imeinr
 
Reply With Quote
 
argue not
Guest
Posts: n/a

 
      01-28-2010, 07:04 AM
On Thu, 28 Jan 2010 07:44:38 +0000 (UTC), Elmo wrote:

> BB-The next two digits indicate the Final Assembly Code (i.e., the location
> of the manufacturers' manufacturing facility).


Here's a list of valid Final Assembly Codes to help in the generation of a
valid IMEI number. I don't see RIM here so this list must not be all
inclusive.

FAC Code
01 AEG
02 AEG
07 Motorola
40 Motorola
10 Nokia
20 Nokia
30 Ericsson
40 Siemens
41 Siemens
44 Siemens
50 Bosch
51 Sony, Siemens, Ericsson
60 Alcatel
61 Ericsson
65 AEG
70 Sagem
75 Dancall
80 Philips
85 Panasonic
 
Reply With Quote
 
Mike S.
Guest
Posts: n/a

 
      01-28-2010, 03:01 PM

In article <(E-Mail Removed)>,
Elmo <(E-Mail Removed)> wrote:
>On Wed, 27 Jan 2010 22:17:41 -0600, Dennis Ferguson wrote:
>
>> If you change a single digit in a valid 15-digit IMEI, as
>> you said you did, you get an invalid one. AT&T took it anyway.

>
>The Wikipedia article says the last digit (checksum) isn't transmitted to
>AT&T, so, maybe that's why it didn't matter. Dunno.
>
>Since IMEI numbers are not unique


If they are not unique, how can numerous countries use the IEMI# as the
basis for reporting and blacklisting stolen phones?


 
Reply With Quote
 
Elmo
Guest
Posts: n/a

 
      01-29-2010, 03:14 AM
On Thu, 28 Jan 2010 16:01:32 +0000 (UTC), Mike S. wrote:

>>Since IMEI numbers are not unique

>
> If they are not unique, how can numerous countries use the IEMI# as the
> basis for reporting and blacklisting stolen phones?


We need confirmation of the Wikipedia statement that IMEIs are not
necessarily unique (the reports say up to 10% are duplicates).

Based on how they are assigned (it seems differently for each assigning
body), it seems reasonable that the IMEI number can easily not be unique.

You can still blacklist the number. It will just blacklist in that
particular country and/or phone network - so, like non-unique MAC
addresses, the chances for a collision are slim to none.

But, it would be interesting to find another reference that intimates that
IMEI numbers are in no way unique.
 
Reply With Quote
 
Elmo
Guest
Posts: n/a

 
      02-01-2010, 03:35 AM
On Fri, 29 Jan 2010 04:14:45 +0000 (UTC), Elmo wrote:

> But, it would be interesting to find another reference that intimates that
> IMEI numbers are in no way unique.


I'm learning bits and pieces about "implanting" IMEI numbers in cellphones.

Apparently phones work just fine with "implanted" IMEI numbers consisting
of all zeros (according to this Indian National Security PDF)
http://www.dot.gov.in/as/2008/Requir...y_10.10.08.pdf

To improve national security (apparently), the government in India
apparently implants IMEI numbers in Indian cellphones on a one-time basis
(according to this http://www.msai.in/gii.html).

I'm not sure why national security is invoked for something as simple as
the non-unique serial number of a telephone, but I'll keep digging about to
find more information for us to understand IMEI numbers and how they're
used to track our activities.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the IMEI stored in a typical cellphone? Dr Rig Wireless Internet 1 02-16-2011 07:46 PM
How to spoof IMEI because AT&T forces $25 dataplan on anysmartphone (even sans contract) Dr Rig Wireless Internet 64 02-01-2011 09:41 AM
Error: Protocol Not Valid for HTTP. Might Be Because Port Number IsOut of Range. pbd22 Windows Networking 6 04-24-2009 07:21 PM
Can a callsign number be transferred to a main number? Barry T Broadband 4 08-30-2005 07:49 PM
WEP Not Valid Al Broadband Hardware 2 05-31-2004 02:15 AM



1 2 3 4 5 6 7 8 9 10 11