to nz_vioпочитайтеКстати, все еще не снят вопрос о формате MIN в памяти телефона...
UNIT IDENTIFICATION
Each mobile unit is identified by the following sets of numbers.
The first number is the Moblie Identification Number (MIN). This
34 bit binary number is derived from the units telephone number,
MIN1 is the last seven digits of the telephone number and MIN2 is
the area code.
For demonstrative purposes, we'll encode 617-637-8687.
Here's how to derive the MIN2 from a standard area code. In this
example, 617 is the area code. All you have to do is first convert
to modulo 10 using the following function. A zero digit would be
considered to have a value of 10.
100(first number) + 10(second) +1(third) - 111 = x
100(6) + 10(1) + 1(7) - 111 = 506
(or you could just - 111 from the area code.)
Then convert it to a 10-bit binary number: 0111111010
To derive MIN1 from the phone number is equally as simple. First
encode the next three digits, 637.
100(6) + 10(3) + 1(7) - 111 = 526
Converted to binary: 1000001110
The remainder of the number 8687, is processed further by taking
the first digit, eight(8) and converting it directly to binary.
8 = 1000 (binary)
The last three digits are processed as the other two sets of
three numbers were processed.
100(6) + 10(8) + 1(7) - 111 = 576
Converted to binary: 1001000000
So the completed MIN number would look like this:
|--637---||8-||---687--||---617--|
1000001110100010010000000111111010
\________/\__/\________/\______