So OK, this is possibly more car related but .it may relate to some bikes......
the battery died in the remote key fob for my car and altho I replaced the battery, it wouldnt work.
Didn't want to pay mega bucks

to get vauxhall to re-code it, as everywhere was saying I had to

, then I came across an article that said:
make sure the key fob has a good battery in it
Put key in igntion and turn on
hold down button on the fob
wait for door locks to lock / unlock
key fob is re-coded
so thought, well nothing to lose ....... and it worked

n saved me mega-bucks so just thought Id pass it on