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
* 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