Traditionally, many devices use encoding/decoding systems to carry out a wireless control function, such as infrared (IR) remote control devices, radio-frequency identification (RFID) systems and so on. The foregoing two encoding/decoding systems are described as follows:    (1) Infrared (IR) remote control device: Referring now to FIG. 1, an IR remote control device 1 comprises a transmitter 10 and a receiver 11. The transmitter 10 includes an encoding chip 100, a matrix type keyboard 101 and a light emitting diode (LED) 102, wherein the encoding chip 100 is electrically connected to the keyboard 101 and the LED 102, respectively. When a user presses the keyboard 101, the encoding chip 100 can determine which key of the keyboard 101 is pressed, and transmit a driving signal corresponding to the key to the LED 102 according to an encoding procedure stored in the encoding chip 100. Thus, the LED 102 can generate IR lights having different flash time intervals according to the driving signals. For example, “0” in binary code means that the LED 102 is turned on 0.56 ms and turned off 0.56 ms while “1” in binary code means that the LED 102 is turned on 0.56 ms and turned off 1.125 ms. The receiver 11 includes a demodulation chip 110, a photoelectric converter 111, a decoding circuit 112 and an application circuit 113, wherein the demodulation chip 110 is electrically connected to the photoelectric converter 111 and the decoding circuit 112, respectively. After the photoelectric converter 111 receives IR lights emitted by the LED 102, the photoelectric converter 111 converts the IR lights into electrical signals in turns, and transmits the electrical signals to the demodulation chip 110. Thus, the demodulation chip 110 can process the electrical signals in turn to determine binary codes of the electrical signals, and converts codes of a predetermined bits into a serial code. For example, a predetermined “32 bits” means that 32 binary codes are included. The decoding circuit 112 is further electrically connected to the application circuit 113. When the decoding circuit 112 receives the serial code, the decoding circuit 112 decodes the serial code to obtain a control signal, and transmits the control signal to the application circuit 113. As a result, the application circuit 113 can execute a control procedure of an electronic machine or an electric device according to the control signal, such as to open or close a power door, an electric lock, a security system or a household appliance.            However, as described above, the IR remote control device 1 only uses the duration of light and dark of IR lights to encode. Thus, an illegal user may easily find out the emitting rule of the IR remote control device 1 and obtain related codes. Thus, if the user uses the IR remote control device 1 to control or execute a security system, it cannot provide the best security effect. Meanwhile, the safety of the user and the property thereof may be endangered because the codes of the IR remote control device 1 is cracked and stolen.            (2) Radio-frequency identification (RFID) system: Referring now to FIG. 2, the RFID system 2 comprises a reader 20 and an electrical tag 21. The reader 20 and the electrical tag 21 can transmit and receive radio signals of a predetermined frequency with each other, wherein the reader 20 can be electrically connected to an electronic machine or an electrical equipment, and the reader 20 includes a first controller 200 and a first transceiver antenna 201, and the first controller 200 is electrically connected to the first transceiver antenna 201 and uses the first transceiver antenna 201 to continuously send a radio signal. The electrical tag 21 includes a second transceiver antenna 210, a demodulation unit 211 and a second controller 212, wherein the demodulation unit 211 is electrically connected to the second transceiver antenna 210 and the second controller 212, respectively. When the second transceiver antenna 210 receives the radio signal, the second transceiver antenna 210 transmits the radio signal to the demodulation unit 211, and the demodulation unit 211 demodulates the radio signal into an operational power, and supplies the operational power to second controller 212. Thus, the second controller 212 can work under the supply of the operational power. Meanwhile, the second controller 212 transmits a code pre-stored therein to the demodulation unit 211, and the demodulation unit 211 demodulates the code into another radio signal which will then be transmitted back to the reader 20. As a result, the reader 20 can obtain the code stored in the electrical tag 21 from the radio signal, and the first controller 200 can execute a control procedure of the electronic machine or the electrical equipment according to the code.            As described above, only if the reader 20 and the electrical tag 21 have the same transmitting and receiving frequency, the reader 20 can obtain the codes stored in the electrical tag 21. Thus, when the predetermined transmitting and receiving frequency of the reader 20 and the electrical tag 21 is cracked, the codes stored in the electrical tag 21 may be stolen. In addition, because the radio signal is easily interfered by electro-magnetic waves, the reader 20 may not work to successfully receive the codes when the reader 20 receives the codes in the electrical tag 21 in a case where there is interference of electro-magnetic waves (such as electro-magnetic waves generated by a mobile phone) in the environment around the reader 20. Even worse, the reader 20 may receive incorrect codes, which causes the malfunction of the electronic machine or the electrical equipment and endangers the safety of the user. Besides, because the radio signal of the RFID system 2 is easily interfered by the environmental electro-magnetic waves, the RFID system 2 can not be applied to wireless remote control of long distance. As a result, the application of the RFID system 2 can not be efficiently enhanced.        
As a result, because there are several operational disadvantages existing in the IR remote control device 1, the RFID system 2 or other existing encoding/decoding systems, it is important for related manufacturers to think how to efficiently improve the disadvantages (such as poor security, low safety and frequent interference) of the foregoing various encoding/decoding systems applied to wireless control devices.
It is therefore tried by the inventor to develop a method and a system for encoding and decoding serial signals formed by a plurality of color lights to efficiently solve various problems existing in the conventional encoding/decoding systems as described above, so that the encoding/decoding systems can carry out more complicated, safer and uneasy interfered function of wireless control in various control procedures.