I would like to design a simple relay which is triggered by a series of pulses rather than just a high signal.
e.g. the relay would have a serial data input. The relay would need to be "preset" with the code which will trigger it - e.g. 119. Then if you send it 01110111, the relay latches. Then sending a reset code (or the same code) could unlatch it.
I know this would be a fairly simple logic circuit to make, to drive a standard relay, but I'm wondering if such a product already exists, what it would be called so I can find it in component catalogues.
Update: the signal would be sent from an existing system which can be programmed to send pretty much any digital signal sequence (e.g. faking RS232 or other encodings) but only has one output line, and I can add line level conversion if needed.
Update 2: as I only have one driving line, I cannot provide a clock signal, so it must be asynchronous serial.