Summary of the invention
In view of above content, be necessary to provide a kind of control system and method that facilitates control apparatus equipment.
A kind of intelligent socket, comprising:
At least one socket;
One switch module, comprises some switches, and each switch is connected between civil power and a socket;
One first communication module, for receiving the control signal of access device output;
One storer, comprises an identity label table, and this identify label table has been stored some for controlling the identify label of the action to inductive switch; And
One controller, comprising:
One network detecting unit, for receiving the control signal of the identify label that this access device uses by this first communication module;
One identity authentication ' unit, for judging whether the identify label that this control signal comprises is stored in the identify label table of this storer; In the time that the identify label that this control signal comprises has been stored in the identify label table of this storer, an authentication information is exported to this network detecting unit in this authentication unit, this network detecting unit obtain the output of this access device for controlling the control signal of the action to inductive switch; And
One switch control unit, carries out the control signal that this network detecting unit transmits.
A kind of intelligent socket control method, comprising:
Judge whether intelligent socket communicates by letter with access device;
In the time that this intelligence socket is communicated by letter with access device, obtain the identify label of this access device transmission;
Whether the identify label that judges this access device transmission mates;
In the time that the identify label of this access device transmission is mated, obtain the control signal of this access device output, wherein this control signal comprises for control linkage in the steering order of the action of the switch of respective socket;
Obtain from a storer according to this steering order control command that should steering order; And
Carry out this control command, with control linkage in the action of the switch of respective socket.
Plant intelligent socket control system, comprising:
One intelligent socket, comprising:
At least one socket;
One switch module, comprises some switches, and each switch is connected between civil power and a socket;
One first communication module, for receiving the control signal of access device output;
One storer, comprises an identity label table, and this identify label table is for having stored some control linkages in the identify label of the action to inductive switch; And
One controller, comprising:
One network detecting unit, reception access device receives the control signal of the identify label of this access device use by this first communication module;
One identity authentication ' unit, judges whether the identify label that this control signal comprises is stored in the identify label table of this storer; In the time that the identify label that this control signal comprises has been stored in the identify label table of this storer, an authentication information is exported to this network detecting unit in this authentication unit, this network detecting unit obtain the output of this access device for control linkage in the control signal of the action to inductive switch; And
One switch control unit, carries out the control signal that this network detecting unit transmits; And
At least one access device, each access device includes:
One second communication module, for communicating by letter with the first communication module of this intelligence socket;
One processor, for generation of this control signal, 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 are carried out control linkage in the action of the switch of respective socket by the control signal that is received from this access device 20 and transmits, so also convenient shutdown action or power adjustments action that realizes the electric equipment that is connected in this socket in the time that electric equipment does not have distant control function.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiments, the present invention is described in further detail:
Please refer to Fig. 1, the preferred embodiments of the present invention's intelligence socket control system 1 comprises some access devices 20 and an intelligent socket 10 of communicating by letter 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 wait communication communicate by letter with this intelligence socket 10.In other embodiments, this access device 20 can communicate by other communication modes and this intelligence socket 10, as a wired network communication mode.
Please also refer to Fig. 2 and Fig. 3, this intelligence socket 10 comprises a first communication module 104, a storer 102, a power transfer module 60, a switch module 50, a controller 100 being all connected with this first communication module 104, this power transfer module 60, this switch module 50 and this storer 102 and some sockets 40 being connected with a civil power 70 by this switch module 50.In present embodiment, this switch module 50 comprises the switch 500 equating with this socket 40 quantity, so that each socket 40 is connected with civil power 70 by a switch 500 respectively, as being connected in one first socket, a second switch, one first switch is connected in one second socket, one the 3rd switch is connected in one the 3rd socket.In other embodiments, each switch 500 also can be connected in multiple sockets 40.In present embodiment, this switch 500 is a silicon control rectifier (Silicon-Controlled Rectifier, SCR).
This power transfer module 60 is processed (as the alternating current that this civil power 70 is exported is converted to direct current) for the voltage that this civil power 70 is provided, and thinks that this controller 100 provides operating voltage.
This first communication module 104 is for communicate by letter with the second communication module 220 of these access devices 20 (shown in Fig. 5), so that this intelligence socket 10 is communicated by letter with corresponding access device 20 by cordless communication network, the wherein applicable communication of this intelligence socket 10, as Bluetooth communication, infrared communication and Wireless Fidelity communication.In present embodiment, this first communication module 104 comprises the communication interface modules such as a Bluetooth adapter 142 and a wireless network chip 144, and this second communication module 220 comprises 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 comprise at least one communication interface modules in this Bluetooth adapter 142 and this wireless network chip 144, and this access device 20 comprises corresponding at least one communication interface modules in the communication mode of this intelligence socket 10.
The Bluetooth adapter 142 of this intelligence socket 10 is for carrying out Bluetooth communication with this access device 20.Known according to Bluetooth communication principle, this Bluetooth adapter 142 can work in holotype or from pattern.In the time that this Bluetooth adapter 142 works in holotype, this Bluetooth adapter 142 can be searched bluetooth equipment around, with searching work in other bluetooth communication interface module from pattern.
The wireless network chip 144 of this intelligence socket 10 is communicated by letter for carrying out Wireless Fidelity with this access device 20.Known according to Wireless Fidelity Principle of Communication, this wireless network chip 144 can be operated in server mode or client mode.In the time that 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 access under client mode, as this access device 20 can directly access the hotspot that this intelligence socket 10 is set up.In the time that this wireless network chip 144 works in client mode, this intelligence socket 10 can be accessed by other hotspot, so that this access device 20 is controlled this intelligence socket 10 by other hotspot.
This storer 102 is stored an identity label table 120, a command mapping table 126, a device identification table 124, a command property list 128, a journal file 130 and a priority list 122.This device identification table 124 has been stored the device identification of each socket 40 correspondence, as the first socket corresponding to one first device identification, the second socket corresponding to one second device identification, the 3rd socket corresponding to one the 3rd device identification.This identify label table 120 has been stored the identify label of moving for controlling some switches 500, as one first identify label for the action, one second identify label of controlling first and second switch for controlling the action of the 3rd switch.This command mapping table 126 has been stored some for controlling the control command of action of these switches 500 that are connected in respective socket 40.This priority list 122 has been stored the priority orders of identify label selected during this access device 20 is communicated by letter with this intelligence socket 10, during with the same switch 500 of the multiple access device control of box lunch, the control signal that the access device 20 that these intelligence socket 10 execution have limit priority is exported.Attribute corresponding to each control command in this command mapping table 126 stored in this command property list 128.If one first control command is instant order, one second control command is condition order, and, in the time receiving this first control command, this first control command can be carried out immediately; In the time receiving this second control command, this second control command can be judged the corresponding condition that whether meets, and in the time that this second control command has met corresponding condition, just can be performed.In other embodiments, each condition order meeting is provided with corresponding instant order, so that this condition order is converted to corresponding instant order under special state, and then makes this condition order also can be by instant execution.This journal file 130 has recorded the state that control command is performed, as a control command is successfully executed or a control command is carried out unsuccessfully.
This controller 100 comprises one first coding unit 110, one first decoding unit 112, a network detecting unit 114, an identity authentication ' unit 116, an authority dispensing unit 118, a mode setting unit 117, an exception processing unit 115, a 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 moduless such as these first communication module 104 these Bluetooth adapter 142 and this wireless network chip 144, as arranged, this Bluetooth adapter 142 works in holotype or from pattern, this wireless network chip 144 is set and works in server mode or client mode.
In the peripheral environment at these network detecting unit 114 these intelligence socket 10 places of detecting, whether there is the access device 20 accessing by cordless communication network.In present embodiment, this mode setting unit 117 arranges Bluetooth adapter 142 in this first communication module 104 and works under holotype and this wireless network chip 144 is set and work under server mode.Afterwards, in the surrounding environment of this network detecting unit 114 by this Bluetooth adapter 142 and 144 these intelligence sockets 10 of detecting of this wireless network chip, whether there is this access device 20.As being set to work in holotype lower time when this Bluetooth adapter 142, if exist and comprise the access device 20 working in from the bluetooth communication interface module of pattern in the surrounding environment of this intelligence socket 10, this network detecting unit 114 can acquire the Bluetooth address of Bluetooth chip 223 in this access device 20, so, there is access device in 114 surroundings of judging this intelligence socket 10 of this network detecting unit, when this network detecting unit 114 comprises this access device 20 and communicates by letter with this intelligence socket 10 one, the detection signal of selected identify label exports this authentication unit 116 to.Whether other exist the mode of access device similar to the above for detecting peripheral environment, therefore do not repeat them here.In the time there is not access device in peripheral environment, whether the surrounding that this network detecting unit 114 continues this intelligence socket 10 of detecting by other focuses there is access device.
The detection signal that this authentication unit 116 is exported according to this network detecting unit 114 obtains the identify label of this access device 20, and judges in the identify label table 120 of this storer 102 whether have this identify label.When in this storer 102, exist this access device 20 to export identify label time, an authentication signal is exported to this network detecting unit 114 in this authentication unit 116; When do not exist this access device 20 to export identify label time, 116 of this authentication unit output one first abnormal signal is to this exception processing unit 115.
In the time receiving this authentication signal, 114 of this network detecting units communicate by communication mode and this access device 20 corresponding in this first communication module 104, the control signal of the steering order that comprises the action for controlling these switches 500 that this access device 20 exports as obtained.This network detecting unit 114 also transfers to this first decoding unit 112 by being received from the control signal that this access device 20 exports.112 of this first decoding units are decoded to this control signal according to this access device 20 and the communication mode of this intelligence socket 10, to obtain corresponding steering order.This first decoding unit 112 also obtains control command that should steering order according to command mapping table 126 in this storer 102, and exports this control command to this command recognition unit 113.
This command recognition unit 113 is identified this control command according to this command property list 128, to judge the attribute of this control command.When this control command being instant order, this control command is transferred to this switch control unit 119 by 113 of this command recognition unit; In the time that this control command is condition order, this command recognition unit 113 judges whether this control command meets corresponding condition, in the time that this control command meets corresponding condition, this control command is transferred to this switch control unit 119 by 113 of this command recognition unit.In present embodiment, the instruction of instant order for carrying out immediately, as a control command is started working at 10:00 for controlling a water heater, now, when these command recognition unit 113 these control commands of identification are for controlling water heater in the time that 10:00 works, this control command is transferred to immediately this switch control unit 119 by 113 of this command recognition unit.Condition order needs first to judge whether this control command meets corresponding condition, meet after corresponding condition in condition order, this control command is transferred to this switch control unit by 113 of this command recognition unit, as a control command is started working at 9:00-10:00 for controlling a water heater, now, if these command recognition unit 113 these control commands of identification are started working at 8:00 for controlling water heater, this control command does not meet corresponding condition, and 113 of this command recognition unit do not transfer to this control command this switch control unit 119; If these command recognition unit 113 these control commands of identification are started working at 9:30 for controlling water heater, this control command meets corresponding condition, this control command is transferred to this switch control unit 119 by 113 of this command recognition unit, moves accordingly so that this switch control unit 119 is controlled corresponding switch 500.
In other embodiments, this first decoding unit 112 can directly transfer to the control command acquiring this switch control unit 119, carries out this control command by this switch control unit 119.
This switch control unit 119 according to this control command control linkage in the action of the switch 500 of respective socket 40.As when needing control linkage in the time that the electric equipment of a socket 40 shuts down, 119 of this switch control units are controlled corresponding switch 500 in off-state, with the electric equipment that makes to be connected in this socket 40 because there is no the power supply action of shutting down; In the time needing control linkage in the power of the electric equipment of a socket 40, this switch control unit 119 reaches control linkage and offers in the socket 40 of this switch 500 size of the power of electric equipment by controlling the ON time of corresponding switch 500.In present embodiment, this switch control unit 119 also judges whether this control command is successfully executed, in the time that this control command is successfully executed, the record that this switch control unit 119 is successfully executed this control command writes in this journal file 130, also the result of execution is returned to this access device 20; In the time that this control command is carried out unsuccessfully, this switch control unit 119 is carried out failed record by this control command and is write in this journal file 130, and this control command is carried out to failed result returns to this access device 20.
Please also refer to Fig. 4, in present embodiment, this civil power 70 provides has periodically variable alternating current in (as sinusoidal alternating current), this switch control unit 119 is controlled the ON time of the periodically variable alternating current that this civil power 70 exports by periodicity, and then reaches the power that control linkage is exported in the socket 40 of this switch 500.As when needing to control a socket 40 while providing a low-power for electric equipment, the cycle conducting of π/3 phase place after 119 controls of this switch control unit export in the sinusoidal ac of the switch 500 that is connected in this socket 40 in every half period.In the time that need are controlled a socket 40 and are provided in one power for electric equipment, the cycle conducting of 5 π/6 phase places after 119 controls of this switch control unit export in the sinusoidal ac of the switch 500 that is connected in this socket 40 in every half period.When need are controlled a socket 40 for electric equipment provides peak power, 119 controls of this switch control unit export equal conducting of each cycle in the sinusoidal ac of the switch 500 that is connected in this socket 40 to.
In other embodiments, this first decoding unit 112 also exports this control command to this authority dispensing unit 118.
This authority dispensing unit 118 configures corresponding authority according to the identify label of having stored in the identify label table 120 of this storer 102.In the time that this authority dispensing unit 118 receives the control command that this first decoding unit 112 transmits, this authority dispensing unit 118 judges whether this control command meets the authority that identify label that this access device 20 uses has.In the time that this control command meets corresponding authority, 118 output one authority signals of this authority dispensing unit are to this command recognition unit 113, so that proper this command recognition unit 113 while receiving this authority signal according to the attribute of these command property list 128 these control commands of identification, and be described for the concrete identification maneuver in this command recognition unit 113, therefore do not repeat them here.In the time that this control command does not conform to corresponding authority, 118 output one second abnormal signals of this authority dispensing unit are to this exception processing unit 115.
In other embodiments, in the time that this control command meets corresponding authority, 118 of this authority dispensing units output authority signals are to this switch control unit 119, so that proper switch control unit 119 is carried out this control command while receiving this authority signal.
In other embodiments, this authority dispensing unit 118 also judges that whether this intelligence socket 10 communicates by letter with multiple access devices, receives multiple identify labels as judged whether.In the time there is multiple access device 20, this command recognition unit 113 judges whether to receive multiple for controlling the control command of same switch 500.In present embodiment, this command recognition unit 113 judges whether to exist the attribute of at least two control commands identical; In the time existing the attribute of at least two control commands identical, 113 of this command recognition unit judge whether to receive multiple for controlling the control command of same switch 500, if exist multiple for controlling the control command of same switch 500,113 of this command recognition unit control command that the control signal that access device the highest priority 20 is transmitted comprises transfers to this switch control unit 119, to make this switch control unit 119 carry out the highest control command that control signal was comprised that access device was transmitted of this priority.
In present embodiment, when this access device 20 is after the match is successful with this intelligence socket 10, this mode setting unit 117 can be according to the mode of operation that need to convert this Bluetooth adapter 142 of communication, as in the time being received from the control signal that this access device 20 exports, this Bluetooth adapter 142 can work in from pattern.
In the time receiving the first abnormal signal transmitting this authentication unit 116, this exception processing unit 115 points out user whether will preserve corresponding identify label (as by this access device 20, corresponding identify label shown) by corresponding access device 20, in the time that user selects to preserve corresponding identify label, 115 of this exception processing units are stored in corresponding identify label in the identify label table 120 of this storer 102; In the time that user selects to abandon storing corresponding identify label, 20 these first abnormal informations of output of this access device, as " the identity None-identified of access device ".In addition,, in the time receiving the second abnormal signal that this authority dispensing unit 118 transmits, 20 these second abnormal informations of output of this access device, as " permission match makes a mistake ".
Please also refer to Fig. 5, this access device 20 also comprises a display screen 200, processor 230 second communication modules 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 and this wireless communication chips 225 of this second communication module 220 all work in from pattern, in the time that this second communication module 220 enters the radio-frequency field that this intelligence socket 10 produces, can communicate with the first communication module of this intelligence socket 10 104.
This processor 230 comprises an instruction generation unit 233, one second coding unit 235, one second decoding unit 237 and a display driver unit 239.
This display driver unit 239 for showing an operation interface on this display screen 200.This operation interface can comprise the status information of each socket 40, the status information such as power that the voltage providing as the electric current in open state, off-mode, this socket 40, this socket 40 or this socket 40 provide.
This instruction generation unit 233 generates the steering order of the action for controlling these switches 500.
The steering order that this second coding unit 235 produces according to this instruction generation unit 233 produces corresponding control signal, and this control signal is transferred to this intelligence socket 10 by this second communication module 220, and then make by this intelligence socket 10, this control signal to be processed, with control linkage in the action of the switch 500 of respective socket 40.
The second status signal that this second decoding unit 237 transmits for receiving this intelligence socket 10, and decode to receiving the second status signal obtaining, to obtain the status information of each socket 40.This second decoding unit 237 also by the status information transmission of this correspondence the second status signal to this display driver unit 239, and then show the status information of corresponding socket 40 by the display screen 200 of this access device 20.
Please refer to Fig. 6, the preferred embodiments of the present invention's intelligence socket control method comprises the steps:
Step S2, the network detecting unit 114 in this intelligence socket 10 judges whether to exist the access device 20 of communicating by letter with this intelligence socket 10; In the time there is the access device 20 of communicating by letter with intelligent socket 10, execution step S4; In the time not there is not the access device 20 of communicating by letter with intelligent socket 10, continue to judge whether to exist the access device 20 of communicating by letter with this intelligence socket 10.
Step S4, the network detecting unit 114 in this intelligence socket 10 obtains the identify label that this access device 20 transmits, and the identify label that this network detecting unit 114 also transmits this access device 20 transfers to this authentication unit 116.
Step S5, the authentication unit 116 of this intelligence socket 10 judges whether the identify label that this access device 20 is exported mates.When the identify label of transmitting when this access device 20 is not mated, execution step S18; Transmit when this access device 20 identify label coupling time, execution step S6.In present embodiment, this authentication unit 116 judges whether the identify label that this access device 20 transmits exists in the identify label table 120 in this storer 102, when the identify label that this access device 20 transmits exists in this identify label table 120, represent that the identify label that this access device 20 transmits mates, now these authentication unit 116 these authentication signals of transmission are to this network detecting unit 114; Otherwise, when the identify label that this access device 20 transmits does not exist in this identify label table 120, represent that the identify label coupling that this access device 20 transmits is unsuccessful, now the first abnormal signal is exported to this exception processing unit 115 in this authentication unit 116.
Step S6, this network detecting unit 114 obtains the control signal that access device 20 is exported, and this switch control unit 119 is according to this action of control signal control to inductive switch 500.In present embodiment, in the time receiving the authentication signal transmitting this authentication unit 116,114 of this network detecting units obtain the control signal that access device 20 is exported.
Step S7, this access device 20 receives and shows the status information of each socket 40.
Step S18, in the time that the identify label that this access device 20 transmits does not exist in this identify label table 120,115 of this exception processing units can receive the first abnormal signal that this authentication unit 116 is exported, this exception processing unit 115 is exported information to this access device 20 by this network detecting unit 114, to point out user whether to store this new identify label; In the time selecting not store this new identify label, execution step S20; In the time selecting storage, execution step S19.
Step S19, in the time selecting to store new identify label, the exception processing unit 115 of this intelligence socket 10 is stored in corresponding identify label in the identify label table of this storer 102.
Step S29, in the time selecting not store new identify label, this exception processing unit 115 is by these access device 20 these first abnormal informations of output.
Please refer to Fig. 7, in present embodiment, this step S6 also comprises:
Step S32, this authority dispensing unit 118 also judges whether to exist multiple access device accesses, in the time existing multiple access devices 20 to access, execution step S34; In the time not there is not multiple access device access, execution step S33.
Step S33, the switch control unit 119 of this intelligence socket 10 is carried out the control signal of current access device transmission.
Step S34, the control command that the command recognition unit 113 of this intelligence socket 10 acquires according to this first decoding unit 112 judges whether to receive multiple for controlling the control command of same switch 500.It is multiple when controlling the control command of same switch 500 when existing,, execution step S36; Otherwise, multiple when controlling the control command of same switch 500 when not receiving, execution step S35.In present embodiment, it is at least two identical for controlling the attribute of control command of same switch 500 that this command recognition unit 113 judges whether to exist, when having at least two for controlling the attribute of control command of same switch 500 when identical, there are multiple control commands for same switch 500 in the judgement of 113 of this command recognition unit.
Step S35, the switch control unit 119 of this intelligence socket 10 is carried out respectively the control command of multiple access device outputs.
Step S36,113 of the command recognition unit control command that access device the highest priority 20 is transmitted of this intelligence socket 10 transfers to this switch control unit 119, to make this switch control unit 119 carry out the highest control command that access device was transmitted of this priority.
Please refer to Fig. 8, in present embodiment, step S6 also comprises:
Step S70, this authority dispensing unit 118 arranges respectively corresponding authority to each identify label in this storer 102.
Step S72, the identify label that this authority dispensing unit 118 also uses according to this access device 20 judges whether the control command acquiring from this command mapping table 126 meets the authority that this identify label has; In the time that this control command meets the corresponding authority of this identify label, carry out this step S76.In the time that this control command does not conform to the corresponding authority of this identify label, this authority dispensing unit 118 is exported the second abnormal signal to this exception processing unit 115, execution step S74.
Step S74, this exception processing unit 115 is by access device 20 these second abnormal informations of output.
Step S76, the action to inductive switch 500 according to the control command control receiving of this switch control unit 119.
Please refer to Fig. 9, in present embodiment, step S76 also comprises:
Step S90, this command recognition unit 113 receives the control command that this authority dispensing unit 118 is exported, and also judges that this control command is instant order or condition order; In the time that this control command is instant order, execution step S92; In the time that this control command is condition order, execution step S91.
Step S91, this command recognition unit 113 judges whether this control command meets corresponding condition; In the time that this control command meets corresponding condition, execution step S92; In the time that this control command does not meet corresponding condition, return to step S90.
Step S92, this control command is transferred to this switch control unit 119 by this command recognition unit 113, so that this control control module 119 is carried out this control command.
Step S94, this switch control unit 119 also judges whether this control command is successfully executed; In the time that this control command is successfully executed, execution step S96; In the time that this control command is performed unsuccessfully, execution step S98.
Step S96, this switch control unit 119 runs succeeded this control command to record and writes in this journal file 130, and performs step S99.
Step S98, this switch control unit 119 is carried out failure record by this control command and is write in this journal file 130, and performs step S99.
Step S99, this switch control unit 119 returns to this control command and runs succeeded or carry out failed result to access device 20, so that user checks execution result.
Please refer to Figure 10, in present embodiment, step S7 comprises:
Step S80, this switch control unit 119 receives the first status signal of respective socket 40 status informations that each socket 40 transmits.
Step S84, this first coding unit 110 is encoded to the first status signal acquiring according to the access style of access device 20, to obtain the second corresponding status signal.
Step S86, this second decoding unit 237 receives these second status signals, and to the processing of decoding of this second status signal.
Step S88, the status information of the respective socket 40 that this display driver unit 239 comprises by display screen 200 these second status signals of demonstration of this access device 20.
Above-mentioned intelligent socket, intelligent socket control system and method are carried out control linkage in the action of the switch 500 of respective socket 40 by the control signal that is received from this access device 20 and transmits, so also convenient action such as shutdown action or power adjustments that realizes the electric equipment that is connected in this socket 40 in the time that electric equipment does not have distant control function.