CN103728959B - Intelligent socket control method and intelligent socket controller - Google Patents

Intelligent socket control method and intelligent socket controller Download PDF

Info

Publication number
CN103728959B
CN103728959B CN201410020475.7A CN201410020475A CN103728959B CN 103728959 B CN103728959 B CN 103728959B CN 201410020475 A CN201410020475 A CN 201410020475A CN 103728959 B CN103728959 B CN 103728959B
Authority
CN
China
Prior art keywords
protocol
controller
input
control data
judged
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.)
Active
Application number
CN201410020475.7A
Other languages
Chinese (zh)
Other versions
CN103728959A (en
Inventor
傅强
王湛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SUNRISE TECHNOLOGY Co Ltd
Original Assignee
SUNRISE TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUNRISE TECHNOLOGY Co Ltd filed Critical SUNRISE TECHNOLOGY Co Ltd
Priority to CN201410020475.7A priority Critical patent/CN103728959B/en
Publication of CN103728959A publication Critical patent/CN103728959A/en
Application granted granted Critical
Publication of CN103728959B publication Critical patent/CN103728959B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

An embodiment of the invention provides an intelligent socket control method and an intelligent socket controller. Control data comprising a protocol instruction which is corresponding to the input end is read to determine the type of the input end, a corresponding protocol instruction is loaded and the output is controlled, and accordingly the technical problem that a technology that a communication protocol is converted through a controller cannot go deep into ordinary users and families to be utilized is solved. The intelligent socket control method includes that the controller reads the input control data which comprises the protocol instruction which is corresponding to the input end; the controller determines the type of the input end according to the protocol instruction and a power line carrier protocol instruction is loaded to the control data and the output is controlled if the input end is the first input end; and or the controller determines the type of the input end according to the protocol instruction and a preset protocol instruction is loaded to the control data and the output is controlled if the input end is the power supply end.

Description

A kind of smart jack control method and intelligent socket controller
Technical field
The present invention relates to field of electric control, particularly relate to a kind of smart jack control method and smart jack Control device.
Background technology
Controller, refers to change main circuit or the wiring of control circuit according to predefined procedure and change in circuit The device that resistance value controls, such as microprogram control unit, it is simply that the method copying common problem program, Operating control signal is weaved into so-called " microcommand ", when machine runs, one another bar ground of controller Read these microcommands, thus produce the various operating control signals required for full machine, make corresponding component hold The operation of row defined, applies controller the technology at electronic product at present, is of a great variety, Especially the technology that communication protocol carries out changing by controller is also received much concern.
The prior art of controller conversion communication protocol needs to carry out instruction by long-range The Cloud Terrace and implants to controlling Device is controlled operation so that the process of control is the most complicated, and the threshold controlling technology is higher, thus, Causing and control and the intelligent realization that cannot run neck and neck, meanwhile, such technology cannot be goed deep into commonly using Family and family.
In order to solve above-mentioned technical problem, the technology of controller conversion communication protocol is allowed to go deep into domestic consumer And family, become the research topic that those skilled in the art fall over each other to contend.
Summary of the invention
Embodiments provide a kind of smart jack control method and intelligent socket controller, by reading Take the control data including the protocol instructions corresponding with input, it is judged that input type, and carry out Corresponding protocol instructions loads and controls output, solves controller conversion communication protocol techniques the most common User and family carry out the technical problem used.
A kind of smart jack control method provided in the embodiment of the present invention, including:
Controller reads the control data of input, and described control packet contains the association corresponding with input View instruction;
Described input type is judged by controller by described protocol instructions;
Described input type is judged by controller by described protocol instructions, if first input end, Described control data then load power-line carrier protocol instruct and control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data are loaded preset protocol instructions and controls output.
Preferably, described input type is judged by controller by described protocol instructions, if the One input, then load power-line carrier protocol to described control data and instruct and control output and specifically include:
Described input type is judged by controller by described protocol instructions, if wired input, Described control data then load power-line carrier protocol instruct and control output;
Or/and
Described input type is judged by controller by described protocol instructions, if wireless input, Described control data then load power-line carrier protocol instruct and control output.
Preferably, described input type is judged by controller by described protocol instructions, if electric Source, then load preset protocol instructions to described control data and control output and specifically include:
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load wired communication protocol instruct and control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load wireless communication protocol instruct and control output.
Preferably, described input type is judged by controller by described protocol instructions, if having Line input, then load power-line carrier protocol to described control data and instruct and control output and specifically include:
Described input type is judged by controller by described protocol instructions, if Ethernet input End, then load power-line carrier protocol and instruct and pass through power end control output described control data;
Or/and
Described input type is judged by controller by described protocol instructions, if serial ports input, Described control data then load power-line carrier protocol instruct and pass through power end control output;
Or/and
Described input type is judged by controller by described protocol instructions, if cable LAN Input, then load power-line carrier protocol and instruct and pass through power end control output described control data.
Preferably, described input type is judged by controller by described protocol instructions, if nothing Line input, then load power-line carrier protocol to described control data and instruct and control output and specifically include:
Described input type is judged by controller by described protocol instructions, if WLAN Input, then load power-line carrier protocol and instruct and pass through power end control output described control data;
Or/and
Described input type is judged by controller by described protocol instructions, if zigbee input End, then load power-line carrier protocol and instruct and pass through power end control output described control data;
Or/and
Described input type is judged by controller by described protocol instructions, if rf inputs, Described control data then load power-line carrier protocol instruct and pass through power end control output;
Or/and
Described input type is judged by controller by described protocol instructions, if infrared input, Described control data then load power-line carrier protocol instruct and pass through power end control output.
Preferably, described input type is judged by controller by described protocol instructions, if electric Source, then load wired communication protocol to described control data and instruct and control output and specifically include:
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load Ethernet protocol instruct and pass through netting twine control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load serial port protocol instruct and pass through serial ports control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load wired LAN protocol instruct and pass through netting twine control output.
Preferably, described input type is judged by controller by described protocol instructions, if electric Source, then load wired communication protocol to described control data and instruct and control output and specifically include:
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load protocol of wireless local area network instruct and pass through built-in aerial control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data are loaded zigbee protocol instructions and controls output by built-in aerial;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load radio frequency protocol instruct and pass through built-in aerial control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load infrared protocol instruct and pass through the control output of infrared end.
A kind of intelligent socket controller that the embodiment of the present invention provides, is applied in socket use, bag Include:
Read module, for reading the control data of input, described control packet contains and input phase Corresponding described protocol instructions;
Judge module, is judged described input type by described protocol instructions for controller;
Wherein, it is judged that module includes:
First loads submodule, if for first input end, then described control data is loaded electric lines of force Carrier protocol instructs and controls output;
Or/and
Second loads submodule, if for power end, then described control data is loaded preset agreement and refers to Make and control output.
Preferably, the first loading submodule specifically includes:
First power line carrier instruction module, is used for by described judge module according to described protocol instructions pair After described input type judges, if wired input, then described control data are loaded electricity Line of force carrier protocol instructs and controls output;
Wherein, described first power line carrier instruction module specifically includes: the first Ethernet protocol module or/ With first serial protocol module or/and the first cable LAN protocol module;
Or/and
Second power line carrier instruction module, is used for by described judge module according to described protocol instructions pair After described input type judges, if wireless input, then described control data are loaded electricity Line of force carrier protocol instructs and controls output;
Wherein, described second power line carrier instruction module specifically includes: the first protocol of wireless local area network mould Block is or/and a zigbee protocol module is or/and the first radio frequency protocol module is or/and the first infrared protocol module.
Preferably, the second loading submodule specifically includes:
First prepositioned instruction module, for by described judge module according to described protocol instructions to described defeated Enter after holding type to judge, if power end, then described control data are loaded wired communication protocol Instruct and control output;
Wherein, described first prepositioned instruction module specifically includes: the second Ethernet protocol module is or/and second Serial port protocol module is or/and the second cable LAN protocol module;
Or/and
Second prepositioned instruction module, for by described judge module according to described protocol instructions to described defeated Enter after holding type to judge, if power end, then described control data are loaded wireless communication protocol Instruct and control output;
Wherein, described second prepositioned instruction module specifically includes: the second protocol of wireless local area network module or/and 2nd zigbee protocol module is or/and the second radio frequency protocol module is or/and the second infrared protocol module.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
A kind of smart jack control method of embodiment of the present invention offer and intelligent socket controller, wherein, Method includes: first, and controller reads the control data of input, controls packet and contains and input phase Corresponding protocol instructions, then, input type is judged by controller by protocol instructions, if First input end, then paired domination number instructs according to loading power-line carrier protocol and controls output;Or/and control Input type is judged by device by protocol instructions, if power end, then paired domination number is pre-according to loading Put protocol instructions and control output.In the present embodiment, include the association corresponding with input by reading The control data of view instruction, it is judged that input type, and carry out corresponding protocol instructions loading and control defeated Go out, it is possible to make ordinary family user just achieve electric supply acquisition by inserting smart jack and control not With the dual-use function of the input and output of communication protocol, therefore, controller conversion communication protocols is solved further View technology gos deep into domestic consumer and family carries out the technical problem that uses, meanwhile, is greatly reduced Financial cost.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The flow process of one embodiment of a kind of smart jack control method that Fig. 1 provides for the embodiment of the present invention Schematic diagram;
The stream of another embodiment of a kind of smart jack control method that Fig. 2 provides for the embodiment of the present invention Journey schematic diagram;
The stream of another embodiment of a kind of smart jack control method that Fig. 3 provides for the embodiment of the present invention Journey schematic diagram;
The structure of one embodiment of a kind of intelligent socket controller that Fig. 4 provides for the embodiment of the present invention is shown It is intended to;
The structure of another embodiment of a kind of intelligent socket controller that Fig. 5 provides for the embodiment of the present invention Schematic diagram;
The structure of another embodiment of a kind of intelligent socket controller that Fig. 6 provides for the embodiment of the present invention Schematic diagram.
Detailed description of the invention
Embodiments provide a kind of smart jack control method and intelligent socket controller, by reading Take the control data including the protocol instructions corresponding with input, it is judged that input type, and carry out Corresponding protocol instructions loads and controls output, solves controller conversion communication protocol techniques the most common User and family carry out the technical problem used.
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below will In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that the embodiments described below are only a part of embodiment of the present invention, and not all Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creativeness The all other embodiments obtained under work premise, broadly fall into the scope of protection of the invention.
Refer to Fig. 1, an embodiment bag of a kind of smart jack control method that the embodiment of the present invention provides Include:
101, controller reads the control data of input;
In the present embodiment, when user needs the smart jack being provided with controller by use to control reading When controlling data output, it is to be understood that this control packet contains the agreement corresponding with input Instruction, this protocol instructions can be communication protocol instruction, and now, controller needs first to read input The control data of input.
It should be noted that these control data can also is that controls data parallel input no less than two, and And the protocol instructions corresponding from different inputs, this association should be included respectively no less than two control data View instruction will illustrate in subsequent embodiment, the most specifically repeat.
102, input type is judged by controller by protocol instructions, if first input end, then Perform step 103, if power end, then perform step 104;
When controller reads the control data including protocol instructions corresponding with input of input input Afterwards, need to be judged the type of this control data input pin by aforesaid protocol instructions, if this control number It is first input end according to the type of input, then performs step 103, if the type of this control data input pin For power end, then perform step 104.
It should be noted that above-mentioned first input end specific descriptions can be carried out in follow-up embodiment in detail Thin explanation, therefore, the most just repeats no more.
103, paired domination number instructs according to loading power-line carrier protocol and controls output;
In the present embodiment, when judging that the type controlling data input pin is first by aforesaid protocol instructions After input, paired domination number instructs according to loading power-line carrier protocol and controls output, it is to be appreciated that Controller by load power-line carrier protocol instruction control data output can be by with possess electric lines of force The interface output of the agreement outfan that carrier protocol instruction is corresponding, then set to outside by power line transmission Standby reception, this external equipment can be such as PC end, or interpreter, does not specifically limit herein.
It should be noted that when loading power-line carrier protocol instruction, can be the pre-of paired domination number evidence The protocol instructions first comprised is replaced.
104, paired domination number is according to loading preset protocol instructions and controlling output;
After being judged that by aforesaid protocol instructions the type of control data input pin is power end, need Aforesaid protocol instructions that bright is can be power-line carrier protocol instruction, and paired domination number is according to loading preset association View instruction also controls output, it is to be appreciated that controller is by defeated for the control data loading preset protocol instructions Going out can be to be exported by the interface of the agreement outfan corresponding with possessing preset protocol instructions to set to outside Standby, this external equipment can be such as PC end, or interpreter, does not specifically limit herein.
It should be noted that when loading preset protocol instructions, can be the most wrapping of paired domination number evidence The protocol instructions contained is replaced, and the specific descriptions of this preset protocol instructions will be entered in follow-up embodiment Row explanation, therefore, the most specifically repeats.
Should be noted that, in the present embodiment, when the input that aforesaid step 101 middle controller reads Control data, for include respectively the protocol instructions corresponding from different inputs no less than two controls After data, the most aforesaid step 102 is when judging input type by protocol instructions, also May further include and judge that the type of input can be to judge that first input end and power end are deposited simultaneously , perform step 103 and 104 the most simultaneously.
A kind of smart jack control method of embodiment of the present invention offer and intelligent socket controller, wherein, Method includes: controller reads the control data of input, controls packet and contains corresponding with input Protocol instructions, input type is judged by controller by protocol instructions, if first input end, Then paired domination number instructs according to loading power-line carrier protocol and exports, if or/and power end, then to control Data load preset protocol instructions and export.In the present embodiment, included relative with input by reading The control data of the protocol instructions answered, it is judged that input type, and carry out corresponding protocol instructions loading also Control output, it is possible to make ordinary family user by insert smart jack just achieve electric supply obtain and Control the dual-use function of the input and output of different communication protocol, therefore, solve controller conversion further Communication protocol techniques gos deep into domestic consumer and family carries out the technical problem that uses, meanwhile, the most significantly Reduce Financial cost.
The above is to retouch in detail what the process of the smart jack control method of offer in the embodiment of the present invention was carried out Stating, will be specifically described the method judging input type below, in actual applications, input has multiple, To illustrate respectively below.
One, wired input;
Refer to Fig. 2, another embodiment of a kind of smart jack control method that the embodiment of the present invention provides Including:
201, controller reads the control data of input;
In the present embodiment, when user needs the smart jack being provided with controller by use to control reading When controlling data output, it is to be understood that this control packet contains the agreement corresponding with input Instruction, this protocol instructions can be communication protocol instruction, and now, controller needs first to read input The control data of input.
It should be noted that these control data can also is that controls data parallel input no less than two, and And the protocol instructions corresponding from different inputs, this association should be included respectively no less than two control data View instruction will illustrate in subsequent embodiment, the most specifically repeat.
202, input type is judged by controller by protocol instructions, if wired input, then Perform step 203, if power end, then perform step 204 or 205;
When controller reads the control data including protocol instructions corresponding with input of input input Afterwards, need to be judged the type of this control data input pin by aforesaid protocol instructions, if this control number It is wired input according to the type of input, then performs step 203, if the type of this control data input pin For power end, then perform step 204 or 205.
203, paired domination number instructs according to loading power-line carrier protocol and controls output;
In the present embodiment, when judging that the type controlling data input pin is wired by aforesaid protocol instructions After input, paired domination number instructs according to loading power-line carrier protocol and controls output, it is to be appreciated that Controller by load power-line carrier protocol instruction control data output can be by with possess electric lines of force The interface output of the agreement outfan that carrier protocol instruction is corresponding, such as, can be to pass through power line transmission Receiving to external equipment, this external equipment can be such as PC end, or interpreter, herein the most not Limit.
It is understood that aforesaid protocol instructions judges that the type controlling data input pin is wired input End, can be specifically to judge that the type controlling data input pin is as judging to control by Ethernet protocol instruction The type of data input pin is Ethernet input;
It is also possible that judge that the type controlling data input pin is as judging to control number by serial port protocol instruction It is serial ports input according to the type of input;
Or, judged that by cable LAN protocol instructions the type controlling data input pin is as judging control The type of data input pin processed is cable LAN input.
It should be noted that when loading power-line carrier protocol instruction, can be the pre-of paired domination number evidence The protocol instructions first comprised is replaced.
204, paired domination number instructs according to loading wired communication protocol and controls output;
After being judged that by aforesaid protocol instructions the type of control data input pin is power end, need Aforesaid protocol instructions that bright is can be power-line carrier protocol instruction, and paired domination number is according to loading cable modem Letter protocol instructions also controls output, it is to be appreciated that controller will load the control of wired communication protocol instruction Data processed output can be the interface by the agreement outfan corresponding with possessing wired communication protocol instruction Output to external equipment, this possess wired communication protocol instruct corresponding agreement outfan can be such as Netting twine port, or serial ports, specifically do not limit herein, and this external equipment can be such as PC end, Or interpreter, specifically do not limit herein.
It should be noted that when load wired communication protocol instruction time, can be paired domination number evidence in advance The protocol instructions comprised is replaced.
It is understood that the instruction of aforesaid wired communication protocol can be Ethernet protocol instruction, permissible It is serial port protocol instruction, or cable LAN protocol instructions.
205, paired domination number instructs according to loading wireless communication protocol and controls output.
After being judged that by aforesaid protocol instructions the type of control data input pin is power end, need Aforesaid protocol instructions that bright is can be power-line carrier protocol instruction, and paired domination number is according to loading channel radio Letter protocol instructions also controls output, it is to be appreciated that controller will load the control of wireless communication protocol instruction Data processed output can be the interface by the agreement outfan corresponding with possessing wireless communication protocol instruction Output to external equipment, this possess wireless communication protocol instruct corresponding agreement outfan can be such as Built-in aerial, or infrared emission end, specifically do not limit herein, and this external equipment can be such as PC End, or interpreter, specifically do not limit herein.
It should be noted that when load wireless communication protocol instruction time, can be paired domination number evidence in advance The protocol instructions comprised is replaced.
It is understood that the instruction of aforesaid wireless communication protocol can be protocol of wireless local area network instruction, Can be zigbee protocol instructions, it is also possible to be radio frequency protocol instruction, or infrared protocol instruction, should Radio frequency protocol instruction can be 433MHz protocol instructions, can be 868MHZ protocol instructions, it is also possible to It is 315MHZ protocol instructions, or 915MHZ protocol instructions.
Should be noted that, in the present embodiment, when the input that aforesaid step 201 middle controller reads Control data, for include respectively the protocol instructions corresponding from different inputs no less than two controls After data, when input type is judged by the most aforesaid step 202 by protocol instructions, also may be used Can be to judge that wired input and power end exist simultaneously to farther include to judge the type of input, Perform step 203 and 204 the most simultaneously, or perform step 203 and 205 simultaneously.
In the present embodiment, included the control data of the protocol instructions corresponding with input by reading, Judge input type, and carry out corresponding protocol instructions loading and control output, it is possible to make average family The input that user just achieves electric supply acquisition and control different communication protocol by insertion smart jack is defeated The dual-use function gone out, therefore, solves controller conversion communication protocol techniques further and gos deep into domestic consumer And family carries out the technical problem that uses, meanwhile, it is greatly reduced Financial cost, has sentenced meanwhile After disconnected input is power end, wired communication protocol can be loaded as required or wireless communication protocol leads to Cross wired mode or wireless mode controls output so that be intelligent the most perfect.
Two, wireless communications mode;
Refer to Fig. 3, another embodiment of a kind of smart jack control method that the embodiment of the present invention provides Including:
301, controller reads the control data of input;
In the present embodiment, when user needs the smart jack being provided with controller by use to control reading When controlling data output, it is to be understood that this control packet contains the agreement corresponding with input Instruction, this protocol instructions can be communication protocol instruction, and now, controller needs first to read input The control data of input.
It should be noted that these control data can also is that controls data parallel input no less than two, and And the protocol instructions corresponding from different inputs, this association should be included respectively no less than two control data View instruction will illustrate in subsequent embodiment, the most specifically repeat.
302, input type is judged by controller by protocol instructions, if wireless input, then Perform step 303, if power end, then perform step 304 or 305;
When controller reads the control data including protocol instructions corresponding with input of input input Afterwards, need to be judged the type of this control data input pin by aforesaid protocol instructions, if this control number It is wireless input according to the type of input, then performs step 303, if the type of this control data input pin For power end, then perform step 304 or 305.
303, paired domination number instructs according to loading power-line carrier protocol and controls output;
In the present embodiment, when judging that the type controlling data input pin is wireless by aforesaid protocol instructions After input, paired domination number instructs according to loading power-line carrier protocol and controls output, it is to be appreciated that Controller by load power-line carrier protocol instruction control data output can be by with possess electric lines of force The interface output of the agreement outfan that carrier protocol instruction is corresponding, such as, can be to pass through power line transmission Receiving to external equipment, this external equipment can be such as PC end, or interpreter, herein the most not Limit.
It is understood that aforesaid protocol instructions judges that the type controlling data input pin is as being wirelessly input to End, can be specifically to judge that the type controlling data input pin is as judging by protocol of wireless local area network instruction The type controlling data input pin is WLAN input;
It is also possible that judged that by zigbee protocol instructions the type controlling data input pin is as judging to control The type of data input pin is zigbee input;
It is also possible that judge that the type controlling data input pin is as judging to control number by radio frequency protocol instruction Being rf inputs according to the type of input, wherein radio frequency protocol instruction can also further include 433MHz protocol instructions, 868MHZ protocol instructions, 315MHZ protocol instructions, or 915MHZ Protocol instructions;
Or, judge that the type controlling data input pin is as judging to control data by infrared protocol instruction The type of input is infrared input.
It should be noted that when loading power-line carrier protocol instruction, can be the pre-of paired domination number evidence The protocol instructions first comprised is replaced.
304, paired domination number instructs according to loading wired communication protocol and controls output;
After being judged that by aforesaid protocol instructions the type of control data input pin is power end, need Aforesaid protocol instructions that bright is can be power-line carrier protocol instruction, and paired domination number is according to loading cable modem Letter protocol instructions also controls output, it is to be appreciated that controller will load the control of wired communication protocol instruction Data processed output can be the interface by the agreement outfan corresponding with possessing wired communication protocol instruction Output to external equipment, this possess wired communication protocol instruct corresponding agreement outfan can be such as Netting twine port, or serial ports, specifically do not limit herein, and this external equipment can be such as PC end, Or interpreter, specifically do not limit herein.
It should be noted that when load wired communication protocol instruction time, can be paired domination number evidence in advance The protocol instructions comprised is replaced.
It is understood that the instruction of aforesaid wired communication protocol can be Ethernet protocol instruction, permissible It is serial port protocol instruction, or cable LAN protocol instructions.
305, paired domination number instructs according to loading wireless communication protocol and controls output.
After being judged that by aforesaid protocol instructions the type of control data input pin is power end, need Aforesaid protocol instructions that bright is can be power-line carrier protocol instruction, and paired domination number is according to loading channel radio Letter protocol instructions also controls output, it is to be appreciated that controller will load the control of wireless communication protocol instruction Data processed output can be the interface by the agreement outfan corresponding with possessing wireless communication protocol instruction Output to external equipment, this possess wireless communication protocol instruct corresponding agreement outfan can be such as Built-in aerial, or infrared emission end, specifically do not limit herein, and this external equipment can be such as PC End, or interpreter, specifically do not limit herein.
It should be noted that when load wireless communication protocol instruction time, can be paired domination number evidence in advance The protocol instructions comprised is replaced.
It is understood that the instruction of aforesaid wireless communication protocol can be protocol of wireless local area network instruction, Can be zigbee protocol instructions, it is also possible to be radio frequency protocol instruction, or infrared protocol instruction, should Radio frequency protocol instruction can be 433MHz protocol instructions, can be 868MHZ protocol instructions, it is also possible to It is 315MHZ protocol instructions, or 915MHZ protocol instructions.
Should be noted that, in the present embodiment, when the input that aforesaid step 101 middle controller reads Control data, for include respectively the protocol instructions corresponding from different inputs no less than two controls After data, when input type is judged by the most aforesaid step 302 by protocol instructions, also may be used Can be to judge that wireless input and power end exist simultaneously to farther include to judge the type of input, Perform step 303 and 304 the most simultaneously, or perform step 303 and 305 simultaneously.
In the present embodiment, included the control data of the protocol instructions corresponding with input by reading, Judge input type, and carry out corresponding protocol instructions loading and control output, it is possible to make average family The input that user just achieves electric supply acquisition and control different communication protocol by insertion smart jack is defeated The dual-use function gone out, therefore, solves controller conversion communication protocol techniques further and gos deep into domestic consumer And family carries out the technical problem that uses, meanwhile, it is greatly reduced Financial cost, has sentenced meanwhile After disconnected input is power end, wired communication protocol can be loaded as required or wireless communication protocol leads to Cross wired mode or wireless mode controls output so that be intelligent the most perfect.
Refer to Fig. 4, an embodiment bag of a kind of intelligent socket controller that the embodiment of the present invention provides Include:
Read module 401, for reading the control data of input, controls packet and contains relative with input The protocol instructions answered;
Judge module 402, is judged input type by protocol instructions for controller;
Wherein, it is judged that module includes:
First loads submodule 4021, if for first input end, then paired domination number is according to loading electric lines of force Carrier protocol instructs and controls output;
Or/and
Second loads submodule 4022, if for power end, then paired domination number refers to according to loading preset agreement Make and control output.
Should be noted that, the intelligent socket controller that the embodiment of the present invention provides is applied in socket carry out Use.
In the present embodiment, read by read module 401 and include the protocol instructions corresponding with input Control data, it is judged that module 402 judges input type, and by the first loading submodule 4021 or / carry out corresponding protocol instructions loading with the second loading submodule 4022 and control output, it is possible to make common family Front yard user just achieves, by inserting smart jack, the input that electric supply obtains and controls different communication protocol The dual-use function of output, therefore, solves controller conversion communication protocol techniques further and the most commonly uses Family and family carry out the technical problem used, and meanwhile, have been greatly reduced Financial cost.
The above is that each module to the intelligent socket controller in the embodiment of the present invention is described in detail, Below the function loading the first power line carrier instruction module of submodule to first is carried out specifically Bright, refer to Fig. 5, another embodiment bag of a kind of intelligent socket controller that the embodiment of the present invention provides Include:
Read module 501, for reading the control data of input, controls packet and contains relative with input The protocol instructions answered;
Judge module 502, is judged input type by protocol instructions for controller;
Wherein, it is judged that module includes:
First loads submodule 5021, if for first input end, then paired domination number is according to loading electric lines of force Carrier protocol instructs and controls output;
Wherein, the first loading submodule 5021 can further include:
First power line carrier instruction module 50211, for by judge module according to protocol instructions to input After end type judges, if wired input, then paired domination number is according to loading power-line carrier protocol Instruct and control output;
First power line carrier instruction module 50211 specifically includes:
First Ethernet protocol module 11, for input type being judged by protocol instructions, if For Ethernet input, then paired domination number is instructed according to loading power-line carrier protocol and is controlled by power end Output;
First serial protocol module 12, for input type being judged by protocol instructions, if Serial ports input, then paired domination number instructs according to loading power-line carrier protocol and passes through power end control output;
First cable LAN protocol module 13, for input type being judged by protocol instructions, If cable LAN input, then paired domination number instructs according to loading power-line carrier protocol and passes through power supply End controls output.
Or/and
Second loads submodule 5022, if for power end, then paired domination number refers to according to loading preset agreement Make and control output.
Wherein, the second loading submodule 5022 can further include: the first prepositioned instruction module 50221 Or/and the second prepositioned instruction module 50222;
First prepositioned instruction module 50221, for by judge module 502 according to protocol instructions to input After type judges, if power end, then paired domination number instructs according to loading wired communication protocol and controls System output;
Wherein, the first prepositioned instruction module 50221 specifically includes: the second Ethernet protocol module 21, uses In by protocol instructions, input type being judged, if power end, then paired domination number according to load with Too fidonetFido instructs and passes through netting twine and controls output;
Second serial protocol module 22, for input type being judged by protocol instructions, if Power end, then paired domination number instructs according to loading serial port protocol and passes through serial ports control output;
Second cable LAN protocol module 23, for input type being judged by protocol instructions, If power end, then paired domination number instructs according to loading wired LAN protocol and passes through netting twine control output.
Second prepositioned instruction module 50222, for by judge module 502 according to protocol instructions to input After type judges, if power end, then paired domination number instructs according to loading wireless communication protocol and controls System output;
Wherein, the second prepositioned instruction module 50222 specifically includes: the second protocol of wireless local area network module 31, For being judged input type by protocol instructions, if power end, then paired domination number is according to loading Protocol of wireless local area network instructs and passes through built-in aerial and controls output;
2nd zigbee protocol module 32, for input type being judged by protocol instructions, if For power end, then paired domination number is according to loading zigbee protocol instructions and controlling output by built-in aerial;
Second radio frequency protocol module 33, is judged input type by protocol instructions for controller, If power end, then paired domination number instructs according to loading radio frequency protocol and passes through built-in aerial control output, needs It is noted that the instruction of this radio frequency protocol can be 433MHz protocol instructions, can be 868MHZ association View instruction, it is also possible to be 315MHZ protocol instructions, or 915MHZ protocol instructions;
Second infrared protocol module 34, for input type being judged by protocol instructions, if Power end, then paired domination number instructs according to loading infrared protocol and passes through the control output of infrared end.
Should be noted that, the intelligent socket controller that the embodiment of the present invention provides is applied in socket carry out Use.
In the present embodiment, read by read module 501 and include the protocol instructions corresponding with input Control data, it is judged that module 502 first power line carrier instruction module 50212 judges that input is for having Line input, and by the first loading submodule 5021 or/and the second loading submodule 5022 is carried out accordingly Protocol instructions load and control output, it is possible to make ordinary family user by insert smart jack just realize Electric supply obtains and controls the dual-use function of input and output of different communication protocol, therefore, further Solve controller conversion communication protocol techniques and go deep into domestic consumer and family carries out the technical problem that uses, Meanwhile, it is greatly reduced Financial cost, simultaneously, it is judged that after input is power end, permissible Load wired as desired by the first prepositioned instruction module 50221 or the second prepositioned instruction module 50222 Communication protocol or wireless communication protocol control output by wired mode or wireless mode so that intelligent enter One step is perfect.
The above is that the function to the first the first power line carrier instruction module loading submodule carries out detailed Illustrate, the second power line carrier instruction module will be described in detail below, and refer to Fig. 6, this Another embodiment of a kind of intelligent socket controller that bright embodiment provides includes:
Read module 601, for reading the control data of input, controls packet and contains relative with input The protocol instructions answered;
Judge module 602, is judged input type by protocol instructions for controller;
Wherein, it is judged that module 602 includes:
First loads submodule 6021, if for first input end, then paired domination number is according to loading electric lines of force Carrier protocol instructs and controls output;
Wherein, the first loading submodule 6021 can further include:
Second power line carrier instruction module 60212, is used for by judge module 602 according to protocol instructions pair After input type judges, if wireless input, then paired domination number is according to loading power line carrier Protocol instructions also controls output;
Wherein, the second power line carrier instruction module 60212 specifically includes: the first protocol of wireless local area network Module 41, for input type being judged by protocol instructions, if WLAN input, Then paired domination number instructs according to loading power-line carrier protocol and passes through power end control output;
Oneth zigbee protocol module 42, for input type being judged by protocol instructions, if For zigbee input, then paired domination number is instructed according to loading power-line carrier protocol and is controlled by power end Output
First radio frequency protocol module 43, is judged input type by protocol instructions for controller, If rf inputs, then paired domination number is instructed according to loading power-line carrier protocol and is controlled by power end Output, it is to be understood that this rf inputs can be 433MHz input, can be 868MHZ Input, it is also possible to be 315MHZ input, or 915MHZ input;
First infrared protocol module 44, for input type being judged by protocol instructions, if Infrared input, then paired domination number instructs according to loading power-line carrier protocol and passes through power end control output.
Or/and
Second loads submodule 6022, if for power end, then paired domination number refers to according to loading preset agreement Make and control output.
Wherein, the second loading submodule 6022 can further include: the first prepositioned instruction module 60221 Or/and the second prepositioned instruction module 60222;
First prepositioned instruction module 60221, for by judge module 602 according to protocol instructions to input After type judges, if power end, then paired domination number instructs according to loading wired communication protocol and controls System output;
Wherein, the first prepositioned instruction module 60221 specifically includes: the second Ethernet protocol module 51, uses In by protocol instructions, input type being judged, if power end, then paired domination number according to load with Too fidonetFido instructs and passes through netting twine and controls output;
Second serial protocol module 52, for input type being judged by protocol instructions, if Power end, then paired domination number instructs according to loading serial port protocol and passes through serial ports control output;
Second cable LAN protocol module 53, for input type being judged by protocol instructions, If power end, then paired domination number instructs according to loading wired LAN protocol and passes through netting twine control output.
Second prepositioned instruction module 60222, for by judge module 602 according to protocol instructions to input After type judges, if power end, then paired domination number instructs according to loading wireless communication protocol and controls System output;
Wherein, the second prepositioned instruction module 60222 specifically includes: the second protocol of wireless local area network module 61, For being judged input type by protocol instructions, if power end, then paired domination number is according to loading Protocol of wireless local area network instructs and passes through built-in aerial and controls output;
2nd zigbee protocol module 62, for input type being judged by protocol instructions, if For power end, then paired domination number is according to loading zigbee protocol instructions and controlling output by built-in aerial;
Second radio frequency protocol module 63, is judged input type by protocol instructions for controller, If power end, then paired domination number instructs according to loading radio frequency protocol and passes through built-in aerial control output, needs It is noted that the instruction of this radio frequency protocol can be 433MHz protocol instructions, can be 868MHZ association View instruction, it is also possible to be 315MHZ protocol instructions, or 915MHZ protocol instructions;
Second infrared protocol module 64, for input type being judged by protocol instructions, if Power end, then paired domination number instructs according to loading infrared protocol and passes through the control output of infrared end.
Should be noted that, the intelligent socket controller that the embodiment of the present invention provides is applied in socket carry out Use.
In the present embodiment, read by read module 601 and include the protocol instructions corresponding with input Control data, it is judged that module 602 second power line carrier instruction module 60211 judges that input is nothing Line input, and by the first loading submodule 6021 or/and the second loading submodule 6022 is carried out accordingly Protocol instructions load and control output, it is possible to make ordinary family user by insert smart jack just realize Electric supply obtains and controls the dual-use function of input and output of different communication protocol, therefore, further Solve controller conversion communication protocol techniques and go deep into domestic consumer and family carries out the technical problem that uses, Meanwhile, it is greatly reduced Financial cost, simultaneously, it is judged that after input is power end, permissible Load wired as desired by the first prepositioned instruction module 60221 or the second prepositioned instruction module 60222 Communication protocol or wireless communication protocol control output by wired mode or wireless mode so that intelligent enter One step is perfect.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and Method, can realize by another way.Such as, device embodiment described above is only shown Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another System, or some features can ignore, or do not perform.Another point, shown or discussed each other Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees The parts shown for unit can be or may not be physical location, i.e. may be located at a place, Or can also be distributed on multiple NE.Can select according to the actual needs part therein or The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a list In unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ software function list The form of unit realizes.
If described integrated unit realizes and as independent production marketing using the form of SFU software functional unit Or when using, can be stored in a computer read/write memory medium.Based on such understanding, this The part that the most in other words prior art contributed of technical scheme of invention or this technical scheme Completely or partially can embody with the form of software product, this computer software product is stored in one In storage medium, including some instructions with so that computer equipment (can be personal computer, Server, or the network equipment etc.) perform completely or partially walking of method described in each embodiment of the present invention Suddenly.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. the various media that can store program code.
The above, above example only in order to technical scheme to be described, is not intended to limit; Although being described in detail the present invention with reference to previous embodiment, those of ordinary skill in the art should Work as understanding: the technical scheme described in foregoing embodiments still can be modified by it, or to it Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution Essence depart from various embodiments of the present invention technical scheme spirit and scope.

Claims (10)

1. a smart jack control method, it is characterised in that including:
Controller reads the control data of input, and described control packet contains the association corresponding with input View instruction;
Described input type is judged by controller by described protocol instructions, if first input end, Described control data then load power-line carrier protocol instruct and control output;
Described input type is judged by controller by described protocol instructions, if power end, then Described control data are loaded preset protocol instructions and controls output.
Method the most according to claim 1, it is characterised in that controller is by described protocol instructions Described input type is judged, if first input end, then described control data is loaded electric power Line carrier protocol instructs and controls output and specifically includes:
Described input type is judged by controller by described protocol instructions, if wired input, Described control data then load power-line carrier protocol instruct and control output;
Or/and
Described input type is judged by controller by described protocol instructions, if wireless input, Described control data then load power-line carrier protocol instruct and control output.
Method the most according to claim 1, it is characterised in that controller is by described protocol instructions Described input type is judged, if power end, then described control data is loaded preset agreement Instruct and control output and specifically include:
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load wired communication protocol instruct and control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load wireless communication protocol instruct and control output.
Method the most according to claim 2, it is characterised in that controller is by described protocol instructions Described input type is judged, if wired input, then described control data is loaded electric power Line carrier protocol instructs and controls output and specifically includes:
Described input type is judged by controller by described protocol instructions, if Ethernet input End, then load power-line carrier protocol and instruct and pass through power end control output described control data;
Or/and
Described input type is judged by controller by described protocol instructions, if serial ports input, Described control data then load power-line carrier protocol instruct and pass through power end control output;
Or/and
Described input type is judged by controller by described protocol instructions, if cable LAN Input, then load power-line carrier protocol and instruct and pass through power end control output described control data.
Method the most according to claim 2, it is characterised in that controller is by described protocol instructions Described input type is judged, if wireless input, then described control data is loaded electric power Line carrier protocol instructs and controls output and specifically includes:
Described input type is judged by controller by described protocol instructions, if WLAN Input, then load power-line carrier protocol and instruct and pass through power end control output described control data;
Or/and
Described input type is judged by controller by described protocol instructions, if zigbee input End, then load power-line carrier protocol and instruct and pass through power end control output described control data;
Or/and
Described input type is judged by controller by described protocol instructions, if rf inputs, Described control data then load power-line carrier protocol instruct and pass through power end control output;
Or/and
Described input type is judged by controller by described protocol instructions, if infrared input, Described control data then load power-line carrier protocol instruct and pass through power end control output.
Method the most according to claim 3, it is characterised in that controller is by described protocol instructions Described input type is judged, if power end, then described control data is loaded wire communication Protocol instructions also controls output and specifically includes:
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load Ethernet protocol instruct and pass through netting twine control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load serial port protocol instruct and pass through serial ports control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load wired LAN protocol instruct and pass through netting twine control output.
Method the most according to claim 3, it is characterised in that controller is by described protocol instructions Described input type is judged, if power end, then described control data is added carrier radio communication Protocol instructions also controls output and specifically includes:
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load protocol of wireless local area network instruct and pass through built-in aerial control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data are loaded zigbee protocol instructions and controls output by built-in aerial;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load radio frequency protocol instruct and pass through built-in aerial control output;
Or/and
Described input type is judged by controller by described protocol instructions, if power end, then Described control data load infrared protocol instruct and pass through the control output of infrared end.
8. an intelligent socket controller, is applied in socket use, it is characterised in that including:
Read module, for reading the control data of input, described control packet contains and input phase Corresponding protocol instructions;
Judge module, is judged described input type by described protocol instructions for controller;
Wherein, it is judged that module includes:
First loads submodule, if for first input end, then described control data is loaded electric lines of force Carrier protocol instructs and controls output;
Second loads submodule, if for power end, then described control data is loaded preset agreement and refers to Make and control output.
Intelligent socket controller the most according to claim 8, it is characterised in that first loads submodule Block specifically includes:
First power line carrier instruction module, is used for by described judge module according to described protocol instructions pair After described input type judges, if wired input, then described control data are loaded electricity Line of force carrier protocol instructs and controls output;
Wherein, described first power line carrier instruction module specifically includes: the first Ethernet protocol module or/ With first serial protocol module or/and the first cable LAN protocol module;
Or/and
Second power line carrier instruction module, is used for by described judge module according to described protocol instructions pair After described input type judges, if wireless input, then described control data are loaded electricity Line of force carrier protocol instructs and controls output;
Wherein, described second power line carrier instruction module specifically includes: the first protocol of wireless local area network mould Block is or/and a zigbee protocol module is or/and the first radio frequency protocol module is or/and the first infrared protocol module.
Intelligent socket controller the most according to claim 8, it is characterised in that second adds carrier Module specifically includes:
First prepositioned instruction module, for by described judge module according to described protocol instructions to described defeated Enter after holding type to judge, if power end, then described control data are loaded wired communication protocol Instruct and control output;
Wherein, described first prepositioned instruction module specifically includes: the second Ethernet protocol module is or/and second Serial port protocol module is or/and the second cable LAN protocol module;
Or/and
Second prepositioned instruction module, for by described judge module according to described protocol instructions to described defeated Enter after holding type to judge, if power end, then described control data are loaded wireless communication protocol Instruct and control output;
Wherein, described second prepositioned instruction module specifically includes: the second protocol of wireless local area network module or/and 2nd zigbee protocol module is or/and the second radio frequency protocol module is or/and the second infrared protocol module.
CN201410020475.7A 2014-01-16 2014-01-16 Intelligent socket control method and intelligent socket controller Active CN103728959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410020475.7A CN103728959B (en) 2014-01-16 2014-01-16 Intelligent socket control method and intelligent socket controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410020475.7A CN103728959B (en) 2014-01-16 2014-01-16 Intelligent socket control method and intelligent socket controller

Publications (2)

Publication Number Publication Date
CN103728959A CN103728959A (en) 2014-04-16
CN103728959B true CN103728959B (en) 2017-01-11

Family

ID=50453074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410020475.7A Active CN103728959B (en) 2014-01-16 2014-01-16 Intelligent socket control method and intelligent socket controller

Country Status (1)

Country Link
CN (1) CN103728959B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910744A (en) * 2019-12-03 2021-06-04 北京沃东天骏信息技术有限公司 Intelligent device control method and device, storage medium and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8165471B2 (en) * 2008-04-14 2012-04-24 Cisco Technology, Inc. Form factor adapter module
CN202259964U (en) * 2011-04-07 2012-05-30 张宇 Intelligent socket
CN202495966U (en) * 2012-03-07 2012-10-17 陕西科技大学 Embedded configurable multi-protocol communication network converter
CN202632072U (en) * 2012-05-07 2012-12-26 广东明家科技股份有限公司 Intelligent control socket system
CN102780705B (en) * 2012-08-10 2015-05-27 浙江工业大学 Ethernet-(controller area network) CAN protocol converter

Also Published As

Publication number Publication date
CN103728959A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN106063076B (en) Power supply adaptor, terminal and charging system
CN106162828A (en) The method for network access of internet-of-things terminal and device
CN108390433A (en) Fast charge method, power supply adaptor and mobile terminal
CN107210615A (en) Fast charge method, mobile terminal and adapter
CN105279125A (en) Physical interface module
CN105159781A (en) Method and apparatus for adjusting network speed of application of intelligent terminal and intelligent terminal
CN202795350U (en) Management device for USB ports
CN106063073B (en) Fast charge method, power supply adaptor and mobile terminal
CN105318502A (en) Program updating system, method and device of air conditioner unit controller
CN107181252A (en) Power supply control apparatus, electric power system, load and base station
CN104617643B (en) Charging method, charging equipment, power supply unit and charging system
CN109842428A (en) A kind of WiFi chip and adaptive approach
CN103728959B (en) Intelligent socket control method and intelligent socket controller
CN107395476A (en) Control area net(CAN) network CAN chips
CN104932574B (en) The control system of air-cooled ducted air conditioner
CN108023743B (en) Port auto-negotiation method and device
CN108810881A (en) One kind matching network method, equipment and system
CN204906525U (en) Internet vidicon
CN106356907B (en) A kind of domestic power system and its operation method
CN104635902B (en) The line concentrator and its electric power management method of USB
CN103746725A (en) Design method of network switching socket and network switching socket
CN105743605A (en) Parameter module recognition method and device
CN104949291B (en) Power consumption method of adjustment, device and the air-conditioning Centralized Controller of Wifi modules
CN107358087A (en) Information storage means and device for the Bluetooth chip of Bluetooth identities authentication device
CN105763336A (en) Switching method and device for different types of network protocols of single network interface card

Legal Events

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