主权项 |
1. A method of demodulating a signal packet, the signal packet including a plurality of bits each of which is represented by a plurality of pulses, the method to be implemented by a controller which stores in advance a first pulse width associated with the pulses of the signal packet that define bit 0, a first threshold value associated with bit 0, a second pulse width associated with the pulses of the signal packet that define bit 1, and a second threshold value associated with bit 1, the method comprising steps of:
after receiving the signal packet, determining, by the controller, whether a pulse width of each of the pulses of one of the bits of the signal packet is associated with bit 0 or bit 1 according to the first pulse width and the second pulse width; when it is determined by the controller that the pulse width is associated with bit 0, by the controller, updating first counting data associated with a number of the pulses that define bit 0, and determining whether the first counting data is greater than the first threshold value; when it is determined by the controller that the first counting data is greater than the first threshold value, deciding, by the controller, that said one of the bits of the signal packet is a bit 0; when it is determined by the controller that the pulse width is associated with bit 1, by the controller, updating second counting data associated with a number of the pulses that define bit 1, and determining whether the second counting data is greater than the second threshold value; when it is determined by the controller that the second counting data is greater than the second threshold value, deciding, by the controller, that said one of the bits of the signal packet is a bit 1. |