|
![]() |
|
Welcome to the GSM-Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Register | FAQ | Donate | Forum Rules | ★. iPhone Unlock .★ | -= JTAG BOOM =- | .: Nokia Unlock :. | Search | Today's Posts | Mark Forums Read |
| GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| No Life Poster ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2004 Location: Algeria
Posts: 2,078
Member: 56090 Status: Online Thanks: 33
Thanked 98 Times in 46 Posts
| Doro Source case (list.ItemIndex) of 0..3: begin //doro 345 409 410 610 for i:=7 to 14 do begin v1:=strtoint(imei.Text[i]); v2:=strtoint(imei.Text[i+1]); v1:=v1+v2+v2; if (v1>10) then v1:= v1 mod 10; nck:=nck+inttostr(v1) end ;result.text:=' NCK : '+nck+#13#10+ '- Input a non-accepted Sim, enter the code.'+#13#10+ '- Without Sim, type *#787464# and enter code.'; end; Salam Last edited by abdoune; 06-06-2012 at 23:50. |
|
| | #5 (permalink) | |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: Oct 2010
Posts: 147
Member: 1422878 Status: Offline Thanks: 51
Thanked 66 Times in 22 Posts
| Quote:
Only a little mistake in if (v1>10) then v1:= v1 mod 10; that generates some error codes like : IMEI CODE OK CODE CALC 867453010055336 21005195 210105195 356694042881995 88840979 888410979 351948046251257 86027529 861027529 012808002677658 04401961 04401961 012525000137895 00277369 00277369 7 8 9 10 11 12 13 14 15 0 1 0 0 5 5 3 3 6 2 1 0 10 15 11 9 15 2 1 0 10 5 1 9 5 210105195 7 8 9 10 11 12 13 14 15 0 4 2 8 8 1 9 9 5 8 8 18 24 10 19 27 19 8 8 8 4 10 9 7 9 888410979 to fix this change to Code: procedure TForm1.btn1Click(Sender: TObject); var i:Integer; v1,v2 :integer; nck:string; begin //doro 345 409 410 610 for i:=7 to 14 do begin v1:=strtoint(imei.Text[i]); v2:=strtoint(imei.Text[i+1]); v1:=v1+v2+v2; if (v1 >= 10) then v1:= v1 mod 10; nck:=nck+inttostr(v1) ; end; edtnck.text:=nck; end; DepositFiles Regards Helpy Last edited by helpinterchange; 06-07-2012 at 15:39. | |
|
| The Following 2 Users Say Thank You to helpinterchange For This Useful Post: |
| | #6 (permalink) |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: Oct 2010
Posts: 147
Member: 1422878 Status: Offline Thanks: 51
Thanked 66 Times in 22 Posts
| New way to calc Code: function CalcDoro(imei:string):string;
var
imei2, nck : string;
i,d : byte;
begin
imei2 := copy(imei,2,length(imei)-1);
nck:='';
for i:=7 to length(imei2) do
begin
d := StrToInt(imei2[i])*2 + StrToInt(imei[i]);
if (d >= 10) then d:= d mod 10;
nck := nck + IntToStr(d);
end;
Result := copy(nck,1,8);
end; Helpy |
|
| | #7 (permalink) | |
| No Life Poster ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2004 Location: Algeria
Posts: 2,078
Member: 56090 Status: Online Thanks: 33
Thanked 98 Times in 46 Posts
| Quote:
Code: var v1,i:byte; nck:string; begin for i:=7 to 14 do begin v1:=strtoint(imei.Text[i])+2*(strtoint(imei.Text[i+1])); if (v1>9) then v1:= v1 mod 10; nck:=nck+inttostr(v1) end ; label1.Caption:= ' NCK : '+nck+#13#10+ '-Input a non-accepted Sim,enter the code.'+#13#10+ '-Without Sim,type *#787464# ,enter the code.'; end; | |
|
| | #9 (permalink) | |
| Product Supporter ![]() ![]() ![]() Join Date: Apr 2002 Location: nckDongle
Posts: 1,970
Member: 11170 Status: Offline Sonork: 1603694 Thanks: 230
Thanked 1,602 Times in 595 Posts
| Quote:
| |
|
| | #11 (permalink) | |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: Oct 2010
Posts: 147
Member: 1422878 Status: Offline Thanks: 51
Thanked 66 Times in 22 Posts
| Quote:
procedure TForm1.btn3Click(Sender: TObject); var i:byte; begin for i:=7 to 14 do nck.text:= nck.text + IntToStr((StrToInt(imei.text[i+1])*2 + StrToInt(imei.text[i])) mod 10); end; Thanks Brother Regards Helpy | |
|
| The Following User Says Thank You to helpinterchange For This Useful Post: |
| | #12 (permalink) | |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: Oct 2010
Posts: 147
Member: 1422878 Status: Offline Thanks: 51
Thanked 66 Times in 22 Posts
| Quote:
Now, without variables, and without use of FOR..TO sentences. Code: function Calc_Doro(imei:string; n:byte):string; begin if n=15 then Calc_Doro:='' else Calc_Doro := IntToStr((StrToInt(imei[n+1])*2 + StrToInt(imei[n])) mod 10) + Calc_Doro(imei,n+1); end; procedure TForm1.Button2Click(Sender: TObject); begin nck.text := Calc_Doro(imei.text,7); end; Helpy | |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| thread | Thread Starter | Forum | Replies | Last Post |
| DLS Box and new unlock algo. | majid | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 0 | 03-15-2002 17:33 |
| Need al info about imei calc and algos!! | Gsmhq | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 4 | 01-16-2002 10:31 |
| Free solutions for GSM. Support for all free. Nokia Authority Id calculation algo ! | te | Main Sales Section | 6 | 12-15-2001 13:57 |
| NEW FLASHING BOX :-)FOR NEW ALGO | Toto | Main Sales Section | 2 | 09-03-2001 14:07 |
| Anybody able to find out algo of new X35..... | Toto | x1x to x45/x50 | 0 | 06-10-2001 22:39 |