CN113110167A - Receiving end and control end electric appliance control method - Google Patents

Receiving end and control end electric appliance control method Download PDF

Info

Publication number
CN113110167A
CN113110167A CN202110398535.9A CN202110398535A CN113110167A CN 113110167 A CN113110167 A CN 113110167A CN 202110398535 A CN202110398535 A CN 202110398535A CN 113110167 A CN113110167 A CN 113110167A
Authority
CN
China
Prior art keywords
code
electrical
preset
control signal
electrical appliance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110398535.9A
Other languages
Chinese (zh)
Other versions
CN113110167B (en
Inventor
周业昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Shangneng Photoelectric Technology Co ltd
Original Assignee
Dongguan Shangneng Photoelectric Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Shangneng Photoelectric Technology Co ltd filed Critical Dongguan Shangneng Photoelectric Technology Co ltd
Priority to CN202110398535.9A priority Critical patent/CN113110167B/en
Publication of CN113110167A publication Critical patent/CN113110167A/en
Application granted granted Critical
Publication of CN113110167B publication Critical patent/CN113110167B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a receiving end and a control end electric appliance control method, which comprises the following steps: receiving a first control signal, and analyzing a first preset code in the control signal; comparing the first preset code with a second preset code; and if the first preset code is the same as the second preset code, the first electrical divider controls the working state of the corresponding first electrical divider according to the first preset code. According to the invention, the first electrical appliance associated with the first electrical appliance is accurately controlled in a coding encryption comparison mode, so that the situation that a user needs to control the electrical appliance through a fixed switch is avoided, and the control efficiency is improved.

Description

Receiving end and control end electric appliance control method
Technical Field
The invention relates to the field of electric appliance control, in particular to a receiving end and a control end electric appliance control method.
Background
At present, the control of an electric appliance is generally controlled through a fixed switch, for example, each electric lamp corresponds to one fixed switch, and the corresponding electric lamp can be controlled in a targeted manner through the fixed switch. The mode can prevent a user from controlling a plurality of electric appliances in a short time under the conditions of a large space environment and more electric appliances needing to be controlled, more time is wasted for controlling the electric appliances one by one, and the control efficiency is influenced.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, an object of the present invention is to provide a receiving end and a control end electric appliance control method, which implement accurate control of a first electric appliance associated with a first electric appliance in a manner of encoding, encrypting and comparing, avoid that a user needs to control the electric appliance through a fixed switch, and improve control efficiency.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a receiving end electric appliance control method, which comprises the following steps:
receiving a first control signal, and analyzing a first preset code in the control signal;
comparing the first preset code with a second preset code;
and if the first preset code is the same as the second preset code, the first electrical divider controls the working state of the corresponding first electrical divider according to the first preset code.
If the first preset code is the same as the second preset code, the method further includes, after the first electrical splitter controls the working state of the corresponding first electrical appliance according to the first preset code:
and if the first preset code is different from the second preset code, the second electrical shunt controls the working state of the corresponding second electrical shunt according to the first preset code.
The first preset code comprises a first address code and a first lamp code, or further comprises one or more of a first identification code, a first group code and a first spreading code;
the second predetermined code includes a second address code or further includes one or more of a second identification code, a second group code, and a second spreading code.
If the first preset code is the same as the second preset code, the first electrical splitter controls the working state of the corresponding first electrical splitter according to the first preset code, and the method specifically includes:
respectively judging whether the first address code is the same as the second address code;
if yes, the first electrical appliance controls the corresponding first electrical appliance on-off state according to the first lamp code.
If the first preset code is different from the second preset code, the second electrical shunt controls the working state of the corresponding second electrical shunt according to the first preset code, and the method specifically comprises the following steps:
judging whether the first address code and the first identification code are respectively the same as the second address code and the second identification code;
and when the first address code is the same as the second address code and the first identification code is different from the second identification code, the second electrical shunt controls the corresponding second electrical switch state according to the first lamp code.
The receiving end electric appliance control method further comprises the following steps:
when the first group code and the second group code are both valid, starting a group function;
and the first power divider and/or the second power divider with the same second group code form a group, and are controlled by the first control signal.
The receiving end electric appliance control method further comprises the following steps:
when a first control signal with a first duration is received and the first group code and the second group code are the same and are both effective, recording the working states of first electrical appliances and/or second electrical appliances corresponding to all first electrical appliances and/or second electrical appliances in the same group;
and when a first control signal with a second duration is received and the first group code and the second group code are the same and are both effective, restoring the working state of the first electrical appliance and/or the second electrical appliance according to the recorded working state.
The receiving end electric appliance control method further comprises the following steps:
and when the second preset code of the distributor is all 1 codes or all 0 codes, the distributor directly controls the corresponding electric appliance according to the recorded working state.
The receiving end electric appliance control method further comprises the following steps:
analyzing the first control signal, and entering a delay closing state if the first control signal comprises a delay signal;
and when the time delay closing state is entered, the first electric appliance and/or the second electric appliance are/is opened, and the first electric appliance and/or the second electric appliance are/is closed after the first preset time.
The receiving end electric appliance control method further comprises the following steps:
setting any one code in the first lamp codes as a fully-on fully-off code;
and when the first address code is the same as the second address code, the first group code and the second group code are the same and effective, and the first lamp code is a full-on full-off code, controlling the first electrical appliance and/or the second electrical appliance connected with the first electrical divider and/or the second electrical divider to be fully opened or fully closed according to the first lamp code.
A control method of a control terminal electric appliance comprises the following steps:
modulating the first preset code into a first control signal, and transmitting the first control signal;
and controlling the working state of the first electrical appliance and/or the second electrical appliance corresponding to the first electrical appliance and/or the second electrical appliance through a first preset code in the first control signal.
The first predetermined code includes the first address code and the first lamp code, or further includes one or more of the first identification code, the first group code, and the first spreading code.
The modulating the first preset code into a first control signal and transmitting the first control signal specifically includes:
presetting a first preset code;
and when a key signal is detected, modulating the first preset code into a first control signal, and sending the first control signal with preset duration.
When the key signal is detected, the first preset code is modulated into a first control signal, and the first control signal with preset duration is sent, which specifically includes:
when a first key signal with time longer than second preset time is detected in the effective state of the first group code, modulating the first preset code into a first control signal, and wirelessly sending the first control signal with first duration;
and in the effective state of the first group code, when a second key signal which is longer than a third preset time and shorter than a fourth preset time is detected, modulating the first preset code into a first control signal, and wirelessly transmitting the first control signal with a second duration.
The controlling, by a first preset code in the first control signal, the operating state of a first electrical appliance and/or a second electrical appliance corresponding to a first electrical splitter and/or a second electrical appliance specifically includes:
setting any one code in the first lamp codes as a fully-on fully-off code;
and controlling the full on or full off of the first electrical appliance and/or the second electrical appliance corresponding to the first electrical appliance and/or the second electrical appliance through the full on and full off code.
The control method of the control end electric appliance further comprises the following steps:
when a third key signal is detected, adding a delay signal into the first control signal, and then sending the first control signal;
and controlling the delayed closing state of the first electrical appliance and/or the second electrical appliance corresponding to the first electrical appliance and/or the second electrical appliance through the delayed signal.
Based on the above receiving end electric appliance control method and/or control end electric appliance control method, the present invention also provides a terminal device, including: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor implements the steps in the receiving-end electric appliance control method as described above or implements the steps in the control-end electric appliance control method as described above when executing the computer readable program.
Based on the receiving-end electric appliance control method and/or the control-end electric appliance control method described above, the present invention further provides a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement the steps in the receiving-end electric appliance control method described above or to implement the steps in the control-end electric appliance control method described above.
Compared with the prior art, the receiving end and the control end electric appliance control method provided by the invention comprise the following steps: receiving a first control signal, and analyzing a first preset code in the control signal; comparing the first preset code with a second preset code; and if the first preset code is the same as the second preset code, the first electrical divider controls the working state of the corresponding first electrical divider according to the first preset code. According to the invention, the first electrical appliance associated with the first electrical appliance is accurately controlled in a coding encryption comparison mode, so that the situation that a user needs to control the electrical appliance through a fixed switch is avoided, and the control efficiency is improved.
Drawings
FIG. 1 is a flow chart of a water route detection method based on a remote sensing cloud platform provided by the invention;
FIG. 2 is a flow chart of a receiving-end electric appliance control method provided by the present invention;
fig. 3 is a flowchart of S30 of the receiving-end electric appliance control method provided by the present invention;
fig. 4 is a flowchart of S40 of the receiving-end electric appliance control method provided by the present invention;
FIG. 5 is a flowchart of S50 to S60 of the receiving-end appliance control method according to the present invention;
FIG. 6 is a flowchart of S70 to S80 of the receiving-end appliance control method according to the present invention;
FIG. 7 is a flowchart of S90 to S94 of the receiving-end appliance control method according to the present invention;
fig. 8 is a flowchart of S100 to S400 of the control terminal electric appliance control method provided by the present invention;
fig. 9 is a flowchart of S110 to S120 of the control terminal electric appliance control method provided by the present invention;
fig. 10 is a flowchart of S121 to S122 of the control terminal electric appliance control method provided by the present invention;
fig. 11 is a flowchart of S210 to S220 of the control terminal electric appliance control method provided in the present invention;
fig. 12 is a schematic structural diagram of an alternative embodiment of a terminal device provided in the present invention.
Detailed Description
In view of the problems in the prior art, the invention provides a receiving end and a control end electric appliance control method, which realize accurate control of a first electric appliance associated with a first electric appliance in a coding encryption comparison mode, avoid the need of controlling the electric appliance through a fixed switch by a user, and improve the control efficiency.
The embodiments of the present invention are intended to explain technical concepts of the present invention, technical problems to be solved, technical features constituting technical solutions, and technical effects to be brought about in more detail. The embodiments are explained below, but the scope of the present invention is not limited thereto. Further, the technical features of the embodiments described below may be combined with each other as long as they do not conflict with each other.
In view of the problems in the prior art, the invention provides a method for controlling an electric appliance at a receiving end, which compares a first preset code in a received control signal with a second preset code in a distributor in a code encryption comparison mode, and then performs corresponding electric appliance control according to a comparison result, so as to realize accurate control of the electric appliance associated with the distributor, avoid the need of controlling the electric appliance through a fixed switch by a user, and improve the control efficiency.
For example, the receiving-end electrical appliance control method in the present invention may be applied to the scenario shown in fig. 1, wherein dial switches or encoders for setting preset codes are disposed in the first electrical splitter 20 and the second electrical splitter 30 and in the controller 10, and the first electrical splitter 20 and the second electrical splitter 30 are further connected to one or more electrical appliances. The first and second power dividers 20 and 30 may be provided in plural, and the models and specifications of the first and second power dividers 20 and 30 may be the same or different. After the controller 10 sets a first preset code through a dial switch or an encoder, the first preset code is transmitted in a binary mode; after the first electrical splitter 20 and the second electrical splitter 30 set the second preset code through the dial switch or the encoder, the first preset code and the second preset code are received and compared. Finally, if the first preset code is consistent with the second preset code, the first electrical appliance 40 and/or the second electrical appliance 50 connected to the first electrical appliance 20 and/or the second electrical appliance 30 are controlled according to the first preset code.
Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a method for controlling a receiving-end electrical appliance in the present embodiment is shown. In this embodiment, the method may include, for example, the steps of:
s10, receiving the first control signal, and analyzing the first preset code in the control signal.
In specific implementation, in this embodiment, the first splitter and/or the second splitter receives the first control signal, and demodulates the first control signal to obtain the first preset code in the control signal.
It is understood that the first power divider and the second power divider in this embodiment are used for illustration, and in practical applications, there may be a third power divider, a fourth power divider, and the like, and a plurality of first power dividers and a plurality of second power dividers may also be included, which is not limited herein.
And S20, comparing the first preset code with the second preset code.
In specific implementation, in this embodiment, after the first electrical splitter and/or the second electrical splitter obtains the first preset code, the first preset code is compared with the second preset code. Specifically, the first preset code includes a first address code and a first lamp code, or further includes one or more of a first identification code, a first group code and a first spreading code; the second predetermined code includes a second address code or further includes one or more of a second identification code, a second group code, and a second spreading code. When comparing, comparing each segment of code contained in the first preset code. The first power divider is enabled with the same code, and the second power divider is enabled with different codes.
And S30, if the first preset code is the same as the second preset code, controlling the working state of the corresponding first electrical appliance by the first electrical appliance according to the first preset code.
In specific implementation, in this embodiment, if the first preset code is the same as the second preset code, the first electrical splitter is enabled, and the operating state of the first electrical appliance connected to the first electrical splitter is controlled according to the first preset code. The working state can be defined by different specific meanings according to different appliances, for example, if the first appliance is a bulb, the lighting and extinguishing states of the bulb are controlled.
For example, referring to fig. 3, when the first preset code includes a first address code and a first lamp code, and the second preset code includes a second address code, the S30 specifically includes:
and S31, respectively judging whether the first address code is the same as the second address code.
And S32, if yes, controlling the corresponding first electrical appliance on-off state by the first electrical appliance according to the first lamp code.
In specific implementation, in this embodiment, the first electrical splitter includes a first dial switch for setting a second preset code, and the first dial switch may be a dial switch of any specification; in this embodiment, the first dial switch only includes the second address code. The first preset code comprises a first address code and a first lamp code, and after the first preset code is compared with a second preset code, if the first address code is the same as the second address code, the first electrical divider is enabled, and the output port of the corresponding first electrical divider is controlled through the first lamp code to control the corresponding first electrical divider.
Illustratively, if the first electrical splitter has 16 output ports, and each port is connected to one first electrical appliance, the second light code is set to 4 bits, a 4-bit binary system can correspond to the 16 output ports, and when the first address code and the second address code are the same, the first electrical appliance of the corresponding output port is controlled according to the second light code.
Illustratively, continuing to refer to fig. 2, after S30, the method further includes:
and S40, if the first preset code is different from the second preset code, controlling the working state of the corresponding second electrical appliance by the second electrical divider according to the first preset code.
In the specific implementation, when different distributors or distributors with different specifications need to be controlled, the enabling mode needs to be changed, otherwise all the distributors are controlled simultaneously. In this embodiment, when the comparison result is different, the second electrical shunt is enabled to control the working state of the second electrical shunt.
For example, referring to fig. 4, when the first preset code includes a first address code, a first lamp code, and a first identification code, and the second preset code includes a second address code and a second identification code, the S40 specifically includes:
and S41, judging whether the first address code and the first identification code are respectively the same as the second address code and the second identification code.
And S42, when the first address code is the same as the second address code and the first identification code is different from the second identification code, controlling the corresponding switch state of the second electrical appliance by the second electrical appliance according to the first lamp code.
In specific implementation, in this embodiment, it is determined that the second power divider includes a second toggle switch for setting a second preset code, where the second toggle switch includes a second address code and a second identification code. When the first preset code is compared with the second preset code, if the first address code is the same as the second address code and the first identification code is different from the second identification code, the second power divider is enabled, and the output port of the corresponding second power divider is controlled through the first lamp code. And if the first identification code is the same as the second identification code, enabling the first electrical divider to control the first electrical divider connected with the first electrical divider.
Illustratively, the first identification code and the second identification code are both 1-bit binary codes, when the first identification code is 1 (or 0), and the second identification code is 0 (or 1), the second power divider is enabled, and when the first identification code is 1 (or 0), and the second identification code is also 1 (or 0), the first power divider is enabled.
It should be noted that, when the number of the distributors is increased, the identification of each distributor can be performed by a specific code value, and the principle is substantially consistent with the above and will not be described in detail here.
For example, referring to fig. 5, the receiving-end electric appliance control method further includes:
and S50, when the first group code and the second group code are both valid, starting the group function.
And S60, the first power divider and/or the second power divider with the same second group code form a group, and the group is controlled by the first control signal.
In this embodiment, the group codes are used to group each distributor, and the serial numbers of the second address codes of the distributors in each group are adjacent to each other. For example, the first group includes a first electrical splitter and a second electrical splitter, where the second address code of the first electrical splitter is 0000000001, the second address code of the second electrical splitter may be 0000000010, and if a third electrical splitter is further included, the second address code of the third electrical splitter is 0000000011, and so on. And is uniformly controlled by the first control signal.
For example, the first group code and the second group code are valid when the number is 1, but the first group code and the second group code may also be valid when the number is 0, and may be freely selected according to specific situations, which is not limited herein.
It should be noted that a plurality of first power dividers may be grouped, a plurality of second power dividers may be grouped, or a first power divider and a second power divider may be grouped together. The specific value can be selected according to the needs, and is not limited herein.
Further, referring to fig. 6, the method for controlling the receiving-end electrical appliance further includes:
and S70, when the first control signal with the first duration is received and the first group code and the second group code are the same and are both valid, recording the working states of the first electrical appliances and/or the second electrical appliances corresponding to all the first electrical appliances and/or the second electrical appliances in the same group.
And S80, when the first control signal with the second duration is received and the first group code and the second group code are the same and are both effective, restoring the working state of the first electrical appliance and/or the second electrical appliance according to the recorded working state.
In this embodiment, when the first group code and the second group code are the same and both are valid, the group function is turned on and the memory function is provided. The method comprises the steps that a specific first control signal is transmitted through a controller end, all power distributors with the same group code form a group (marked as a first group), and after all first power distributors and/or all second power distributors in the first group receive the specific first control signal, the working states of the first power distributor and/or the second power distributor connected with the first power distributor and/or the second power distributor are recorded. Specifically, the specific first control signal is a first control signal with a first duration, and whether to start the memory function is judged according to the duration of the first signal.
Further, after the working state record exists, if the first control signal of the second duration is received, the working state of the corresponding first electrical appliance and/or the second electrical appliance in the first group is recovered according to the recorded working state.
For example, referring to fig. 7, the receiving-end electric appliance control method further includes:
and S90, when the second preset code of the distributor is all 1 codes or all 0 codes, the distributor directly controls the corresponding electric appliance according to the recorded working state.
In specific implementation, in this embodiment, a special state is set, and when the user sets the second preset code of the distributor to all 1 codes or all 0 codes, the distributor can automatically recover the operating state of the corresponding electrical appliance according to the recorded operating state, so as to avoid the situation that the controller cannot control the corresponding electrical appliance when being damaged, lost or forgotten to carry.
For example, referring to fig. 7, the receiving-end electric appliance control method further includes:
and S91, analyzing the first control signal, and entering a delay closing state if the first control signal comprises a delay signal.
And S92, when the time delay closing state is entered, the first electric appliance and/or the second electric appliance are/is opened, and the first electric appliance and/or the second electric appliance are/is closed after the first preset time.
In a specific implementation, in this embodiment, the first control signal may also carry other signals besides the first preset code, for example, a delay signal, and when the distributor receives the delay signal, all the electrical appliances connected to the distributor are turned on, and all the electrical appliances are turned off after the first preset time. The time delay control function is realized, and the method can be applied to some lighting systems and some areas without people for monitoring.
For example, referring to fig. 7, the receiving-end electric appliance control method further includes:
s93, setting any code in the first lamp codes as a fully-on and fully-off code;
and S94, when the first address code is the same as the second address code, the first group code and the second group code are the same and effective, and the first lamp code is a full-on full-off code, controlling the first electrical appliance and/or the second electrical appliance connected with the first electrical appliance and/or the second electrical appliance to be fully opened or fully closed according to the first lamp code.
In specific implementation, in this embodiment, a full-on full-off code is set in the first light code to implement a function of a master control switch (i.e., a one-key control mode), and when the full-on full-off code is valid, after receiving the first signal, if the electrical appliance is fully off at this time, all the electrical appliances are turned on; if all the electric appliances are fully opened, all the electric appliances are closed; if all the electric appliances have switch, all the electric appliances are switched on or off (can be selected according to specific conditions).
Based on the above receiving end electrical apparatus control method, please refer to fig. 8, the present invention further provides a control end electrical apparatus control method, including:
s100, modulating the first preset code into a first control signal, and transmitting the first control signal.
For example, referring to fig. 9, the S100 specifically includes:
s110, presetting a first preset code;
and S120, when the key signal is detected, modulating the first preset code into a first control signal, and sending the first control signal with preset duration.
In specific implementation, in this embodiment, the controller may be a switch, the switch may include one or more keys, and the switch may be a touch switch, a key switch, or the like. The controller includes a second toggle, which may be any number of encoding bits. And presetting the first preset code through the second dial switch so as to pertinently control the electric appliance connected with the corresponding distributor. And when a key signal is detected, modulating the first preset code into a first control signal, and sending the first control signal with preset time length, wherein the preset time length can be set as required so as to correspond to a corresponding function.
Specifically, the first preset code includes a first address code and a first lamp code, or further includes one or more of a first identification code, a first group code, and a first spreading code.
For example, referring to fig. 10, the step S120 specifically includes:
s121, in the effective state of the first group code, when a first key signal with time longer than a second preset time is detected, modulating the first preset code into a first control signal, and sending the first control signal with a first duration in a wireless mode.
In specific implementation, in this embodiment, the length of the first control signal may be determined according to the duration of the first key signal, and then the receiving end processes the first control signal to implement a corresponding function. When the first group code is valid, if a first key signal with time longer than second preset time is detected, modulating the first preset code into a first control signal, and simultaneously sending the first key signal with the first duration.
And S122, in the valid state of the first group code, when a second key signal which is longer than a third preset time and shorter than a fourth preset time is detected, modulating the first preset code into a first control signal, and transmitting the first control signal with a second duration in a wireless mode.
In this embodiment, when the second key signal duration is greater than the third preset time and less than the fourth preset time, the first preset code is modulated into the first control signal, and the first control signal with the second duration is transmitted to the receiving end.
S200, controlling the working state of the first electrical appliance and/or the second electrical appliance corresponding to the first electrical appliance and/or the second electrical appliance through a first preset code in the first control signal.
For example, referring to fig. 11, the S200 specifically includes:
s210, setting any code in the first lamp codes as a fully-on and fully-off code;
and S220, controlling the full on or full off of the first electrical appliance and/or the second electrical appliance corresponding to the first electrical appliance and/or the second electrical appliance through the full-on full-off code.
In specific implementation, in this embodiment, one bit is selected from the first lamp codes as a full-on full-off code, if the full-on full-off code is valid (may be 1 or 0), a one-key control mode is entered, and after receiving the first signal, if the electrical appliance is fully off at this time, all the electrical appliances are turned on; if all the electric appliances are fully opened, all the electric appliances are closed; if all the electric appliances are switched on or off, all the electric appliances are switched on or off.
For example, continuing to refer to fig. 8, the control terminal apparatus control method further includes:
s300, when a third key signal is detected, adding a delay signal into the first control signal, and then sending the first control signal;
and S400, controlling the delayed closing state of the first electrical appliance and/or the second electrical appliance corresponding to the first electrical appliance and/or the second electrical appliance through the delayed signal.
In a specific implementation, in this embodiment, the first control signal may also carry other signals besides the first preset code, for example, a delay signal, and when the controller detects the third key signal, the delay signal is added to the first control signal. Specifically, the third key signal may be an individual key, or may be a long-time key pressed on an original single key, and when a fifth preset time is reached, the third key signal is generated. And modulating the delay signal to a first control signal and then sending the first control signal to a distributor at a control end. When the distributor receives the delay signal, all the electric appliances connected with the distributor are turned on, and all the electric appliances are turned off after the first preset time. The time delay control function is realized, and the method can be applied to some lighting systems and some areas without people for monitoring.
In the present invention, the corresponding program of the receiving-end electric appliance control method according to the foregoing embodiment may be disposed in a computer-readable storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the steps of the receiving-end electric appliance control method according to the foregoing embodiment, or implement the steps of the control-end electric appliance control method according to the foregoing embodiment.
The computer-readable storage medium of the present invention may be provided in a terminal device, as shown in fig. 12, which includes at least one processor (processor) 20; and a memory (memory)21, which may further include a wireless module 22 and a bus 23. The processor 20, the memory 21 and the wireless module 22 can communicate with each other through a bus 23. The wireless module 22 may transmit information via wireless signals. The processor 20 may call logic instructions in the memory 21 to perform the method in the above embodiments.
In addition, the logic instructions in the memory 21 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 21, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing by executing the software program, instructions or modules stored in the memory 21, that is, implements the method in the above-described embodiment.
The memory 21 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 21 may include a high-speed random access memory, and may also include a nonvolatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the mobile terminal are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. A receiving end electric appliance control method is characterized by comprising the following steps:
receiving a first control signal, and analyzing a first preset code in the control signal;
comparing the first preset code with a second preset code;
and if the first preset code is the same as the second preset code, the first electrical divider controls the working state of the corresponding first electrical divider according to the first preset code.
2. The receiving-end electrical appliance control method according to claim 1, wherein if the first preset code is the same as the second preset code, after the first electrical appliance controls the working state of the corresponding first electrical appliance according to the first preset code, the method further comprises:
and if the first preset code is different from the second preset code, the second electrical shunt controls the working state of the corresponding second electrical shunt according to the first preset code.
3. The receiving-end electrical appliance control method according to claim 2, wherein the first preset code comprises a first address code and a first lamp code, or further comprises one or more of a first identification code, a first group code and a first spreading code;
the second predetermined code includes a second address code or further includes one or more of a second identification code, a second group code, and a second spreading code.
4. The receiving-end electrical appliance control method according to claim 3, wherein if the first preset code is the same as the second preset code, the first electrical appliance controls the working state of the corresponding first electrical appliance according to the first preset code, and specifically includes:
respectively judging whether the first address code is the same as the second address code;
and if so, controlling the on-off state of the corresponding first electrical appliance by the first electrical appliance according to the first lamp code.
5. The receiving-end electrical appliance control method according to claim 3, wherein if the first preset code is different from the second preset code, the second electrical splitter controls a working state of a corresponding second electrical appliance according to the first preset code, and specifically includes:
judging whether the first address code and the first identification code are respectively the same as the second address code and the second identification code;
and when the first address code is the same as the second address code and the first identification code is different from the second identification code, the second electrical shunt controls the corresponding second electrical switch state according to the first lamp code.
6. The receiving-end electric appliance control method according to claim 3, further comprising:
when the first group code and the second group code are both valid, starting a group function;
and the first power divider and/or the second power divider with the same second group code form a group, and are controlled by the first control signal.
7. The receiving-end electric appliance control method according to claim 6, further comprising:
when a first control signal with a first duration is received and the first group code and the second group code are the same and are both effective, recording the working states of first electrical appliances and/or second electrical appliances corresponding to all first electrical appliances and/or second electrical appliances in the same group;
and when a first control signal with a second duration is received and the first group code and the second group code are the same and are both effective, restoring the working state of the first electrical appliance and/or the second electrical appliance according to the recorded working state.
8. The receiving-end electric appliance control method according to claim 6, further comprising:
and when the second preset code of the distributor is all 1 codes or all 0 codes, the distributor directly controls the corresponding electric appliance according to the recorded working state.
9. The receiving-end electric appliance control method according to claim 2, further comprising:
analyzing the first control signal, and entering a delay closing state if the first control signal comprises a delay signal;
and when the time delay closing state is entered, the first electric appliance and/or the second electric appliance are/is opened, and the first electric appliance and/or the second electric appliance are/is closed after the first preset time.
10. The receiving-end electric appliance control method according to claim 3, further comprising:
setting any one code in the first lamp codes as a fully-on fully-off code;
and when the first address code is the same as the second address code, the first group code and the second group code are the same and effective, and the first lamp code is a full-on full-off code, controlling the first electrical appliance and/or the second electrical appliance connected with the first electrical divider and/or the second electrical divider to be fully opened or fully closed according to the first lamp code.
11. A control method for a control terminal electric appliance is characterized by comprising the following steps:
modulating the first preset code into a first control signal, and transmitting the first control signal;
and controlling the working state of the first electrical appliance and/or the second electrical appliance corresponding to the first electrical appliance and/or the second electrical appliance through a first preset code in the first control signal.
12. The control terminal appliance control method according to claim 11, wherein the first preset code includes the first address code and the first lamp code, or further includes one or more of the first identification code, the first group code, and the first spread code.
13. The control end electrical appliance control method according to claim 12, wherein modulating the first preset code into a first control signal and transmitting the first control signal specifically comprises:
presetting a first preset code;
and when a key signal is detected, modulating the first preset code into a first control signal, and sending the first control signal with preset duration.
CN202110398535.9A 2021-04-13 2021-04-13 Receiving end and control end electric appliance control method Active CN113110167B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110398535.9A CN113110167B (en) 2021-04-13 2021-04-13 Receiving end and control end electric appliance control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110398535.9A CN113110167B (en) 2021-04-13 2021-04-13 Receiving end and control end electric appliance control method

Publications (2)

Publication Number Publication Date
CN113110167A true CN113110167A (en) 2021-07-13
CN113110167B CN113110167B (en) 2022-08-12

Family

ID=76716665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110398535.9A Active CN113110167B (en) 2021-04-13 2021-04-13 Receiving end and control end electric appliance control method

Country Status (1)

Country Link
CN (1) CN113110167B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2906293Y (en) * 2005-09-14 2007-05-30 上海金桥大晨光电科技有限公司 Spherical floodlight
CN101478846A (en) * 2008-12-31 2009-07-08 上海广茂达灯光景观工程有限公司 LED lamp light controlling bus and controlling method thereof
CN101494936A (en) * 2008-12-19 2009-07-29 上海广茂达灯光景观工程有限公司 LED light control bus and control method
CN105307326A (en) * 2015-09-25 2016-02-03 擎茂微电子(深圳)有限公司 LED lamp string single color change generation method
CN109116177A (en) * 2018-06-11 2019-01-01 格力电器(武汉)有限公司 Method and device for detecting line sequence of connecting line and computer storage medium
CN109521686A (en) * 2019-01-14 2019-03-26 杭州老板电器股份有限公司 The Embedded kitchen appliance control device of intelligence and control method
CN112486105A (en) * 2019-09-12 2021-03-12 深圳市云海物联科技有限公司 Equipment control method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2906293Y (en) * 2005-09-14 2007-05-30 上海金桥大晨光电科技有限公司 Spherical floodlight
CN101494936A (en) * 2008-12-19 2009-07-29 上海广茂达灯光景观工程有限公司 LED light control bus and control method
CN101478846A (en) * 2008-12-31 2009-07-08 上海广茂达灯光景观工程有限公司 LED lamp light controlling bus and controlling method thereof
CN105307326A (en) * 2015-09-25 2016-02-03 擎茂微电子(深圳)有限公司 LED lamp string single color change generation method
CN109116177A (en) * 2018-06-11 2019-01-01 格力电器(武汉)有限公司 Method and device for detecting line sequence of connecting line and computer storage medium
CN109521686A (en) * 2019-01-14 2019-03-26 杭州老板电器股份有限公司 The Embedded kitchen appliance control device of intelligence and control method
CN112486105A (en) * 2019-09-12 2021-03-12 深圳市云海物联科技有限公司 Equipment control method and device

Also Published As

Publication number Publication date
CN113110167B (en) 2022-08-12

Similar Documents

Publication Publication Date Title
US10804800B2 (en) Power supplying apparatus, power supplying control apparatus, and power supplying control method
US20070073842A1 (en) Method and a system for establishing a connection with identification and group information
CN108353442B (en) Delegating a second network using a network
CN103648009A (en) Android system based infrared remote control responding method and device and smart television
JP2019504553A (en) Embedded subscriber identification module including communication profile
CN104950716B (en) A kind of apparatus control method and device
CN103780430A (en) Method and device for monitoring network equipment
US10651939B2 (en) Optical transceiver and method of controlling the same
US10505580B2 (en) Antenna tuning control using general purpose input/output data
US20150040196A1 (en) Network connecting device, system and method for same
CN108650671B (en) Method, device, mobile terminal, storage medium and system for establishing Bluetooth connection
CN108199931A (en) A kind of household electric appliance control method and system
CN104915306A (en) Data operation control method and device manager
CN113110167B (en) Receiving end and control end electric appliance control method
CN101341478A (en) Method for downloading a configuration file in a programmable circuit, and apparatus comprising said component
CN109803470B (en) Street lamp control method, street lamp and street lamp control system
CN111901831A (en) Cell switching method, device, equipment and storage medium
CN108768693B (en) Method for identifying shared port in multiple network ports, storage medium and server
CN112865248A (en) Box-entering detection method and device of wireless earphone, charging box and readable storage medium
US9831949B2 (en) Modulation device, light emitting device, and light emission system
CN109287051B (en) Strong electricity controller and strong electricity management method thereof
CN114979974A (en) Wireless control method, device and equipment
CN113079471B (en) Robot network communication method and related equipment
CN105357579A (en) Online upgrading method for set top box, related device and set top box
CN114241984A (en) LED driving device, multistage LED driving system and driving method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant