CN109725546A - Socket management-control method, socket control device and socket managing and control system - Google Patents
Socket management-control method, socket control device and socket managing and control system Download PDFInfo
- Publication number
- CN109725546A CN109725546A CN201811630753.5A CN201811630753A CN109725546A CN 109725546 A CN109725546 A CN 109725546A CN 201811630753 A CN201811630753 A CN 201811630753A CN 109725546 A CN109725546 A CN 109725546A
- Authority
- CN
- China
- Prior art keywords
- socket
- control
- current state
- sent
- terminal device
- 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.)
- Pending
Links
Landscapes
- Telephonic Communication Services (AREA)
Abstract
Socket management-control method, socket control device and socket managing and control system provided by the invention are related to socket control technical field.Wherein, the socket management-control method is applied to the server that communication link is connected to terminal device, comprising: obtains the current state of socket, the current state includes off state and closed state;The current state that will acquire is sent to the terminal device, so that the terminal device shows the current state;Receive the control instruction that the terminal device is sent, corresponding control information is generated according to the control instruction, and the control information is sent to the socket to control the socket, wherein, the control instruction responds operation of the user after getting the current state based on the terminal device to generate.By above-mentioned setting, it can improve and there is a problem of that control validity is lower when managing in the prior art to socket.
Description
Technical field
The present invention relates to sockets to manage technical field, in particular to a kind of socket management-control method, socket control device
And socket managing and control system.
Background technique
Traditional intelligent socket generally has the function of timing on-off, for example, can be integrated in socket a timer or
Program is executed by one single-chip microcontroller of setting with completion timing.But as convenience of the people to life requires higher and higher, biography
The intelligent socket of system has been difficult to meet people's lives demand.
In order to solve the above technical problems, in the prior art, generally by integrating processing chip and communication chip on socket,
It is communicated to connect with being established with other equipment, in order to obtain the control signal that other equipment are sent, to complete socket on-off
Control.
Through inventor the study found that in the above prior art, since the corresponding user of other equipment is difficult to effectively obtain
The current state of socket is got, so as to cause the low problem of the instruction validity issued, for example, in an off state in socket
When, user issues a shutdown to socket possibly through other equipment and instructs.
Summary of the invention
In view of this, the purpose of the present invention is to provide the control of a kind of socket management-control method, socket control device and socket
System has that control validity is lower when managing in the prior art to socket to improve.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that
A kind of socket management-control method, is applied to server, which is connected with terminal device, the socket control
Method includes:
Obtain the current state of socket, wherein the current state includes off state and closed state;
The current state that will acquire is sent to the terminal device, so that the terminal device shows the current state;
The control instruction that the terminal device is sent is received, corresponding control information is generated according to the control instruction, and will
The control information is sent to the socket to control the socket, wherein the control instruction is based on terminal device response and uses
Operation of the family after getting the current state is to generate.
In the embodiment of the present invention preferably selects, in above-mentioned socket management-control method, the current shape for obtaining socket
The step of state includes:
A solicited message is sent to socket, is somebody's turn to do so that the socket can be sent based on the solicited message to the server
The current state of socket;
Receive the current state that the socket is sent, wherein the socket be provided with communication equipment, control equipment and after
Electric appliance, the control equipment receives the solicited message by the communication equipment, and sentences after receiving the solicited message
The last time instruction sent to the relay of breaking is shutdown instruction or close command, is instructed if shutdown, then described in judgement
Socket belongs to off state, if close command, then determines that the socket belongs to closed state.
In the embodiment of the present invention preferably selects, in above-mentioned socket management-control method, the current shape for obtaining socket
The step of state includes:
It obtains the last item sent to socket and controls information, and judge the control information for controlling socket shutdown or closing
It closes;
If the last item control information is for controlling socket shutdown, using off state as the current of the socket
State, if described the last item control information is closed for controlling socket, using closed state as the current shape of the socket
State.
It is described to receive the terminal device in above-mentioned socket management-control method in the embodiment of the present invention preferably selects
The control instruction of transmission generates corresponding control information according to the control instruction, and the control information is sent to the socket
Include: the step of the socket to control
The control instruction that the terminal device is sent is received, corresponding control information is generated according to the control instruction, and sentence
Whether there is temporal information in the control instruction of breaking;
If having temporal information in the control instruction, which is sent to by described insert according to the temporal information
Seat is to control the socket.
The embodiment of the invention also provides a kind of socket control devices, are applied to server, which is connected with
Terminal device, the socket control device include:
Current state obtains module, for obtaining the current state of socket, wherein the current state includes off state
And closed state;
Current state sending module, the current state for will acquire are sent to the terminal device, so that the terminal
Equipment shows the current state;
Information sending module is controlled, the control instruction sent for receiving the terminal device is raw according to the control instruction
The socket is sent to control the socket at corresponding control information, and by the control information, wherein the control instruction base
In operation of the terminal device response user after getting the current state to generate.
In the embodiment of the present invention preferably selects, in above-mentioned socket control device, the current state obtains module
Include:
Solicited message sending submodule, for sending a solicited message to socket, so that the socket can be asked based on this
Information is asked to send the current state of the socket to the server;
Current state receiving submodule, the current state sent for receiving the socket, wherein the socket is provided with
Communication equipment, control equipment and relay, the control equipment by the communication equipment reception solicited message, and
It receives the solicited message and judges that the last time sent to the relay instructs to turn off instruction or close command later, if
For shutdown instruction, then determines that the socket belongs to off state, if close command, then determine that the socket belongs to closed form
State.
In the embodiment of the present invention preferably selects, in above-mentioned socket control device, the current state obtains module
Include:
Information judging submodule is controlled, controls information for obtaining the last item sent to socket, and judge the control
Information is for controlling socket shutdown or closure;
Current state determines submodule, for will close when described the last item control information is for controlling socket shutdown
Disconnected current state of the state as the socket will be closed when described the last item control information is for controlling socket closure
Current state of the state as the socket.
In the embodiment of the present invention preferably selects, in above-mentioned socket control device, the control information sending module
Include:
Temporal information judging submodule, the control instruction sent for receiving the terminal device, according to the control instruction
Corresponding control information is generated, and judges whether there is temporal information in the control instruction;
Information sending submodule is controlled, it, will according to the temporal information for having temporal information in the control instruction
The control information is sent to the socket to control the socket.
The embodiment of the invention also provides a kind of socket managing and control systems, comprising:
Socket, the socket are provided with control equipment, communication equipment and relay, the control equipment and set with described communicate
The standby and described relay is electrically connected;
Server, the server are connect with the communication apparatus communication;
Terminal device, the terminal device are connect with the server communication;
Wherein, the server is used to obtain the current state of the socket, and the current state is sent to the end
End equipment so that the terminal device shows the current state, the terminal device for respond user get it is described current
Operation after state generates corresponding control instruction and is sent to the server, so that the server refers to according to the control
It enables and generates corresponding control information, and the control information is sent to the control equipment, the control by the communication equipment
Control equipment is used to control the relay according to the control information, and the current state includes off state or closed state.
In the embodiment of the present invention preferably selects, in above-mentioned socket managing and control system, the control equipment and described logical
Letter integration of equipments is a WiFi chip, the model ESP8266 of the WiFi chip in one.
Socket management-control method, socket control device and socket managing and control system provided by the invention, by obtaining working as socket
Preceding state is simultaneously sent to terminal device and is shown, so that user can in time, effectively get the current shape of terminal device
State, and socket is managed by server based on the current state, so as to improve being managed in the prior art to socket
When there is a problem of manage validity it is lower, have high practical value.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
Fig. 1 is the structural block diagram of socket managing and control system provided in an embodiment of the present invention.
Fig. 2 is the structural block diagram of server provided in an embodiment of the present invention.
Fig. 3 is the flow diagram of socket management-control method provided in an embodiment of the present invention.
Fig. 4 is the flow diagram of step S110 in Fig. 3.
Fig. 5 is another flow diagram of step S110 in Fig. 3.
Fig. 6 is the flow diagram of step S150 in Fig. 3.
Fig. 7 is the structural block diagram of socket control device provided in an embodiment of the present invention.
Fig. 8 is the structural block diagram that current state provided in an embodiment of the present invention obtains module.
Fig. 9 is another structural block diagram that current state provided in an embodiment of the present invention obtains module.
Figure 10 is the structural block diagram of control information sending module provided in an embodiment of the present invention.
Icon: 10- socket managing and control system;20- socket;21- controls equipment;23- communication equipment;25- relay;30- clothes
Business device;31- memory;33- processor;40- terminal device;100- socket control device;110- current state obtains module;
111- controls information judging submodule;112- current state determines submodule;114- solicited message sending submodule;115- is current
State receiving submodule;130- current state sending module;150- controls information sending module;151- temporal information judges submodule
Block;153- controls information sending submodule.
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 only
It is a part of the embodiments of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings
The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed
The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
As shown in Figure 1, may include socket 20, server the embodiment of the invention provides a kind of socket managing and control system 10
30 and terminal device 40.Wherein, the socket 20 is provided with control equipment 21, communication equipment 23 and relay 25, described
Control equipment 21 is electrically connected with the communication equipment 23 and the relay 25.
In detail, the server 30 is communicated to connect with the communication equipment 23, the terminal device 40 and the service
Device 30 communicates to connect.The server 30 is used to obtain the current state of the socket 20, and the current state is sent to institute
Terminal device 40 is stated so that institute's terminal device 40 shows the current state.The terminal device 40 is being obtained for responding user
Operation after to the current state generates corresponding control instruction and is sent to the server 30, so that the server
30 generate corresponding control information according to the control instruction, and the control information are sent to by the communication equipment 23 described
Control equipment 21.The control equipment 21 is used to control the relay 25 according to the control information, and the current state includes
Off state or closed state.
For example, in the example that one kind can substitute, if the server 30 gets the relay 25 and currently belongs to
Off state can send corresponding information to the terminal device 40, so that the terminal device 40 can be based on the information
Show that the current state of the relay 25 belongs to off state, so that the available current shape to the relay 25 of user
State.If user needs the state of the relay 25 being switched to closed state at this time, can by the terminal device 40 to
The server 30 sends corresponding control instruction, believes so that the server 30 generates corresponding control according to the control instruction
Breath, and the control equipment 21 is sent to by affiliated communication equipment 23, so that the control equipment 21 is according to the control information
The relay 25 is controlled to be closed.
Optionally, the control equipment 21 and the type or model of the communication equipment 23 are unrestricted, can be according to reality
Border application demand is configured.In the present embodiment, the control equipment 21 and the communication equipment 23 can be integrated with one
One WiFi chip of body, and the model of the WiFi chip can be ESP8266.
Also, the type of the server 30 and including device it is also unrestricted, for example, may include, but be not limited to
The tool such as web (website) server, data server, computer, mobile internet surfing equipment (mobile Internet device, MID)
There is the equipment of processing function.Also, the server 30 may include memory 31, processor 33 and socket control device 100.
In detail, it is directly or indirectly electrically connected between the memory 31 and processor 33, to realize the biography of data
Defeated or interaction.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.Institute
Stating socket control device 100 includes that at least one can be stored in the memory 31 in the form of software or firmware (firmware)
In software function module.The processor 33 is used to execute the executable computer program stored in the memory 31,
For example, software function module and computer program etc. included by the socket control device 100, to realize socket pipe prosecutor
Method.
Wherein, the memory 31 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 31 is for storing program, and the processor 33 executes described program after receiving and executing instruction.
The processor 33 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 33
It can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit (ASIC), scene
Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group
Part.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with
It is that microprocessor or the processor are also possible to any conventional processor etc..
It is appreciated that structure shown in Fig. 2 is only to illustrate, the server 30 may also include it is more than shown in Fig. 2 or
The less component of person, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can using hardware, software or
A combination thereof is realized.
Optionally, the type of the terminal device 40 is unrestricted, can be configured according to practical application request, example
Such as, it may include, but be not limited to the mobile terminal that mobile phone, tablet computer etc. have computing capability.
In conjunction with Fig. 3, the embodiment of the present invention also provides a kind of socket management-control method, can be applied to above-mentioned socket managing and control system 10
Server 30.Wherein, method and step defined in the related process of the method can be realized by the processor 33.Below
Detailed process shown in Fig. 3 will be described in detail.
Step S110 obtains the current state of socket 20.
In the present embodiment, the current state may include off state and closed state.In detail, the shutdown shape
State refers to that the coil of the relay 25 of the socket 20 is not powered on and contact is not attracted.The closed state refers to, the socket
The coil of 20 relay 25 is powered and contact is attracted.
Step S130, the current state that will acquire are sent to the terminal device 40, so that the terminal device 40 is shown
The current state.
In the present embodiment, can in time, effectively to obtain the current state when the socket 20 convenient for user, so as to
In effectively being managed, after the server 30 gets the current state of socket 20, which can be sent to
The terminal device 40 so that the terminal device 40 can show the current state, and then allows users to get and deserve
Preceding state.
Step S150, receives the control instruction that the terminal device 40 is sent, and generates corresponding control according to the control instruction
Information processed, and the control information is sent to the socket 20 to control the socket 20.
In the present embodiment, the control instruction can get described work as based on the terminal device 40 response user
Operation after preceding state is to generate.For example, being off state in the current state of socket 20 in a kind of feasible example
When, if user needs the current state by socket 20 to be switched to closed state, terminal device 40 can be operated, so that
Terminal device 40 generates corresponding close command, and the close command is sent the server 30, so that the server 30
Corresponding closure information can be generated based on the close command, the control information is then sent to the socket 20 and is somebody's turn to do with controlling
Socket 20 is closed.
Optionally, it is unrestricted in a manner of obtaining the current state of socket 20 to execute step S110, it can be according to reality
Application demand is configured.For example, in conjunction with Fig. 4, step S110 may include step S111 and step in a kind of feasible example
Rapid S112, to obtain the current state of socket 20.
Step S111 obtains the last item sent to socket 20 and controls information, and judges the control information for controlling
The shutdown of socket 20 or closure.
Step S112, if described the last item control information is turned off for controlling socket 20, using off state as institute
State the current state of socket 20, if described the last item control information for control socket 20 closure, using closed state as
The current state of the socket 20.
In the present embodiment, it is contemplated that the foundation that socket 20 is turned off or is closed can only be sent based on server 30
Information is controlled, it therefore, can be using the last item control information that server 30 is sent to socket 20 as 20 last time of socket
The foundation of execution movement, to reflect the current state of socket 20.
That is, the movement that socket 20 executes for the last time is pass if the last item control information is shutdown information
Disconnected movement, accordingly, the current state of socket 20 are off state.If it is closure information, socket 20 that the last item, which controls information,
The movement that last time executes then is closed action, and accordingly, the current state of socket 20 is closed state.
In another example, in conjunction with Fig. 5, step S110 also may include step S114 and step in another feasible example
S115, to guarantee the current state accuracy with higher of the socket 20 obtained.
Step S114 sends a solicited message to socket 20, so that the socket 20 can be based on the solicited message to institute
State the current state that server 30 sends the socket 20.
Step S115 receives the current state that the socket 20 is sent.
In the present embodiment, it is contemplated that the control information sent to socket 20 may be difficult to due to network failure and other reasons
It is effectively sent to socket 20, the problem that the current state to avoid the failure from causing to obtain may be inaccurate can be to socket
20 send a solicited message so that socket 20 can return to current state.
In detail, the socket 20 is provided with communication equipment 23, control equipment 21 and relay 25.The control equipment
21 receive the solicited message by the communication equipment 23, and judge after receiving the solicited message to the relay
The 25 last time instructions sent are shutdown instruction or close command, instruct if shutdown, then determine that the socket 20 belongs to pass
Disconnected state then determines that the socket 20 belongs to closed state if close command.
Optionally, it is unrestricted in such a way that the control information that will be generated is sent to socket 20 to execute step S150, it can be with
It is configured according to practical application request.For example, user may not need the current of socket 20 at once under the situation of part
State is suited, but needs just to need to carry out state switching after some time, but for avoid certain time it
Control information is sent there may be forgeing to socket 20 again afterwards, and in the present embodiment, in conjunction with Fig. 6, step S150 can be with
Including step S151 and step S153.
Step S151, receives the control instruction that the terminal device 40 is sent, and generates corresponding control according to the control instruction
Information processed, and judge whether there is temporal information in the control instruction.
In the present embodiment, the specific manifestation form of the temporal information is unrestricted, can be according to the actual application
It is configured, for example, either time information (6 points), is also possible to period information (1 hour).
Step S153 sends out the control information according to the temporal information if having temporal information in the control instruction
It send to the socket 20 to control the socket 20.
It in the present embodiment, can basis when by step S151 judging that there is temporal information in the control instruction
The control information of generation is sent to the socket 20 by the temporal information.For example, if current time is 5 points, the temporal information
It is 6 points, then when reaching after having spent one hour at 6, which can be sent to socket 20.In another example if when current
Carving is 5 points, the temporal information is one hour, then has already passed through one hour, which can be sent when reaching at 6
To socket 20.
In conjunction with Fig. 7, the embodiment of the present invention also provides a kind of socket control device 100, can be applied to above-mentioned socket control system
The server 30 of system 10.Wherein, the socket control device 100 may include that current state obtains module 110, current state hair
Send module 130 and control information sending module 150.
The current state obtains module 110, for obtaining the current state of socket 20, wherein the current state packet
Include off state and closed state.In the present embodiment, the current state acquisition module 110 can be used for executing shown in Fig. 3
Step S110, the specific descriptions for obtaining module 110 about the current state are referred to the description to step S110 above.
The current state sending module 130, the current state for will acquire are sent to the terminal device 40, so that
The terminal device 40 shows the current state.In the present embodiment, the current state sending module 130 can be used for executing figure
Step S130 shown in 3, the specific descriptions about the current state sending module 130 are referred to above to step S130's
Description.
The control information sending module 150, the control instruction sent for receiving the terminal device 40, according to the control
System instruction generates corresponding control information, and the control information is sent to the socket 20 to control the socket 20, wherein institute
It states control instruction and operation of the user after getting the current state is responded to generate based on the terminal device 40.At this
In embodiment, the control information sending module 150 can be used for executing step S150 shown in Fig. 3, about the control information
The specific descriptions of sending module 150 are referred to the description to step S150 above.
In conjunction with Fig. 8, in the present embodiment, it may include that control information judges submodule that the current state, which obtains module 110,
Block 111 and current state determine submodule 112.
The control information judging submodule 111 controls information for obtaining the last item sent to socket 20, and sentences
The control information of breaking is for controlling the shutdown of socket 20 or closure.In the present embodiment, the control information judging submodule 111 can
For executing step S111 shown in Fig. 4, the specific descriptions about the control information judging submodule 111 are referred to above
Description to step S111.
The current state determines submodule 112, for closing in described the last item control information for controlling socket 20
When disconnected, using off state as the current state of the socket 20, in described the last item control information for controlling socket 20
When closure, using closed state as the current state of the socket 20.In the present embodiment, the current state determines submodule
112 can be used for executing step S112 shown in Fig. 4, determine that the specific descriptions of submodule 112 can join about the current state
According to the description above to step S112.
In conjunction with Fig. 9, in the present embodiment, it can also include that solicited message sends son that the current state, which obtains module 110,
Module 114 and current state receiving submodule 115.
The solicited message sending submodule 114, for sending a solicited message to socket 20, so that 20 energy of the socket
Enough current states for sending the socket 20 to the server 30 based on the solicited message.In the present embodiment, the request letter
Breath sending submodule 114 can be used for executing step S114 shown in fig. 5, the tool about the solicited message sending submodule 114
Body description is referred to the description to step S114 above.
The current state receiving submodule 115, the current state sent for receiving the socket 20, wherein described
Socket 20 is provided with communication equipment 23, control equipment 21 and relay 25, and the control equipment 21 passes through the communication equipment
23 receive the solicited message, and judge that the last time sent to the relay 25 refers to after receiving the solicited message
It enables to turn off instruction or close command, is instructed if shutdown, then determine that the socket 20 belongs to off state, refer to if closure
It enables, then determines that the socket 20 belongs to closed state.In the present embodiment, the current state receiving submodule 115 can be used for
Step S115 shown in fig. 5 is executed, the specific descriptions about the current state receiving submodule 115 are referred to above to step
The description of rapid S115.
In conjunction with Figure 10, in the present embodiment, the control information sending module 150 may include that temporal information judges submodule
Block 151 and control information sending submodule 153.
The temporal information judging submodule 151, the control instruction sent for receiving the terminal device 40, according to this
Control instruction generates corresponding control information, and judges whether there is temporal information in the control instruction.In the present embodiment, institute
Stating temporal information judging submodule 151 can be used for executing step S151 shown in fig. 6, about the temporal information judging submodule
151 specific descriptions are referred to the description to step S151 above.
The control information sending submodule 153, for having temporal information in the control instruction, according to the time
The control information is sent to the socket 20 to control the socket 20 by information.In the present embodiment, the control information is sent
Submodule 153 can be used for executing step S153 shown in fig. 6, the specific descriptions about the control information sending submodule 153
It is referred to the description above to step S153.
In conclusion socket management-control method provided by the invention, socket control device 100 and socket managing and control system 10, lead to
It crosses the current state for obtaining socket 20 and is sent to terminal device 40 and shown, so that user can in time, effectively obtain
Socket 20 is managed by server 30 to the current state of terminal device 40, and based on the current state, so as to improve
There is a problem of that control validity is lower when managing in the prior art to socket 20, there is high practical value.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also
To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing
Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve
Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program
A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined
Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, electronic equipment or network equipment etc.) execute all or part of step of each embodiment the method for the present invention
Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of socket management-control method, is applied to server, which is connected with terminal device, which is characterized in that institute
Stating socket management-control method includes:
Obtain the current state of socket, wherein the current state includes off state and closed state;
The current state that will acquire is sent to the terminal device, so that the terminal device shows the current state;
The control instruction that the terminal device is sent is received, corresponding control information is generated according to the control instruction, and by the control
Information processed is sent to the socket to control the socket, wherein the control instruction is based on terminal device response user and exists
The operation after the current state is got to generate.
2. socket management-control method according to claim 1, which is characterized in that it is described obtain socket current state the step of
Include:
A solicited message is sent to socket, so that the socket can send the socket to the server based on the solicited message
Current state;
Receive the current state that the socket is sent, wherein the socket is provided with communication equipment, control equipment and relay
Device, the control equipment receives the solicited message by the communication equipment, and judges after receiving the solicited message
The last time instruction sent to the relay is shutdown instruction or close command, is instructed if shutdown, then determines described insert
Seat belongs to off state, if close command, then determines that the socket belongs to closed state.
3. socket management-control method according to claim 1, which is characterized in that it is described obtain socket current state the step of
Include:
It obtains the last item sent to socket and controls information, and judge the control information for controlling socket shutdown or closure;
If the last item control information is for controlling socket shutdown, using off state as the current shape of the socket
State, if described the last item control information is closed for controlling socket, using closed state as the current state of the socket.
4. socket management-control method according to claim 1 to 3, which is characterized in that the reception terminal is set
The control instruction that preparation is sent generates corresponding control information according to the control instruction, and the control information is sent to described insert
Seat to control includes: the step of the socket
The control instruction that the terminal device is sent is received, corresponding control information is generated according to the control instruction, and judging should
Whether there is temporal information in control instruction;
If in the control instruction have temporal information, according to the temporal information by the control information be sent to the socket with
Control the socket.
5. a kind of socket control device, is applied to server, which is connected with terminal device, which is characterized in that institute
Stating socket control device includes:
Current state obtains module, for obtaining the current state of socket, wherein the current state includes off state and closes
Conjunction state;
Current state sending module, the current state for will acquire are sent to the terminal device, so that the terminal device
Show the current state;
Information sending module is controlled, the control instruction sent for receiving the terminal device, according to control instruction generation pair
The control information answered, and the control information is sent to the socket to control the socket, wherein the control instruction is based on institute
Operation of the terminal device response user after getting the current state is stated to generate.
6. socket control device according to claim 5, which is characterized in that the current state obtains module and includes:
Solicited message sending submodule, for sending a solicited message to socket, so that the socket can be believed based on the request
Cease the current state that the socket is sent to the server;
Current state receiving submodule, the current state sent for receiving the socket, wherein the socket is provided with communication
Equipment, control equipment and relay, the control equipment receives the solicited message by the communication equipment, and is receiving
The last time instruction sent to the relay is judged after to the solicited message as shutdown instruction or close command, if pass
Severed finger enables, then determines that the socket belongs to off state, if close command, then determine that the socket belongs to closed state.
7. socket control device according to claim 5, which is characterized in that the current state obtains module and includes:
Information judging submodule is controlled, controls information for obtaining the last item sent to socket, and judge the control information
For controlling socket shutdown or closure;
Current state determines submodule, for will turn off shape when described the last item control information is for controlling socket shutdown
Current state of the state as the socket, when described the last item control information is for controlling socket closure, by closed state
Current state as the socket.
8. according to socket control device described in claim 5-7 any one, which is characterized in that the control information sends mould
Block includes:
Temporal information judging submodule, the control instruction sent for receiving the terminal device, generates according to the control instruction
Corresponding control information, and judge whether there is temporal information in the control instruction;
Information sending submodule is controlled, for having temporal information in the control instruction, according to the temporal information by the control
Information processed is sent to the socket to control the socket.
9. a kind of socket managing and control system characterized by comprising
Socket, the socket are provided with control equipment, communication equipment and relay, the control equipment and the communication equipment and
The relay is electrically connected;
Server, the server are connect with the communication apparatus communication;
Terminal device, the terminal device are connect with the server communication;
Wherein, the server is used to obtain the current state of the socket, and the current state is sent to the terminal and is set
It is standby so that the terminal device shows the current state, the terminal device is getting the current state for responding user
Operation later generates corresponding control instruction and is sent to the server, so that the server is raw according to the control instruction
The control equipment is sent to by the communication equipment at corresponding control information, and by the control information, the control is set
It is ready for use on and the relay is controlled according to the control information, the current state includes off state or closed state.
10. socket managing and control system according to claim 9, which is characterized in that the control equipment and the communication equipment
It is integrated in one as a WiFi chip, the model ESP8266 of the WiFi chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811630753.5A CN109725546A (en) | 2018-12-29 | 2018-12-29 | Socket management-control method, socket control device and socket managing and control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811630753.5A CN109725546A (en) | 2018-12-29 | 2018-12-29 | Socket management-control method, socket control device and socket managing and control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109725546A true CN109725546A (en) | 2019-05-07 |
Family
ID=66297515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811630753.5A Pending CN109725546A (en) | 2018-12-29 | 2018-12-29 | Socket management-control method, socket control device and socket managing and control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109725546A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597205A (en) * | 2019-09-16 | 2019-12-20 | 上海庆科信息技术有限公司 | Control method and device of intelligent power strip, processor and intelligent power strip |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080082604A1 (en) * | 2001-02-14 | 2008-04-03 | Sproqit Technolgies, Inc. | Platform-independent distributed user interface client architecture |
KR20120028285A (en) * | 2010-09-14 | 2012-03-22 | 한국전력공사 | Apparatus for automating line opening or closing of manual switch and method thereof |
US8170722B1 (en) * | 2010-12-09 | 2012-05-01 | Elbex Video Ltd. | Method and apparatus for coding and linking electrical appliances for control and status report |
CN102960000A (en) * | 2012-08-20 | 2013-03-06 | 华为技术有限公司 | Method, system, managingand controlling device, and terminal equipemtn for sending message |
EP2753020A1 (en) * | 2013-01-04 | 2014-07-09 | Samsung Electronics Co., Ltd | Smart apparatus and home network system using the same |
US20150134139A1 (en) * | 2010-12-06 | 2015-05-14 | Henrik Westergaard | Apparatus and method for controlling consumer electric power consumption |
CN104965452A (en) * | 2015-06-23 | 2015-10-07 | 小米科技有限责任公司 | Intelligent socket on-off state display method, device, intelligent terminal and server |
CN105068433A (en) * | 2015-07-07 | 2015-11-18 | 江苏惠通集团有限责任公司 | Network connection method and apparatus of intelligent socket, and intelligent socket system |
CN105262599A (en) * | 2015-07-22 | 2016-01-20 | 大连海事大学 | WiFi based remote power supply control system |
CN105514721A (en) * | 2016-01-22 | 2016-04-20 | 南京信息工程大学 | Intelligent socket based on intelligent terminal and using method thereof |
CN105575096A (en) * | 2016-02-29 | 2016-05-11 | 镇江艾迪智能科技有限公司 | Intelligent control switch socket panel |
CN105739318A (en) * | 2016-03-31 | 2016-07-06 | 深圳市九洲光电科技有限公司 | Intelligent socket, intelligent household control system and control method thereof |
CN106848772A (en) * | 2017-01-20 | 2017-06-13 | 奇酷互联网络科技(深圳)有限公司 | Smart jack, receptacle controller, control method and system |
CN107069345A (en) * | 2017-05-01 | 2017-08-18 | 吴昊阳 | A kind of domestic intelligent jack system and its control method |
CN206541147U (en) * | 2016-12-27 | 2017-10-03 | 绿凯智能科技(深圳)有限公司 | Mobile socket control device and tele-control system |
CN107544417A (en) * | 2017-09-28 | 2018-01-05 | 北京小米移动软件有限公司 | Smart jack control method and device |
CN108551453A (en) * | 2018-04-23 | 2018-09-18 | 德阳国创智慧能源有限公司 | Status information of equipment adapting method and device |
-
2018
- 2018-12-29 CN CN201811630753.5A patent/CN109725546A/en active Pending
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080082604A1 (en) * | 2001-02-14 | 2008-04-03 | Sproqit Technolgies, Inc. | Platform-independent distributed user interface client architecture |
KR20120028285A (en) * | 2010-09-14 | 2012-03-22 | 한국전력공사 | Apparatus for automating line opening or closing of manual switch and method thereof |
US20150134139A1 (en) * | 2010-12-06 | 2015-05-14 | Henrik Westergaard | Apparatus and method for controlling consumer electric power consumption |
US8170722B1 (en) * | 2010-12-09 | 2012-05-01 | Elbex Video Ltd. | Method and apparatus for coding and linking electrical appliances for control and status report |
CN102960000A (en) * | 2012-08-20 | 2013-03-06 | 华为技术有限公司 | Method, system, managingand controlling device, and terminal equipemtn for sending message |
EP2753020A1 (en) * | 2013-01-04 | 2014-07-09 | Samsung Electronics Co., Ltd | Smart apparatus and home network system using the same |
CN104965452A (en) * | 2015-06-23 | 2015-10-07 | 小米科技有限责任公司 | Intelligent socket on-off state display method, device, intelligent terminal and server |
CN105068433A (en) * | 2015-07-07 | 2015-11-18 | 江苏惠通集团有限责任公司 | Network connection method and apparatus of intelligent socket, and intelligent socket system |
CN105262599A (en) * | 2015-07-22 | 2016-01-20 | 大连海事大学 | WiFi based remote power supply control system |
CN105514721A (en) * | 2016-01-22 | 2016-04-20 | 南京信息工程大学 | Intelligent socket based on intelligent terminal and using method thereof |
CN105575096A (en) * | 2016-02-29 | 2016-05-11 | 镇江艾迪智能科技有限公司 | Intelligent control switch socket panel |
CN105739318A (en) * | 2016-03-31 | 2016-07-06 | 深圳市九洲光电科技有限公司 | Intelligent socket, intelligent household control system and control method thereof |
CN206541147U (en) * | 2016-12-27 | 2017-10-03 | 绿凯智能科技(深圳)有限公司 | Mobile socket control device and tele-control system |
CN106848772A (en) * | 2017-01-20 | 2017-06-13 | 奇酷互联网络科技(深圳)有限公司 | Smart jack, receptacle controller, control method and system |
CN107069345A (en) * | 2017-05-01 | 2017-08-18 | 吴昊阳 | A kind of domestic intelligent jack system and its control method |
CN107544417A (en) * | 2017-09-28 | 2018-01-05 | 北京小米移动软件有限公司 | Smart jack control method and device |
CN108551453A (en) * | 2018-04-23 | 2018-09-18 | 德阳国创智慧能源有限公司 | Status information of equipment adapting method and device |
Non-Patent Citations (1)
Title |
---|
第6期: "一种基于WIFI的智能插座控制系统设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597205A (en) * | 2019-09-16 | 2019-12-20 | 上海庆科信息技术有限公司 | Control method and device of intelligent power strip, processor and intelligent power strip |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107886952B (en) | Method, device and system for controlling intelligent household electrical appliance through voice and electronic equipment | |
US11799786B2 (en) | Device and method for disabling a WLAN hotspot based on data traffic value | |
US20170195486A1 (en) | Intelligent customer service systems, customer service robots, and methods for providing customer service | |
CN105093945A (en) | System and method for safely controlling smart household apparatuses based on smart cloud | |
CN107517136A (en) | The implementation method of heartbeat keep-alive, apparatus and system | |
CN105320044A (en) | Method for monitoring operation states of household electrical appliance and washing machine, intelligent socket, and washing machine | |
CN104102181A (en) | Intelligent home control method, device and system | |
CN104009898A (en) | Household appliance and control method and device thereof | |
CN105897813A (en) | Heartbeat message sending method, heartbeat message receiving method, heartbeat message sending device and heartbeat message receiving device | |
CN109638972A (en) | Net load interaction control method, terminal and the storage medium of adaptive part throttle characteristics | |
CN107870571B (en) | Method and device for controlling intelligent equipment and intelligent equipment | |
Haque et al. | IoT based home automation system with customizable GUI and low cost embedded system | |
CN114265328A (en) | Control method and device of intelligent household equipment | |
US20120163393A1 (en) | Method for placing in standby and waking up a residential gateway according to programmable time slots | |
CN109252324A (en) | Washing machine control method and device, storage medium and mobile terminal | |
CN109725546A (en) | Socket management-control method, socket control device and socket managing and control system | |
CN106375148B (en) | Dynamic network heartbeat processing method and terminal in instant messaging | |
CN110381057A (en) | Processing method, device, storage medium, processor and the system of communication connection | |
CN109945412A (en) | Remote control equipment, control method and device thereof and storage medium | |
CN104539493B (en) | Based on the intelligent terminal that USB interface is realized to the managing and control system and its implementation of intelligent appliance | |
CN103533028A (en) | Method and terminal for monitoring state information | |
CN109616113A (en) | Sound control method, phonetic controller and speech control system | |
CN107332739B (en) | Network detecting method, network detection device and intelligent terminal | |
CN109508323A (en) | A kind of document storage system and file memory method | |
CN108881435B (en) | Real-time clock providing method, server, home appliance, system, and 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190507 |
|
RJ01 | Rejection of invention patent application after publication |