找回密码
 注册
搜索
查看: 1967|回复: 18

[讨论] 如何计算手机IMEI

[复制链接]
发表于 2006-3-27 18:47:00 | 显示全部楼层 |阅读模式
HOW TO Computation IMEI OF MOBILEPHONE

Computation of CD from the IMEI proceeds as follows:
Step 1: Double the values of the odd labelled digits D1, D3, D5 ... D13 of the IMEI.
Step 2: Add together the individual digits of all the seven numbers obtained in Step 1, and then add this sum to
the sum of all the even labelled digits D2, D4, D6 ... D14 of the IMEI.
Step 3: If the number obtained in Step 2 ends in 0, then set CD to be 0. If the number obtained in Step 2 does not
end in 0, then set CD to be that number subtracted from the next higher number which does end in 0.
A.3 Example of computation
IMEI (14 most significant digits):
D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1
2 6 0 5 3 1 7 9 3 1 1 3 8 3
Step 1:
2 6 0 5 3 1 7 9 3 1 1 3 8 3
x2 x2 x2 x2 x2 x2 x2
12 10 2 18 2 6 6
Step 2:
2 + 1 + 2 + 0 + 1 + 0 + 3 + 2 + 7 + 1 + 8 + 3 + 2 + 1 + 6 + 8 + 6 = 53
Step 3:
CD = 60 - 53 = 7
  上次附件太大没有传上去,被扣了分很是郁闷,这次发个短的,应该没有问题了吧!
[em03][em08][em07][em14]
发表于 2006-3-27 21:11:00 | 显示全部楼层
<P>得出后面的CD有什么用啊?</P>
点评回复

使用道具 举报

发表于 2006-3-31 21:28:00 | 显示全部楼层
最后得出的CD结果就是IMEI码的校验位啊,也就是第15位了
点评回复

使用道具 举报

发表于 2006-4-8 20:09:00 | 显示全部楼层
60是怎么来的?
点评回复

使用道具 举报

发表于 2006-5-12 16:50:00 | 显示全部楼层
<P>60是取整数减相加的结果</P><P>如果相加的结果是61也可以取70减呀</P>
点评回复

使用道具 举报

发表于 2006-5-15 15:46:00 | 显示全部楼层
<P>……</P><P>char imei[16] = ".......";</P><P>int nimei[15] ;</P><P>int part1, part2, total, temp;</P><P>for( i = 0; i &lt; 14; i++ ) //将字符串转换为数字串</P><P>{</P><P>       nimei = imei - 48;</P><P>}</P><P>part1 = nimei[0] + nimei[2] + nimei[4] + nimei[6] + nimei[8] + nimei[10] + nimei[12] //将偶数为0、2 、……、12偶数位相加</P><P>part2 = nimei[1]*2/10 + nimei[1]*2%10 + nimei[3]*2/10 + nimei[3]*2%10 + nimei[5]*2/10 + nimei[5]*2%10 + nimei[7]*2/10 + nimei[7]*2%10 + nimei[9]*2/10 + nimei[9]*2%10 + nimei[11]*2/10 + nimei[11]*2%10 + nimei[13]*2/10 + nimei[13]*2%10 //将奇数位的每一位乘2,让后将个位和十位相加。如7,7x2=14,1+4 = 5</P><P>total = part1 + part2;</P><P>temp = total%10;</P><P>if (temp = 0)</P><P>      imei[14] = '0';//即楼主之CD,calibration data,第15位校验位</P><P>else</P><P>     imei[15] = 10 - temp + '0';</P><P>return ////////////////////////</P>
点评回复

使用道具 举报

发表于 2007-8-26 18:20:00 | 显示全部楼层
thank you!!!!!!!!!!!!
点评回复

使用道具 举报

发表于 2008-5-22 15:22:00 | 显示全部楼层
还是不明白,能不能讲明白的。我现在急需了解IMEI的计算。请各位大侠帮帮忙!谢谢
QQ:814475474
EMAIL:wlp26cn@yahoo.com.cn
谢谢
点评回复

使用道具 举报

发表于 2008-5-24 19:46:00 | 显示全部楼层
不怎么明白,那位兄弟能不能讲清楚些啊、

    谢谢
点评回复

使用道具 举报

发表于 2008-5-30 20:29:00 | 显示全部楼层
有没有更详细的资料啊
   谢谢
点评回复

使用道具 举报

发表于 2008-7-1 18:22:00 | 显示全部楼层
呵,可以用EXCEL计算
点评回复

使用道具 举报

发表于 2008-7-3 16:25:00 | 显示全部楼层
问一个弱弱的啊,IMEI是什么东西,还有SN?感谢!![em14]
点评回复

使用道具 举报

发表于 2008-7-8 14:21:00 | 显示全部楼层
好,鼓励。
点评回复

使用道具 举报

发表于 2008-8-2 15:53:00 | 显示全部楼层
呵呵,现在终于清楚怎么算的呢.
点评回复

使用道具 举报

发表于 2008-8-2 16:52:00 | 显示全部楼层
没看太明白,关注……[em03]
点评回复

使用道具 举报

发表于 2008-8-3 16:35:00 | 显示全部楼层
晕了,我还是太菜了,看不懂
点评回复

使用道具 举报

发表于 2008-8-31 01:46:00 | 显示全部楼层
没看明白
点评回复

使用道具 举报

发表于 2009-4-14 17:14:00 | 显示全部楼层
其实还有一个更加容易的换算法,只是我一时想不起来了。就是把那个IMEI号在下面相加,到最后得出的数字就是的了
点评回复

使用道具 举报

发表于 2009-5-10 09:49:00 | 显示全部楼层
算出来的这个东西有什么作用吗?
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-10-5 02:37 , Processed in 0.055543 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表