The disclosure relates to a remote coding setting method and a receiver, and more particularly to a remote coding setting method and a receiver for a ceiling fan.
Ceiling fans are ventilation and cooling devices commonly found in buildings. Ceiling fans are generally installed on high ceilings and are difficult to reach, so they are usually controlled wirelessly through remote controllers. A code address of a transmitter in the remote controller and a code address of a receiver in the ceiling fan must match before wireless control can be performed for the receiver of the ceiling fan to effectively receive a control signal transmitted by the transmitter of the remote controller and act accordingly.
Conventionally, two dual in-line package (DIP) switches are respectively installed in the transmitter and the receiver, and the DIP switches are set to the same code so as to pair the transmitter and the receiver. However, if the user fails to record the code set in the receiver of the ceiling fan, and accidentally loses the remote controller or sets the DIP switch of the remote controller to a different code, then a professional would need to be called in to remove a housing of the ceiling fan to access the receiver and obtain the code set in the receiver in order to set or reset the code in the transmitter of the remote controller, and then reassemble the ceiling fan. This process consumes not only time but also money.
Therefore, an object of the disclosure is to provide a remote coding setting method and a receiver that can alleviate at least one drawback of the prior art.
According to an aspect of the disclosure, the remote coding setting method is to be implemented by a receiver of a ceiling fan, and includes steps of: (A) when receiving a setting signal during a predetermined time period, obtaining a code length of the setting signal; (B) retrieving, from pre-stored coding data, a piece of coding format information that corresponds to the code length; (C) setting a fan coding format based on the piece of coding format information; and (D) when receiving a control signal after the predetermined time period, decoding the control signal based on the fan coding format, and controlling operation of the ceiling fan based on a result of the decoding.
According to another aspect of the disclosure, the receiver is to be used in a ceiling fan, and includes a receiver circuit, a memory circuit and a processor. The receiver circuit is configured to receive a setting signal and a control signal. The memory circuit is configured to store coding data that are related to multiple pieces of coding format information respectively corresponding to different code lengths. The processor is configured to perform the aforesaid remote coding setting method.
Other features and advantages of the disclosure will become apparent in the following detailed description of the embodiment(s) with reference to the accompanying drawings. It is noted that various features may not be drawn to scale.
Before the disclosure is described in greater detail, it should be noted that where considered appropriate, reference numerals or terminal portions of reference numerals have been repeated among the figures to indicate corresponding or analogous elements, which may optionally have similar characteristics.
Referring to
The power source 2 is configured to receive mains electricity, and to perform voltage stabilization and voltage transformation on the mains electricity so as to generate power that is to be provided to the motor 3, the lamp 4 and the receiver 5.
The receiver 5 includes a receiver circuit 51, a memory circuit 52 and a processor 53.
The receiver circuit 51 is configured to wirelessly receive a setting signal and a control signal that are outputted by the remote controller 6.
The memory circuit 52 is configured to store coding data that are related to multiple pieces of coding format information respectively corresponding to different code lengths. It should be noted that the memory circuit 52 is independent of the processor 53 in this embodiment, but may be built in the processor 53 in other embodiments, depending on application requirements.
The processor 53 is configured to control rotation of the motor 3 (and thus rotation of the vanes), and on/off and brightness of the lamp 4. It should be noted that the motor 3 and the lamp 4 are controlled by the processor 53 in this embodiment, but may be controlled by a controller (not shown) that is independent of the processor 53 in other embodiments, depending on application requirements.
Referring to
In step 71, the processor 53 receives an input signal from the remote controller 6 through the receiver circuit 51.
In step 72, the processor 53 determines whether the input signal is received during a predetermined time period. If affirmative, the input signal is determined to be the setting signal, and the flow proceeds to step 73. Otherwise, the input signal is determined to be the control signal, and the flow goes to step 76.
In this embodiment, the predetermined time period counts from when the ceiling fan is started up or when the ceiling fan is powered on. In an example, the predetermined time period is one minute long, and counts from when the ceiling fan is started up; and when a user wishes to set the receiver 5 of the ceiling fan, the user needs to hold down a predetermined button (e.g., a power button) (not shown) on the remote controller 6 for at least a predetermined time interval (e.g., ten seconds) within one minute after the ceiling fan is started up, so that the remote controller 6 outputs the setting signal for receipt by the receiver circuit 51.
In step 73, the processor 53 obtains a code length of the setting signal.
Referring to
After the code strings 80 are identified, the processor 53 calculates the total number of bits in each of the code strings 80 so as to obtain the code length.
Referring to
The coding data are related to multiple pieces of coding format
information that respectively correspond to different code lengths. The code lengths of the setting signals for various remote controller manufacturers are different (e.g., 12 bits, 16 bits, 24 bits, etc.), so the different code lengths and the corresponding pieces of coding format information can be stored in the memory circuit 52 in advance, and each piece of coding format information can be retrieved by the processor 53 based on the corresponding code length.
Each piece of coding format information is related to coding formats of the setting signal and the control signal. Depending on different settings of various remote controller manufacturers, the coding formats of the setting signal and the control signal may be the same, or may be different. When the coding formats of the setting signal and the control signal are different, with respect to each of the code lengths, the corresponding piece of coding format information contains the coding format of the setting signal and the coding format of the control signal.
Referring to
In an example shown in
Referring back to
In this embodiment, after the piece of coding format information is retrieved, the processor 53 decodes the setting signal based on the piece of coding format information, determines whether the coding format corresponding to the piece of coding format information is correct (matches the setting signal) based on a result of the decoding, and, when determining that the coding format is correct, stores the coding format as the fan coding format in, for example, the memory circuit 52 or a memory built in the processor 53, for future use. Specially, the processor 53 decodes the code strings 80 (see
Optionally, the processor 53 controls the ceiling fan to output a completion indication after setting of the fan coding format is complete, so as to inform the user of the completion of the setting process. For example, the processor 53 may cause the lamp 4 to blink twice, cause a buzzer (not shown) of the ceiling fan to sound, or cause the motor 3 to rotate the vanes for one second.
In step 76, the processor 53 decodes the control signal based on the fan coding format, and controls operation of the ceiling fan based on a result of the decoding. Then, the flow goes back to step 71.
After the completion of the setting process, when the user wants to control the ceiling fan, he/she only needs to operate the remote controller 6 to output the control signal, and the receiver 5 will decode the control signal based on the fan coding format and control operation of the ceiling fan based on the result of the decoding.
In view of the above, the receiver 5 of this embodiment has the following advantages.
1. By virtue of the memory circuit 52 pre-storing the coding data, and by virtue of the processor 53 retrieving, from the coding data, the piece of coding format information that corresponds to the code length of the setting signal wirelessly received through the receiver circuit 51, the receiver 5 can be set wirelessly, thereby facilitating quick setting and saving the time and the expenses required in the conventional setting (e.g., to invite a professional to disassemble and set the ceiling fan when the remote controller is accidentally lost or when the DIP switch on the remote controller is set to codes other than the code of the ceiling fan).
2. Since the piece of coding format information is retrieved from the coding data stored in the memory circuit 52, when the existing coding formats of the remote controllers by various manufacturers are changed or additional coding formats are in use, by virtue of updating the coding data stored in the memory circuit 52, the receiver 5 can operate with remote controllers 6 that use the changed coding formats or the additional coding formats without adding new components to the receiver 5. Therefore, the range of application of the receiver 5 can be expanded without additional cost.
Specifically, the receiver circuit 51 is configured to wirelessly communicate with a server using a wireless communication standard such as Wi-Fi, or wirelessly communicate with an electronic device such as a computer, a mobile phone, etc., using a wireless communication standard such as Wi-Fi, Zigbee, Bluetooth, etc., and the processor 53 receives the code lengths and the coding format information related to the changed coding formats or the additional coding formats from the server or the electronic device through the receiver circuit 51, and updates the coding data stored in the memory circuit 52 based on the code lengths and the coding format information thus received.
In the description above, for the purposes of explanation, numerous specific details have been set forth in order to provide a thorough understanding of the embodiment(s). It will be apparent, however, to one skilled in the art, that one or more other embodiments may be practiced without some of these specific details. It should also be appreciated that reference throughout this specification to “one embodiment,” “an embodiment,” an embodiment with an indication of an ordinal number and so forth means that a particular feature, structure, or characteristic may be included in the practice of the disclosure. It should be further appreciated that in the description, various features are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of various inventive aspects; such does not mean that every one of these features needs to be practiced with the presence of all the other features. In other words, in any described embodiment, when implementation of one or more features or specific details does not affect implementation of another one or more features or specific details, said one or more features may be singled out and practiced alone without said another one or more features or specific details. It should be further noted that one or more features or specific details from one embodiment may be practiced together with one or more features or specific details from another embodiment, where appropriate, in the practice of the disclosure.
While the disclosure has been described in connection with what is(are) considered the exemplary embodiment(s), it is understood that this disclosure is not limited to the disclosed embodiment(s) but is intended to cover various arrangements included within the spirit and scope of the broadest interpretation so as to encompass all such modifications and equivalent arrangements.