Flashcode checksum value

This forum is dedicated to discussions pertaining specifically to the Motorola ASTRO line of radios (those that use VSELP/IMBE/AMBE), including using digital modulation, digital programming, FlashPort upgrades, etc. If you have general questions please use the General or Programming forums.

Moderator: Queue Moderator

Post Reply
wa6ylb
Posts: 166
Joined: Sun Dec 21, 2008 1:33 pm

Flashcode checksum value

Post by wa6ylb »

I've wondered if someone out there has figured out how the checksum digit is calculated in a flashcode.
I've looked at it a bit here, but haven't stumbled upon how its done.
Thank you.
B.
Batwings21
Posts: 930
Joined: Fri Jun 23, 2006 11:21 am

Re: Flashcode checksum value

Post by Batwings21 »

I would ask Akardam, he has a wonderful flashcode decoder in his site and I would assume he knows how to calculate the flashcode checksum also.
User avatar
escomm
Queue Moderator
Posts: 5170
Joined: Fri Mar 24, 2006 8:24 pm

Re: Flashcode checksum value

Post by escomm »

I think all the characters have to add up to 9 or something
akardam
Posts: 2251
Joined: Thu Mar 04, 2004 10:53 am

Re: Flashcode checksum value

Post by akardam »

The flashcode checksum is calculated via a variation on the Luhn_algorithm.

If you're curious, I've got a script into which you can drop a flashcode and it will compute the checksum for you:

http://www.akardam.net/moto/tools/flashcode_checksum.pl

Edit: Actually, it would be more accurate to say it was based on a variation of the Luhn_mod_N_algorithm because of needing to map alpha-characters to numbers, and having a checksum digit which can be any number 0-9. It's still based on modulus 10 though.
Batwings21
Posts: 930
Joined: Fri Jun 23, 2006 11:21 am

Re: Flashcode checksum value

Post by Batwings21 »

Look, we ask how to do it, and he answers us AND makes a calculator for us. Too cool...
User avatar
escomm
Queue Moderator
Posts: 5170
Joined: Fri Mar 24, 2006 8:24 pm

Re: Flashcode checksum value

Post by escomm »

*rubs head*

I don't know what that all says but I'm pretty sure it's a little more complicated than just everything adding up to 9.
Post Reply

Return to “Legacy Batboard Motorola ASTRO (VSELP/IMBE/AMBE) Equipment Forum”