Implement train sequence based communication.
Tested OK in emulator.