Figure 11:
Algorithm of the receiver firmware.