The alarm system on the 2002....is it set automatically or does it have to be armed with a button on the key fob?
It's manually armed on an 02.
Six flashes is a TSM/TSSM code. Very likely something simple too. If the bike does not have an alarm system first thing to do is make sure all the bulbs are good. If the bike does have an alarm (and all the bulbs are good) find the siren module and replace the 9v battery inside of it.
These things might not be your problem. But they might be too. Probably the more likely culprits at that. Certainly the easier and cheaper things to try. If you were to check for codes you want to look in the TSM/TSSM section.