CN106154991A - A kind of desktop touch controller in intelligent domestic system - Google Patents

A kind of desktop touch controller in intelligent domestic system Download PDF

Info

Publication number
CN106154991A
CN106154991A CN201510149082.0A CN201510149082A CN106154991A CN 106154991 A CN106154991 A CN 106154991A CN 201510149082 A CN201510149082 A CN 201510149082A CN 106154991 A CN106154991 A CN 106154991A
Authority
CN
China
Prior art keywords
module
uid
embedded
operational order
apparatus bound
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
Application number
CN201510149082.0A
Other languages
Chinese (zh)
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.)
Ningbo Jiatianxia Intelligent System Co Ltd
Original Assignee
Ningbo Jiatianxia Intelligent System 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 Ningbo Jiatianxia Intelligent System Co Ltd filed Critical Ningbo Jiatianxia Intelligent System Co Ltd
Priority to CN201510149082.0A priority Critical patent/CN106154991A/en
Publication of CN106154991A publication Critical patent/CN106154991A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
    • G05B19/41855Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication by local area network [LAN], network structure
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses the desktop touch controller in a kind of intelligent domestic system, including: data relay module and at least one embedded module being embedded in desktop, an embedded module and an intelligent home device binding;Embedded module, for detecting touch action, determine the operational order represented by this touch action, during in operational order is the bound device operating list self preserved one, the device number of the intelligent home device of binding and self global unique identification UID are carried in this operational order, is sent to data relay module;Data relay module, is used for receiving operational order, when the UID carried is in the UID self preserved, sends this operational order to the intelligent home device represented by device number, so that this intelligent home device performs this operational order in this operational order.Desktop touch controller in the embodiment of the present invention achieves and is controlled the intelligent home device with embedded module binding in intelligent domestic system.

Description

A kind of desktop touch controller in intelligent domestic system
Technical field
The present invention relates to technical field of electric control, particularly relate to the desktop in a kind of intelligent domestic system and touch Controller.
Background technology
Along with improving constantly of living standard, Smart Home industry achieves huge development.Smart Home is With house as platform, have both intelligent building, network service, intelligent appliance, light fixture automatization, collecting system, Structure, service, manage be integrated efficient, comfortable, safely, be easy to, the living environment of environmental protection.Intelligence Household due to its conveniently, safely, efficiently, the feature such as quick and intelligent will become modern society in 21 century Can be with the new fashion of family.
Intelligent domestic system is for carrying out electrical equipment and the device of the multiple applicating categories in domestic environment Based Intelligent Control, concrete Based Intelligent Control classification has: light fixture Based Intelligent Control, security protection Based Intelligent Control, door and window intelligence Control, the control of household instrument, amusement and recreation Based Intelligent Control, home appliance Based Intelligent Control etc., this intelligence simultaneously All these control information are managed by house control system, it is achieved remotely operation and information feedback.
Summary of the invention
Embodiments provide the desktop touch controller in a kind of intelligent domestic system, right in order to realize Smart Home in intelligent domestic system is controlled.
Desktop touch controller in a kind of intelligent domestic system, described desktop touch controller includes: data Transit module and at least one embedded module being embedded in desktop, wherein, an embedded module and intelligence man Occupy an intelligent home device binding in system;
Described embedded module, is used for detecting touch action, determines the operational order represented by this touch action, This operational order be self preserve bound device operating list in one time, by self bind intelligence The device number of home equipment and global unique identification UID of self are carried and are sent to number in this operational order According to transit module;
Described data relay module, is used for receiving this operational order, and the UID carried in this operational order is During in the UID that self preserves one, this operational order is sent to the intelligent family represented by described device number Occupy equipment, so that this intelligent home device performs this operational order.
In the scheme of the embodiment of the present invention, the desktop touch controller in intelligent domestic system includes: data Transit module and at least one embedded module being embedded in desktop, wherein, an embedded module and intelligence man Occupy an intelligent home device binding in system;Embedded module detection touch action, determines this touch action Represented operational order, in this operational order is the bound device operating list self preserved Time, device number and global unique identification UID of self of the intelligent home device self bound are carried at this Being sent to data relay module in operational order, data relay module receives this operational order, orders in this operation When the UID carried in order is in the UID self preserved, set described in the transmission extremely of this operational order Standby number represented intelligent home device, so that this intelligent home device performs this operational order.As can be seen here, It is each embedded that its in intelligent domestic system is comprised by the desktop touch controller realization in the embodiment of the present invention The intelligent home device of module binding is controlled.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below The accompanying drawing used is needed to briefly introduce, it should be apparent that, the accompanying drawing in describing below is only the present invention's Some embodiments, from the point of view of those of ordinary skill in the art, in the premise not paying creative work Under, it is also possible to other accompanying drawing is obtained according to these accompanying drawings.
The structural representation of the intelligent domestic system that Fig. 1 provides for the embodiment of the present invention one;
The workflow of the remotely enabled equipment that Fig. 2 provides for the embodiment of the present invention two;
The registration new user flow process that Fig. 3 provides for the embodiment of the present invention two;
Fig. 4 adds one-level repeater for what the embodiment of the present invention two provided in newly installed intelligent domestic system Flow process;
Fig. 5 adds multilevel relay device for what the embodiment of the present invention two provided in newly installed intelligent domestic system Flow process;
The structure of the desktop touch controller in the intelligent domestic system that Fig. 6 provides for the embodiment of the present invention three is shown It is intended to;
Desktop touch control in intelligent domestic system in the actual enforcement that Fig. 7 provides for the embodiment of the present invention four The structural representation of device;
The hardware circuit diagram of the embedded module that Fig. 8 provides for the embodiment of the present invention four;
The embedded module battery supply module principle figure that Fig. 9 provides for the embodiment of the present invention four;
The principle of the 433MHz wireless sending module of the embedded module that Figure 10 provides for the embodiment of the present invention four Figure;
The signal of the 433MHz wireless sending module of the embedded module that Figure 11 provides for the embodiment of the present invention four Modulation system schematic diagram;
The principle of the 433MHz wireless receiving module of the embedded module that Figure 12 provides for the embodiment of the present invention four Figure;
Communication protocol between embedded module and data relay module that Figure 13 provides for the embodiment of the present invention four Schematic diagram;
The schematic diagram of the touch sensible module in the embedded module that Figure 14 provides for the embodiment of the present invention four;
The schematic diagram of the data control block in the embedded module that Figure 15 provides for the embodiment of the present invention four;
The hardware circuit diagram of the data relay module that Figure 16 provides for the embodiment of the present invention four;
The physical circuit figure of the power module in the data relay module that Figure 17 provides for the embodiment of the present invention four;
The tool of the duty indicating module in the data relay module that Figure 18 provides for the embodiment of the present invention four Body circuit diagram;
Embedded microcontroller in the data relay module that Figure 19 provides for the embodiment of the present invention four concrete Circuit diagram;
The physical circuit of the WIFI module in the data relay module that Figure 20 provides for the embodiment of the present invention four Figure;
The embedded module that Figure 21 provides for the embodiment of the present invention five and data relay module pairs data flow diagram;
The embedded module that Figure 22 provides for the embodiment of the present invention five and ANDROID panel computer paired data Flow graph;
Figure 23 for the embodiment of the present invention five provide by data relay module release embedded module with ANDROID panel computer and data relay module pairs data flow diagram;
Figure 24 for the embodiment of the present invention five provide by ANDROID panel computer release embedded module with ANDROID panel computer and data relay module pairs data flow diagram;
The embedded module that Figure 25 provides for the embodiment of the present invention five and the intelligent home device as controlled device Binding procedure data flow diagram;
Figure 26 receive registration request for the ANDROID panel computer that the embodiment of the present invention five provides after set Standby register interface;
The table in click ANDROID panel computer register interface that Figure 27 provides for the embodiment of the present invention five The interface ejected after the touch button of face;
The desktop touch area calibration interface that Figure 28 provides for the embodiment of the present invention five;
The region labeling that Figure 29 provides for the embodiment of the present invention five preserve after interface;
Demarcation region and desktop that Figure 30 provides for the embodiment of the present invention five touch binding interface;
The binding success interface, region that Figure 31 provides for the embodiment of the present invention five;
The control interface of the equipment that Figure 32 provides for the embodiment of the present invention five;
The embedded module that Figure 33 provides for the embodiment of the present invention five binds interface with intelligent home device;
The intelligent home device interface of the selection embedded module binding that Figure 34 provides for the embodiment of the present invention five;
The embedded module that Figure 35 provides for the embodiment of the present invention five deletes interface;
One of structural representation of device controller that Figure 36 provides for the embodiment of the present invention six;
The two of the structural representation of the device controller that Figure 37 provides for the embodiment of the present invention six;
The three of the structural representation of the device controller that Figure 38 provides for the embodiment of the present invention six;
The four of the structural representation of the device controller that Figure 39 provides for the embodiment of the present invention six;
The electrical block diagram of the first detector unit that Figure 40 provides for the embodiment of the present invention six;
The circuit diagram of the first detector unit that Figure 41 provides for the embodiment of the present invention six;
The circuit diagram of the first switch element that Figure 42 provides for the embodiment of the present invention six;
The circuit diagram of the second switch unit that Figure 43 provides for the embodiment of the present invention six;
The circuit diagram of the power subsystem that Figure 44 provides for the embodiment of the present invention six;
The electrical block diagram of the second detector unit that Figure 45 provides for the embodiment of the present invention six;
The circuit diagram of the second detector unit that Figure 46 provides for the embodiment of the present invention six;
The circuit diagram of the control unit that Figure 47 provides for the embodiment of the present invention six;
The circuit diagram of the WIFI module comprised in the control unit that Figure 48 provides for the embodiment of the present invention six;
The electrical block diagram of the simplification of the device controller that Figure 49 provides for the embodiment of the present invention six;
The device controller that Figure 50 provides for the embodiment of the present invention six work when mechanical switch directly controls Flow chart;
The device controller that Figure 51 provides for the embodiment of the present invention six workflow when miscellaneous equipment controls Figure.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to this Bright it is described in further detail, it is clear that described embodiment is only some embodiments of the present invention, Rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing Go out all other embodiments obtained under creative work premise, broadly fall into the scope of protection of the invention.
Embodiments provide the desktop touch controller in a kind of intelligent domestic system, right in order to realize Smart Home in intelligent domestic system is controlled.
Being described in detail the present invention program below by specific embodiment, certainly, the present invention is not limited to Following example.
First intelligent domestic system is described, secondly to the desktop touch controller in intelligent domestic system It is described, again to the desktop touch controller in intelligent domestic system and the intelligence in intelligent domestic system Communication process between home equipment, home control terminal, master controller etc. is described, finally to intelligence Device controller in house system is described.
Part I: intelligent domestic system.
By embodiment one and embodiment two, this intelligent domestic system is described.
Embodiment one
The embodiment of the present invention one provides a kind of intelligent domestic system, and its structural representation is as it is shown in figure 1, this is System includes: remote server 11, remote control terminal 12, home router 13, master controller 14, family Front yard controls terminal 15 and intelligent household terminal 16;
Wherein, remote server 11, remote control terminal 12 are placed in outside house, home router 13, Master controller 14, home control terminal 15 and intelligent household terminal 16 are positioned at house;
Described remote server 11, for receiving the user profile that carries from remote control terminal After IP Address requests, according to the corresponding relation of the IP address of locally stored user profile and home router, Search the IP address that the described user profile carried in described IP Address requests is corresponding, to remote control terminal 12 send the IP address response carrying the described IP address found;
Described remote control terminal 12, for sending IP Address requests to described remote server 11, and to The home router 13 pointed by IP address carried in the IP address response received sends and carries intelligence Household terminal iidentification and the control of the operation to the intelligent household terminal represented by this intelligent household terminal mark Order, and receive intelligent household terminal mark represented by intelligent household terminal return carry for institute Stating the control response of control command, described control carries the execution result letter for described operation in response Breath;
Described home router 13, for the described control command received is transmitted to master controller 14, And the control response from described master controller 14 received is sent to remote server 11;
Described master controller 14, carries out protocol conversion for the control command forwarding home router 13, And utilize short-distance wireless communication technology the control command transmission after protocol conversion to be carried to this control command Intelligent household terminal mark represented by intelligent household terminal 16;And receive from intelligent household terminal The control response of 16;
Described home control terminal 15, carries intelligent household terminal mark for sending to described home router Knowledge and the control command of the operation to the intelligent household terminal represented by this intelligent household terminal mark, Yi Jijie Receive carrying of intelligent household terminal 16 return represented by intelligent household terminal mark and control life for described The control response of order;
Described sensor 17, for sending detection by master controller, home router to remote control terminal The data arrived, and sent the data detected to home control terminal by master controller.
Above-mentioned remote control terminal and home control terminal can be remote controller, panel computer pad, mobile phone Or the equipment such as PC.
IP address in view of home router is typically acquisition automatically, is not fixing, Yi Jiwei Whether intelligent household terminal can be opened remotely enabled function is controlled, and preferably, described system is also wrapped Include:
Remotely enabled equipment 18, for obtaining user profile, and every setting duration from master controller 14 Carried the remotely enabled command packet of user profile, institute to remote server transmission by home router Stating user profile is that master controller obtains from home control terminal when initializing;
Described remote server 11, is additionally operable to receive that described home router forwards carries user profile Remotely enabled command packet, and utilize the source IP in the remotely enabled command packet of the last reception Address and user profile update the corresponding relation of user profile and the IP address of home router.
The most lossy in communication process, in order to expand intelligent domestic system in view of wirelessly or non-wirelessly signal Coverage, is controlled each intelligent household terminal in bigger residence, preferably, and described Smart Home System also includes:
Repeater 19, for receiving the control command that master controller 14 sends, will carry this control command Signal is sent to intelligent household terminal 16 after amplifying;And receive the control sound from intelligent household terminal 16 Should, and it is sent to master controller 14 after carrying the signal amplification that this control responds.
When user registers, described home control terminal 15, it is additionally operable to by described home router 13 send to described remote server 11 and to comprise the registration request packet of user profile, and receive from The registration response data packet comprising the message that succeeds in registration of remote server;
Described remote server 11, is additionally operable to receive described registration request packet, utilizes this registration request number Set up user profile and the corresponding relation of IP address according to user profile and the source IP address carried in bag and store In this locality, and send the registration response comprising the message that succeeds in registration to described home control terminal.
Described short-distance wireless communication technology can use Wireless Fidelity WiFi technology, now, described master control Device 14 processed includes: transmission control protocol TCP module, embedded microcontroller and WIFI WAP WIFI AP module;
Described tcp module, for receiving the control command of remote server transmission and by embedded micro-control Control response after device processed processes is sent to remote server;
Embedded microcontroller, for being connected to described tcp module and WIFI mould by serial line interface respectively Between block, the control response received for the control command receiving tcp module and WIFI module is carried out Process;
Described WIFI AP module, for realizing WIFI communication and the management to WIFI network.
Use WiFi technology, master controller is provided with WIFI AP module, correspondingly, in each repeater all All include WIFI website WIFI STA module including WIFI trunk module, each intelligent household terminal, respectively pass All including WIFI STA module in sensor, portion can set up WIFI LAN the most within the family.
In the scheme of the embodiment of the present invention one, connect Smart Home eventually by master controller and home router End and remote server, carried out by short-distance wireless communication technology between master controller and intelligent household terminal Communication, for remote control method face, uses and preserves user profile and home router on the remote server IP address so that remote control terminal can get the IP address of home router from server and realize Control to intelligent household terminal, each intelligent household terminal can be carried out by home control terminal by master controller Control.As can be seen here, it is relatively simple that the intelligence in the embodiment of the present invention occupies system structure, and production cost is relatively low, Operate and safeguard more convenient.Further, by adding the realization of remotely enabled equipment in systems to remotely The open and close that home intelligent terminal function is controlled and the IP address of the home router that upgrades in time, And by adding repeater in systems, meet the control to intelligent household terminal interior in a big way.
On the basis of the intelligent domestic system that inventive embodiments is a kind of, below by the scheme in embodiment two To intelligent domestic system install after remotely enabled equipment workflow, register new user's flow process, add in Continue device flow process, add the flow process of multilevel relay device, in existed system in newly-increased one-level repeater or one-level The home control terminal flow process under device that continues and in existed system under newly-increased multilevel relay device or multilevel relay device The flow process of home control terminal illustrate respectively.
Embodiment two
As in figure 2 it is shown, be the workflow of the remotely enabled equipment in the embodiment of the present invention two, including following Step:
Step 2011: remotely enabled device power;
Step 2012: remotely enabled equipment initializes and gives tacit consent to connection master controller;
Step 2013: remotely enabled equipment judges whether to preserve user profile;If it is not, then perform step 2014; The most then perform step 2017;
Step 2014: send user information request to master controller via home router;
Step 2015: judge whether to receive the user profile order carrying user profile of master controller;If No, then jump to step 2014;The most then perform step 2016;
Step 2016: send user profile response to master controller via home router;
Now, the operation of master controller side is to receive user profile response;
Step 2017: carried the remotely enabled life of user profile by the Internet to remote server transmission Order;
Step 2018: determine timer expiry, resets intervalometer and jumps to step 2017, described timing The timing length of device is for setting duration.
Performing while above-mentioned steps at remotely enabled equipment, master controller correspondingly performs following steps:
Step 2021: receive user information request;
Step 2022: judge whether to preserve user profile, the most then perform step 2023;
Step 2023: send user profile order to remotely enabled equipment;
Step 2024: receive user profile response;
Performing while above-mentioned steps at remotely enabled equipment, remote server correspondingly performs following steps:
Step 2031: receive remotely enabled order;
Step 2032: judge user name and serial number that the user profile carried in remotely enabled order includes Whether SN matches, the most then perform step 2033;If it is not, then jump to step 2031;
Step 2033: record the source IP address in remotely enabled command packet;
Step 2034: judge that (such as 1.1 times) are within least 1 times of time setting duration of intervalometer The no remotely enabled order received next time, the most then jump to step 2031;If it is not, then perform step 2035;
Step 2035: empty the IP address of record, and wait the most remotely enabled order.
Above-mentioned steps 2011 to step 2018 and the operation of master controller side and the operation of remote server side Also it is remotely enabled equipment from master controller, obtains user profile, and every setting duration by family road Carry the remotely enabled command packet of user profile, described user profile to remote server transmission by device It is that master controller obtains from home control terminal when initializing;Remote server receives described family route The remotely enabled command packet carrying user profile that device forwards, and utilize the long-range of the last reception Source IP address in enable command packet and the IP ground of user profile renewal user profile and home router A kind of specific implementation of the corresponding relation of location.Can certainly be by other implementation, here to this It is not construed as limiting.
At the intelligent domestic system that the newly installed embodiment of the present invention is a kind of, when using for the first time, need to use family Controlling terminal such as remote controller and register new user on the remote server, now, remote server receives described note Volume request data package, it is possible to use the user profile and the source IP address that carry in this registration request packet are built Found user profile and the corresponding relation of IP address and be stored in this locality, and sending to described home control terminal Comprise the registration response of the message that succeeds in registration.
As it is shown on figure 3, be the new user flow process of the registration in the embodiment of the present invention two, comprise the following steps:
Step 3011: remote controller sends the user's registration request comprising user profile to remote server;
Step 3012: remote controller judges whether to receive the message that succeeds in registration, if it is not, then jump to step 3011;The most then perform step 3013;
Step 3013: remote controller sends user profile by home router to master controller;
Hereafter, master controller execution following steps:
Step 3021: master controller obtains user profile and preserves;
Step 3022: master controller is set to each intelligent household terminal and repeater continuously by WIFI network Number of times sends user profile;
Receive user profile in order to ensure each home control terminal and repeater and determine each family simultaneously Control terminal and repeater receives user profile, in this step 3022, can N continuous time (such as 3 Secondary) send user profile to each home control terminal and repeater;
Step 3023: whether master controller judges each intelligent household terminal and the repeater user profile to retransmitting Do not return response data packet, the most then perform step 3024;
Step 3024: according to service set SSID of the WIFI AP module of user profile amendment self;
Master controller is set to each intelligent household terminal and repeater continuously by WIFI network in step 3022 Determining number of times to send after user profile, each intelligent household terminal and repeater are performed both by following step:
Step 3031: receive user profile;
Step 3032: be returned only to a respond packet to master controller for the user profile received;
Step 3033: judge that master controller does not the most retransmit user profile, the most then perform step 3034:
Step 3034: intelligent household terminal revises the WIFI STA module of self according to user profile SSID;And repeater is according to the SSID of the WIFI trunk module of user profile amendment self.
System installation process needs space, house is carried out WIFI network covering, bigger for area House only by master controller WIFI AP module it is possible that part room WIFI signal too overly soft pulse extremely Situation about not having, accordingly, it would be desirable to use the repeater with WIFI module to increase the covering of WIFI network Scope, if even also needing to two grades, three grades of relayings the most multistage in the case of one-level repeater is inadequate Device carries out the extension (occurring this situation in relatively chateau) of WIFI signal, to reach WIFI network covering The purpose in space, whole house.WIFI signal for this one-level repeater needs and the WIFI of master controller Signal carries out matching (SSID matches, mutual medium access control MAC Address pairing), two grades of relayings The WIFI signal of device needs and the WIFI signal pairing of corresponding one-level repeater, N+1 level repeater WIFI signal needs and the WIFI signal of N level repeater is matched, and illustrates separately below.
As shown in Figure 4, for adding the flow process of one-level repeater in newly installed intelligent domestic system, including Following steps:
Step 4011: master controller enters net construction pattern;
Step 4012: master controller receives wireless messages by WIFI network and asks;
Step 4013: master controller sends the nothing including SSID and MAC Address to described one-level repeater Line information;
Step 4014: master controller exits net construction pattern, and sends recovery user setup order to repeater, Instruction repeater prepares to exit net construction pattern;
Step 4015: master controller judges whether that N continuous time (such as 3 times) retransmits described recovery user Setting command and be not received for the response of repeater, the most then perform step 4016;If it is not, then jump Go to step 4014;
Step 4016: master controller recovers user setup and exits net construction pattern;
During above-mentioned steps performs, one-level repeater execution following steps:
Step 4021: broadcast radio information request;
Step 4022: receive the wireless messages comprising SSID and MAC Address;
Step 4023: receive and recover user setup order, prepares to exit net construction pattern;
Step 4024: send response to master controller and recover user setup order;
Step 4025: determine and no longer receive the recovery user setup order that master controller sends;
Step 4026: relay mould according to the WIFI comprising SSID and MAC Address configuration self received Block;
Step 4027: exit net construction pattern.
As it is shown in figure 5, be the flow process adding multilevel relay device in newly installed intelligent domestic system, including Following steps:
Step 5011:N level repeater enters net construction pattern;
Step 5012:N level repeater receives wireless messages by WIFI network and asks;
Step 5013:N level repeater sends to described N+1 level repeater and includes SSID and MAC Address Wireless messages;
Step 5014:N level repeater exits net construction pattern, and sends recovery user to N+1 level repeater Setting command, instruction N+1 level repeater prepares to exit net construction pattern;
Step 5015:N level repeater judges whether that N continuous time (such as 3 times) is retransmitted described recovery and used Family setting command and be not received for the response of repeater, the most then perform step 4016;
Step 5016:N level repeater recovers user setup and exits net construction pattern;
During above-mentioned steps performs, N+1 level repeater execution following steps:
Step 5021: broadcast radio information request;
Step 5022: receive the wireless messages comprising SSID and MAC Address from N level repeater;
Step 5023: receive the recovery user setup order from N level repeater, prepares to exit networking mould Formula;
Step 5024: send response to N level repeater and recover user setup order;
Step 5025: determine and no longer receive the recovery user setup order that N level repeater sends;
Step 5026: relay mould according to the WIFI comprising SSID and MAC Address configuration self received Block;
Step 5027: exit net construction pattern.
Above-mentioned steps is also described system and also includes: have N level repeater and the tool of WIFI trunk module There is the N+1 level repeater of WIFI trunk module, when described N is more than or equal to 2, described one-level repeater, It is additionally operable to send, to two grades of repeaters, the wireless messages comprising SSID and MAC Address;Described two grades of relayings Device, for receiving the wireless messages comprising SSID and MAC Address that described one-level repeater sends, and The WIFI trunk module of self is configured according to this SSID and MAC.Described N level repeater, for N+1 level repeater sends the wireless messages comprising SSID and MAC Address;Described N+1 level repeater, For receiving the wireless messages comprising SSID and MAC Address that described N level repeater sends, and according to This SSID and MAC configures a kind of specific implementation of the WIFI trunk module of self, naturally it is also possible to There is other implementation, repeat no more here.
It is Default Value information owing to newly purchasing terminal unit WIFI, generally with the intelligent domestic system run The SSID of WIFI network do not mate, therefore can add in existed system after needing to mate.
The home control terminal flow process under newly-increased one-level repeater or one-level repeater in existed system, with The flow process adding repeater in system is similar to, and repeats no more here.This newly-increased one-level repeater or one-level relaying Home control terminal flow process under device is the family under system increases one-level repeater and/or one-level repeater newly When controlling terminal, described master controller, it is additionally operable to send out to newly-increased one-level repeater and/or home control terminal Send the wireless messages comprising SSID and MAC Address;Newly-increased one-level repeater, is used for receiving described master The wireless messages comprising SSID and MAC Address that controller sends, and determining this SSID and MAC When address is not default value, configure the one of the scheme of the WIFI module of self according to this SSID and MAC Specific implementation, naturally it is also possible to have other implementation, repeat no more here.
The flow process of the home control terminal under newly-increased multilevel relay device or multilevel relay device in existed system, with The flow process of above-mentioned interpolation multilevel relay device is similar to, and repeats no more here, now, newly-increased many in this existed system The flow process of home control terminal under level repeater or multilevel relay device be system newly-increased two grades of repeaters and/ Or during home control terminal under two grades of repeaters, described one-level repeater, it is additionally operable in newly-increased two grades The home control terminal under device and/or two grades of repeaters that continues sends the wireless communication comprising SSID and MAC Address Breath;Two grades of newly-increased repeaters, comprise SSID and MAC for receive that described one-level repeater sends The wireless messages of address, and when determining this SSID and MAC Address not for default value, according to this SSID With the WIFI trunk module that MAC configures self;The newly-increased home control terminal under two grades of repeaters, For receiving the wireless messages comprising SSID and MAC Address that described one-level repeater sends, according to this SSID and MAC configures a kind of specific implementation of WIFI this scheme of trunk module of self, certainly Can also there is other implementation, repeat no more here.
Part II: the desktop touch controller in intelligent domestic system.By embodiment three and embodiment four It is described.
Embodiment three
The embodiment of the present invention three provides the desktop touch controller in a kind of intelligent domestic system, its structural representation As shown in Figure 6, described desktop touch controller includes figure: data relay module 61 is embedded with at least one Embedded module 62 in desktop, wherein, an embedded module and an intelligent family in intelligent domestic system Occupy apparatus bound;
Described embedded module 62, is used for detecting touch action, determines the operational order represented by this touch action, This operational order be self preserve bound device operating list in one time, by self bind intelligence The device number of home equipment and global unique identification UID of self are carried and are sent to number in this operational order According to transit module;
Described data relay module 61, is used for receiving this operational order, the UID carried in this operational order During in the UID that self preserves one, this operational order is sent to the intelligence represented by described device number Home equipment, so that this intelligent home device performs this operational order.
In such scheme, due to embedded module and an intelligent home device binding, and store by this intelligence The device number of home equipment and the bound device operating list for this intelligent home device, therefore, it can by Operational order represented by touch action sends effectively to intelligent home device, and then this intelligent home device This operational order can be performed, relative to traditional use remote controller, intelligent home device is controlled, this Invention is that the scheme of embodiment provides a kind of new control mode.
Additionally, due to the embedded module of the energy perception touch action of this desktop touch controller is embedded in desktop In so that controller and desk combine together, add the function of desk, and owing to a desktop touches Touch controller and include at least one embedded module, an embedded module and an intelligent home device binding, because of This, the desktop touch controller in the embodiment of the present invention has several embedding module, it is possible to control accordingly Several intelligent home devices, facilitate the control to Smart Home.
The above-mentioned binding by intelligent home device and embedding module can be realized by following steps:
The first step: described data relay module 61 receives apparatus bound request, from this apparatus bound is asked Obtain UID, obtain this UID be self preserve UID in one time, by this apparatus bound please Seek the embedded module sent to represented by described UID;The request of described apparatus bound carries embedded module UID, this embedded module need the device number of the intelligent home device of binding and for this intelligent home device Bound device operating list;
Second step: described embedded module 62 receives the described apparatus bound request that data relay module sends, Obtain the UID in the request of this apparatus bound, when this UID obtained is identical with the UID of self, preserve The device number of the intelligent home device carried in apparatus bound request and bound device operating list, and preserving Apparatus bound success response is sent to data relay module after success;
3rd step: data relay module 61 receives the apparatus bound success response that embedded module sends, and will This apparatus bound success response is sent to the sender of described apparatus bound request;
When said process is defined by functions of modules, namely: described data relay module 61, it is additionally operable to Reception apparatus bound is asked, and obtains UID from this apparatus bound is asked, and is that self protects at this UID obtained During in the UID deposited one, the request of this apparatus bound is sent to the embedded module represented by described UID, And receive the apparatus bound success response that embedded module sends, and this apparatus bound success response is sent to The sender of described apparatus bound request, carries the UID of embedded module, is somebody's turn to do in the request of described apparatus bound Embedded module needs the device number of intelligent home device of binding and the binding for this intelligent home device to set Standby operating list;
Described embedded module 62, is additionally operable to receive the described apparatus bound request that data relay module sends, obtains Taking the UID in the request of this apparatus bound, when this UID obtained is identical with the UID of self, preservation sets The device number of the intelligent home device carried in standby bind request and bound device operating list, and preserving into Apparatus bound success response is sent to data relay module after merit.
Additionally, in the embodiment of the present invention, it is also possible to change the intelligent home device of embedded module binding, namely Can adjust the control object of embedded module, concrete adjustment process is as follows:
Step 1: described data relay module 61 receives apparatus bound replacement request, changes from this apparatus bound Request obtains the UID needing to change the embedded module of the intelligent home device of binding, by this apparatus bound more The request of changing sends to the embedded module represented by described UID;
Step 2: described embedded module 62 receives described apparatus bound replacement request, obtains this apparatus bound more Change the UID in request, when this UID obtained is identical with the UID of self, utilize this apparatus bound more Change the device number of the intelligent home device after the replacing carried in request and for the Smart Home after this replacing The bound device operating list of equipment updates the device number of the intelligent home device preserved before and binding sets Standby operating list, and send apparatus bound replacing success response to data relay module after being updated successfully;
Step 3: described data relay module 61 receives the apparatus bound that embedded module sends and changes and successfully ring Answer, and the replacing success response of this apparatus bound is sent to the sender of described apparatus bound replacement request, institute State apparatus bound replacement request carries the UID of embedded module, this embedded module need binding replacing after Intelligent home device device number and for the bound device action column of the intelligent home device after this replacing Table.
When said process is defined by functions of modules, namely: described data relay module 61, it is additionally operable to Receive apparatus bound replacement request, from this apparatus bound replacement request, obtain the intelligent family needing to change binding Occupy the UID of the embedded module of equipment, in this apparatus bound replacement request being sent represented by extremely described UID Embedding module, and receive the apparatus bound replacing success response that embedded module sends, and by this apparatus bound more Change success response and be sent to the sender of described apparatus bound replacement request, in described apparatus bound replacement request Carry the equipment of the intelligent home device after the replacing of the UID of embedded module, the needs binding of this embedded module Number and for the bound device operating list of the intelligent home device after this replacing;
Described embedded module 62, is additionally operable to receive described apparatus bound replacement request, obtains this apparatus bound more Change the UID in request, when this UID obtained is identical with the UID of self, utilize this apparatus bound more Change the device number of the intelligent home device after the replacing carried in request and for the Smart Home after this replacing The bound device operating list of equipment updates the device number of the intelligent home device preserved before and binding sets Standby operating list, and send apparatus bound replacing success response to data relay module after being updated successfully.
Further, it is also possible to the binding relationship released between embedded module and the intelligent home device bound, tool When body is defined by module, described data relay module 61, it is additionally operable to receive apparatus bound removal request, The embedded module of the intelligent home device needing replacing binding is obtained from this apparatus bound removal request UID, sends this apparatus bound removal request to the embedded module represented by described UID, and receives interior The apparatus bound that embedding module sends deletes success response, and the deletion success response of this apparatus bound is sent to institute State the sender of apparatus bound removal request, described apparatus bound removal request carries embedded module UID;
Described embedded module 62, is additionally operable to receive described apparatus bound removal request, obtains this apparatus bound and delete Except the UID in request, when this UID obtained is identical with the UID of self, the Smart Home that will preserve The device number of equipment and bound device operating list are deleted, and send to data relay module after deleting successfully Apparatus bound deletes success response.
Concrete, described embedded module includes: touch sensible module, the first embedded microcontroller, first 433MHz communication module;
Described touch sensible module, is used for detecting touch action, determines the operation life represented by this touch action Order, and described operational order is sent to the first embedded microcontroller;
Described first embedded microcontroller, for determining whether described operational order is the binding self preserved In equipment operating list one, is determining whether described operational order is the bound device operation self preserved During in list one, the device number of the intelligent home device self bound is carried and sends out in this operational order Give a 433MHz communication module;
A described 433MHz communication module, for being sent to data relay module by this operational order.
Described data relay module includes: the 2nd 433MHz communication module, the second embedded microcontroller and Wireless Fidelity WIFI module;
Described 2nd 433MHz communication module, is used for receiving this operational order, described operational order is sent To the second embedded microcontroller;
Described second embedded microcontroller, for determining whether the UID carried in this operational order is self In the UID preserved one, the most then be sent to this operational order be sent to WIFI in this operational order Module;
Described WIFI module, is used for receiving this operational order, sends this operational order to described device number Represented intelligent home device, so that this intelligent home device performs this operational order.
It is also preferred that the left for duty and the information about power of showing embedded module, described embedded module 62, Also include the battery supply module with wireless charging access point;Described data relay module also includes: work State indicator module, comprises least one set colorful LED lamp in this duty indicating module;
Described battery supply module, for being charged by wireless charging access point, and is touch sensible Module, the first embedded microcontroller and a 433MHz communication module provide running voltage;
Described first embedded microcontroller, is additionally operable to carry first the UID of self place embedded module Control bag is sent to the second embedded microcontroller, cell voltage is detected, according to the battery of detection Voltage determines the electricity of battery, and whether battery is in charged state, whether charging completes to detect, By information about power current for battery, whether it is in charging status information and whether charging completes information by the One 433MHz communication module and the 2nd 433MHz communication module are sent to the second embedded microcontroller;
Described second embedded microcontroller, is additionally operable to receive described first and controls bag, the first control that will receive One group of unbound with duty indicating module for UID colorful LED lamp that system bag carries is bound, And receive the current information about power of battery that the first embedded microcontroller sends, whether be in charged state Whether information and charging complete information, according to the current information about power of battery received, whether are in charging Whether status information and charging complete in the duty indicating module that information pair and this UID bind Group colorful LED lamp is controlled;
Described duty indicating module, under the control of the second embedded microcontroller, by colorful The difference of LED lights state of charge and the duty of the embedded module of color instruction binding.
It is also preferred that the left in order to realize embedded module at the master controller of intelligent domestic system and intelligent household terminal In register, described embedded module, be additionally operable to after receiving log-in command, will be carried self The second control bag of UID is sent to data relay module;
Described data relay module, is additionally operable to receive described second and controls bag, is determining that described second controls bag In UID be self preserve UID in one time, will described second control wrap by Smart Home system Home router in system is sent to the master controller of intelligent domestic system, so that described master controller is according to being somebody's turn to do Described embedded module is registered in described master controller and described Smart Home by the second UID controlled in bag In home control terminal in system.
The scheme of the embodiment of the present invention three describes the work process of desktop touch controller and realize right The adjustment process of control object, in order to make it easier to understand that the scheme of the embodiment of the present invention, below by enforcement Desktop touch controller in the embodiment of the present invention is illustrated from bottom layer realization by example four further.
Embodiment four
In actual enforcement, the structure of the desktop touch controller in the embodiment of the present invention four is as it is shown in fig. 7, wrap Include the circuit board being placed in sheet material and 433M turns the circuit board of WIFI, wherein, the circuit being placed in sheet material Plate is embedded module, is made up of 433M module, stm8 single-chip microcomputer and capacitive type touch pad, 433M The circuit board turning WIFI is data relay module, and the 433M module in embedded module is above-mentioned here A 433MHz communication module, it is embedded that the stm8 single-chip microcomputer in embedded module is above-mentioned first Microcontroller, capacitive type touch pad is above-mentioned touch sensible module;Embedded module can be placed in composition table In the sheet material of son;Signal transit module is made up of 433M module, stm8 single-chip microcomputer and WIFI module, letter 433M module in number transit module is the 2nd above-mentioned 433MHz communication module, and stm8 single-chip microcomputer is i.e. For the second above-mentioned embedded microcontroller, and pass through between stm8 single-chip microcomputer and capacitive type touch pad GPIO (General Purpose Input Output, universal input/output) communicates, stm8 single-chip microcomputer And communicate also by GPIO between 433M module, also lead between stm8 single-chip microcomputer and WIFI module Cross serial ports to communicate.
Below the hardware circuit embedding module and data transit module is introduced respectively and analyzes:
As shown in Figure 8, for the hardware circuit of embedded module, including: battery supply module, 433MHz without Line receives and 433MHz wireless transmitter module, touch sensible module and data control block are (in Fig. 8 MCU, namely the first embedded microcontroller) four module;
Wherein, embedded module battery supply module principle figure can be as it is shown in figure 9, in this battery supply module Containing battery charging management, charge protection, low-power dissipation power supply output module and wireless charging access point.Fig. 9 Middle U1 chip uses CN3065, and it is a battery charging management chip, due to lithium cell charging It is that the constant current constant voltage mode of about 4.2V is charged, it is therefore necessary to the 5V that wireless charging receiving coil is exported Voltage is converted to 4.2V constant voltage.And in CN3065 chip, it also comprises is charging and is charging The indication signal become, when battery starts to charge up, CHRG pin becomes low level, when filling from output high level After electricity completes, DONE becomes low level from high level, and these signals are all that monolithic function easily reads, pole Facilitate greatly battery charging management.In figure, U2 uses DW01 chip, it have overcharge, cross put, Cross stream and short-circuit protection function.Its operating current is the least, it is adaptable to battery protection occasion, this chip characteristics As shown in table (1):
Table (1)
Quiescent current Representative value: 4.0uA
Standby current (detected after putting) Representative value: 0.2uA
Overcharge accuracy of detection (Topt=25 DEG C) ±50mV
Cross and put accuracy of detection ±100mV
Cross and put detection voltage 2.0V to 3.0V, often walks 0.005V
Overcurrent protection 0.04V to 0.32V, often walks 0.04V
Cross and put delay (VDD=2.2V is with built-in capacitance) 22mS (minima)
In Fig. 9, U3 chip uses HT7530-1, and its output voltage is 3.0V, for embedded module Data control block provides electric current;Its standby current representative value is only 2.5uA, and maximum output current is 100mA, volume is little, and peripheral circuit is simple, it is adaptable to battery powered wireless data transceiving product.Fig. 9 Middle J1 is the access point of wireless charging receiver module, and its feature is to coordinate its wireless charging sending module, Contactless electric energy transmission can be realized in certain distance.
The schematic diagram of the 433MHz wireless sending module of embedded module as shown in Figure 10, in order to realize low merit Consumption and the quick response of medium and long distance wireless data sending module, use discrete component build with The wireless communication line of 433MHz carrier wave, and based on this circuit, carry out data transmission.This part Figure 10 The agitator of middle use 433.92MHz, produces the carrier frequency needed for communication, L2 in figure, Q1, C5, C6 and C7 constitutes LC electric capacity trifocal oscillating circuit classical in simulation electronic, modulates signals into and sends out Go.Its signal modulation system is as shown in figure 11.
The transmission of wireless data is often subject to interference, and in order to reduce interference, data send and receive both sides the most about The fixed carrier wave using characteristic frequency as signal, and need the data that certain agreement ensures to be sent Through receiving, in embedded module 433MHz wireless communication module, therefore the most also can use wireless receiving function, The schematic diagram of the 433MHz wireless receiving module of embedded module as shown in figure 12,
As the U1 in Figure 12 uses the MICRF220AYQS chip of Micrel company, at this chip On the basis of, build 433MHz wireless data and receive circuit.If peripheral circuit uses proper, the highest The sensitivity of-110dB can be reached.Can well complete wireless data to receive.Steady for ensureing wireless telecommunications Fixed, we set an agreement as shown in fig. 13 that, its chain lines of Figure 13 represent embedded module actively to Data relay module sends the signal flow direction that data are;Solid line bar represents that data relay is actively sent out to embedded module Signal during data is sent to flow to.The right and left represents embedded module and two modules of data transit module respectively, A Yu B represents transmission and the reception of embedded module respectively, C Yu D represents the reception of data relay module and send out Penetrate.Actively data instance is sent to data relay module: when embedded module there occurs normally with embedded module Touch action, the information integrated is sent to C, but requires that data relay module must be returned by D by A Return data to confirm to B, represent and received the data that A sends over.If A have sent Data are gone out.But B does not receive, then A sends a secondary data from new again, within the time of regulation such as This circulation is several times, it is ensured that B receives confirmation, increases the successful probability of communication.Equally, data relay is worked as Module is actively when embedded module sends data, and the agreement of use is same.
The schematic diagram of touch sensible module is as shown in figure 14, say, that embedded module employs touch sensible Technology, replaces the purpose that traditional mechanical switch reaches identical.Touch sensible technology is by detection human finger The electric charge brought moves, and judges human finger touch action, thus realizes keypress function.Capacitive touch Touch button and need not the mechanical contact of conventional keys, the direct body contact also touched not in use by conventional metals Sheet metal and the potential safety hazard brought and application limitation.
In Figure 14, two pieces of FTC334K of U1, U2 are that the capacitance type touch key of specialty processes chip, point Yong Yu not detect the touch sensible of two sides of desktop.This chip uses up-to-date high accuracy number capacitance measurement skill Art, can accomplish anti-various interference, the impact of the anti-panel globule, adapt to various power supply and power.4 can be supported Individual touch key-press function, output uses 4 passages independently to export, band function choosing-item mouth, and user can select lock Fixed/non-locking output mode.It is suitable for the application of various electronic product.In Figure 14, K1, K2, K3, K4 are Touch dish, realizes touch action signal by these metal touch points of direct or indirect touch and exports.Often Individual chip is furnished with a reference capacitance, such as C1, C2 in Figure 14.Due to the difference of touch point material, lead The touch sensitivity causing to be embodied on identical touch pad is different, can according to actual needs, by regulation electricity The capacitance size held, can realize the regulation of touch sensitivity.
The schematic diagram of data control block as shown in figure 15, employs 8 single-chip microcomputers of low-power consumption in Figure 15 STM8L151F3, shown in its design parameter such as table (2):
Table (2)
Internal FLASH 8KB
Internal RAM 1KB
Power-down mode operating current 0.35μA
Routine work electric current 180μA/Mhz
STM8L151F3 can meet certain program function in the case of of a sufficiently low electric current.In Figure 15 J1 is that mouth is downloaded in program debugging, and J2, J3 are the data input port of touch sensible.S1, D1 are one and touch Button and a LED, debug for plant produced.In notebook data control module, single-chip microcomputer is complete Becoming of task is as follows:
A, equipment and corresponding data transit module complete pairing.
B, cell voltage is detected, in order to estimation battery electric quantity.
C, the data separate 433MHz having detected that is wirelessly sent to data relay module, and ensures relatively High communication success rate.
D, detection battery charging and charging completion signal, in order to circulate a notice of to data relay module in time.
As shown in figure 16, for the hardware circuit of data relay module, including: power module, 433MHz Wireless data transceiver module, (embedded module) duty indicating module, the second embedded microcontroller with And WIFI module (carrying out data transmit-receive) five bulks.
As shown in figure 17, in Figure 17, power supply selects straight the physical circuit figure of the power module shown in Figure 16 Jie Cong city is electrically accessed, and has done corresponding protective measure, by the unidirectional current needed for mains electricity and electronic section Mutually isolated, to guarantee late-class circuit safety.Circuit adds tri-elements of F1, F2, RV1 be intended to prevent Stop surge impact and the short-circuit protection of civil power.Alternating current is played certain filter action by electric capacity Cx, when directly When stream electricity electrostatic charge adds up too much, it is discharged into the earth by Cy electric capacity.The effect of TRANS is by 220V Alternating current be converted to the alternating current of about 12V, the alternating current of this 12V becomes about through rectifier bridge D1 The unidirectional current of 18V, recycles wide variety of LM2596 circuit, is being converted to of 18V by this voltage 3.3V unidirectional current, for late-class circuit use.
The physical circuit figure of the 433MHz wireless data transmission shown in Figure 16 can be schemed as shown in Figure 10, The physical circuit figure that 433MHz wireless data receives is as shown in figure 12.Namely with the 433MHz of embedded module Wireless communication module is identical, the most no longer describes in detail.
The physical circuit figure of the embedded module duty indicating module shown in Figure 16 can be such as Figure 18 institute Show, Figure 18 be 4 and contain red Red, green Green, the LED of tri-kinds of colors one of blue Blue, Representing and 4 embedded module bound in data relay equipment, these four equipment are with corresponding LED one by one Corresponding.Owing to embedded module has already embedded in inside desk, it is impossible to see its duty in real time, in the design In solving on the basis of data relay, add embedded module duty instruction function.Embedded module exists In the embodiment of the present invention shown in the duty such as table (3) of display:
Table (3)
Embedded module Data relay module LED indicates
Battery low-electricity quantity LED presents red flicker
Charge LED presents blue breath light mode and flashes
Charging complete LED presents blue long bright, extinguishes after stopping wireless charging
Touch data is had to send LED presents green flicker
Normality LED is extinguished
The physical circuit figure of the embedded microcontroller MCU shown in Figure 16 can be schemed as shown in figure 19 After the Data Analysis Services that in 19,433MHz wireless receiving is arrived by MCU, by serial ports, data are passed to WIFI module, to complete and higher level equipment communication.The function of tri-buttons of S2, S3, S4 is respectively: extensive Multiple Default Value, facility registration are arranged and equipment is deleted.D1 is a device state indicator lamp, although Being the element of identical type, but the status indicator lamp of its function and embedded module is different, it is for showing Various states during communication between this equipment and other equipment, it specifically indicates shown in function such as table (4):
Table (4)
LED presents red flicker WIFI network is obstructed
LED presents green flicker Equipment is not registered
LED presents green Chang Liang Equipment is already registered for
LED presents blue flicker Into/out distribution
LED presents blue Chang Liang Wait distribution
LED presents red flicker Distribution completes
The physical circuit figure of the WIFI module shown in Figure 16 can as shown in figure 20, due to its 2.4GHz High-frequency characteristic, can within the same time, the data that can transmit than other wireless communication modes want The most a lot, and the communications protocol of WIFI is the most highly developed, communication robust, in short distance, big data During the wireless telecommunications flowed, it is optimal scheme.
Part III
Desktop touch controller in intelligent domestic system and the intelligent home device in intelligent domestic system, family Front yard controls the communication process between terminal, master controller etc..
Embodiment five
Below to by above-mentioned embedded module and the pairing of data transit module, by an embedded module with ANDROID panel computer matches, by an embedded module and ANDROID panel computer or data relay Module board releases the binding procedure of pairing and embedded module and intelligent home device and illustrates:
First communication flow is illustrated: embedded module passes through 433M signal and data relay module communication, 433M signal can be changed WIFI data by data relay module, in order to and master controller foundation connection.
Every piece of embedded module must be connected with the foundation of data relay module by matching operation.Here every piece of number According at most accessing 4 pieces of embedded module below transit module.
Pairing flow process be described in detail below:
1) by an embedded module and data relay module pairs, also will embedded module be matched by UID In data relay module, comprise the following steps a1 to step a3:
Step a1: by long button (Set button) is set by data relay module, enters such as pairing mode, Colorful LED lamp corresponding for idle channel can be arranged to blue Chang Liang by data relay module.
Step a2: touch the embedded module needing pairing capacitance touch dish (actual touch be desktop, Table angle), embedded module can send a control bag with the unique ID in the whole world (hereinafter referred to as UID).
Equipment with UID controls bag as shown in table (5):
Table (5)
msgCode roomCode dvcType subdvcType dvcCode subdvcCode msgValue UID reserved
Equipment controls roomId dvcType UID
In table (5), msgCode is information code, and roomCode is house code, and roomId is room number, DvcType is device type, and subdvcType is subset type, and dvcCode is device code, subdvcCode For subset code, the msgValue value of information, reserved is for retaining.
Step a3: data relay module receives the control bag with UID, identifies UID information, by UID Preserve, set up the binding of the colorful LED blue with a1, and colorful LED is arranged to red flicker 3S, is then turned off.Automatically exit from pairing mode.
Above step a1 can be such as figure with data relay module pairs data flow diagram to the embedded module of step a3 Shown in 21.
2) by an embedded module, (ANDROID Android panel computer can with ANDROID panel computer One as home control terminal) pairing (the most how an embedded module is registered in system: be System is given embedded module distributing equipment code, subset code):
One embedded module is joined with ANDROID panel computer (also can claim ANDROID remote controller) Right, it is necessary to first to complete and the pairing of data relay module, complete and data relay module pairs in embedded module Afterwards, can be by following steps b1 to step b10:
Step b1: by ANDROID panel computer human-computer interaction interface, enters in corresponding room and sets Standby register interface.
Step b2: touch the embedded module needing pairing capacitance touch dish (actual touch be desktop, Table angle), embedded module can send a control bag with UID.
Step b3: the control bag with UID can be passed through by the data relay module matched with embedded module WIFI network sends to home router;
Step b4: the described control bag with UID is forwarded to master controller by netting twine by home router.
Step b5: master controller receives the control bag with UID, identifies UID information, by UID information It is saved in FLASH.This can be changed into an embedded module with the packet of UID by master controller Facility registration request data package is also sent to home router.Here device request data bag such as table (6) Shown in:
Table (6)
Step b6: facility registration request data package is sent to ANDROID flat board by domestic via router Computer;
Step b7:ANDROID panel computer accepts registration, generates a registration response data packet, and will This registration response data packet is sent to home router;
Step b8: this registration response data packet is sent to master controller by home router, and generation is registered Merit packet;
Step b9: the packet that succeeds in registration generated is sent to home router by master controller;
Step b10: this packet that succeeds in registration is sent to ANDROID panel computer by home router.
Above-mentioned steps b1 can as shown in figure 22 to the concrete data flow diagram of step b10,1 in Figure 22 Corresponding respectively at above-mentioned steps b1 to step b10 to 10.
3) embedded module is released pairing (i.e. with ANDROID panel computer, data relay module How from system, to delete an embedded module)
Release matching operation to grasp on ANDROID panel computer or by data relay module Making, two kinds of modes of operation can realize releasing pairing.Two kinds of flow processs releasing pairing are described below in detail.
Mode of operation one: release pairing by data relay module, comprise the following steps c1 to step c5:
Step c1: press the delete button (Delete button) in Figure 19 by long, enter and release pairing mode. The colorful LED lamp of first passage can be arranged to red flicker by data relay module.
Step c2: by short by arranging the passage that button (Set button) selects to need to release pairing, selected The colorful LED lamp of passage be arranged to red flicker.
Step c3: by short by delete button (Delete button), unbinding success, corresponding passage Colorful LED become blue normal bright 3S from redness flicker, be then turned off.Automatically exit from unbinding pattern. Data relay module can occur the deletion successful data bag of a band UID to master controller.Here deletion becomes Merit packet can be as shown in table (7):
Table (7)
Step c4: master controller receives this deletion successful data bag, deletes information corresponding in FLASH. Master controller can form a new deletion and successfully wrap according to UID and be sent to ANDROID panel computer. Here new deletion is successfully wrapped can be as shown in table (8):
Table (8)
Step c5: if ANDROID panel computer connects online, after receiving and deleting successfully, deletes this interior Embedding module.If ANDROID panel computer is online, when waiting next time and reach the standard grade connection master controller, synchronize to set Standby information (this embedded module is deleted from master controller in step c4).
Above-mentioned steps c1 can be as shown in figure 23 to the concrete data flow diagram of step c5.
Mode of operation two: release pairing by ANDROID panel computer, comprises the following steps d1 to step Rapid d5:
Step d1: by ANDROID panel computer human-computer interaction interface, enters in corresponding room and sets Standby editing interface selects the embedded module needing to release pairing, and ANDROID panel computer can send deletion please Seek packet.Here removal request packet can be as shown in table (9):
Table (9)
Step d2: master controller receives removal request, by searching this embedded module UID at FLASH Information, sends a removal request toward data relay module.Here the removal request data that master controller sends Shown in Bao Rubiao (10):
Table (10)
Step d3: data relay module receives removal request signal, according to UID, finds this UID institute table The passage that the embedded module shown is corresponding, deletes this passage, and replys one toward master controller and delete and successfully wrap. Here data relay module can be as shown in table (11) to the deletion successful data bag that master controller is replied:
Table (11)
Step d4: master controller receives to be deleted successfully after bag, deletes corresponding information in FLASH.And Send one toward ANDROID panel computer and delete successful data bag.Here master controller is to ANDROID The deletion successful data bag that panel computer is replied can be as shown in table (12):
Table (12)
Step d5:ANDROID panel computer receive delete successfully bag after, from panel computer, delete this interior Embedding module.
Above-mentioned steps d1 can be as shown in figure 24 to the concrete data flow diagram of step d5.
4) embedded module (i.e. sets embedded mould with the binding procedure of the intelligent home device as controlled device The control object flow process of block), specifically include following steps e1 to step e7:
Step e1: by ANDROID panel computer human-computer interaction interface, enter embedded in corresponding room Module binding interface.
Step e2: click on save button, ANDROID panel computer after carrying out the apparatus bound operation at interface Can send apparatus bound request, the request of this apparatus bound can be as shown in table (13):
Table (13)
Step e3: master controller receives apparatus bound request, by searching this embedded module FLASH's UID information, sends an apparatus bound request toward data relay module.One is sent to data relay module Apparatus bound request can be as shown in table (14):
Table (14)
Step e4: master data transit module receives apparatus bound request signal, according to UID, finds correspondence After passage, send apparatus bound request data package to embedded module.
Step e5: after embedded module receives apparatus bound request, preserves binding information, and often data relay Module sends an apparatus bound successful data bag.Data relay module is bound into master controller forwarding unit Merit packet, this apparatus bound successful data bag can be as shown in table (15):
Table (15)
Step e6: after master controller receives binding success bag, resolves the device code of embedded module according to UID Information, is sent in panel computer after inserting apparatus bound success, and this apparatus bound successful data bag can be as Shown in above-mentioned table (15).
It should be noted that above-mentioned table (6) is to the implication of each English word in table (15) and table (5) In identical, be not discussed here.
After step e7:ANDROID panel computer receives binding success bag, panel computer preserves this embedded The apparatus bound information of module.
Above-mentioned steps e1 can be as shown in figure 25 to the concrete data flow diagram of step e7.
In addition, it is contemplated that in use, it is desirable to have the mode of a kind of image embodies the electricity of embedded module Amount.Owing to embedded module itself is in a state closed, so some equipment outside Xu Yaoing are supported This functionality.Can use in this system at data relay module and ANDROID to embody electricity Amount.
1) in data relay module, the battery capacity indication of embedded module is represented with 4 colorful display lamps.
Information of voltage is combined in control bag or the special information about power bag of touch every time according to agreement.? When carrying out desktop control, current electricity can be combined and issue the most together by embedded module every time (433MHz signal), data relay module goes out UID and battery information in extracting data.When for a long time When not going to touch, embedded module can send an information of voltage bag automatic every day.Data relay module according to Corresponding relation in apparatus bound, will arrange the colorful LED operation mode of correspondence.The work of colorful LED Mode is as follows:
There is electricity condition: colorful LED lamp is arranged to green light 1S, be then turned off.
Low electricity condition: colorful LED lamp is arranged to red flicker.
Charged state: colorful LED lamp is arranged to red Chang Liang.
Fully charged state: colorful LED is arranged to blue Chang Liang.
2) on ANDROID panel computer, the electricity of embedded module is represented by binding position Show Color Amount instruction.
The signal of 433MHz, when receiving the electric quantity signal of 433MHz, can be converted into by data relay module WIFI signal issues home router.Home router re-sends in master controller by forwarding rule. Master controller can extract UID and battery level information according to agreement, store data in FLASH, And forwarding the data to ANDROID panel computer, panel computer goes out UID and battery in extracting data Information about power, shows corresponding electricity on interface.If touch process middle plateform off-line, then can by with Master controller synchronizing information obtains battery level information.
Below to using ANDROID panel computer remote interface to register embedded module, carry out and intelligence Home equipment binding procedure and deletion desktop touch (namely embedded module) and illustrate:
(1) ANDROID panel computer remote interface is used to register embedded module process:
Step f1: open client, enters this desktop (desktop touch controller) and touches the room at place, Click on button and enter login state;
Step f2: touch desktop, after client receives new number of the registration request that this desktop touches, such as Figure 26 Shown in, right side desktop touch button is highlighted;
Step f3: click on desktop touch button, ejects registration, cancel button, as shown in figure 27.
Step f4: click on the registration button in Figure 27, desktop touch button starts flicker, represents this equipment Enter register flow path;
Step f5: touch four points in picture region, delineation desktop touches the region on picture.By dragging Dynamic circle adjusts this quadrilateral area.Reach to be satisfied with color tetragon, the rear save button clicked in Figure 28, This regional location of table has been demarcated.By reselecting deletion or the most proven district can be changed Territory.After preservation, effect is as shown in figure 29.
Step f6: click on the desktop touch button on right hurdle, as shown in figure 30, eject binding, cancel button.
Step f7: click on binding button, the quadrilateral area that equipment and picture are drawn is mapped. Whole registration process completes, and picture region generates the label that a desktop touches as shown in figure 31, right hurdle Desktop touch button stops flicker, and the most highlighted, enters normal condition.
(2) ANDROID panel computer remote interface is used to carry out binding with intelligent home device Journey, comprises the following steps g1 to step g5:
Step g1: as shown in figure 32, clicks on control knob, enters control circle of binding intelligent home device Face.
Step g2: the desktop clicking on picture region touches on the right side of (namely embedded module) label, or click The desktop touch button on hurdle, ejects interface shown in Figure 33, and in Figure 33, the right shows the electricity that this desktop touches State, shows equipment and the state touching binding with this desktop in the list of the left side.If unbound mistake, List is the most empty.
Step g3: click on binding button, system enters binding state.If bound, the most again bind.
Step g4: user can go to control the page and the equipment wanting binding is switched to perfect condition.Then weigh Newly return to the interface that this desktop touches, as shown in figure 34, apparatus bound list occurring that, user is just All equipment and the states thereof operated.Meanwhile, user can selected by the check box on the right of list or Person removes some equipment state.
Step g5: clicking on save button, binding completes.
(3) delete desktop by ANDROID panel computer remote interface to touch, comprise the following steps H1 is to step h3:
Step h1: as shown in figure 35, clicks on the Edit button below picture region, enters editing mode;
Step h2: the desktop touch button of sidebar on the right of click, ejects deletion, editor, cancel button group;
Step h3: click on and delete button, completes desktop and touches deletion action.
Part III: the device controller in intelligent domestic system
Embodiment six
It should be noted that the device controller in the embodiment of the present invention six can be at above-mentioned intelligent domestic system Middle use, but be not limited in above-mentioned intelligent domestic system use, it is also possible in other Smart Home system System uses.
As shown in figure 36, the structural representation of device controller provided for the embodiment of the present invention six, including: Switch accesses terminal, power output terminal, live wire accesses terminal, the first detector unit 361, first switchs Unit 362, the control unit 363 comprising radio receiving transmitting module and power subsystem (not showing that in Figure 36); Wherein:
Described switch accesses terminal, for connecting the second terminal of the switch of controlled device, described controlled device Switch include the first terminal and the second terminal, the first terminal of the switch of described controlled device and civil power live wire It is connected;
Figure 36 illustrates as a example by controlled device is as bulb;
Described power output terminal, for connecting the live wire incoming end of controlled device;
Described live wire accesses terminal, is used for connecting civil power live wire;
Described first detector unit 361, its input accesses terminal with switch and is connected, its outfan and control The mechanical switch actuating signal input of unit is connected, for detecting the mechanical switch action letter of controlled device Number, the mechanical switch actuating signal detected is exported to control unit;
Described control unit 363, its controlled device switching signal outfan and the control end of the first switch element It is connected, is used for by mechanical switch signal input part slave receiver tool switch actuating signals and passes through wireless receiving and dispatching Module receives wireless switching signal to described controlled device, at the mechanical switch signal received or wireless open When OFF signal is the signal opening controlled device, single to the first switch by controlled device switching signal outfan Unit's output the first control signal;Set for closedown is controlled at the mechanical switch signal received or wireless switching signal During standby signal, export the second control by controlled device switching signal outfan to the first switch element 362 Signal;
Described first switch element 362, it controls the controlled device switching signal outfan of end and control unit Being connected, its first end accesses terminal with live wire and is connected, and its second end is connected with power output terminal, is used for leading to Cross control end and receive the first control signal or the second control signal, when receiving the first control signal, lead Logical live wire accesses the connection between terminal and power output terminal, when receiving the second control signal, disconnects Live wire accesses the connection between terminal and power output terminal;
Described power subsystem, being used for is first detector unit the 361, first switch element 362 and control unit 363 provide working power.
Above-mentioned power subsystem can be accumulator can also be that civil power is converted to above-mentioned first detector unit 361, the first switch element 362 and the device of control unit 363 running voltage.
Radio receiving transmitting module in above-mentioned control unit can be, but not limited to as WIFI module;
In the device controller shown in Figure 36, whether control controlled device by mechanical switch, or Controlling controlled device by wireless switching signal, the electric current of controlled device job demand is all from device controller Access with live wire civil power offer that terminal is connected rather than from being connected with civil power live wire of mechanical switch The first terminal civil power provide, once device controller breaks down, will be unable to use controlled device machine Controlled device is controlled by tool switch, in order to ensure when device controller breaks down, remains to use quilt Controlled device is controlled by the mechanical switch of control equipment, with the addition of second and open on the basis of above-mentioned Figure 36 Close unit 364, add the figure after second switch unit 364 as shown in figure 37;
Now, on the basis of the device controller shown in Figure 36, described control unit also includes controlled setting Standby switching function protects signal output part, and described device controller also includes: second switch unit 364;
Described control unit 363, is additionally operable to, when described device controller powers on, be switched by controlled device Function and protecting signal output part output the 3rd control signal is to second switch unit;
Described second switch unit 364, it controls the controlled device switching function guarantor of end and control unit 363 Protecting signal output part to be connected, its first end is connected with power output terminal, and its second end accesses terminal with switch It is connected, for when receiving three control signal of control unit, disconnects power output terminal and connect with switch Enter the connection between terminal;When determining Signal Fail, the power subsystem inefficacy that control unit exports, conducting Power output terminal and switch access the connection between terminal.
Here, Signal Fail or the power subsystem of control unit output lost efficacy and meaned that event occurred in device controller Barrier.
In Figure 37, it is connected, at device controller between terminal if power output terminal accesses with switch Terminal phase is accessed in normal operating conditions, the civil power being connected with mechanical switch and the live wire with device controller Civil power even is controlled device and powers, and the normal work of controlled device will be impacted by this, therefore at figure In circuit shown in 37, at device controller when powering on, control unit controlled device to be passed through switching function Protection signal output part output the 3rd control signal is to second switch unit, so that second switch unit is receiving During to three control signal of control unit, disconnect power output terminal and switch accesses the company between terminal Connect, and then the normal work to controlled device is protected, but second switch unit is determining that control unit is defeated When the Signal Fail that goes out, power subsystem lost efficacy, still conducting power lead-out terminal and switch access between terminal Connect, in order to can allow the mechanical switch of controlled device that this controlled device is controlled.
Further, in order to enable to know that controlled device is controlled whether successfully by control unit in time, in order to Control unit carries out next step action and (such as: when controlling successfully, controls controlled device successfully to feed back Signal is sent to home control terminal by radio receiving transmitting module, when controlling unsuccessfully, controls second switch list Unit's conducting power lead-out terminal and switch access the connection between terminal, by the mechanical switch with controlled device Controlled device is powered by the civil power being connected), on the basis of Figure 37, with the addition of the second detector unit 365, the structural representation of device controller now as shown in figure 38, Tu38Zhong, described control unit 363 also include that controlled device controls successfully feedback signal input terminal, and described device controller also includes: second Detector unit 365;
Second detector unit 365, its outfan controls pass signal input phase with the controlled device of control unit Even, its input is connected with power output terminal, for accessing terminal and power output terminal conducting at live wire Time, control successfully feedback signal by outfan to control unit output controlled device;
Described control unit 363, is additionally operable to control successfully feedback signal input terminal by controlled device and receives quilt Control equipment controls successfully feedback signal, controlled device controls successfully feedback signal and is sent out by radio receiving transmitting module Send.
And, described control unit 363, it is additionally operable to have sent the first control signal or the second control signal After do not receive controlled device control successfully feedback signal time, by controlled device switching function protection signal export End output the 4th control signal is to second switch unit 364;
Described second switch unit 364, is additionally operable to, when receiving four control signal of control unit, lead Logical power output terminal and switch access the connection between terminal.
Further, civil power is converted to above-mentioned by the power subsystem employing in described device controller First detector unit the 361, first switch element 362, power subsystem and comprise the control of radio receiving transmitting module The running voltage of unit 363;Now, the structural representation of described device controller as shown in figure 39, institute State device controller also to include: zero line accesses terminal;
Described power subsystem, its first input end and described live wire access terminal and be connected, its second input and Described zero line accesses terminal and is connected, and is additionally operable to line voltage is converted to the first detector unit, the first switch list The running voltage that unit and control unit need.
Certainly, described power subsystem can also provide running voltage for second switch unit, the second detector unit.
It is also preferred that the left described first detector unit can be made up of the circuit structure shown in Figure 40, including: First commutator unit 401 and first compares subelement 402;Wherein:
First commutator unit 401, for being converted to square-wave signal by mains voltage signal;
First compares subelement 402, for being compared with the magnitude of voltage preset by square-wave signal, will compare Result exports as mechanical switch actuating signal, and when the comparative result of output is square-wave signal, expression is opened Controlled device, when the comparative result of output is square-wave signal, represents and closes controlled device.
Microprocessor control circuit reality can be used in view of comparing the control unit that subelement is connected with first Existing, and be connected with the first commutator unit is the controlled device that starts of line voltage, in order to protect control singly Unit, needs to have used the device of buffer action that the first commutator unit and first compare subelement isolation, therefore, Described first detector unit also includes:
First separaant unit 403, is used for commutator unit and compares subelement electrical isolation, will simultaneously Square-wave signal isolation and amplifier is compared subelement.
Concrete, described first commutator unit is specially full-wave bridge rectifier circuit, and described first isolation is single Unit is specially photo-coupler, and described first compares subelement is specially comparator, the first detector unit now Circuit can be as shown in figure 41.
It should be noted that what the INT1 in Figure 41 represented is mechanical switch actuating signal, LIN2 represents Accessing, from switch, the live wire that terminal accesses, N represents zero line.
Concrete, described first switch element can as shown in figure 42, including bidirectional thyristor 421 and light Bonder 422;
Described bidirectional thyristor 421, its first main electrode accesses terminal with live wire and is connected, its second main electrode Being connected with power output terminal, it controls electrode (namely G electrode) and is connected with the outfan of photo-coupler, For when receiving the first control signal, conducting live wire accesses the company between terminal and power output terminal Connect, when receiving the second control signal, disconnect live wire and access the connection between terminal and power output terminal;
Described photo-coupler 422, its first input end and live wire access terminal and be connected, its second input and Control unit is connected, for receiving the first control signal or the second control signal, and the first control that will receive Signal processed or the second control signal export to bidirectional thyristor.
Wherein, what Tu42Zhong, LIN1 represented is to access, from live wire, the live wire that terminal accesses, and N represents zero Line, OP_OUT represents the control signal that control unit exports.
Concrete, described second switch unit can as shown in figure 43, including relay 431 and relay Control circuit 432;
The controlled device switch protection signal of described control relay circuit 432, its input and control unit Outfan is connected, and its first outfan and the second outfan connect the two ends of the coil of described relay respectively, For when receiving three control signal of control unit, control the first outfan and the relay of relay Free end connect, when determining that Signal Fail that control unit export, power subsystem lost efficacy, control relay First outfan of device and the second outfan connect.
Described relay 431, its first outfan accesses terminal with switch and is connected, its second outfan and merit Rate lead-out terminal is connected, and is used for the first outfan and the second outfan under the control of control relay circuit Connect or the first outfan is connected with free end.
In Figure 43, ON/OFF is the 3rd control signal of control unit output.
Concrete, described power subsystem, its electrical block diagram can as shown in figure 44, including exchange Transformator 441, rectifier circuit 442, zero cross detection circuit the 443, first direct-current voltage reducing circuit 444 and Two direct-current voltage reducing circuits 445;
Described AC transformer 441, for being converted to the alternating voltage of the magnitude of voltage set by line voltage;
Described rectifier circuit 442, for being converted to have the straight of pulsation by the alternating voltage of setting voltage value Stream voltage;
Described zero cross detection circuit 443, is used for the zero point described in detecting with the DC voltage of pulsation, output Zero passage detection signal, this zero passage detection signal works for bidirectional thyristor;
Described first direct-current voltage reducing circuit 444, for being converted to first by the described DC voltage with pulsation Running voltage;
Described second direct-current voltage reducing circuit 445, for being converted to the second work electricity by described first running voltage Pressure.
It should be noted that the power subsystem in the embodiment of the present invention be not limited to shown in Fig. 9 concrete Circuit structure, as long as above-mentioned AC transformer 441, rectifier circuit 442 can be realized, zero passage detection electricity Road the 443, first direct-current voltage reducing circuit 444 and the second direct-current voltage reducing circuit 445 more can power subsystem, Power subsystem in Figure 44 directly converts through Industrial Frequency Transformer through 220V civil power and gets, and relatively switchs Although volume is bigger for power supply, but it is provided with the safety and stability that Switching Power Supply is incomparable, Its output ripple is less, can preferably maintain the operation of electronic system.In Figure 44, INT0 is civil power zero passage Detection signal, can dim light in conjunction with controllable silicon.
Concrete, described second detector unit 365 can be made up of the circuit structure shown in Figure 45, bag Include: the second commutator unit 451 and second compares subelement 452;Wherein:
Second commutator unit 451, exports to isolation single for mains voltage signal is converted to square-wave signal Unit;
Second compares subelement 452, for being carried out with the magnitude of voltage preset by the square-wave signal after isolation interference Relatively, as controlled device, comparative result being controlled successfully feedback signal output, the comparative result in output is During square-wave signal, represent and successfully open controlled device, when the comparative result of output is low level signal, table Show and be successfully closed controlled device.
Preferably, described second detector unit 365 also includes:
Second separaant unit 453, is used for commutator unit and compares subelement electrical isolation, will simultaneously Square-wave signal isolation and amplifier is compared subelement.
Concrete, described second commutator unit is specially full bridge rectifier, described second isolated location tool Body is photo-coupler, and described second compares subelement is specially comparator.
The physical circuit of the second detector unit here is constituted can be as shown in figure 46.
In Figure 46, INT2 represents that controlled device controls successfully feedback signal.What L_OUT represented is from power The mains voltage signal of lead-out terminal output.
Radio receiving transmitting module in described control unit 363 may utilize existing USR_WIFI232 module, Other function in addition to wireless receiving and dispatching in described control unit 363 can be selected for STM8S207C8T6 core Sheet realizes.
In actual enforcement, if described control unit uses WIFI to carry out receiver sends wireless signal, the most permissible Having WPS (Wi-Fi Protected Setup, Wi-Fi protection setting) function, this function can be used for wireless The installation of LAN and security performance configuration work, the circuit diagram in addition to WIFI module of the control unit now As shown in figure 47, the circuit diagram of the WIFI module that control unit comprises can be as shown in figure 48.
Additionally, the electrical block diagram of the simplification of device controller in the embodiment of the present invention can be such as Figure 49 Shown in circuit in middle dotted line frame.
Below each signal shown in Figure 49 is illustrated:
A, zero passage detection signal: the necessary signal of controllable silicon light modulation, only need not during switch bulb.
B, signal light control success feedback signal: this signal normality in the case of bulb is non-lit up is high level, When, after the instruction performing headlamp switch, controllable silicon outfan becomes with this signal of circuit onset of civil power zero line composition For low level.If after performing headlamp switch signal instruction, this signal, without low level output, i.e. can determine whether Ghyristor circuit has damage;If this signal has low level output, but bulb does not works and i.e. can determine whether that bulb is Damage.
C, SCR control signal: control unit output signal, it is achieved headlamp switch, dimming function.
D, mechanical switch actuating signal: this signal normality in the case of bulb is non-lit up is high level, when pressing After lower 86 box switches, this signal becomes low level, can notify that control unit needs and light bulb action (only switching, without dimming function).
E, relay control signal: this signal is used for headlamp switch function and protecting, when light control terminal electricity This signal should be set to high level after connecting by source as early as possible, and the live wire that 86 box switches come directly is disconnected, now The control of light is actually got through bulb Firewire link by controllable silicon;When control unit Signal Fail, circuit Plate powers down or receive control unit require without situations such as SCR control signals time, relay The default mode that automatic or controlled entrance inactivity requires, is now only capable of the switch with 86 boxes and carries out bulb Switch motion, but now can lose the functions such as signal feedback, long-range control.
Additionally, for the relay shown in Figure 49, this relay by default, the 3rd foot and the 5th Foot is connected;After requiring the actuating of relay, the 3rd foot of relay and the 4th foot are connected.Additionally, work as relay When device is in state after action, if now power-supply system breaks down, relay can automatically switch to acquiescence State.
First below by the work when mechanical switch directly controls of the said equipment controller shown in Figure 50 Flow process illustrates, and then utilizes the said equipment controller shown in Figure 51 at home control terminal (such as hands Machine, panel computer etc.) workflow when being controlled illustrates;
In Figure 50, wall surface switch (namely the mechanical switch in above-mentioned) the control process of light is divided into Under several stages:
First stage: after whole light units wiring completes and powers on, first thing after control unit operation Feelings require the actuating of relay exactly, and relay output end (the 3rd foot) is received the unsettled pin (of relay 4 feet), hereafter whether the opening and closing movement of wall surface switch is just energized without direct relation with bulb.Certainly list is controlled Unit requires that the signal of the actuating of relay is treated, if now control unit fails normally to work, and should Deficiency so that the actuating of relay, but is allowed relay be operated in default conditions by signal, i.e. relay output pin (the 3rd foot) is joined directly together with input pin (the 5th foot), and hereafter the opening and closing movement of wall surface switch is the most directly led Lead to bulb and process without control unit.
Second stage: the opening and closing movement of wall surface switch provides actuating signal, real 220V for control unit Power output is silicon controlled action.Illustrate the most whole control flow: after wall surface switch is pressed A point is energized, and after the process of U2, mechanical switch actuating signal can become from 0 level signal of normality 1 level signal.After this 1 level signal being detected, control unit is it is thought that signal of turning on light, immediately Bulb is made to light controlled silicon conducting by SCR control signal.When control unit sends conducting silicon controlled After order, detect that B point has 1 level signal, then it is assumed that control the most successful.
Phase III: after control unit sends conducting silicon controlled order, being not detected by B point has 1 electricity Ordinary mail number, then it is assumed that control unsuccessfully, and in product, subelement has damaged.Prolong through suitable Millisecond Shi Houruo is also not detected by 1 level signal of B, and control unit can allow relay be operated in default conditions, i.e. Relay output pin (the 3rd foot) is joined directly together with input pin (the 5th foot), allows wall surface switch directly control Bulb.
Therefore when user's folding wall surface switch when, it may appear that four kinds of situations:
Situation 1: bulb normally shows and has feedback of status on the remote equipment such as flat board, mobile phone, then it is believed that Whole equipment is working properly.
Situation 2: bulb normally show but on the remote equipment such as flat board, mobile phone stateless feedback, then it is believed that Environment division disabler.
Situation 3: bulb the most normally shows but has feedback of status on the remote equipment such as flat board, mobile phone, then can recognize Damage for bulb.
Situation 4: bulb the most normally shows and stateless feedback on the remote equipment such as flat board, mobile phone, then can recognize Damage for bulb and equipment.
The device controller provided in the embodiment of the present invention can pass through WIFI and other devices interconnect, because of This available such as electronic equipment such as flat board, mobile phone installs corresponding application program and the communication of this product.It is excellent Point is that in user's WIFI signal can cover region need not directly contact wall surface switch can set light For being controlled.
In Figure 51, by electronic equipment the control process of light is divided into following several stages:
First stage: with the wall surface switch in Figure 50 the first stage of the control of light equally belonged to and originally set The automatic metamorphosis stage of preparation controller.
Second stage: facility registration stage, if user needs to utilize electronic equipment to be controlled light, So need to use WIFI wireless communication technique, this device controller employs the WPS skill of WIFI Art, a light key can be achieved with the pairing of equipment in specific WIFI network.
Phase III: user utilizes electronic equipment to control the light stage, and user passes through application program, to light Terminal transmitting control commands.After light terminal receives control command, performed by SCR control signal This order.After this order performs, whether control unit detection B point has corresponding signal to produce to judge that control is No success.If having obtained the feedback signal turned off the light, user can see lighting of light on application program, Meanwhile it can be seen that the change of light in actual environment.If there being correct feedback on application program, but Actual environment is not seen lighting of light, then can determine whether that bulb has damaged.
Fourth stage: if after light terminal performs action of turning on light and be not detected by B point and have 1 level signal, Then judgment part circuit is by damaging, and now relay can be reset to default conditions by light terminal automatically.Hereafter On the premise of being changed without equipment, user remains to continue to be controlled light with wall surface switch.
The device controller provided in the embodiment of the present invention has the advantage that
1, on the premise of being changed without the metope mechanical switch that user's family is traditional, it is achieved utilize flat board, hands The electronic equipments such as machine carry out instant switch, dim and plan to control the light units of family, and not Change function and the feel of conventional mechanical switch.
2, for comparing the equipment of the popular touch control light in current market, the embodiment of the present invention provides Device controller have after device controller interior section component wear still can be by metope machinery Switch the advantage of the on-off control to light.
3, the device controller owing to providing in the embodiment of the present invention achieves the contact control of mechanical switch With flat board, mobile phone, the Untouched control of apparatus such as computer, therefore the crowd of different age group is all suitable for.
4, user can also be helped while realizing signal light control to detect bulb the most to damage, it is achieved equipment Maximized for user's service.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (8)

1. the desktop touch controller in an intelligent domestic system, it is characterised in that described desktop touches control Device processed includes: data relay module and at least one embedded module being embedded in desktop, wherein, in one Embedding module and an intelligent home device binding in intelligent domestic system;
Described embedded module, is used for detecting touch action, determines the operational order represented by this touch action, This operational order be self preserve bound device operating list in one time, by self bind intelligence The device number of home equipment and global unique identification UID of self are carried and are sent to data in this operational order Transit module;
Described data relay module, is used for receiving this operational order, and the UID carried in this operational order is During in the UID that self preserves one, this operational order is sent to the intelligent family represented by described device number Occupy equipment, so that this intelligent home device performs this operational order.
2. desktop touch controller as claimed in claim 1, it is characterised in that described data relay module, It is additionally operable to receive apparatus bound request, from this apparatus bound is asked, obtains UID, at this UID obtained be During in the UID that self preserves one, the request of this apparatus bound sent to represented by described UID is embedded Module, and receive the apparatus bound success response that embedded module sends, and by this apparatus bound success response It is sent to the sender of described apparatus bound request, the request of described apparatus bound carries embedded module UID, this embedded module need the device number of intelligent home device and the tying up for this intelligent home device of binding Locking equipment operating list;
Described embedded module, is additionally operable to receive the described apparatus bound request that data relay module sends, obtains UID in the request of this apparatus bound, when this UID obtained is identical with the UID of self, preservation equipment is tied up The device number of the intelligent home device carried in fixed request and bound device operating list, and after preserving successfully Apparatus bound success response is sent to data relay module.
3. desktop touch controller as claimed in claim 1 or 2, it is characterised in that described data relay Module, is additionally operable to receive apparatus bound replacement request, obtains and need to change from this apparatus bound replacement request The UID of the embedded module of the intelligent home device of binding, sends this apparatus bound replacement request to described UID Represented embedded module, and receive the apparatus bound replacing success response that embedded module sends, and should Apparatus bound is changed success response and is sent to the sender of described apparatus bound replacement request, described apparatus bound Carry the UID of embedded module in replacement request, this embedded module needs the Smart Home after the replacing of binding The device number of equipment and the bound device operating list for the intelligent home device after this replacing;
Described embedded module, is additionally operable to receive described apparatus bound replacement request, obtains this apparatus bound and changes UID in request, when this UID obtained is identical with the UID of self, utilizing this apparatus bound to change please Seek the device number of the intelligent home device after the replacing carried and for the intelligent home device after this replacing Bound device operating list updates device number and the bound device action column of the intelligent home device preserved before Table, and send apparatus bound replacing success response to data relay module after being updated successfully.
4. desktop touch controller as claimed in claim 1 or 2, it is characterised in that described data relay Module, is additionally operable to receive apparatus bound removal request, obtains and need to change from this apparatus bound removal request The UID of the embedded module of the intelligent home device of binding, sends this apparatus bound removal request to described UID Represented embedded module, and receive the apparatus bound deletion success response that embedded module sends, and should Apparatus bound is deleted success response and is sent to the sender of described apparatus bound removal request, described apparatus bound Removal request carries the UID of embedded module;
Described embedded module, is additionally operable to receive described apparatus bound removal request, obtains this apparatus bound and deletes UID in request, when this UID obtained is identical with the UID of self, the intelligent home device that will preserve Device number and bound device operating list delete, and after deleting successfully to data relay module transmission equipment Success response is deleted in binding.
5. desktop touch controller as claimed in claim 1 or 2, it is characterised in that described embedded module Including: touch sensible module, the first embedded microcontroller, a 433MHz communication module;
Described touch sensible module, is used for detecting touch action, determines the operation life represented by this touch action Order, and described operational order is sent to the first embedded microcontroller;
Described first embedded microcontroller, for determining whether described operational order is the binding self preserved In equipment operating list one, is determining whether described operational order is the bound device operation self preserved During in list one, the device number of the intelligent home device self bound is carried and sends out in this operational order Give a 433MHz communication module;
A described 433MHz communication module, for being sent to data relay module by this operational order.
6. desktop touch controller as claimed in claim 4, it is characterised in that described data relay module Including: the 2nd 433MHz communication module, the second embedded microcontroller and Wireless Fidelity WIFI module;
Described 2nd 433MHz communication module, is used for receiving this operational order, described operational order is sent To the second embedded microcontroller;
Described second embedded microcontroller, for determining whether the UID carried in this operational order is self In the UID preserved one, the most then be sent to this operational order be sent to WIFI in this operational order Module;
Described WIFI module, is used for receiving this operational order, sends this operational order to described device number institute The intelligent home device represented, so that this intelligent home device performs this operational order.
7. desktop touch controller as claimed in claim 6, it is characterised in that described embedded module, also Including the battery supply module with wireless charging access point;Described data relay module also includes: work shape State indicating module, comprises least one set colorful LED lamp in this duty indicating module;
Described battery supply module, for being charged by wireless charging access point, and is touch sensible Module, the first embedded microcontroller and a 433MHz communication module provide running voltage;
Described first embedded microcontroller, is additionally operable to carry first the UID of self place embedded module Control bag is sent to the second embedded microcontroller, cell voltage is detected, according to the battery of detection Voltage determines the electricity of battery, and whether battery is in charged state, whether charging completes to detect, By information about power current for battery, whether it is in charging status information and whether charging completes information by the One 433MHz communication module and the 2nd 433MHz communication module are sent to the second embedded microcontroller;
Described second embedded microcontroller, is additionally operable to receive described first and controls bag, the first control that will receive One group of unbound with duty indicating module for UID colorful LED lamp that system bag carries is bound, with And receive the current information about power of battery that the first embedded microcontroller sends, whether be in charged state letter Whether breath and charging complete information, according to the current information about power of battery received, whether are in charging shape State information and charging whether complete in the duty indicating module that information pair and this UID bind more than one group Color LED is controlled;
Described duty indicating module, under the control of the second embedded microcontroller, by colorful The difference of LED lights state of charge and the duty of the embedded module of color instruction binding.
8. desktop touch controller as claimed in claim 1 or 2, it is characterised in that described embedded module, It is additionally operable to after receiving log-in command, the second control bag carrying the UID of self is sent in data Revolving die block;
Described data relay module, is additionally operable to receive described second and controls bag, is determining that described second controls bag In UID be self preserve UID in one time, by described second control bag pass through intelligent domestic system In home router be sent to the master controller of intelligent domestic system so that described master controller according to this Described embedded module is registered in described master controller and described intelligent domestic system by two UID controlled in bag In home control terminal in.
CN201510149082.0A 2015-03-31 2015-03-31 A kind of desktop touch controller in intelligent domestic system Pending CN106154991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510149082.0A CN106154991A (en) 2015-03-31 2015-03-31 A kind of desktop touch controller in intelligent domestic system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510149082.0A CN106154991A (en) 2015-03-31 2015-03-31 A kind of desktop touch controller in intelligent domestic system

Publications (1)

Publication Number Publication Date
CN106154991A true CN106154991A (en) 2016-11-23

Family

ID=57338002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510149082.0A Pending CN106154991A (en) 2015-03-31 2015-03-31 A kind of desktop touch controller in intelligent domestic system

Country Status (1)

Country Link
CN (1) CN106154991A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964994A (en) * 2018-07-02 2018-12-07 厦门立林科技有限公司 A kind of replacement method of smart home device
CN115314372A (en) * 2022-07-26 2022-11-08 珠海格力电器股份有限公司 Equipment network distribution method, system, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127671A (en) * 2007-09-29 2008-02-20 北京邮电大学 A method and system for remote control of home electrical appliance devices
CN201421160Y (en) * 2009-05-18 2010-03-10 江苏技术师范学院 Remote air conditioning intelligent control device based on ZigBee technique
CN201870069U (en) * 2010-09-30 2011-06-22 中山爱科数字科技有限公司 Integrated digital tea table with home control function
CN102393714A (en) * 2011-11-02 2012-03-28 华南理工大学 Own coding household electrical appliance control system based on ZigBee and realization method thereof
CN202634460U (en) * 2012-04-01 2012-12-26 深圳市赛野展览展示有限公司 Multifunctional central control system
CN103209183A (en) * 2013-03-25 2013-07-17 中山大学 Method for equipment registration based on digital home network
CN104468837A (en) * 2014-12-29 2015-03-25 小米科技有限责任公司 Intelligent device binding method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127671A (en) * 2007-09-29 2008-02-20 北京邮电大学 A method and system for remote control of home electrical appliance devices
CN201421160Y (en) * 2009-05-18 2010-03-10 江苏技术师范学院 Remote air conditioning intelligent control device based on ZigBee technique
CN201870069U (en) * 2010-09-30 2011-06-22 中山爱科数字科技有限公司 Integrated digital tea table with home control function
CN102393714A (en) * 2011-11-02 2012-03-28 华南理工大学 Own coding household electrical appliance control system based on ZigBee and realization method thereof
CN202634460U (en) * 2012-04-01 2012-12-26 深圳市赛野展览展示有限公司 Multifunctional central control system
CN103209183A (en) * 2013-03-25 2013-07-17 中山大学 Method for equipment registration based on digital home network
CN104468837A (en) * 2014-12-29 2015-03-25 小米科技有限责任公司 Intelligent device binding method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙永坚: "基于无线传感器网络的智能家居远程监控系统研究与设计", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964994A (en) * 2018-07-02 2018-12-07 厦门立林科技有限公司 A kind of replacement method of smart home device
CN115314372A (en) * 2022-07-26 2022-11-08 珠海格力电器股份有限公司 Equipment network distribution method, system, computer equipment and storage medium
CN115314372B (en) * 2022-07-26 2023-10-10 珠海格力电器股份有限公司 Equipment distribution network method, system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106154845A (en) A kind of intelligent domestic system
CN106154993A (en) A kind of device controller
CN203178784U (en) Intelligent household control system based on Internet of Things
CN103529782B (en) Smart Home wireless control system
CN104052766B (en) The comprehensive intelligent communication means and system of heterogeneous network based on cloud computing
CN107465584A (en) Method for network access and device, the intelligent appliance of intelligent appliance
CN102202081A (en) Home remote monitoring and control system
CN104483939A (en) Remote intelligent household wireless monitoring system
CN105357277A (en) Wireless router based intelligent device scene control method and system
CN106774210A (en) A kind of smart jack, appliance control system and smart jack control method
CN107171905A (en) Home appliance distribution method and apparatus
CN103713605A (en) Intelligent control platform and method
CN106814711A (en) Using the method and the mobile terminal of mobile terminal control home appliance
CN108810061A (en) A kind of intelligent domestic system
CN205721123U (en) A kind of intelligent home control system of decentration
CN109842537A (en) Smart home system
CN102291284A (en) Intelligent terminal device of wireless network digital home
CN105527848B (en) Communication apparatus and method of controlling the same
CN102692898A (en) Method, device, and system for controlling electrical appliance
CN104331032A (en) Intelligent device control system
CN110337019A (en) It is a kind of for controlling the remote controler of smart home system
CN106154991A (en) A kind of desktop touch controller in intelligent domestic system
CN106707862A (en) Intelligent home electric box with man-machine interaction
CN109542054A (en) Smart home system based on distribution box type
CN110636147B (en) Network distribution method and device with double-control switch, switch and intelligent switch system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161123