Maker Pro
Maker Pro

ESN

Nguyen

Jul 2, 2017
6
Joined
Jul 2, 2017
Messages
6
Hello,

I've seen a post (in 2010!) about conversion of ESN from HEX to DEC using Windows calculator.
There are two problem in it with me.
1/- First it refers to an older version of windows, the W10 doesn't not have that kind of calculator as I know.
2/- When doint it on an XP OS the conversion from DEC to HEX yields only the 2, 3, 4 digits; the last two are missing.
For example when converting 63843 I found 6F03 only.
Or 62725 gives 6AA5
Would you help me how to do that conversion either with extra apps or with W10 ressources?
Thank you.

As for 1/- I've found the the corresponding calculator in W10 under "Programmer". But 2/- still remains.

Here is the url of the 2010 thread : https://www.electronicspoint.com/threads/dsc-esn-conversion.216749/

Thank you.
 
Last edited:

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
You need to post a link to the thread you're talking about, otherwise we can't help.
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
Ah. You need to do HEX to DEC, not DEC to HEX!
 

kellys_eye

Jun 25, 2010
6,514
Joined
Jun 25, 2010
Messages
6,514
The HEX result of converting 63843 is F963....

Just ask the result from Google!
 
Last edited:

Nguyen

Jul 2, 2017
6
Joined
Jul 2, 2017
Messages
6
The HEX result of converting 63843 is F963....

Just ask the result from Google!
Thank you for your input. Yeh, it is a "normal" HEX DEC conversion, but I am concerned with ESN HEX DEC conversion for my DSC remote code.
 

kellys_eye

Jun 25, 2010
6,514
Joined
Jun 25, 2010
Messages
6,514
You have to take the first 3 digits of the DEC number and convert that to HEX. The remaining digits are also then converted to HEX and the two results 'pasted' together.

so for 123456789....

123 converts to '7B'
456789 converts to '6F855'

the 'answer' then becomes 7B6F855

The key is the separation of the first three digits of the ESN.....

Use any old DEC-to-HEX converter

To do the reverse take the first TWO digits and convert from HEX to DEC then convert the remaining digits from HEX to DEC and 'paste' the results back together.

For a HEX ESN of 7B6F855 the first TWO digits (7B) convert to 123

The remaining digits (6F855) convert to 456789

'Paste' the two answers to get 123456789
 

Nguyen

Jul 2, 2017
6
Joined
Jul 2, 2017
Messages
6
Hello, I cannot apply these rules to my problem. I have one ESN which is in DEC form : 62725 and in HEX form : 6AA5FA. I know for sure that they correspond because I have one installation that needs DEC and the other that needs DEC. I use those two respectively and they work.
Thanks anyway.
 

kellys_eye

Jun 25, 2010
6,514
Joined
Jun 25, 2010
Messages
6,514
There are some 'peculiarities' to your results. This seems to stem from where the digits are 'split' to apply the conversion.

In your first post you use 63843 and this converts (using the last 4 digits to HEX) to 6F03 correctly (note the '6' stays the same as converting it to HEX gives the same result, 6) - the last 4 digits (3843) convert to HEX F03.

Similarly 62725 converts to (6)AA5 correctly (2725 is AA5 in HEX).

Both conversions meet with the conversion specifications if we use the digit placements as above - although this isn't strictly to the standard conversion method as described elsewhere online - so the 'error' (if there is one) is in the two numbers you supply - they are NOT identical in terms of converted from one form to another.

Note you can 'see' the 6AA5 in your other result (6AA5FA) but where the 'FA' came from can only be speculated at given the information supplied. Missing leading zeros/trailing zeros perhaps?
 

Nguyen

Jul 2, 2017
6
Joined
Jul 2, 2017
Messages
6
The 62725 = 6AA5FA, I am positif of. They are supplied by the supplier, and work with my two installations, one working with 62725 and the other with 6AA5FA.
The 63843 applying the fact that the 6 is the same in both HEX and DEC I found F03 too, but the problem is the HEX has to be 6 digits, so the trailing last two are missing, hence my problem.
These are ESN.
 
Top