CN107864470A - The Internet of Things method and system of power switch - Google Patents
The Internet of Things method and system of power switch Download PDFInfo
- Publication number
- CN107864470A CN107864470A CN201711049926.XA CN201711049926A CN107864470A CN 107864470 A CN107864470 A CN 107864470A CN 201711049926 A CN201711049926 A CN 201711049926A CN 107864470 A CN107864470 A CN 107864470A
- Authority
- CN
- China
- Prior art keywords
- power switch
- input signal
- signal
- terminal device
- receiving
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a kind of Internet of Things method and system of power switch, method comprises the following steps:The input signal of scan in bus port, judge whether input signal is bluetooth signal;If input signal is Bluetooth signal, determine whether the input signal whether be with receive the input signal power switch addresses match;If input signal is to be matched with receiving the address of power switch of the input signal, power switch with send the terminal device of the input signal establish it is online;The control signal of receiving terminal apparatus performs corresponding switching information.This hair links terminal device by bluetooth signal and power switch forms intelligence system, by judging whether the control signal that terminal device is sent matches with itself, if fit through, then established with terminal device online, if matching is by the way that power switch plays bridge joint effect, and control signal is forwarded into other power switches, power switch is controlled by terminal device so as to realize, establishes intelligent domestic system.
Description
Technical field
The present invention relates to power switch technical field, the Internet of Things method and system of more particularly to a kind of power switch.
Background technology
Power switch is exactly with the conducting and cut-off that high speed is carried out by circuit controling switch pipe.At present, most wall
Power switch on wall is mostly mechanical, and it is touch also to have some, but mechanical and touch power switch is all
The simply control of one-to-one formula.The demand with intelligentized control method is, it is necessary to a construction smart home with the improvement of living standards
System, it is clear that power switch in existing does not simultaneously accomplish intelligent control.
The content of the invention
The present invention provides a kind of Internet of Things method and system of power switch, solves the problems, such as existing above-mentioned.
To solve the above problems, the embodiment of the present invention provides a kind of Internet of Things method of power switch, comprise the following steps:
The input signal of scan in bus port, judge whether input signal is bluetooth signal;
If input signal is Bluetooth signal, determine whether the input signal is with receiving the input signal
The addresses match of power switch;
If input signal is to be matched with receiving the address of the power switch of the input signal, power switch is defeated with sending this
Enter signal terminal device establish it is online;
The control signal of receiving terminal apparatus performs corresponding switching information.
As a kind of embodiment, the input signal in scan in bus port, judge whether input signal is bluetooth
It is further comprising the steps of before the step of signal:
When the power switch is arrived in power supply power supply, the buffer of the power switch is initialized.
As a kind of embodiment, the input signal in scan in bus port, judge whether input signal is bluetooth
It is further comprising the steps of before the step of signal:
Two data for being used for switching characteristic setting port in input bus are detected, according to the port data and default power supply
The switching information of number of switches workable for the switching characteristic information generation of switch characterizes the power switch, by the switching information
Feed back to terminal device.
It is further comprising the steps of as a kind of embodiment:
If input signal is to be mismatched with receiving the address of the power switch of the input signal, the input signal is broadcasted
Go out.
The embodiment of the present invention also provides a kind of things system of power switch, including:
Judging unit, the input signal of scan in bus port, judge whether input signal is bluetooth signal;
Matching unit, if input signal is Bluetooth signal, determine whether the input signal is to be somebody's turn to do with receiving
The addresses match of the power switch of input signal;
On-line unit, if input signal is to be matched with receiving the address of the power switch of the input signal, power switch
Terminal device with sending the input signal is established online;
Execution unit, the control signal of receiving terminal apparatus perform corresponding switching information.
As a kind of embodiment, in addition to initialization unit, when the power switch is arrived in power supply power supply, by the electricity
The buffer of source switch is initialized.
As a kind of embodiment, in addition to switching characteristic unit, two set for switching characteristic in detecting input bus
The data of fixed end mouth, characterizing the power switch according to the switching characteristic information generation of the port data and default power switch can make
The switching information of number of switches, the switching information is fed back into terminal device.
As a kind of embodiment, in addition to radio unit, if input signal is to be opened with receiving the power supply of the input signal
The address of pass mismatches, then is broadcasted the input signal.
The present invention is compared to the beneficial effect of prior art:Terminal device and power switch are linked by bluetooth signal
Intelligence system is formed, whether the control signal for judging terminal device transmission by power switch hardware itself matches with itself,
If fitting through, established with terminal device it is online, will control letter if matching does not play bridge joint effect by, power switch
Number other power switches are forwarded to, power switch is controlled by terminal device so as to realize, establishes intelligent domestic system.
Brief description of the drawings
Fig. 1 is the flow chart of the Internet of Things method of the power switch of the present invention;
Fig. 2 is the module connection figure of the things system of the power switch of the present invention.
Accompanying drawing marks:1st, judging unit;2nd, matching unit;3rd, on-line unit;4th, execution unit;5th, initialization unit;6、
Switching characteristic unit;7th, radio unit.
Embodiment
Below in conjunction with accompanying drawing, the technical characteristic above-mentioned and other to the present invention and advantage are clearly and completely described,
Obviously, described embodiment is only the section Example of the present invention, rather than whole embodiments.
As shown in figure 1, a kind of Internet of Things method of power switch, comprises the following steps:
S100:The input signal of scan in bus port, judge whether input signal is bluetooth signal;
S200:If input signal is Bluetooth signal, determine whether input signal is with receiving the input signal
Power switch addresses match;
S300:If input signal is to be matched with receiving the address of the power switch of the input signal, power switch and hair
Go out the input signal terminal device establish it is online;If input signal is with receiving the address of the power switch of the input signal not
The input signal, then be broadcasted by matching;
S400:The control signal of receiving terminal apparatus performs corresponding switching information.
Wherein, step S400 includes herein below:
S401:The data of tetra- ports of scan in bus P0_0~P0_3;
S402:If in P0_0~P0_3 ports, wherein the level for having any Single port has from low level to becoming high level,
Corresponding output bus P1_0~P1_3 ports are then controlled to export;
S403:If in P0_0~P0_3 ports, the level signal of neither one port is varied from, then checks whether there is indigo plant
Tooth signal inputs, if inputted without signal, into S401 steps, if signal inputs, then whether judges bluetooth signal
For the signal matched with this power switch address;
S404:If bluetooth signal does not match with power switch address, the signal is broadcasted;
S405:Signal instruction obtained by S403 steps, is the instruction needed for this power switch, or from S402 steps
Be directly entered this step, then the buffer contents checked, the instruction that the signal of touch-control or terminal device are sended over, setting
Its relative output, by the output signal of script, if high level, then it is set as low level, if low level, then sets
For high level.
In addition to above-mentioned steps, in addition to it is electric on following power switch when job step:
When power switch is arrived in power supply power supply, the buffer of power switch is initialized, and by output bus port
It is set as LOW (low level);
Two data for being used for switching characteristic setting port in input bus are detected, according to the port data and default power supply
The switching information of number of switches, switching information is fed back workable for the switching characteristic information generation of switch characterizes the power switch
To terminal device.In the present embodiment, the data of two ports of input bus P0_6 and P0_7 are detected, and thus set this switch
Characteristic, set result it is as follows:
Wherein, " 0 " represents low level signal, and " 1 " represents high level signal;When two ports of P0_6 and P0_7 are low electricity
When flat, then it represents that only one switch is used in power switch;When P0_6 ports are low level, P0_7 ports are high level
When, then it represents that there are two switches to be used in power switch;When P0_6 ports are high level, and P0_7 ports are low level,
Then represent there are three switches to be used in power switch;When two ports of P0_6 and P0_7 are high level, then it represents that
Four switches are all used in power switch.
As shown in Fig. 2 the embodiment of the present invention also provides a kind of things system of power switch, including judging unit 1, matching
Unit 2, on-line unit 3 and execution unit 4.Judging unit 1, the input signal of scan in bus port, judge input news
Number whether it is bluetooth signal;Matching unit 2, if input signal is Bluetooth signal, determine whether input signal whether be with
Receive the addresses match of the power switch of the input signal;On-line unit 3, if input signal is with receiving the input signal
Power switch address matching, then power switch with send the terminal device of the input signal establish it is online;Execution unit 4, connects
The control signal for receiving terminal device performs corresponding switching information.
In addition, it is single also to include initialization unit 5, switching characteristic unit 6 and broadcast for the things system of power switch
Member 7.Initialization unit 5, when power switch is arrived in power supply power supply, the buffer of power switch is initialized.Switching characteristic
Unit 6, two data for being used for switching characteristic setting port in input bus are detected, are opened according to the port data and default power supply
The switching information of number of switches, switching information is fed back to workable for the switching characteristic information generation of pass characterizes the power switch
Terminal device.Radio unit 7, should if input signal is to be mismatched with receiving the address of the power switch of the input signal
Input signal is broadcasted.
The present invention links terminal device by bluetooth signal and power switch forms intelligence system, by power switch in itself
Hardware judges whether the control signal that terminal device is sent matches with itself, if fitting through, establishes and joins with terminal device
Machine, if matching is by the way that power switch plays bridge joint effect, control signal is forwarded into other power switches, so as to realize
Power switch is controlled by terminal device, establishes intelligent domestic system.
Particular embodiments described above, the purpose of the present invention, technical scheme and beneficial effect are carried out further
Describe in detail, it will be appreciated that the foregoing is only the specific embodiment of the present invention, the protection being not intended to limit the present invention
Scope.Particularly point out, to those skilled in the art, within the spirit and principles of the invention, that is done any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (8)
1. a kind of Internet of Things method of power switch, it is characterised in that comprise the following steps:
The input signal of scan in bus port, judge whether input signal is bluetooth signal;
If input signal is Bluetooth signal, determine whether the input signal whether be with receive the input signal power supply
The addresses match of switch;
If input signal is to be matched with receiving the address of the power switch of the input signal, power switch is with sending input news
Number terminal device establish it is online;
The control signal of receiving terminal apparatus performs corresponding switching information.
2. the Internet of Things method of power switch according to claim 1, it is characterised in that in the defeated of scan in bus port
Enter signal, it is further comprising the steps of before judging the step of whether input signal is bluetooth signal:
When the power switch is arrived in power supply power supply, the buffer of the power switch is initialized.
3. the Internet of Things method of power switch according to claim 1, it is characterised in that in the defeated of scan in bus port
Enter signal, it is further comprising the steps of before judging the step of whether input signal is bluetooth signal:
Two data for being used for switching characteristic setting port in input bus are detected, according to the port data and default power switch
Switching characteristic information generation characterize the power switch workable for number of switches switching information, the switching information is fed back
To terminal device.
4. the Internet of Things method of power switch according to claim 1, it is characterised in that further comprising the steps of:
If input signal is to be mismatched with receiving the address of the power switch of the input signal, the input signal is broadcast out
Go.
A kind of 5. things system of power switch, it is characterised in that including:
Judging unit, the input signal of scan in bus port, judge whether input signal is bluetooth signal;
Matching unit, if input signal is Bluetooth signal, determine whether the input signal is with receiving the input
The addresses match of the power switch of signal;
On-line unit, if input signal is to be matched with receiving the address of the power switch of the input signal, power switch and hair
Go out the input signal terminal device establish it is online;
Execution unit, the control signal of receiving terminal apparatus perform corresponding switching information.
6. the things system of power switch according to claim 5, it is characterised in that also including initialization unit, work as electricity
When the power switch is arrived in source power supply, the buffer of the power switch is initialized.
7. the things system of power switch according to claim 5, it is characterised in that also including switching characteristic unit, detect
Two data for being used for switching characteristic setting port in input bus are surveyed, according to the port data and the switch of default power switch
The switching information of number of switches, terminal is fed back to by the switching information workable for characteristic information generation characterizes the power switch
Equipment.
8. the things system of power switch according to claim 5, it is characterised in that also including radio unit, if input
Signal is to be mismatched with receiving the address of the power switch of the input signal, then is broadcasted the input signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711049926.XA CN107864470A (en) | 2017-10-31 | 2017-10-31 | The Internet of Things method and system of power switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711049926.XA CN107864470A (en) | 2017-10-31 | 2017-10-31 | The Internet of Things method and system of power switch |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107864470A true CN107864470A (en) | 2018-03-30 |
Family
ID=61697041
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711049926.XA Pending CN107864470A (en) | 2017-10-31 | 2017-10-31 | The Internet of Things method and system of power switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107864470A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110690754A (en) * | 2019-09-27 | 2020-01-14 | 亓富军 | Automatic transfer switch, control device and control method for automatic transfer switch |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201207637Y (en) * | 2008-05-16 | 2009-03-11 | 比亚迪股份有限公司 | Switch control device |
EP2568470A2 (en) * | 2011-09-09 | 2013-03-13 | Verisign, Inc. | Providing audio-activated resource access for user devices |
CN104104413A (en) * | 2014-06-18 | 2014-10-15 | 杨尧任 | Communication method for multiple bluetooth devices |
CN106102184A (en) * | 2016-07-15 | 2016-11-09 | 杭州赫智电子科技有限公司 | A kind of for managing the system and method that bluetooth equipment binding connects |
-
2017
- 2017-10-31 CN CN201711049926.XA patent/CN107864470A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201207637Y (en) * | 2008-05-16 | 2009-03-11 | 比亚迪股份有限公司 | Switch control device |
EP2568470A2 (en) * | 2011-09-09 | 2013-03-13 | Verisign, Inc. | Providing audio-activated resource access for user devices |
CN104104413A (en) * | 2014-06-18 | 2014-10-15 | 杨尧任 | Communication method for multiple bluetooth devices |
CN106102184A (en) * | 2016-07-15 | 2016-11-09 | 杭州赫智电子科技有限公司 | A kind of for managing the system and method that bluetooth equipment binding connects |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110690754A (en) * | 2019-09-27 | 2020-01-14 | 亓富军 | Automatic transfer switch, control device and control method for automatic transfer switch |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106033400B (en) | Universal serial bus cable species detection device and method | |
CN203933930U (en) | Earphone interface circuit and portable electron device | |
CN107391419A (en) | Support the universal serial bus hub equipment of more main frames and automobile-used main frame | |
CN205029143U (en) | USBType -C conversion module | |
CN103853689A (en) | Device and method of automatic switchover of USB (Universal Serial Bus) and four-line serial port UART (Universal Asynchronous Receiver Transmitter) | |
CN105653461A (en) | System for converting single USB interface into plurality of UART debugging interfaces | |
CN107193697A (en) | A kind of method for realizing the nonpolarity connections of RS485 | |
US8295702B2 (en) | Optical media converter system | |
CN103384199A (en) | Power supply method, converter and Ethernet power supply system | |
CN107864470A (en) | The Internet of Things method and system of power switch | |
CN104932999A (en) | USB (universal serial bus) interface mode switching device and intelligent terminal | |
US8266348B2 (en) | System and method of communicating with portable devices | |
CN204989857U (en) | Remote control device based on pioneer robot | |
CN110445676A (en) | A kind of data monitoring system, method, apparatus and computer readable storage medium | |
CN105937129A (en) | Washing machine and communication control system thereof | |
CN201820120U (en) | Self-adapting multibus execution mechanism controller | |
CN107845199A (en) | A kind of intelligent breaker equipment of remote bill control | |
CN107942807B (en) | PH controller full automatic calibration device and its scaling method | |
CN209447019U (en) | RS485 equipment connects circuit and system | |
CN105553813A (en) | Remote network control system based on virtual local area network | |
CN208924278U (en) | Conference host | |
CN210072592U (en) | Online upgrading system of extender | |
CN209056060U (en) | A kind of sound magnetic commodity anti-theft apparatus debugging system | |
CN205210873U (en) | Extend device | |
CN207424159U (en) | A kind of special differential signal encoder broken string quick detection circuit of robot |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180330 |
|
RJ01 | Rejection of invention patent application after publication |