How to make a pairing and mode button on a remote control receiver
Remote sends a number before the command bits. The receiver checks if this number is the same with the number that corresponds with the position of the switches.
You can do the same in software. Have the first few bits be some number. The receiver can then check if the first few bits of the received &quot;message&quot; matches that number. If it doesn't it will just throw it out.
This is the same method used with IR-remote controls. The signal from your VCR remote will also be received by your TV. But the TV sees that the code doesn't match the one it's expecting. So it will ignore those.