Summary of the invention
In view of the foregoing, it is necessary to a kind of control system and method that can conveniently control electric equipment is provided.
A kind of intelligent socket, including:
At least one socket;
One switch module, including some switches, each switch is connected between civil power and a socket;
One first communication module, for receiving the control signal of access device output;
One memorizer, including an identity table, this identity table stores some identity for controlling the action to inductive switch;And
One controller, including:
One network detecting unit, for receiving the control signal of the identity that this access device uses by this first communication module;
One identification authenticating unit, for judging whether the identity that this control signal comprises is stored in the identity table of this memorizer;When the identity that this control signal comprises has been stored in the identity table of this memorizer, this identification authenticating unit exports an authentication information to this network detecting unit, and this network detecting unit obtains the control signal for controlling the action to inductive switch of this access device output;And
One switch control unit, performs the control signal of this network detecting unit transmission.
A kind of intelligent socket control method, including:
Judge intelligent socket whether with access device communication;
When this intelligent socket communicates with access device, obtain the identity of this access device transmission;
Judge whether the identity that this access device transmits mates;
When the identity coupling that this access device transmits, obtaining the control signal of this access device output, wherein this control signal includes the control instruction for controlling to be connected to the action of the switch of respective socket;
Obtain should the control command of control instruction from a memorizer according to this control instruction;And
Perform this control command, to control to be connected to the action of the switch of respective socket.
Plant intelligent socket control system, including:
One intelligent socket, including:
At least one socket;
One switch module, including some switches, each switch is connected between civil power and a socket;
One first communication module, for receiving the control signal of access device output;
One memorizer, including an identity table, this identity table is connected to the identity of the action to inductive switch for storing some control;And
One controller, including:
One network detecting unit, is received access device and is received the control signal of the identity that this access device uses by this first communication module;
One identification authenticating unit, it is judged that whether the identity that this control signal comprises is stored in the identity table of this memorizer;When the identity that this control signal comprises has been stored in the identity table of this memorizer, this identification authenticating unit exports an authentication information to this network detecting unit, and this network detecting unit obtains the control signal for controlling to be connected to the action to inductive switch of this access device output;And
One switch control unit, performs the control signal of this network detecting unit transmission;And
At least one access device, each access device all includes:
One second communication module, for the first communication module communication with this intelligent socket;
One processor, is used for producing this control signal, and this processor also obtains the status information of each socket;And
One display screen, for showing the status information of each socket.
Above-mentioned intelligent socket, intelligent socket control system and method control to be connected to the action of the switch of respective socket, so also convenient shutdown action or power adjustments action realizing being connected to the electric equipment of this socket when electric equipment does not has distant control function by the control signal being received from the transmission of this access device 20.
Detailed description of the invention
Below in conjunction with the accompanying drawings and the present invention is described in further detail by better embodiment:
Refer to Fig. 1, the better embodiment of intelligent socket control system 1 of the present invention includes some access devices 20 and an intelligent socket 10 communicated with these access devices 20.In present embodiment, this access device 20 is a smart machine, and this access device 20 can pass through Bluetooth communication, infrared communication and Wi-Fi(Wireless Fidelity, Wireless Fidelity) communication such as communication communicates with this intelligent socket 10.In other embodiments, this access device 20 can be communicated with this intelligent socket 10, such as a wired network communication mode by other communication modes.
Please also refer to Fig. 2 and Fig. 3, this intelligent socket 10 includes controller 100 that first communication module 104, memorizer 102, power transfer module 60, switch module 50, is all connected and some sockets 40 being connected with a civil power 70 by this switch module 50 with this first communication module 104, this power transfer module 60, this switch module 50 and this memorizer 102.In present embodiment, this switch module 50 includes the switch 500 equal with this socket 40 quantity, so that each socket 40 500 is connected with civil power 70 by a switch respectively, as one first switch be connected to one first socket, a second switch is connected to one second socket, one the 3rd switch is connected to one the 3rd socket.In other embodiments, each switch 500 also may connect to multiple socket 40.In present embodiment, this switch 500 is a silicon control rectifier (Silicon-Controlled
Rectifier, SCR).
This power transfer module 60 processes (as the alternating current that this civil power 70 exports is converted to unidirectional current) for the voltage providing this civil power 70, thinks that this controller 100 provides running voltage.
This first communication module 104 is for communicating (shown in Fig. 5) with the second communication module 220 of these access devices 20, so that this intelligent socket 10 is communicated with corresponding access device 20 by cordless communication network, wherein this applicable communication of intelligent socket 10, such as Bluetooth communication, infrared communication and Wireless Fidelity communication.In present embodiment, this first communication module 104 includes the communication interface modules such as a Bluetooth adapter 142 and a wireless network chip 144, and this second communication module 220 includes the communication interface modules such as a Bluetooth chip 223 and a wireless communication chips 225.In other embodiments, this first communication module 104 can include at least one communication interface modules in this Bluetooth adapter 142 and this wireless network chip 144, and this access device 20 includes at least one communication interface modules in the communication mode corresponding to this intelligent socket 10.
The Bluetooth adapter 142 of this intelligent socket 10 is for carrying out Bluetooth communication with this access device 20.According to Bluetooth communication principle, this Bluetooth adapter 142 is operable with holotype or from pattern.When this Bluetooth adapter 142 works in holotype, the bluetooth equipment of surrounding can be made a look up by this Bluetooth adapter 142, with searching work in other bluetooth communication interface module under pattern.
The wireless network chip 144 of this intelligent socket 10 is for carrying out Wireless Fidelity communication with this access device 20.According to Wireless Fidelity Principle of Communication, this wireless network chip 144 can be operated in server mode or client mode.When this wireless network chip 144 is operated in server mode, this wireless network chip 144 can be used for setting up a hotspot (Hotpot), so that other work in the Wireless communication interface module under client mode and access, as this access device 20 can be directly accessed the hotspot that this intelligent socket 10 is set up.When this wireless network chip 144 works in client mode, this intelligent socket 10 is accessible to other hotspot, in order to this intelligent socket 10 is controlled by this access device 20 by other hotspot.
This memorizer 102 stores identity table 120, command mapping table 126, device identification table 124, command property list 128, journal file 130 and a priority list 122.This device identification table 124 stores the device identification of each socket 40 correspondence, as the first socket corresponds to one the 3rd device identification corresponding to one first device identification, the second socket corresponding to one second device identification, the 3rd socket.This identity table 120 stores the identity for controlling the action of some switches 500, if one first identity is for controlling the action of first and second switch, one second identity for controlling the action of the 3rd switch.This command mapping table 126 stores the control command of some actions for controlling these switches 500 being connected to respective socket 40.This priority list 122 stores the priority orders of identity selected during this access device 20 communicates with this intelligent socket 10, so that when multiple access devices control same switch 500, this intelligent socket 10 performs have the control signal that the access device 20 of limit priority is exported.This command property list 128 stores the attribute that in this command mapping table 126, each control command is corresponding.If one first control command is instant order, one second control command is condition commands, and i.e. when receiving this first control command, this first control command can be taken immediately;When receiving this second control command, this second control command can be judged whether meet corresponding condition, just can be performed when this second control command has met corresponding condition.In other embodiments, each condition commands can be provided with corresponding instant order, in order to this condition commands is converted under special state the instant order of correspondence, and then makes this condition commands also can be by instant execution.This journal file 130 have recorded the state that control command is performed, and is successfully executed such as a control command or a control command performs failure.
This controller 100 includes one first coding unit 110,1 first decoding unit 112, network detecting unit 114, identification authenticating unit 116, authority dispensing unit 118, mode setting unit 117, exception processing unit 115, command recognition unit 113 and a switch control unit 119.
This mode setting unit 117 is for arranging the mode of operation of the communication interface modules such as this Bluetooth adapter 142 and this wireless network chip 144 in this first communication module 104, work in holotype or from pattern as arranged this Bluetooth adapter 142, this wireless network chip 144 is set and works in server mode or client mode.
This network detecting unit 114 detects in the peripheral environment at this intelligent socket 10 place whether there is the access device 20 accessed by cordless communication network.In present embodiment, this mode setting unit 117 arranges the Bluetooth adapter 142 in this first communication module 104 and works under holotype and arrange this wireless network chip 144 and work under server mode.Afterwards, whether this network detecting unit 114 exists this access device 20 detected the surrounding of this intelligent socket 10 by this Bluetooth adapter 142 and this wireless network chip 144 in.As when this Bluetooth adapter 142 is arranged to work under holotype, if the surrounding of this intelligent socket 10 existing and comprising the access device 20 working in the bluetooth communication interface module from pattern, this network detecting unit 114 can acquire the Bluetooth address of Bluetooth chip 223 in this access device 20, so, this network detecting unit 114 then judges that the surrounding of this intelligent socket 10 exists access device, this network detecting unit 114 comprises one the detection signal of identity selected when this access device 20 communicates with this intelligent socket 10 and exports to this identification authenticating unit 116.Other are similar to the above for detecting the mode that whether there is access device in peripheral environment, therefore do not repeat them here.When there is not access device in peripheral environment, whether the surrounding that this network detecting unit 114 continues to detect this intelligent socket 10 by other focuses exists access device.
This identification authenticating unit 116 obtains the identity of this access device 20 according to the detection signal that this network detecting unit 114 exports, and judges whether there is this identity in the identity table 120 of this memorizer 102.When there is the identity of this access device 20 output in this memorizer 102, this identification authenticating unit 116 exports an authentication signal to this network detecting unit 114;When there is not the identity of this access device 20 output, this identification authenticating unit 116 then exports one first abnormal signal to this exception processing unit 115.
When receiving this authentication signal, this network detecting unit 114 is then communicated with this access device 20 by communication mode corresponding in this first communication module 104, switchs the control signal of control instruction of action of 500 as obtained comprising of this access device 20 output for controlling these.This network detecting unit 114 also transmits being received from the control signal that this access device 20 exports to this first decoding unit 112.This control signal is then decoded by this first decoding unit 112 according to the communication mode of this access device 20 with this intelligent socket 10, to obtain corresponding control instruction.This first decoding unit 112 always according to command mapping table 126 in this memorizer 102 obtain to should the control command of control instruction, and export this control command to this command recognition unit 113.
This control command is identified by this command recognition unit 113 according to this command property list 128, to judge the attribute of this control command.As when this control command is for immediately ordering, this control command is then transmitted to this switch control unit 119 by this command recognition unit 113;When this control command is condition commands, this command recognition unit 113 judges whether this control command meets corresponding condition, and when this control command meets corresponding condition, this control command is then transmitted to this switch control unit 119 by this command recognition unit 113.In present embodiment, instant order is the instruction that need to be immediately performed, as a control command is started working at 10:00 for controlling a water heater, now, when this command recognition unit 113 identifies that this control command works at 10:00 for controlling water heater, this control command is then immediately conveyed to this switch control unit 119 by this command recognition unit 113.Condition commands then needs first to judge whether this control command meets corresponding condition, after condition commands meets corresponding condition, this control command is then transmitted to this switch control unit by this command recognition unit 113, as a control command is started working at 9:00-10:00 for controlling a water heater, now, if this command recognition unit 113 identifies that this control command is started working at 8:00 for controlling water heater, this control command i.e. does not meets the condition of correspondence, and this control command is not transmitted to this switch control unit 119 by this command recognition unit 113;If this command recognition unit 113 identifies that this control command is started working at 9:30 for controlling water heater, this control command i.e. meets the condition of correspondence, this control command is then transmitted to this switch control unit 119 by this command recognition unit 113, in order to this switch control unit 119 controls the switch 500 of correspondence and carries out corresponding action.
In other embodiments, the control command acquired can be directly transferred to this switch control unit 119 by this first decoding unit 112, this switch control unit 119 perform this control command.
This switch control unit 119 controls to be connected to the action of the switch 500 of respective socket 40 according to this control command.During as shut down when the electric equipment that need to control to be connected to a socket 40, this switch control unit 119 then controls the switch 500 of correspondence and is off, so that the electric equipment being connected to this socket 40 carries out shutdown action because not having power supply;When controlling the power being connected to the electric equipment of a socket 40, the socket 40 that this switch control unit 119 reaches to control to be connected to this switch 500 by controlling the ON time of corresponding switch 500 is supplied to the size of the power of electric equipment.In present embodiment, this switch control unit 119 also judges whether this control command is successfully executed, when this control command is successfully executed, the record that this control command is successfully executed is write in this journal file 130 by this switch control unit 119, and the result of execution also returns to this access device 20;When this control command performs unsuccessfully, this control command failed record of execution is write in this journal file 130 by this switch control unit 119, and the failed result of this control command execution is returned to this access device 20.
Please also refer to Fig. 4, in present embodiment, this civil power 70 provides has periodically variable alternating current (alternating current as sinusoidal), this switch control unit 119 is by periodically controlling the ON time of the periodically variable alternating current of this civil power 70 output, and then reaches to control the power of socket 40 output being connected to this switch 500.As when controlling a socket 40 and provide a low-power for electric equipment, this switch control unit 119 then controls to export to once for every half in the sinusoidal ac of the switch 500 being connected to this socket 40 the cycle conducting of rear π/3 phase place.When controlling a socket 40 and provide power in one for electric equipment, this switch control unit 119 then controls to export to once for every half in the sinusoidal ac of the switch 500 being connected to this socket 40 the cycle conducting of rear 5 π/6 phase places.Thering is provided peak power when controlling a socket 40 for electric equipment, this switch control unit 119 then controls output and is both turned on to each cycle in the sinusoidal ac of the switch 500 being connected to this socket 40.
In other embodiments, this control command is also exported to this authority dispensing unit 118 by this first decoding unit 112.
This authority dispensing unit 118 is according to the authority of the identity configuration correspondence stored in the identity table 120 of this memorizer 102.When this authority dispensing unit 118 receives the control command of this first decoding unit 112 transmission, this authority dispensing unit 118 judges whether this control command meets the authority that the identity of this access device 20 use is had.When this control command meets the authority of correspondence, this authority dispensing unit 118 then exports an access signal to this command recognition unit 113, so that identify the attribute of this control command according to this command property list 128 when this command recognition unit 113 receives this access signal, and the identification maneuver that this command recognition unit 113 is concrete has been described, therefore do not repeat them here.When this control command does not corresponds with corresponding authority, this authority dispensing unit 118 then exports one second abnormal signal to this exception processing unit 115.
In other embodiments, when this control command meets the authority of correspondence, this authority dispensing unit 118 then exports access signal to this switch control unit 119, so that perform this control command when switch control unit 119 receives this access signal.
In other embodiments, this authority dispensing unit 118 also judges whether this intelligent socket 10 communicates with multiple access devices, as judged whether to receive multiple identity.When there is multiple access device 20, this command recognition unit 113 judges whether to receive multiple control command for controlling same switch 500.In present embodiment, this command recognition unit 113 judges whether that the attribute of at least two control commands is identical;When the attribute that there are at least two control commands is identical, this command recognition unit 113 then judges whether to receive multiple control command for controlling same switch 500, if there is multiple control command for controlling same switch 500, the transmission of control command that the control signal that access device 20 the highest for priority transmits then is comprised by this command recognition unit 113 is to this switch control unit 119, so that this switch control unit 119 performs the control command that the control signal that the highest access device of this priority transmitted is comprised.
In present embodiment, after when this access device 20 and this intelligent socket 10, the match is successful, this mode setting unit 117 can need to convert the mode of operation of this Bluetooth adapter 142 according to communicate, as when being received from the control signal of this access device 20 output, this Bluetooth adapter 142 is operable with from pattern.
When receiving the first abnormal signal of this identification authenticating unit 116 transmission, this exception processing unit 115 prompts the user whether to preserve the identity (as corresponding identity shown) of correspondence by this access device 20 by corresponding access device 20, when user selects to preserve corresponding identity, corresponding identity is then stored in the identity table 120 of this memorizer 102 by this exception processing unit 115;When user selects the identity abandoning storage correspondence, this access device 20 then exports this first abnormal information, such as " the identity None-identified of access device ".Additionally, when receiving the second abnormal signal of this authority dispensing unit 118 transmission, this access device 20 then exports this second abnormal information, such as " permission match makes a mistake ".
Please also refer to Fig. 5, this access device 20 also includes display screen 200, processor 230 second communication module and a memory module 240, and wherein this display screen 200, second communication module 220 and memory module 240 are all connected with this processor 230 by a bus 270.
This Bluetooth chip 223 of this second communication module 220 and this wireless communication chips 225 all work in from pattern, i.e. when this second communication module 220 enters the radio-frequency field that this intelligent socket 10 produces, can communicate with the first communication module 104 of this intelligent socket 10.
This processor 230 includes instruction generation unit 233,1 second coding unit 235,1 second decoding unit 237 and a display driver element 239.
This display driver element 239 is for showing an operation interface on this display screen 200.This operation interface can include the status information of each socket 40, as being in the status informations such as the power of open state, off-mode, the electric current of this socket 40, the voltage of this socket 40 offer or this socket 40 offer.
This instruction generation unit 233 generates the control instruction of the action for controlling these switches 500.
The control instruction that this second coding unit 235 produces according to this instruction generation unit 233 produces corresponding control signal, and this control signal is transmitted to this intelligent socket 10 by this second communication module 220, and then make by this intelligent socket 10, this control signal to be processed, to control to be connected to the action of the switch 500 of respective socket 40.
This second decoding unit 237 is for receiving the second status signal of this intelligent socket 10 transmission, and is decoded receiving the second status signal obtained, to obtain the status information of each socket 40.The status information of this corresponding second status signal is also transmitted to this display driver element 239 by this second decoding unit 237, and then is shown the status information of the socket 40 of correspondence by the display screen 200 of this access device 20.
Refer to Fig. 6, the better embodiment of intelligent socket control method of the present invention comprises the steps:
Step S2, the network detecting unit 114 in this intelligent socket 10 judges whether the access device 20 communicated with this intelligent socket 10;When there is the access device 20 communicated with intelligent socket 10, perform step S4;When there is not the access device 20 communicated with intelligent socket 10, continue to determine whether to there is the access device 20 communicated with this intelligent socket 10.
Step S4, the network detecting unit 114 in this intelligent socket 10 obtains the identity of this access device 20 transmission, and the identity that this access device 20 is also transmitted by this network detecting unit 114 is transmitted to this identification authenticating unit 116.
Step S5, the identification authenticating unit 116 of this intelligent socket 10 judges whether the identity that this access device 20 exports mates.When the identity of this access device 20 transmission is not mated, perform step S18;When the identity coupling of this access device 20 transmission, perform step S6.In present embodiment, this identification authenticating unit 116 judges whether the identity that this access device 20 transmits exists in the identity table 120 in this memorizer 102, when the identity of this access device 20 transmission exists in this identity table 120, then representing that the identity that this access device 20 transmits is mated, now this identification authenticating unit 116 transmits this authentication signal to this network detecting unit 114;Otherwise, do not exist in this identity table 120 when the identity of this access device 20 transmission, then it represents that the identity coupling of this access device 20 transmission is unsuccessful, and now this identification authenticating unit 116 exports the first abnormal signal to this exception processing unit 115.
Step S6, this network detecting unit 114 obtains the control signal of access device 20 output, and this switch control unit 119 controls the action to inductive switch 500 according to this control signal.In present embodiment, when receiving the authentication signal of this identification authenticating unit 116 transmission, this network detecting unit 114 then obtains the control signal of access device 20 output.
Step S7, this access device 20 receives and shows the status information of each socket 40.
Step S18, when the identity of this access device 20 transmission does not exist in this identity table 120, this exception processing unit 115 then can receive the first abnormal signal of this identification authenticating unit 116 output, this exception processing unit 115 exports information to this access device 20 by this network detecting unit 114, to prompt the user whether to store this new identity;When selecting not store this new identity, perform step S20;When selecting storage, perform step S19.
Step S19, when selecting to store new identity, corresponding identity is stored in the identity table of this memorizer 102 by the exception processing unit 115 of this intelligent socket 10.
Step S29, when selecting not store new identity, this exception processing unit 115 exports this first abnormal information by this access device 20.
Refer to Fig. 7, in present embodiment, this step S6 also includes:
Step S32, this authority dispensing unit 118 further determines whether there are multiple access device and accesses, and when there is multiple access device 20 and accessing, performs step S34;When there is not multiple access device and accessing, perform step S33.
Step S33, the switch control unit 119 of this intelligent socket 10 performs the control signal of current access device transmission.
Step S34, the command recognition unit 113 of this intelligent socket 10 judges whether to receive multiple control command for controlling same switch 500 according to the control command that this first decoding unit 112 acquires.When exist multiple for the control command controlling same switch 500 time, perform step S36;Otherwise, when be not received by multiple for the control command controlling same switch 500 time, perform step S35.In present embodiment, this command recognition unit 113 judges whether that at least two is identical for controlling the attribute of the control command of same switch 500, when the attribute that there are at least two control commands for controlling same switch 500 is identical, this command recognition unit 113 then judges to there is multiple control command for same switch 500.
Step S35, the switch control unit 119 of this intelligent socket 10 performs the control command of multiple access device output respectively.
Step S36, the control command that access device 20 the highest for priority is then transmitted by the command recognition unit 113 of this intelligent socket 10 is transmitted to this switch control unit 119, so that this switch control unit 119 performs the control command that the highest access device of this priority is transmitted.
Refer to Fig. 8, in present embodiment, step S6 also includes:
Step S70, this authority dispensing unit 118 is respectively provided with the authority of correspondence to each identity in this memorizer 102.
Step S72, always according to the identity that this access device 20 is used, this authority dispensing unit 118 judges whether the control command acquired from this command mapping table 126 meets the authority that this identity is had;When authority corresponding to this control command meets this identity, perform this step S76.When this control command does not corresponds with the authority corresponding to this identity, this authority dispensing unit 118 exports the second abnormal signal to this exception processing unit 115, execution step S74.
Step S74, this exception processing unit 115 exports this second abnormal information by access device 20.
Step S76, this switch control unit 119 controls the action to inductive switch 500 according to the control command received.
Refer to Fig. 9, in present embodiment, step S76 also includes:
Step S90, this command recognition unit 113 receives the control command of this authority dispensing unit 118 output, also judges that this control command is instant order or condition commands;When this control command is for immediately ordering, perform step S92;When this control command is condition commands, perform step S91.
Step S91, this command recognition unit 113 judges whether this control command meets corresponding condition;When this control command meets corresponding condition, perform step S92;When this control command does not meets corresponding condition, return step S90.
Step S92, this control command is transmitted to this switch control unit 119 by this command recognition unit 113, in order to this control control unit 119 performs this control command.
Step S94, this switch control unit 119 also judges whether this control command is successfully executed;When this control command is successfully executed, perform step S96;When this control command is performed unsuccessfully, perform step S98.
Step S96, this control command is run succeeded in record this journal file 130 of write, and performs step S99 by this switch control unit 119.
Step S98, this control command execution failure record is write in this journal file 130, and performs step S99 by this switch control unit 119.
Step S99, this switch control unit 119 returns this control command and runs succeeded or perform failed result to access device 20, in order to user checks execution result.
Refer to Figure 10, in present embodiment, step S7 includes:
Step S80, this switch control unit 119 receives the first status signal of respective socket 40 status information of each socket 40 transmission.
Step S84, the first status signal acquired is encoded by this first coding unit 110 according to the access style of access device 20, to obtain the second status signal of correspondence.
Step S86, this second decoding unit 237 receives this second status signal, and is decoded this second status signal processing.
Step S88, this display driver element 239 shows the status information of respective socket 40 that this second status signal comprises by the display screen 200 of this access device 20.
Above-mentioned intelligent socket, intelligent socket control system and method control to be connected to the action of the switch 500 of respective socket 40 by the control signal being received from the transmission of this access device 20, so also facilitate the actions such as the shutdown action realizing being connected to the electric equipment of this socket 40 or power adjustments when electric equipment does not has distant control function.