The algorithm of the on-off button EDGE V using the original remote control Khadas

Here very accurately described the problem button,
Below is a photo


Ethernet does not affect the signal quality between the remote control and the microcomputer.