CN110209075A - Method of controlling switch and device - Google Patents
Method of controlling switch and device Download PDFInfo
- Publication number
- CN110209075A CN110209075A CN201811634342.3A CN201811634342A CN110209075A CN 110209075 A CN110209075 A CN 110209075A CN 201811634342 A CN201811634342 A CN 201811634342A CN 110209075 A CN110209075 A CN 110209075A
- Authority
- CN
- China
- Prior art keywords
- controlled switch
- terminal device
- switch
- distance
- control signal
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000010586 diagram Methods 0.000 description 8
- 230000005611 electricity Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 4
- 238000004378 air conditioning Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Selective Calling Equipment (AREA)
Abstract
The embodiment of the present invention provides a kind of method of controlling switch and device, this method comprises: determining the first distance between at least one terminal device and the first controlled switch;When first distance between each terminal device and the first controlled switch is greater than pre-determined distance, control signal is generated, the control signal, which is used to indicate, disconnects the described first controlled switch;The control signal is sent to the described first controlled switch, so that the described first controlled switch disconnects.For reducing with the incidence of electrification.
Description
Technical field
The present embodiments relate to house electrical domain more particularly to a kind of method of controlling switch and device.
Background technique
Electricity consumption is be unable to do without in daily life, daily electricity consumption usually connects electricity to transformer, by transformer pressure-reducing from power grid
After processing, each family or unit are accessed, later, user usually in one master switch of setting in wiring of registering one's residence, passes through master switch
Will decompression treated that electricity is supplied to each electrical appliance.
Currently, family or unit are usually constructed with the electrical appliance of variety classes, quantity, when family or unit nobody when, electricity consumption
Device usually will continue to power consumption, and the incidence so as to cause family or unit electrification is higher.
Summary of the invention
The embodiment of the present invention provides a kind of method of controlling switch and device, for using electricity wisely, reduction electrification simultaneously
Incidence.
In a first aspect, the embodiment of the present invention provides a kind of method of controlling switch, comprising:
Determine the first distance between at least one terminal device and the first controlled switch;
When first distance between each terminal device and the first controlled switch is greater than pre-determined distance, control is generated
Signal, the control signal, which is used to indicate, disconnects the described first controlled switch;
The control signal is sent to the described first controlled switch, so that the described first controlled switch disconnects.
In a kind of possible embodiment, first in each terminal device between the first controlled switch
When distance is greater than pre-determined distance, control signal is generated, comprising:
When first distance between each terminal device and the first controlled switch is greater than pre-determined distance, obtain each
Corresponding first duration of terminal device, described first when, a length of terminal device was greater than with the distance between the first controlled switch
The duration of the pre-determined distance;
When corresponding first duration of each terminal device is greater than preset duration, the control signal is generated.
In alternatively possible embodiment, between at least one terminal device of the determination and the first controlled switch
First distance, comprising:
Obtain the first location information of each terminal device and the second location information of the first controlled switch;
Respectively according to the first location information of each terminal device and the second location information, determine it is described at least one
First distance between terminal device and the first controlled switch.
In alternatively possible embodiment, which is characterized in that the generation controls signal, comprising:
The first prompt information is generated, whether first prompt information disconnects the described first controlled switch for prompting;
The first control instruction is received, and the control signal is generated according to first control instruction.
In alternatively possible embodiment, the first instruction information includes the mark of multiple controlled switches, described
First control instruction includes the mark of the described first controlled switch;It is described that the control letter is generated according to first control instruction
Number, comprising:
The mark of the described first controlled switch is obtained in first control instruction;
According to the mark of the described first controlled switch, generates described first and be controlled the corresponding control signal of switch.
Second aspect, the embodiment of the present invention provide a kind of switch controlling device, including determining module, generation module and transmission
Module, wherein
The determining module is used for, and determines the first distance between at least one terminal device and the first controlled switch;
The generation module is used for, and the first distance between each terminal device and the first controlled switch is greater than pre-
If apart from when, generate control signal, the control signal, which is used to indicate, to be disconnected described first and controlled switch;
The sending module is used for, and the controlled switch of Xiang Suoshu first sends the control signal, so that described first is controlled
Switch disconnects.
In a kind of possible embodiment, the generation module is specifically used for:
When first distance between each terminal device and the first controlled switch is greater than pre-determined distance, obtain each
Corresponding first duration of terminal device, described first when, a length of terminal device was greater than with the distance between the first controlled switch
The duration of the pre-determined distance;
When corresponding first duration of each terminal device is greater than preset duration, the control signal is generated.
In alternatively possible embodiment, the determining module is specifically used for:
Obtain the first location information of each terminal device and the second location information of the first controlled switch;
Respectively according to the first location information of each terminal device and the second location information, determine it is described at least one
First distance between terminal device and the first controlled switch.
In alternatively possible embodiment, the generation module is specifically used for:
The first prompt information is generated, whether first prompt information disconnects the described first controlled switch for prompting;
The first control instruction is received, and the control signal is generated according to first control instruction.
In alternatively possible embodiment,
The first instruction information includes the mark of multiple controlled switches, and first control instruction includes first quilt
Control the mark of switch;The generation module is specifically used for:
The mark of the described first controlled switch is obtained in first control instruction;
According to the mark of the described first controlled switch, generates described first and be controlled the corresponding control signal of switch
The third aspect, the embodiment of the present invention provide a kind of switch controlling device, comprising: processor, the processor with deposit
Reservoir coupling;
The memory is used for, and stores computer program;
The processor is used for, and executes the computer program stored in the memory, so that the switch control fills
It sets and executes the above-mentioned described in any item methods of first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of readable storage medium storing program for executing, including program or instruction, when described program or
When instruction is run on computers, the method as described in above-mentioned first aspect any one is performed.
A kind of method of controlling switch and device provided in an embodiment of the present invention, this method comprises: determining at least one terminal
First distance between equipment and the first controlled switch;First distance between each terminal device and the first controlled switch is big
When pre-determined distance, control signal is generated;Control signal is sent to the first controlled switch, so that the first controlled switch disconnects.?
In the above process, the first controlled switch can be disconnected automatically, be manually operated without user according to the control signal received, side
Just user uses.Further, control signal can be what user was sent using terminal unit remote, that is, user is not or not house
When interior, the controlled switch of control first can be still disconnected, while saving electric energy, effectively reduces family or unit electricity consumption
The incidence of accident.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of method of controlling switch provided in an embodiment of the present invention;
Fig. 2 is the flow chart one of method of controlling switch provided in an embodiment of the present invention;
Fig. 3 is the flow diagram two of method of controlling switch provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of the first prompt information provided in an embodiment of the present invention;
Fig. 5 is a kind of structural block diagram of switch controlling device provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
The switch that inventive embodiments are provided for the ease of the understanding to technical solution proposed by the present invention, Fig. 1 embodiment
The application scenarios of control method are briefly described, specifically, referring to Figure 1.
Fig. 1 is the application scenarios schematic diagram of method of controlling switch provided in an embodiment of the present invention.Referring to Figure 1, user 11
Terminal device 12 can be used in outdoor, by communication base station 13, (Fig. 1 does not show the switching control device into house 14
Control signal is sent out), and switching control device according to control signal is received, open by some disconnected in switching control device
It closes.
Optionally, may include in switching control device and each room (such as room 141, room 142, room 143)
Corresponding switch also may include switch corresponding with each large power-consuming equipment (such as electric oven).
For example, user 11 can send the control signal for disconnecting the switch in room 141, switch control to switching control device
After equipment receives the control signal, the switch in room 141 is disconnected, so that all electrical equipments in room 141 power off.
For example, user 11 can send the control signal for disconnecting the switch of electric oven, switch control to switching control device
After equipment receives the control signal, the switch of electric oven is disconnected, i.e., so that electric oven powers off.
Method of controlling switch provided in an embodiment of the present invention, when family can be used not in house, the switch control into house
Control equipment sends control signal, so that switching control device disconnects different switches according to the control signal received, to mention
The high safety of electricity consumption.
In the following, technical solution shown in the application is described in detail by specific embodiment.Under it should be noted that
The several specific embodiments in face can be combined with each other, and for the same or similar content, no longer carry out weight in various embodiments
Multiple explanation.
Fig. 2 is the flow chart one of method of controlling switch provided in an embodiment of the present invention, refers to Fig. 2, method of controlling switch
Include:
S201: the first distance between at least one terminal device and the first controlled switch is determined.
Optionally, the executing subject of the embodiment of the present invention can be terminal device, or the switch in terminal device
Control device.Optionally, switch controlling device can be by hardware realization, can also be by the combination of hardware and software come real
It is existing.
Optionally, terminal device can be terminal device.
Optionally, when terminal device has 1, Subscriber Identity Module (Subscriber is set in the terminal device
Identification Module, SIM).Optionally, the SIM in the terminal device is denoted as SIM 1.
Optionally, for example, whens terminal device has 2,3 etc., one of terminal device is main terminal equipment, at main end
SIM 1 is set in end equipment, other at least one terminal devices are secondary terminal device, and SIM is arranged in the first secondary terminal device
11, SIM 12 is set in the second secondary terminal device, etc..
Optionally, SIM is provided in the first controlled switch.Optionally, the SIM in the first controlled switch is denoted as SIM 2.
Optionally, the terminal device for being provided with SIM 1 can carry out channel radio with the first controlled switch for being provided with SIM 2
Letter.
Optionally, be provided with SIM 2 main terminal equipment can with the first secondary terminal device for being provided with SIM 21 and set
The the second secondary terminal device for being equipped with SIM 22 is communicated.
It should be noted that the first secondary terminal device for being provided with SIM 21 is set with the second secondary terminal for being provided with SIM 22
It is standby etc. to be carried out wireless communication with the first controlled switch for being provided with SIM 2.
It should be noted that each terminal device all has real-time navigation capability.
Optionally, user can be used terminal device and position to the position of house or unit, and store house
Or the second location information of unit.
For example, user is positioned and is stored using position of the terminal device to house when terminal device number is 1
The second location information in house, during user's carried terminal equipment is mobile, terminal device can acquire its movement in real time
Position, and generate first location information.Then terminal device compares second location information and first location information, determines
Terminal device is at a distance from house and stores it at a distance from house.Optionally, terminal device can be used as end at a distance from house
First distance between end equipment and the first controlled switch.
For example, one of terminal device is main terminal equipment whens terminal device number is 2,3 etc., other at least one
Terminal device is secondary terminal device, at this point it is possible to which main terminal equipment to be determined as to the first distance at a distance from house.
S202: when the first distance between each terminal device and the first controlled switch is greater than pre-determined distance, control is generated
Signal processed, control signal are used to indicate the controlled switch of disconnection first.
Optionally, pre-determined distance can be arranged in terminal device according to actual needs by user,
Optionally, pre-determined distance can be the radius of preset range.
Optionally, preset range can be sphere, wherein the house of user is the centre of sphere.
Optionally, pre-determined distance can be with 15 meters, 20 meters etc..
Optionally, when terminal device number is 1, the terminal device (i.e. terminal device and first at a distance from house
First distance between controlled switch) when being greater than pre-determined distance, which generates control signal.
Optionally, when terminal device number is 2,3 etc., the in each secondary terminal device is got in main terminal equipment
One location information, in main terminal equipment and secondary terminal device, (each terminal device and first is controlled switch at a distance from house
Between first distance) be greater than pre-determined distance when, main terminal equipment generate control signal.
S203: sending control signal to the first controlled switch, so that the first controlled switch disconnects.
Optionally, after terminal device generates control signal, using wireless network, the control is sent to the first controlled switch
Signal.
Optionally, the first controlled switch may include multiple switch.
Optionally, each switch is numbered, for example, switch #1, switch #2, switch #3 etc..
Optionally, switch number can in house room or high-power electric appliance it is corresponding.For example, switch #1 with
Room 141 is (as shown in Figure 1) corresponding, and switch #1 is used to control the working condition of various electric appliances (such as headlamp) in room 141,
Switch #2 is corresponding with room 142 (as shown in Figure 1), and switch #2 is used to control the working condition of various electric appliances in room 142, opens
Pass #3 is corresponding with air-conditioning, and switch #3 is used to control the working condition of air-conditioning.
Optionally, when the first controlled switch includes multiple switch, terminal device is controlled the control that switch is sent to first
In signal, the identification information of different switch numbers for identification may include.
Optionally, the first controlled switch can according to identification informations receiving, comprising different switch numbers, disconnect with
The corresponding switch of identification information.
For example, terminal device is sent in control signal to the first controlled switch, the identification information comprising switch #3, then first
After controlled switch receives the control signal of the identification information comprising switch #3, switch #3 is disconnected, so that air-conditioning powers off.
A kind of method of controlling switch provided in an embodiment of the present invention, comprising: determine at least one terminal device and the first quilt
First distance between control switch;First distance between each terminal device and the first controlled switch is greater than pre-determined distance
When, generate control signal;Control signal is sent to the first controlled switch, so that the first controlled switch disconnects.In above process,
First controlled switch can be disconnected automatically, be manually operated without user according to the control signal received, user-friendly.
Further, control signal can be what user was sent using terminal unit remote, that is, when user is not in house, still can
It is enough to disconnect the controlled switch of control first, while saving electric energy, effectively reduce the generation of family or unit electrification
Rate.
Based on any of the above embodiments, in the following, in conjunction with Fig. 3 embodiment, technical solution provided by the invention is done
Further instruction, specifically, referring to Fig. 3.
Fig. 3 is the flow diagram two of method of controlling switch provided in an embodiment of the present invention, and method of controlling switch includes:
S301: the first location information of each terminal device and the second location information of the first controlled switch are obtained.
Optionally, each terminal device can obtain its first location information according to the method described in S201.
Optionally, main terminal equipment can send position request information at least one secondary terminal device, each to obtain
The first location information of terminal device.
Optionally, since the first controlled switch is arranged into house, therefore, the second location information in house can be made
For the second location information of the first controlled switch.
Specifically, the second location information of the first controlled switch can be determined by following feasible mode: working as terminal device
It when having multiple, is positioned using position of the main terminal equipment to house, so that main terminal equipment generates second location information, simultaneously
Second location information is sent to the first controlled switch, the first controlled switch receive second location information after, storage second
Confidence breath.
S302: respectively according to the first location information and second location information of each terminal device, at least one end is determined
First distance between end equipment and the first controlled switch.
Optionally, it is secondary eventually can be sent at least one by the main terminal equipment in multiple terminal devices for second location information
End equipment, so that second location information is identical in each terminal device.
Optionally, after the first location information that main terminal equipment gets at least one secondary terminal device, by its
The first location information of two location informations and each terminal device (including main terminal equipment and at least one pair terminal device) into
Row comparison, so as to determine each terminal device at a distance from house and store it and (determine at least one end at a distance from house
First distance between end equipment and the first controlled switch).
S303: judge whether the first distance between each terminal device and the first controlled switch is both greater than pre-determined distance.
If so, executing S304.
If it is not, then executing S311.
Optionally, after main terminal equipment determines the first distance between at least one terminal device and the first controlled switch,
Judge the first distance of each terminal device and the first controlled switch and the size of pre-determined distance.
Optionally, second location information and first location information that each terminal device can also be stored according to it, come from
Row judges the size of its first distance and pre-determined distance between the first controlled switch.
S304: obtaining corresponding first duration of each terminal device, first when a length of terminal device and first controlled
The distance between switch is greater than the duration of pre-determined distance.
Optionally, if each terminal device voluntarily judges its first distance and pre-determined distance between the first controlled switch
Size, and when terminal device determines that its first distance between the first controlled switch is greater than pre-determined distance, which is set
It is standby to start timing, and generate, save the clocking information.
Optionally, main terminal equipment can periodically obtain the clocking information of each secondary terminal device.
Optionally, cycle duration can be 2 minutes, 5 minutes etc..
S305: judge whether the first duration is greater than preset duration.
If so, executing S306.
If it is not, then executing S311.
Optionally, main terminal equipment can according to the clocking information of acquisition, in each terminal device the first duration with
Preset duration is compared.
S306: generating the first prompt information, and whether the first prompt information disconnects the described first controlled switch for prompting.
Optionally, when determining that the first duration in each terminal device is all larger than preset duration, in main terminal equipment
Generate the first prompt information.
Optionally, the first prompt information may be displayed in the display screen of main terminal equipment.
Optionally, the first instruction information includes the mark of multiple controlled switches.
Optionally, the mark of switch can be the number of switch.
S307: judge whether to receive the first control instruction.
If so, executing S308.
If it is not, then executing S311.
Optionally, the user of main terminal equipment clicks the mark in the first prompt information, defeated into terminal device to realize
Enter the first control instruction for instruction.
Optionally, the content of S306 and S307 are described in detail in Fig. 4 embodiment, specifically, referring to Fig. 4
Embodiment.
S308: the mark of the first controlled switch is obtained in the first control instruction.
Optionally, the first control instruction includes the mark of the described first controlled switch
Optionally, after main terminal equipment receives the first control instruction, the first quilt can be obtained according to the first control instruction
Control the mark of switch.
The mark of optional first controlled switch can be the number of switch.
S309: it according to the mark of the first controlled switch, generates first and is controlled the corresponding control signal of switch.
Optionally, main terminal equipment generates corresponding with the first controlled switch mark according to the mark of the first controlled switch
Control signal.
For example, may include switch #1 in the mark of the first controlled switch, then control signal corresponding with switch #1 is generated.
S310: sending control signal to the first controlled switch, so that the first controlled switch disconnects.
Optionally, main terminal equipment sends control signal to the first controlled switch, what the first controlled switch basis received
Signal is controlled, switch corresponding with control signal is disconnected.
S311: not sending control signal to the first controlled switch, and the first controlled switch keeps original state.
Optionally, it is less than pre-determined distance or the first duration in first distance to be less than preset duration or do not receive the
When one control instruction, main terminal equipment does not send control signal to the first controlled switch, and the first controlled switch keeps original state at this time.
Optionally, it can be that when user is in house, first is controlled the state of switch that the first controlled switch, which keeps original state,.
Based on any of the above embodiments, in the following, in conjunction with Fig. 4, the first prompt provided in an embodiment of the present invention is believed
The content of breath is described in detail, specifically, referring to Fig. 4.Fig. 4 embodiment is only the first prompt information of explanation of exemplary
Content, rather than the restriction of the content to the first prompt information.
Fig. 4 is the schematic diagram of the first prompt information provided in an embodiment of the present invention.It please participate in Fig. 4, including interface 401- circle
Face 406.
Interface 401 is referred to, shows that the first prompt information, the first prompt information include more in the display screen of terminal device
A switch, and facility information corresponding with each switch, such as: #0-master switch indicates that the switch that number is #0 is used to control
The state (being powered, off-position) of all electrical equipments, #5-oven indicate that the switch that number is #5 is used to control in house
The energization or off-position of oven.
After user checks the first prompt information, the switch of wherein any one number can be clicked, such as 402 institute of interface
Show.
Interface 402 is referred to, after the switch that user clicks the switch of one of number, for example (,) #5-oven, pop-up
Dialog box prompt information, specifically, referring to interface 403.
Refer to interface 403, dialog box prompt information are as follows: " success sends control information to #5, you can click ' return '
Or ' exiting '!", " return jump to house switch prompt information interface ", " exit and jump to terminal device main screen!".
Optionally, user can click " return " or " exiting ", for example, user clicks " return ", then display interface
404。
Interface 404 is referred to, after returning when the user clicks, shows that house switchs prompt information interface in display screen, this
When, interface 404 is with interface 401 the difference lies in that " #5-oven " tarnishes.
Optionally, user can click " exiting ", as shown in interface 405.After user can click " exiting ", by interface
405 jump to interface 406.Optionally, interface 406 is the main screen of terminal device.
Interface 406 is referred to, the mark of various application programs is provided in the main screen of terminal device, such as " shopping is answered
With ", " address list etc. ".
Optionally, the embodiment of the present invention is also for a kind of switch controlling device, below with reference to Fig. 5, to the embodiment of the present invention
The switch controlling device of offer is illustrated, specifically, referring to Fig. 5.
Fig. 5 is a kind of structural block diagram of switch controlling device provided in an embodiment of the present invention.Refer to Fig. 5, switch control
Device 50 includes determining module 51, generation module 52 and sending module 53, wherein
Determining module 51 is used for, and determines the first distance between at least one terminal device and the first controlled switch;
Generation module 52 is used for, and the first distance between each terminal device and the first controlled switch is greater than pre-determined distance
When, control signal is generated, control signal is used to indicate the controlled switch of disconnection first;
Sending module 53 is used for, and sends control signal to the first controlled switch, so that the first controlled switch disconnects.
Switch controlling device provided in an embodiment of the present invention can execute technical solution shown in above method embodiment,
Realization principle and beneficial effect are similar, are no longer repeated herein.
In a kind of possible embodiment, generation module 52 is specifically used for:
When first distance between each terminal device and the first controlled switch is greater than pre-determined distance, each terminal is obtained
Corresponding first duration of equipment, first when a length of terminal device and the distance between the first controlled switch be greater than pre-determined distance when
It is long;
When corresponding first duration of each terminal device is greater than preset duration, control signal is generated.
In a kind of possible embodiment, determining module 51 is specifically used for:
Obtain the first location information of each terminal device and the second location information of the first controlled switch;
Respectively according to the first location information and second location information of each terminal device, at least one terminal device is determined
With the first distance between the first controlled switch.
In a kind of possible embodiment, generation module 52 is specifically used for:
The first prompt information is generated, whether the first prompt information disconnects the first controlled switch for prompting;
The first control instruction is received, and control signal is generated according to the first control instruction.
In a kind of possible embodiment, the first instruction information includes the mark of multiple controlled switches, and the first control refers to
Enabling includes the first controlled mark switched;
Generation module 52 is specifically used for:
The mark of the first controlled switch is obtained in the first control instruction;
According to the mark of the first controlled switch, generates first and be controlled the corresponding control signal of switch.
The embodiment of the present invention provides a kind of switch controlling device, comprising: processor, the processor are coupled with memory;
The memory is used for, and stores computer program;
The processor is used for, and executes the computer program stored in the memory, so that the switch control fills
It sets and executes method described in above-mentioned any means embodiment.
The embodiment of the present invention provides a kind of readable storage medium storing program for executing, including program or instruction, when described program or instruction are being counted
When running on calculation machine, the method as described in above-mentioned any means embodiment is performed.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than to it
Limitation;Although the embodiment of the present invention is described in detail referring to foregoing embodiments, those skilled in the art
It is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, either to part of or
All technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution this hair
The range of bright example scheme.
Claims (10)
1. a kind of method of controlling switch characterized by comprising
Determine the first distance between at least one terminal device and the first controlled switch;
When first distance between each terminal device and the first controlled switch is greater than pre-determined distance, control letter is generated
Number, the control signal, which is used to indicate, disconnects the described first controlled switch;
The control signal is sent to the described first controlled switch, so that the described first controlled switch disconnects.
2. the method according to claim 1, wherein described in each terminal device and the described first controlled switch
Between first distance be greater than pre-determined distance when, generate control signal, comprising:
When first distance between each terminal device and the first controlled switch is greater than pre-determined distance, each terminal is obtained
Corresponding first duration of equipment, described first when a length of terminal device and the distance between the first controlled switch be greater than it is described
The duration of pre-determined distance;
When corresponding first duration of each terminal device is greater than preset duration, the control signal is generated.
3. being opened the method according to claim 1, wherein at least one terminal device of the determination is controlled with first
First distance between pass, comprising:
Obtain the first location information of each terminal device and the second location information of the first controlled switch;
Respectively according to the first location information of each terminal device and the second location information, at least one described terminal is determined
First distance between equipment and the first controlled switch.
4. method according to claim 1-3, which is characterized in that the generation controls signal, comprising:
The first prompt information is generated, whether first prompt information disconnects the described first controlled switch for prompting;
The first control instruction is received, and the control signal is generated according to first control instruction.
5. according to the method described in claim 4, it is characterized in that, the first instruction information includes the mark of multiple controlled switches
Know, first control instruction includes the mark of the described first controlled switch;It is described that institute is generated according to first control instruction
State control signal, comprising:
The mark of the described first controlled switch is obtained in first control instruction;
According to the mark of the described first controlled switch, generates described first and be controlled the corresponding control signal of switch.
6. a kind of switch controlling device, which is characterized in that including determining module, generation module and sending module, wherein
The determining module is used for, and determines the first distance between at least one terminal device and the first controlled switch;
The generation module is used for, the first distance between each terminal device and the first controlled switch be greater than it is default away from
From when, generate control signal, the control signal, which is used to indicate, to be disconnected described first and controlled switch;
The sending module is used for, and the controlled switch of Xiang Suoshu first sends the control signal, so that the described first controlled switch
It disconnects.
7. device according to claim 6, which is characterized in that the generation module is specifically used for:
When first distance between each terminal device and the first controlled switch is greater than pre-determined distance, each terminal is obtained
Corresponding first duration of equipment, described first when a length of terminal device and the distance between the first controlled switch be greater than it is described
The duration of pre-determined distance;
When corresponding first duration of each terminal device is greater than preset duration, the control signal is generated.
8. device according to claim 6, which is characterized in that the determining module is specifically used for:
Obtain the first location information of each terminal device and the second location information of the first controlled switch;
Respectively according to the first location information of each terminal device and the second location information, at least one described terminal is determined
First distance between equipment and the first controlled switch.
9. according to the described in any item devices of claim 6-8, which is characterized in that the generation module is specifically used for:
The first prompt information is generated, whether first prompt information disconnects the described first controlled switch for prompting;
The first control instruction is received, and the control signal is generated according to first control instruction.
10. according to the method described in claim 9, it is characterized in that,
The first instruction information includes the mark of multiple controlled switches, and first control instruction includes described first controlled opening
The mark of pass;The generation module is specifically used for:
The mark of the described first controlled switch is obtained in first control instruction;
According to the mark of the described first controlled switch, generates described first and be controlled the corresponding control signal of switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811634342.3A CN110209075B (en) | 2018-12-29 | 2018-12-29 | Switch control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811634342.3A CN110209075B (en) | 2018-12-29 | 2018-12-29 | Switch control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110209075A true CN110209075A (en) | 2019-09-06 |
CN110209075B CN110209075B (en) | 2024-06-18 |
Family
ID=67784957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811634342.3A Active CN110209075B (en) | 2018-12-29 | 2018-12-29 | Switch control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209075B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE202007000976U1 (en) * | 2007-01-23 | 2007-03-22 | Schenk, Ralf, Dipl.-Ing. | Transponder carried by a user connects with an electrical power unit to provide automatic turn off when out of range |
US20140265881A1 (en) * | 2013-03-14 | 2014-09-18 | Lutron Electronics Co., Inc. | State change devices for switched electrical receptacles |
CN105577487A (en) * | 2014-09-15 | 2016-05-11 | 丰唐物联技术(深圳)有限公司 | Control method of intelligent household equipment and information processing device |
CN105825855A (en) * | 2016-04-13 | 2016-08-03 | 联想(北京)有限公司 | Information processing method and main terminal equipment |
CN106028277A (en) * | 2016-04-29 | 2016-10-12 | 北京小米移动软件有限公司 | Reminding message processing method and apparatus |
CN106288223A (en) * | 2016-08-29 | 2017-01-04 | 珠海格力电器股份有限公司 | Control method and device of air conditioner |
US20170122774A1 (en) * | 2015-10-30 | 2017-05-04 | Curtis E. Quady | Electrical power switch control with usage data display |
CN107367015A (en) * | 2017-06-19 | 2017-11-21 | 奥克斯空调股份有限公司 | A kind of method of air conditioner automatic shutdown |
CN207067745U (en) * | 2017-08-14 | 2018-03-02 | 佛山职业技术学院 | A kind of intelligent radio controlling switch |
CN207740798U (en) * | 2017-11-21 | 2018-08-17 | 许杰波 | A kind of Novel multifunctional desk lamp |
CN108469792A (en) * | 2018-03-20 | 2018-08-31 | 广东欧珀移动通信有限公司 | Intelligent home furnishing control method, device, computer equipment and readable storage medium storing program for executing |
CN108566318A (en) * | 2018-02-02 | 2018-09-21 | 同济大学 | Based on user with controlled device at a distance of the intelligent switching control terminal and system of time |
CN208093873U (en) * | 2018-04-28 | 2018-11-13 | 上海爱优威软件开发有限公司 | A kind of intelligent socket, the terminal device and control system for controlling intelligent socket |
CN109068271A (en) * | 2018-08-21 | 2018-12-21 | 珠海格力电器股份有限公司 | Control method, device and equipment of controller and storage medium |
-
2018
- 2018-12-29 CN CN201811634342.3A patent/CN110209075B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE202007000976U1 (en) * | 2007-01-23 | 2007-03-22 | Schenk, Ralf, Dipl.-Ing. | Transponder carried by a user connects with an electrical power unit to provide automatic turn off when out of range |
US20140265881A1 (en) * | 2013-03-14 | 2014-09-18 | Lutron Electronics Co., Inc. | State change devices for switched electrical receptacles |
CN105577487A (en) * | 2014-09-15 | 2016-05-11 | 丰唐物联技术(深圳)有限公司 | Control method of intelligent household equipment and information processing device |
US20170122774A1 (en) * | 2015-10-30 | 2017-05-04 | Curtis E. Quady | Electrical power switch control with usage data display |
CN105825855A (en) * | 2016-04-13 | 2016-08-03 | 联想(北京)有限公司 | Information processing method and main terminal equipment |
CN106028277A (en) * | 2016-04-29 | 2016-10-12 | 北京小米移动软件有限公司 | Reminding message processing method and apparatus |
CN106288223A (en) * | 2016-08-29 | 2017-01-04 | 珠海格力电器股份有限公司 | Control method and device of air conditioner |
CN107367015A (en) * | 2017-06-19 | 2017-11-21 | 奥克斯空调股份有限公司 | A kind of method of air conditioner automatic shutdown |
CN207067745U (en) * | 2017-08-14 | 2018-03-02 | 佛山职业技术学院 | A kind of intelligent radio controlling switch |
CN207740798U (en) * | 2017-11-21 | 2018-08-17 | 许杰波 | A kind of Novel multifunctional desk lamp |
CN108566318A (en) * | 2018-02-02 | 2018-09-21 | 同济大学 | Based on user with controlled device at a distance of the intelligent switching control terminal and system of time |
CN108469792A (en) * | 2018-03-20 | 2018-08-31 | 广东欧珀移动通信有限公司 | Intelligent home furnishing control method, device, computer equipment and readable storage medium storing program for executing |
CN208093873U (en) * | 2018-04-28 | 2018-11-13 | 上海爱优威软件开发有限公司 | A kind of intelligent socket, the terminal device and control system for controlling intelligent socket |
CN109068271A (en) * | 2018-08-21 | 2018-12-21 | 珠海格力电器股份有限公司 | Control method, device and equipment of controller and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110209075B (en) | 2024-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7204912B2 (en) | Method, device and storage medium for controlling intelligent equipment | |
CN104716750B (en) | A kind of low power consuming wireless power method and relevant apparatus, system | |
US9525464B2 (en) | Wireless power supply device, electronic device capable of receiving wireless power, and method for controlling transmission of wireless power | |
CN103887571A (en) | Charging mode switching method and charging mode switching device | |
CN105100915B (en) | A kind of method and television set switching audiovisual applications | |
CN109450747B (en) | Method and device for awakening smart home equipment and computer storage medium | |
CN202957668U (en) | Intelligent electric interaction terminal and system | |
CN105242558B (en) | Control method, equipment, household electrical appliance and the client device of household electrical appliance | |
CN106790611A (en) | The monitoring method of internet of things equipment, supervising device and monitoring system | |
CN110531653A (en) | A kind of control method, device and the device for control | |
CN103928725B (en) | A kind of mobile terminal and charging method thereof and device | |
CN110414699A (en) | A kind of hotel occupancy method and system, computer readable storage medium | |
CN109285546A (en) | Terminal control system, method, storage medium, and electronic device | |
CN107579884A (en) | Intelligent electric appliance state synchronization method, equipment, storage medium and intelligent refrigerator | |
CN102904301B (en) | The wireless charging method of terminal and device | |
CN204731623U (en) | A kind of intelligent control system | |
CN113291192A (en) | Battery replacement method, device and storage medium | |
US20220134901A1 (en) | Electric vehicle charging energy management systems and methods combining multiple power consumption areas | |
CN107453425A (en) | Wireless charging/discharging thereof and device | |
CN109412908A (en) | Method and equipment for voice display of controllable equipment | |
CN105759934A (en) | Information processing method and electronic equipment | |
CN105872257A (en) | Mobile device and position sharing method and device thereof | |
CN113395193A (en) | Equipment control method and device, computer equipment and storage medium | |
CN110209075A (en) | Method of controlling switch and device | |
CN111916084A (en) | Smart home voice control method and device, equipment and storage medium |
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 |