Need help converting Hex to Dec for Uniden programming

Status
Not open for further replies.

Searay

Member
Premium Subscriber
Joined
Apr 2, 2003
Messages
245
Location
York, SC
I am having a little problem following how to convert from Hex format to Decimal format. I have read the WIKI page which explains it and it says to use the following formula.

* Convert the M3 format ID, A39 to U format:

Hex_to_Dec(A39)*16 => 2617*16 = 41872

I convert the A39 from HEX to DEC using windows scientific caluculator. When I convert it I get 2617. Then I follow though and multiply by 16 and I get 41872. This formula follows what is listed below from the DB from the Charlotte/Mecklenburg (NC) TRS.

DEC HEX Display Description

656 029 EVENT-1 Event 1 EOC
688 02b EVENT-2 Event 2 CFD
720 02d EVENT-3 Event 3 Medic

Now I look at couple talkgroups from the York County (SC) TRS.

DEC HEX Mode Description

26460 675c D Radio Testing
26461 675d E Radio Testing
46001 b3b1 D Motorola Testing


The HEX converted to DEC here appear to be different. When I take 675c and convert to DEC with the scientific calculator I get 26460. If I follow the formula and multiply by 16, then it's way off. Why did they not multiply by 16 here?

Any help appreciated.

Matt
 

Searay

Member
Premium Subscriber
Joined
Apr 2, 2003
Messages
245
Location
York, SC
I tried the link. I get the same results and discrepency as I do following the formula on the WIKI page.

?????????
 

Dave_D

Member
Joined
Sep 30, 2005
Messages
162
Location
Incline Village, NV
The Charlotte/Mecklenburg TRS is a Motorola Type II Smartzone system, whereas the York County TRS is an APCO-25 system. The aforementioned wiki and calculators do not account for APCO-25 systems which, BTW, employ a straight hex-to-decimal conversion, as you've already figured out.

I hope this answers your question.

Dave
 

Searay

Member
Premium Subscriber
Joined
Apr 2, 2003
Messages
245
Location
York, SC
Thanks Dave. That's the answer. I did not know that the type 2 and APCO 25 used the different format. That makes things jive a little better.

Matt
 

crayon

RF Cartography Ninja
Database Admin
Joined
Oct 27, 2002
Messages
3,065
Location
36°33'01.2"N 98°56'40.1"W
Dave_D said:
The aforementioned wiki and calculators do not account for APCO-25 systems which, BTW, employ a straight hex-to-decimal conversion, as you've already figured out.

I hope this answers your question.

Dave
Could you please update the wiki for everyone. :)
 
Status
Not open for further replies.
Top