Movatterモバイル変換


[0]ホーム

URL:


CN106154993A - A kind of device controller - Google Patents

A kind of device controller
Download PDF

Info

Publication number
CN106154993A
CN106154993ACN201510150280.9ACN201510150280ACN106154993ACN 106154993 ACN106154993 ACN 106154993ACN 201510150280 ACN201510150280 ACN 201510150280ACN 106154993 ACN106154993 ACN 106154993A
Authority
CN
China
Prior art keywords
signal
terminal
control
switch
unit
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
CN201510150280.9A
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 LtdfiledCriticalNingbo Jiatianxia Intelligent System Co Ltd
Priority to CN201510150280.9ApriorityCriticalpatent/CN106154993A/en
Publication of CN106154993ApublicationCriticalpatent/CN106154993A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The invention discloses a kind of device controller, including: switch accesses terminal, power output terminal, live wire access terminal, the first detector unit, the first switch element, power subsystem and the control unit comprising radio receiving transmitting module;The mechanical switch actuating signal of the first detector unit detection controlled device, exports the mechanical switch actuating signal detected to control unit;Control unit receives the wireless switching signal to controlled device by mechanical switch signal input part slave receiver tool switch actuating signals with by radio receiving transmitting module, exports the first control signal or the second control signal by the controlled device switching signal outfan of self to the first switch element;First switch element controls opening or closing of controlled device according to the first control signal or the second control signal.This device controller achieves the controlled device that can be controlled by wireless switching signal again by mechanical switch, and this will make that non intelligent home equipment is incorporated intelligent domestic system and be possibly realized.

Description

A kind of device controller
Technical field
The present invention relates to technical field of electric control, particularly relate to a kind of device controller.
Background technology
Along with improving constantly of living standard, Smart Home industry achieves huge development.Smart Home isWith 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.IntelligenceHousehold due to its conveniently, safely, efficiently, the feature such as quick and intelligent will become modern society in 21 centuryCan 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 environmentBased Intelligent Control, concrete Based Intelligent Control classification has: light fixture Based Intelligent Control, security protection Based Intelligent Control, door and window intelligenceControl, the control of household instrument, amusement and recreation Based Intelligent Control, home appliance Based Intelligent Control etc., this intelligence simultaneouslyAll these control information are managed by house control system, it is achieved remotely operation and information feedback.
But existing intelligent domestic system, it usually needs configuration intelligent home device, can not be to original non-intelligenceCan be controlled by home equipment (such as: the light fixture can only being controlled by mechanical switch), it is impossible to by non-Intelligent home device is dissolved in intelligent domestic system, accordingly, it would be desirable to a kind of device controller, to existingNon intelligent home equipment is controlled, and is incorporated by non intelligent home equipment by this device controller to meetDemand in intelligent domestic system.
Summary of the invention
In view of this, embodiments provide a kind of device controller, prior art is deposited in order to solvingThe technical problem non intelligent household cannot being dissolved in intelligent domestic system.
A kind of device controller, described device controller includes: switch access terminal, power output terminal,Live wire accesses terminal, the first detector unit, the first switch element, power subsystem and comprises radio receiving transmitting moduleControl unit;
Described switch accesses terminal, for connecting the second terminal of the switch of controlled device, described controlled deviceSwitch include the first terminal and the second terminal, the first terminal of the switch of described controlled device and civil power live wireIt is connected;
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, its input accesses terminal with switch and is connected, its outfan and control unitMechanical switch actuating signal input be connected, for detecting the mechanical switch actuating signal of controlled device, willThe mechanical switch actuating signal detected exports to control unit;
Described control unit, its controlled device switching signal outfan and the control end phase of the first switch elementEven, for by mechanical switch signal input part slave receiver tool switch actuating signals with by wireless receiving and dispatching mouldBlock receives the wireless switching signal to described controlled device, at the mechanical switch signal received or wireless switchingWhen signal is the signal opening controlled device, by controlled device switching signal outfan to the first switch elementExport the first control signal;It is closedown controlled device at the mechanical switch signal received or wireless switching signalSignal time, export the second control signal by controlled device switching signal outfan to the first switch element;
Described first switch element, it controls the controlled device switching signal outfan phase of end and control unitEven, its first end accesses terminal with live wire and is connected, and its second end is connected with power output terminal, is used for passing throughControl end and receive the first control signal or the second control signal, when receiving the first control signal, conductingLive wire accesses the connection between terminal and power output terminal, when receiving the second control signal, disconnects fireLine accesses the connection between terminal and power output terminal;
Described power subsystem, is used for as the first detector unit, the first switch element and control unit offer workPower supply.
In the scheme of the embodiment of the present invention, device controller has and opens for the machinery detecting controlled deviceClosing the first detector unit of actuating signal, control unit and the first switch element, this first detector unit hasCan receive machinery switch actuating signals and the control unit of wireless switching signal, this control unit will receive machinerySwitch actuating signals or wireless switching signal are sent to the first switch element, and the first switch element is according to receptionMechanical switch actuating signal or wireless switching signal correspondingly control the switch of controlled device.This equipment controlsDevice achieves and can control controlled device by wireless switching signal again by mechanical switch, and this allows forThis device controller can enter a medium of intelligent domestic system as non intelligent home equipment so that willNon intelligent home equipment incorporates intelligent domestic system and is possibly realized.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described belowThe accompanying drawing used is needed to briefly introduce, it should be apparent that, the accompanying drawing in describing below is only the present invention'sSome embodiments, from the point of view of those of ordinary skill in the art, in the premise not paying creative workUnder, 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 systemFlow process;
Fig. 5 adds multilevel relay device for what the embodiment of the present invention two provided in newly installed intelligent domestic systemFlow 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 shownIt 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 fourThe 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 fourFigure;
The signal of the 433MHz wireless sending module of the embedded module that Figure 11 provides for the embodiment of the present invention fourModulation 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 fourFigure;
Communication protocol between embedded module and data relay module that Figure 13 provides for the embodiment of the present invention fourSchematic 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 fourBody circuit diagram;
Embedded microcontroller in the data relay module that Figure 19 provides for the embodiment of the present invention four concreteCircuit diagram;
The physical circuit of the WIFI module in the data relay module that Figure 20 provides for the embodiment of the present invention fourFigure;
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 dataFlow graph;
Figure 23 for the embodiment of the present invention five provide by data relay module release embedded module withANDROID 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 withANDROID 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 deviceBinding procedure data flow diagram;
Figure 26 receive registration request for the ANDROID panel computer that the embodiment of the present invention five provides after setStandby register interface;
The table in click ANDROID panel computer register interface that Figure 27 provides for the embodiment of the present invention fiveThe 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 controlsFlow chart;
The device controller that Figure 51 provides for the embodiment of the present invention six workflow when miscellaneous equipment controlsFigure.
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 thisBright 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 doingGo 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 realizeSmart 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 toFollowing example.
First intelligent domestic system is described, secondly to the desktop touch controller in intelligent domestic systemIt is described, again to the desktop touch controller in intelligent domestic system and the intelligence in intelligent domestic systemCommunication process between home equipment, home control terminal, master controller etc. is described, finally to intelligenceDevice 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 isSystem includes: remote server 11, remote control terminal 12, home router 13, master controller 14, familyFront 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 terminalAfter 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 terminal12 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 toThe home router 13 pointed by IP address carried in the IP address response received sends and carries intelligenceHousehold terminal iidentification and the control of the operation to the intelligent household terminal represented by this intelligent household terminal markOrder, and receive intelligent household terminal mark represented by intelligent household terminal return carry for instituteStating the control response of control command, described control carries the execution result letter for described operation in responseBreath;
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 commandIntelligent household terminal mark represented by intelligent household terminal 16;And receive from intelligent household terminalThe control response of 16;
Described home control terminal 15, carries intelligent household terminal mark for sending to described home routerKnowledge and the control command of the operation to the intelligent household terminal represented by this intelligent household terminal mark, Yi JijieReceive carrying of intelligent household terminal 16 return represented by intelligent household terminal mark and control life for describedThe control response of order;
Described sensor 17, for sending detection by master controller, home router to remote control terminalThe 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 phoneOr the equipment such as PC.
IP address in view of home router is typically acquisition automatically, is not fixing, Yi JiweiWhether intelligent household terminal can be opened remotely enabled function is controlled, and preferably, described system is also wrappedInclude:
Remotely enabled equipment 18, for obtaining user profile, and every setting duration from master controller 14Carried the remotely enabled command packet of user profile, institute to remote server transmission by home routerStating 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 profileRemotely enabled command packet, and utilize the source IP in the remotely enabled command packet of the last receptionAddress 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 signalCoverage, is controlled each intelligent household terminal in bigger residence, preferably, and described Smart HomeSystem also includes:
Repeater 19, for receiving the control command that master controller 14 sends, will carry this control commandSignal is sent to intelligent household terminal 16 after amplifying;And receive the control sound from intelligent household terminal 16Should, 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 router13 send to described remote server 11 and to comprise the registration request packet of user profile, and receive fromThe 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 numberSet up user profile and the corresponding relation of IP address according to user profile and the source IP address carried in bag and storeIn 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 controlDevice 14 processed includes: transmission control protocol TCP module, embedded microcontroller and WIFI WAPWIFI AP module;
Described tcp module, for receiving the control command of remote server transmission and by embedded micro-controlControl 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 respectivelyBetween block, the control response received for the control command receiving tcp module and WIFI module is carried outProcess;
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 allAll include WIFI website WIFI STA module including WIFI trunk module, each intelligent household terminal, respectively passAll 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 routerEnd and remote server, carried out by short-distance wireless communication technology between master controller and intelligent household terminalCommunication, for remote control method face, uses and preserves user profile and home router on the remote serverIP address so that remote control terminal can get the IP address of home router from server and realizeControl to intelligent household terminal, each intelligent household terminal can be carried out by home control terminal by master controllerControl.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 remotelyThe 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 twoTo intelligent domestic system install after remotely enabled equipment workflow, register new user's flow process, add inContinue device flow process, add the flow process of multilevel relay device, in existed system in newly-increased one-level repeater or one-levelThe home control terminal flow process under device that continues and in existed system under newly-increased multilevel relay device or multilevel relay deviceThe 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 followingStep:
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;IfNo, 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 transmissionOrder;
Step 2018: determine timer expiry, resets intervalometer and jumps to step 2017, described timingThe 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 includesWhether 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 intervalometerThe no remotely enabled order received next time, the most then jump to step 2031;If it is not, then perform step2035;
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 sideAlso it is remotely enabled equipment from master controller, obtains user profile, and every setting duration by family roadCarry the remotely enabled command packet of user profile, described user profile to remote server transmission by deviceIt is that master controller obtains from home control terminal when initializing;Remote server receives described family routeThe remotely enabled command packet carrying user profile that device forwards, and utilize the long-range of the last receptionSource IP address in enable command packet and the IP ground of user profile renewal user profile and home routerA kind of specific implementation of the corresponding relation of location.Can certainly be by other implementation, here to thisIt 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 familyControlling terminal such as remote controller and register new user on the remote server, now, remote server receives described noteVolume request data package, it is possible to use the user profile and the source IP address that carry in this registration request packet are builtFound user profile and the corresponding relation of IP address and be stored in this locality, and sending to described home control terminalComprise 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 step3011;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 networkNumber of times sends user profile;
Receive user profile in order to ensure each home control terminal and repeater and determine each family simultaneouslyControl terminal and repeater receives user profile, in this step 3022, can N continuous time (such as 3Secondary) 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 retransmittingDo 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 3022Determining 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 profileSSID;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 areaHouse only by master controller WIFI AP module it is possible that part room WIFI signal too overly soft pulse extremelySituation about not having, accordingly, it would be desirable to use the repeater with WIFI module to increase the covering of WIFI networkScope, if even also needing to two grades, three grades of relayings the most multistage in the case of one-level repeater is inadequateDevice carries out the extension (occurring this situation in relatively chateau) of WIFI signal, to reach WIFI network coveringThe purpose in space, whole house.WIFI signal for this one-level repeater needs and the WIFI of master controllerSignal carries out matching (SSID matches, mutual medium access control MAC Address pairing), two grades of relayingsThe WIFI signal of device needs and the WIFI signal pairing of corresponding one-level repeater, N+1 level repeaterWIFI 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, includingFollowing 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 repeaterLine 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 userSetting command and be not received for the response of repeater, the most then perform step 4016;If it is not, then jumpGo 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 receivedBlock;
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, includingFollowing 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 AddressWireless messages;
Step 5014:N level repeater exits net construction pattern, and sends recovery user to N+1 level repeaterSetting 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 usedFamily 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 mouldFormula;
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 receivedBlock;
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 moduleThere 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 relayingsDevice, for receiving the wireless messages comprising SSID and MAC Address that described one-level repeater sends, andThe WIFI trunk module of self is configured according to this SSID and MAC.Described N level repeater, forN+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 toThis SSID and MAC configures a kind of specific implementation of the WIFI trunk module of self, naturally it is also possible toThere 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 runThe 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, withThe flow process adding repeater in system is similar to, and repeats no more here.This newly-increased one-level repeater or one-level relayingHome control terminal flow process under device is the family under system increases one-level repeater and/or one-level repeater newlyWhen controlling terminal, described master controller, it is additionally operable to send out to newly-increased one-level repeater and/or home control terminalSend the wireless messages comprising SSID and MAC Address;Newly-increased one-level repeater, is used for receiving described masterThe wireless messages comprising SSID and MAC Address that controller sends, and determining this SSID and MACWhen address is not default value, configure the one of the scheme of the WIFI module of self according to this SSID and MACSpecific 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, withThe flow process of above-mentioned interpolation multilevel relay device is similar to, and repeats no more here, now, newly-increased many in this existed systemThe 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 gradesThe home control terminal under device and/or two grades of repeaters that continues sends the wireless communication comprising SSID and MAC AddressBreath;Two grades of newly-increased repeaters, comprise SSID and MAC for receive that described one-level repeater sendsThe wireless messages of address, and when determining this SSID and MAC Address not for default value, according to this SSIDWith 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 thisSSID and MAC configures a kind of specific implementation of WIFI this scheme of trunk module of self, certainlyCan also there is other implementation, repeat no more here.
Part II: the desktop touch controller in intelligent domestic system.By embodiment three and embodiment fourIt 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 representationAs shown in Figure 6, described desktop touch controller includes figure: data relay module 61 is embedded with at least oneEmbedded module 62 in desktop, wherein, an embedded module and an intelligent family in intelligent domestic systemOccupy 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 intelligenceThe device number of home equipment and global unique identification UID of self are carried and are sent to number in this operational orderAccording to transit module;
Described data relay module 61, is used for receiving this operational order, the UID carried in this operational orderDuring in the UID that self preserves one, this operational order is sent to the intelligence represented by described device numberHome 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 intelligenceThe device number of home equipment and the bound device operating list for this intelligent home device, therefore, it can byOperational order represented by touch action sends effectively to intelligent home device, and then this intelligent home deviceThis operational order can be performed, relative to traditional use remote controller, intelligent home device is controlled, thisInvention 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 desktopIn so that controller and desk combine together, add the function of desk, and owing to a desktop touchesTouch controller and include at least one embedded module, an embedded module and an intelligent home device binding, because ofThis, the desktop touch controller in the embodiment of the present invention has several embedding module, it is possible to control accordinglySeveral 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 askedObtain UID, obtain this UID be self preserve UID in one time, by this apparatus bound pleaseSeek the embedded module sent to represented by described UID;The request of described apparatus bound carries embedded moduleUID, this embedded module need the device number of the intelligent home device of binding and for this intelligent home deviceBound 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, preserveThe device number of the intelligent home device carried in apparatus bound request and bound device operating list, and preservingApparatus 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 willThis 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 toReception apparatus bound is asked, and obtains UID from this apparatus bound is asked, and is that self protects at this UID obtainedDuring 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 toThe sender of described apparatus bound request, carries the UID of embedded module, is somebody's turn to do in the request of described apparatus boundEmbedded module needs the device number of intelligent home device of binding and the binding for this intelligent home device to setStandby operating list;
Described embedded module 62, is additionally operable to receive the described apparatus bound request that data relay module sends, obtainsTaking the UID in the request of this apparatus bound, when this UID obtained is identical with the UID of self, preservation setsThe device number of the intelligent home device carried in standby bind request and bound device operating list, and preserving intoApparatus 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, namelyCan 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 boundRequest obtains the UID needing to change the embedded module of the intelligent home device of binding, by this apparatus bound moreThe 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 moreChange the UID in request, when this UID obtained is identical with the UID of self, utilize this apparatus bound moreChange the device number of the intelligent home device after the replacing carried in request and for the Smart Home after this replacingThe bound device operating list of equipment updates the device number of the intelligent home device preserved before and binding setsStandby 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 ringAnswer, and the replacing success response of this apparatus bound is sent to the sender of described apparatus bound replacement request, instituteState apparatus bound replacement request carries the UID of embedded module, this embedded module need binding replacing afterIntelligent home device device number and for the bound device action column of the intelligent home device after this replacingTable.
When said process is defined by functions of modules, namely: described data relay module 61, it is additionally operable toReceive apparatus bound replacement request, from this apparatus bound replacement request, obtain the intelligent family needing to change bindingOccupy the UID of the embedded module of equipment, in this apparatus bound replacement request being sent represented by extremely described UIDEmbedding module, and receive the apparatus bound replacing success response that embedded module sends, and by this apparatus bound moreChange success response and be sent to the sender of described apparatus bound replacement request, in described apparatus bound replacement requestCarry the equipment of the intelligent home device after the replacing of the UID of embedded module, the needs binding of this embedded moduleNumber 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 moreChange the UID in request, when this UID obtained is identical with the UID of self, utilize this apparatus bound moreChange the device number of the intelligent home device after the replacing carried in request and for the Smart Home after this replacingThe bound device operating list of equipment updates the device number of the intelligent home device preserved before and binding setsStandby 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, toolWhen 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 requestUID, sends this apparatus bound removal request to the embedded module represented by described UID, and receives interiorThe apparatus bound that embedding module sends deletes success response, and the deletion success response of this apparatus bound is sent to instituteState the sender of apparatus bound removal request, described apparatus bound removal request carries embedded moduleUID;
Described embedded module 62, is additionally operable to receive described apparatus bound removal request, obtains this apparatus bound and deleteExcept the UID in request, when this UID obtained is identical with the UID of self, the Smart Home that will preserveThe device number of equipment and bound device operating list are deleted, and send to data relay module after deleting successfullyApparatus bound deletes success response.
Concrete, described embedded module includes: touch sensible module, the first embedded microcontroller, first433MHz communication module;
Described touch sensible module, is used for detecting touch action, determines the operation life represented by this touch actionOrder, 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 preservedIn equipment operating list one, is determining whether described operational order is the bound device operation self preservedDuring in list one, the device number of the intelligent home device self bound is carried and sends out in this operational orderGive 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 andWireless Fidelity WIFI module;
Described 2nd 433MHz communication module, is used for receiving this operational order, described operational order is sentTo the second embedded microcontroller;
Described second embedded microcontroller, for determining whether the UID carried in this operational order is selfIn the UID preserved one, the most then be sent to this operational order be sent to WIFI in this operational orderModule;
Described WIFI module, is used for receiving this operational order, sends this operational order to described device numberRepresented 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: workState 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 sensibleModule, 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 moduleControl bag is sent to the second embedded microcontroller, cell voltage is detected, according to the battery of detectionVoltage 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 theOne 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 receiveOne 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 stateWhether information and charging complete information, according to the current information about power of battery received, whether are in chargingWhether status information and charging complete in the duty indicating module that information pair and this UID bindGroup colorful LED lamp is controlled;
Described duty indicating module, under the control of the second embedded microcontroller, by colorfulThe 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 terminalIn register, described embedded module, be additionally operable to after receiving log-in command, will be carried selfThe 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 bagIn UID be self preserve UID in one time, will described second control wrap by Smart Home systemHome 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 doDescribed embedded module is registered in described master controller and described Smart Home by the second UID controlled in bagIn 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 rightThe 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 enforcementDesktop 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, wrapInclude the circuit board being placed in sheet material and 433M turns the circuit board of WIFI, wherein, the circuit being placed in sheet materialPlate is embedded module, is made up of 433M module, stm8 single-chip microcomputer and capacitive type touch pad, 433MThe circuit board turning WIFI is data relay module, and the 433M module in embedded module is above-mentioned hereA 433MHz communication module, it is embedded that the stm8 single-chip microcomputer in embedded module is above-mentioned firstMicrocontroller, capacitive type touch pad is above-mentioned touch sensible module;Embedded module can be placed in composition tableIn the sheet material of son;Signal transit module is made up of 433M module, stm8 single-chip microcomputer and WIFI module, letter433M 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 padGPIO (General Purpose Input Output, universal input/output) communicates, stm8 single-chip microcomputerAnd communicate also by GPIO between 433M module, also lead between stm8 single-chip microcomputer and WIFI moduleCross 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 withoutLine receives and 433MHz wireless transmitter module, touch sensible module and data control block are (in Fig. 8MCU, 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 moduleContaining battery charging management, charge protection, low-power dissipation power supply output module and wireless charging access point.Fig. 9Middle U1 chip uses CN3065, and it is a battery charging management chip, due to lithium cell chargingIt 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 exportedVoltage is converted to 4.2V constant voltage.And in CN3065 chip, it also comprises is charging and is chargingThe indication signal become, when battery starts to charge up, CHRG pin becomes low level, when filling from output high levelAfter electricity completes, DONE becomes low level from high level, and these signals are all that monolithic function easily reads, poleFacilitate 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 characteristicsAs shown in table (1):
Table (1)
Quiescent currentRepresentative 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 voltage2.0V to 3.0V, often walks 0.005V
Overcurrent protection0.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 moduleData control block provides electric current;Its standby current representative value is only 2.5uA, and maximum output current is100mA, volume is little, and peripheral circuit is simple, it is adaptable to battery powered wireless data transceiving product.Fig. 9Middle 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 meritConsumption and the quick response of medium and long distance wireless data sending module, use discrete component build withThe wireless communication line of 433MHz carrier wave, and based on this circuit, carry out data transmission.This part Figure 10The 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 outGo.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 aboutThe fixed carrier wave using characteristic frequency as signal, and need the data that certain agreement ensures to be sentThrough 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 chipOn the basis of, build 433MHz wireless data and receive circuit.If peripheral circuit uses proper, the highestThe sensitivity of-110dB can be reached.Can well complete wireless data to receive.Steady for ensureing wireless telecommunicationsFixed, we set an agreement as shown in fig. 13 that, its chain lines of Figure 13 represent embedded module actively toData relay module sends the signal flow direction that data are;Solid line bar represents that data relay is actively sent out to embedded moduleSignal 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 outPenetrate.Actively data instance is sent to data relay module: when embedded module there occurs normally with embedded moduleTouch action, the information integrated is sent to C, but requires that data relay module must be returned by D by AReturn data to confirm to B, represent and received the data that A sends over.If A have sentData are gone out.But B does not receive, then A sends a secondary data from new again, within the time of regulation such asThis circulation is several times, it is ensured that B receives confirmation, increases the successful probability of communication.Equally, data relay is worked asModule 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 sensibleTechnology, replaces the purpose that traditional mechanical switch reaches identical.Touch sensible technology is by detection human fingerThe electric charge brought moves, and judges human finger touch action, thus realizes keypress function.Capacitive touchTouch button and need not the mechanical contact of conventional keys, the direct body contact also touched not in use by conventional metalsSheet 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, pointYong Yu not detect the touch sensible of two sides of desktop.This chip uses up-to-date high accuracy number capacitance measurement skillArt, can accomplish anti-various interference, the impact of the anti-panel globule, adapt to various power supply and power.4 can be supportedIndividual touch key-press function, output uses 4 passages independently to export, band function choosing-item mouth, and user can select lockFixed/non-locking output mode.It is suitable for the application of various electronic product.In Figure 14, K1, K2, K3, K4 areTouch dish, realizes touch action signal by these metal touch points of direct or indirect touch and exports.OftenIndividual chip is furnished with a reference capacitance, such as C1, C2 in Figure 14.Due to the difference of touch point material, leadThe touch sensitivity causing to be embodied on identical touch pad is different, can according to actual needs, by regulation electricityThe 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 15STM8L151F3, shown in its design parameter such as table (2):
Table (2)
Internal FLASH8KB
Internal RAM1KB
Power-down mode operating current0.35μA
Routine work electric current180μA/Mhz
STM8L151F3 can meet certain program function in the case of of a sufficiently low electric current.In Figure 15J1 is that mouth is downloaded in program debugging, and J2, J3 are the data input port of touch sensible.S1, D1 are one and touchButton and a LED, debug for plant produced.In notebook data control module, single-chip microcomputer is completeBecoming 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 relativelyHigh 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, 433MHzWireless data transceiver module, (embedded module) duty indicating module, the second embedded microcontroller withAnd 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 16Jie Cong city is electrically accessed, and has done corresponding protective measure, by the unidirectional current needed for mains electricity and electronic sectionMutually isolated, to guarantee late-class circuit safety.Circuit adds tri-elements of F1, F2, RV1 be intended to preventStop surge impact and the short-circuit protection of civil power.Alternating current is played certain filter action by electric capacity Cx, when directlyWhen stream electricity electrostatic charge adds up too much, it is discharged into the earth by Cy electric capacity.The effect of TRANS is by 220VAlternating current be converted to the alternating current of about 12V, the alternating current of this 12V becomes about through rectifier bridge D1The unidirectional current of 18V, recycles wide variety of LM2596 circuit, is being converted to of 18V by this voltage3.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 moduleWireless 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 instituteShow, 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 oneCorresponding.Owing to embedded module has already embedded in inside desk, it is impossible to see its duty in real time, in the designIn solving on the basis of data relay, add embedded module duty instruction function.Embedded module existsIn the embodiment of the present invention shown in the duty such as table (3) of display:
Table (3)
Embedded moduleData relay module LED indicates
Battery low-electricity quantityLED presents red flicker
ChargeLED presents blue breath light mode and flashes
Charging completeLED presents blue long bright, extinguishes after stopping wireless charging
Touch data is had to sendLED presents green flicker
NormalityLED is extinguished
The physical circuit figure of the embedded microcontroller MCU shown in Figure 16 can be schemed as shown in figure 19After the Data Analysis Services that in 19,433MHz wireless receiving is arrived by MCU, by serial ports, data are passed toWIFI module, to complete and higher level equipment communication.The function of tri-buttons of S2, S3, S4 is respectively: extensiveMultiple Default Value, facility registration are arranged and equipment is deleted.D1 is a device state indicator lamp, althoughBeing the element of identical type, but the status indicator lamp of its function and embedded module is different, it is for showingVarious states during communication between this equipment and other equipment, it specifically indicates shown in function such as table (4):
Table (4)
LED presents red flickerWIFI network is obstructed
LED presents green flickerEquipment is not registered
LED presents green Chang LiangEquipment is already registered for
LED presents blue flickerInto/out distribution
LED presents blue Chang LiangWait distribution
LED presents red flickerDistribution completes
The physical circuit figure of the WIFI module shown in Figure 16 can as shown in figure 20, due to its 2.4GHzHigh-frequency characteristic, can within the same time, the data that can transmit than other wireless communication modes wantThe most a lot, and the communications protocol of WIFI is the most highly developed, communication robust, in short distance, big dataDuring 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, familyFront 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 withANDROID panel computer matches, by an embedded module and ANDROID panel computer or data relayModule 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 numberAccording 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 UIDIn 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)
msgCoderoomCodedvcTypesubdvcTypedvcCodesubdvcCodemsgValueUIDreserved
Equipment controlsroomIddvcTypeUID
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, subdvcCodeFor 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 UIDPreserve, set up the binding of the colorful LED blue with a1, and colorful LED is arranged to red flicker3S, 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 a3Shown in 21.
2) by an embedded module, (ANDROID Android panel computer can with ANDROID panel computerOne as home control terminal) pairing (the most how an embedded module is registered in system: beSystem 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 moduleAfterwards, can be by following steps b1 to step b10:
Step b1: by ANDROID panel computer human-computer interaction interface, enters in corresponding room and setsStandby 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 moduleWIFI 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 informationIt is saved in FLASH.This can be changed into an embedded module with the packet of UID by master controllerFacility 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 routerComputer;
Step b7:ANDROID panel computer accepts registration, generates a registration response data packet, and willThis 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 registeredMerit 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 22Corresponding 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 moduleHow from system, to delete an embedded module)
Release matching operation to grasp on ANDROID panel computer or by data relay moduleMaking, 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, selectedThe colorful LED lamp of passage be arranged to red flicker.
Step c3: by short by delete button (Delete button), unbinding success, corresponding passageColorful 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 becomesMerit 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 interiorEmbedding module.If ANDROID panel computer is online, when waiting next time and reach the standard grade connection master controller, synchronize to setStandby 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 stepRapid d5:
Step d1: by ANDROID panel computer human-computer interaction interface, enters in corresponding room and setsStandby editing interface selects the embedded module needing to release pairing, and ANDROID panel computer can send deletion pleaseSeek 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 FLASHInformation, sends a removal request toward data relay module.Here the removal request data that master controller sendsShown in Bao Rubiao (10):
Table (10)
Step d3: data relay module receives removal request signal, according to UID, finds this UID institute tableThe 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.AndSend one toward ANDROID panel computer and delete successful data bag.Here master controller is to ANDROIDThe 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 interiorEmbedding 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 deviceThe 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 roomModule binding interface.
Step e2: click on save button, ANDROID panel computer after carrying out the apparatus bound operation at interfaceCan 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'sUID information, sends an apparatus bound request toward data relay module.One is sent to data relay moduleApparatus 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 correspondenceAfter 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 relayModule sends an apparatus bound successful data bag.Data relay module is bound into master controller forwarding unitMerit 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 UIDInformation, is sent in panel computer after inserting apparatus bound success, and this apparatus bound successful data bag can be asShown 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 embeddedThe 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 moduleAmount.Owing to embedded module itself is in a state closed, so some equipment outside Xu Yaoing are supportedThis functionality.Can use in this system at data relay module and ANDROID to embody electricityAmount.
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 timeWhen not going to touch, embedded module can send an information of voltage bag automatic every day.Data relay module according toCorresponding relation in apparatus bound, will arrange the colorful LED operation mode of correspondence.The work of colorful LEDMode 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 ColorAmount instruction.
The signal of 433MHz, when receiving the electric quantity signal of 433MHz, can be converted into by data relay moduleWIFI 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 dataInformation about power, shows corresponding electricity on interface.If touch process middle plateform off-line, then can by withMaster controller synchronizing information obtains battery level information.
Below to using ANDROID panel computer remote interface to register embedded module, carry out and intelligenceHome 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 26Shown 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 equipmentEnter register flow path;
Step f5: touch four points in picture region, delineation desktop touches the region on picture.By draggingDynamic 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 changedTerritory.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 hurdleDesktop 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 deviceJourney, 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 deviceFace.
Step g2: the desktop clicking on picture region touches on the right side of (namely embedded module) label, or clickThe desktop touch button on hurdle, ejects interface shown in Figure 33, and in Figure 33, the right shows the electricity that this desktop touchesState, 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 weighNewly return to the interface that this desktop touches, as shown in figure 34, apparatus bound list occurring that, user is justAll equipment and the states thereof operated.Meanwhile, user can selected by the check box on the right of list orPerson 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 stepsH1 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 systemMiddle use, but be not limited in above-mentioned intelligent domestic system use, it is also possible in other Smart Home systemSystem 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 switchsUnit 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 deviceSwitch include the first terminal and the second terminal, the first terminal of the switch of described controlled device and civil power live wireIt 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 controlThe mechanical switch actuating signal input of unit is connected, for detecting the mechanical switch action letter of controlled deviceNumber, 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 elementIt is connected, is used for by mechanical switch signal input part slave receiver tool switch actuating signals and passes through wireless receiving and dispatchingModule receives wireless switching signal to described controlled device, at the mechanical switch signal received or wireless openWhen OFF signal is the signal opening controlled device, single to the first switch by controlled device switching signal outfanUnit's output the first control signal;Set for closedown is controlled at the mechanical switch signal received or wireless switching signalDuring standby signal, export the second control by controlled device switching signal outfan to the first switch element 362Signal;
Described first switch element 362, it controls the controlled device switching signal outfan of end and control unitBeing 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 toCross control end and receive the first control signal or the second control signal, when receiving the first control signal, leadLogical live wire accesses the connection between terminal and power output terminal, when receiving the second control signal, disconnectsLive 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 unit363 provide working power.
Above-mentioned power subsystem can be accumulator can also be that civil power is converted to above-mentioned first detector unit361, 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, orControlling controlled device by wireless switching signal, the electric current of controlled device job demand is all from device controllerAccess with live wire civil power offer that terminal is connected rather than from being connected with civil power live wire of mechanical switchThe first terminal civil power provide, once device controller breaks down, will be unable to use controlled device machineControlled device is controlled by tool switch, in order to ensure when device controller breaks down, remains to use quiltControlled device is controlled by the mechanical switch of control equipment, with the addition of second and open on the basis of above-mentioned Figure 36Close 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 settingStandby 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 deviceFunction 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 363Protecting signal output part to be connected, its first end is connected with power output terminal, and its second end accesses terminal with switchIt is connected, for when receiving three control signal of control unit, disconnects power output terminal and connect with switchEnter the connection between terminal;When determining Signal Fail, the power subsystem inefficacy that control unit exports, conductingPower 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 controllerBarrier.
In Figure 37, it is connected, at device controller between terminal if power output terminal accesses with switchTerminal phase is accessed in normal operating conditions, the civil power being connected with mechanical switch and the live wire with device controllerCivil power even is controlled device and powers, and the normal work of controlled device will be impacted by this, therefore at figureIn circuit shown in 37, at device controller when powering on, control unit controlled device to be passed through switching functionProtection signal output part output the 3rd control signal is to second switch unit, so that second switch unit is receivingDuring to three control signal of control unit, disconnect power output terminal and switch accesses the company between terminalConnect, and then the normal work to controlled device is protected, but second switch unit is determining that control unit is defeatedWhen the Signal Fail that goes out, power subsystem lost efficacy, still conducting power lead-out terminal and switch access between terminalConnect, 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 toControl unit carries out next step action and (such as: when controlling successfully, controls controlled device successfully to feed backSignal is sent to home control terminal by radio receiving transmitting module, when controlling unsuccessfully, controls second switch listUnit's conducting power lead-out terminal and switch access the connection between terminal, by the mechanical switch with controlled deviceControlled device is powered by the civil power being connected), on the basis of Figure 37, with the addition of the second detector unit365, the structural representation of device controller now as shown in figure 38, Tu38Zhong, described control unit363 also include that controlled device controls successfully feedback signal input terminal, and described device controller also includes: secondDetector unit 365;
Second detector unit 365, its outfan controls pass signal input phase with the controlled device of control unitEven, its input is connected with power output terminal, for accessing terminal and power output terminal conducting at live wireTime, 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 quiltControl equipment controls successfully feedback signal, controlled device controls successfully feedback signal and is sent out by radio receiving transmitting moduleSend.
And, described control unit 363, it is additionally operable to have sent the first control signal or the second control signalAfter do not receive controlled device control successfully feedback signal time, by controlled device switching function protection signal exportEnd 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, leadLogical 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 controllerFirst detector unit the 361, first switch element 362, power subsystem and comprise the control of radio receiving transmitting moduleThe running voltage of unit 363;Now, the structural representation of described device controller as shown in figure 39, instituteState 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 andDescribed zero line accesses terminal and is connected, and is additionally operable to line voltage is converted to the first detector unit, the first switch listThe 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 compareResult exports as mechanical switch actuating signal, and when the comparative result of output is square-wave signal, expression is openedControlled 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 firstExisting, and be connected with the first commutator unit is the controlled device that starts of line voltage, in order to protect control singlyUnit, 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 simultaneouslySquare-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 singleUnit is specially photo-coupler, and described first compares subelement is specially comparator, the first detector unit nowCircuit 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 representsAccessing, 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 lightBonder 422;
Described bidirectional thyristor 421, its first main electrode accesses terminal with live wire and is connected, its second main electrodeBeing 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 terminalConnect, 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 andControl unit is connected, for receiving the first control signal or the second control signal, and the first control that will receiveSignal 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 zeroLine, 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 relayControl circuit 432;
The controlled device switch protection signal of described control relay circuit 432, its input and control unitOutfan 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 relayFree end connect, when determining that Signal Fail that control unit export, power subsystem lost efficacy, control relayFirst 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 meritRate lead-out terminal is connected, and is used for the first outfan and the second outfan under the control of control relay circuitConnect 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 exchangeTransformator 441, rectifier circuit 442, zero cross detection circuit the 443, first direct-current voltage reducing circuit 444 andTwo 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 valueStream voltage;
Described zero cross detection circuit 443, is used for the zero point described in detecting with the DC voltage of pulsation, outputZero 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 pulsationRunning voltage;
Described second direct-current voltage reducing circuit 445, for being converted to the second work electricity by described first running voltagePressure.
It should be noted that the power subsystem in the embodiment of the present invention be not limited to shown in Fig. 9 concreteCircuit structure, as long as above-mentioned AC transformer 441, rectifier circuit 442 can be realized, zero passage detection electricityRoad 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 switchsAlthough 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 passageDetection 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, bagInclude: 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 signalUnit;
Second compares subelement 452, for being carried out with the magnitude of voltage preset by the square-wave signal after isolation interferenceRelatively, as controlled device, comparative result being controlled successfully feedback signal output, the comparative result in output isDuring square-wave signal, represent and successfully open controlled device, when the comparative result of output is low level signal, tableShow 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 simultaneouslySquare-wave signal isolation and amplifier is compared subelement.
Concrete, described second commutator unit is specially full bridge rectifier, described second isolated location toolBody 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 powerThe 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 coreSheet realizes.
In actual enforcement, if described control unit uses WIFI to carry out receiver sends wireless signal, the most permissibleHaving WPS (Wi-Fi Protected Setup, Wi-Fi protection setting) function, this function can be used for wirelessThe installation of LAN and security performance configuration work, the circuit diagram in addition to WIFI module of the control unit nowAs 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 49Shown 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 compositionFor low level.If after performing headlamp switch signal instruction, this signal, without low level output, i.e. can determine whetherGhyristor circuit has damage;If this signal has low level output, but bulb does not works and i.e. can determine whether that bulb isDamage.
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 pressingAfter 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 electricityThis 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, nowThe control of light is actually got through bulb Firewire link by controllable silicon;When control unit Signal Fail, circuitPlate powers down or receive control unit require without situations such as SCR control signals time, relayThe default mode that automatic or controlled entrance inactivity requires, is now only capable of the switch with 86 boxes and carries out bulbSwitch 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 5thFoot is connected;After requiring the actuating of relay, the 3rd foot of relay and the 4th foot are connected.Additionally, work as relayWhen device is in state after action, if now power-supply system breaks down, relay can automatically switch to acquiescenceState.
First below by the work when mechanical switch directly controls of the said equipment controller shown in Figure 50Flow process illustrates, and then utilizes the said equipment controller shown in Figure 51 at home control terminal (such as handsMachine, 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 intoUnder several stages:
First stage: after whole light units wiring completes and powers on, first thing after control unit operationFeelings require the actuating of relay exactly, and relay output end (the 3rd foot) is received the unsettled pin (of relay4 feet), hereafter whether the opening and closing movement of wall surface switch is just energized without direct relation with bulb.Certainly list is controlledUnit requires that the signal of the actuating of relay is treated, if now control unit fails normally to work, and shouldDeficiency 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 ledLead 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 unitPower output is silicon controlled action.Illustrate the most whole control flow: after wall surface switch is pressedA point is energized, and after the process of U2, mechanical switch actuating signal can become from 0 level signal of normality1 level signal.After this 1 level signal being detected, control unit is it is thought that signal of turning on light, immediatelyBulb is made to light controlled silicon conducting by SCR control signal.When control unit sends conducting silicon controlledAfter 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 electricityOrdinary mail number, then it is assumed that control unsuccessfully, and in product, subelement has damaged.Prolong through suitable MillisecondShi 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 controlBulb.
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 thatWhole 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 thatEnvironment 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 recognizeDamage for bulb.
Situation 4: bulb the most normally shows and stateless feedback on the remote equipment such as flat board, mobile phone, then can recognizeDamage for bulb and equipment.
The device controller provided in the embodiment of the present invention can pass through WIFI and other devices interconnect, because ofThis available such as electronic equipment such as flat board, mobile phone installs corresponding application program and the communication of this product.It is excellentPoint is that in user's WIFI signal can cover region need not directly contact wall surface switch can set lightFor 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 setThe 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 WIFIArt, 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 lightTerminal transmitting control commands.After light terminal receives control command, performed by SCR control signalThis order.After this order performs, whether control unit detection B point has corresponding signal to produce to judge that control isNo 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, butActual 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.HereafterOn 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, handsThe electronic equipments such as machine carry out instant switch, dim and plan to control the light units of family, and notChange 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 providesDevice controller have after device controller interior section component wear still can be by metope machinerySwitch 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 switchWith 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 equipmentMaximized for user's service.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present inventionBright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention andWithin the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (14)

Described control unit, the control end of its controlled device switching signal outfan and the first switch element is connected,For by mechanical switch signal input part slave receiver tool switch actuating signals and being connect by radio receiving transmitting moduleReceive the wireless switching signal to described controlled device, at the mechanical switch signal received or wireless switching signalDuring for opening the signal of controlled device, exported to the first switch element by controlled device switching signal outfanFirst control signal;It it is the letter closing controlled device at the mechanical switch signal received or wireless switching signalNumber time, export the second control signal by controlled device switching signal outfan to the first switch element;
CN201510150280.9A2015-03-312015-03-31A kind of device controllerPendingCN106154993A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510150280.9ACN106154993A (en)2015-03-312015-03-31A kind of device controller

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510150280.9ACN106154993A (en)2015-03-312015-03-31A kind of device controller

Publications (1)

Publication NumberPublication Date
CN106154993Atrue CN106154993A (en)2016-11-23

Family

ID=57337249

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510150280.9APendingCN106154993A (en)2015-03-312015-03-31A kind of device controller

Country Status (1)

CountryLink
CN (1)CN106154993A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106712007A (en)*2017-01-172017-05-24漳州立达信光电子科技有限公司Wireless intelligent switch
CN106940586A (en)*2017-01-232017-07-11宇龙计算机通信科技(深圳)有限公司A kind of power control method, device and system
CN107528574A (en)*2017-08-142017-12-29南京荟学智能科技有限公司A kind of wireless intelligent device based on conventional mechanical switch
CN107547287A (en)*2017-09-252018-01-05国网黑龙江省电力有限公司信息通信公司Computer room management system and method
WO2018152729A1 (en)*2017-02-232018-08-30路晟(上海)科技有限公司Coupling voltage transforming system
CN110719283A (en)*2019-10-112020-01-21深圳心跳智能科技有限公司Intelligent fire hydrant system and online registration method thereof
CN112889256A (en)*2018-10-162021-06-01瑞典爱立信有限公司Techniques to provide status information related to wireless data transmission for industrial process control

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN201628853U (en)*2010-01-262010-11-10深圳市科道智能产品有限公司Mechanical and electronic double-controlled electric switch
CN203416482U (en)*2013-09-032014-01-29广众通电子(深圳)有限公司Intelligent switch
CN103558796A (en)*2013-11-222014-02-05杭州鸿雁智能科技有限公司Intelligent control switch
CN203720590U (en)*2014-02-102014-07-16宁波海韦斯智能技术有限公司Mechanical switch transformation device
CN203941408U (en)*2014-05-272014-11-12福建侨汇电子科技有限公司Zero live wire type Intelligent remote control switch

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN201628853U (en)*2010-01-262010-11-10深圳市科道智能产品有限公司Mechanical and electronic double-controlled electric switch
CN203416482U (en)*2013-09-032014-01-29广众通电子(深圳)有限公司Intelligent switch
CN103558796A (en)*2013-11-222014-02-05杭州鸿雁智能科技有限公司Intelligent control switch
CN203720590U (en)*2014-02-102014-07-16宁波海韦斯智能技术有限公司Mechanical switch transformation device
CN203941408U (en)*2014-05-272014-11-12福建侨汇电子科技有限公司Zero live wire type Intelligent remote control switch

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106712007A (en)*2017-01-172017-05-24漳州立达信光电子科技有限公司Wireless intelligent switch
CN106940586A (en)*2017-01-232017-07-11宇龙计算机通信科技(深圳)有限公司A kind of power control method, device and system
WO2018152729A1 (en)*2017-02-232018-08-30路晟(上海)科技有限公司Coupling voltage transforming system
CN110313121A (en)*2017-02-232019-10-08路晟(上海)科技有限公司A kind of coupling transformation system
CN107528574A (en)*2017-08-142017-12-29南京荟学智能科技有限公司A kind of wireless intelligent device based on conventional mechanical switch
CN107547287A (en)*2017-09-252018-01-05国网黑龙江省电力有限公司信息通信公司Computer room management system and method
CN112889256A (en)*2018-10-162021-06-01瑞典爱立信有限公司Techniques to provide status information related to wireless data transmission for industrial process control
CN112889256B (en)*2018-10-162024-04-26瑞典爱立信有限公司 Apparatus and method for providing status information related to wireless data transmission for industrial process control
CN110719283A (en)*2019-10-112020-01-21深圳心跳智能科技有限公司Intelligent fire hydrant system and online registration method thereof

Similar Documents

PublicationPublication DateTitle
CN106154845A (en)A kind of intelligent domestic system
CN106154993A (en)A kind of device controller
CN101990334B (en)Lamp control system, method thereof, main controller and lamp control terminal
CN101989072B (en)Household equipment controller
CN104052766B (en)The comprehensive intelligent communication means and system of heterogeneous network based on cloud computing
CN105871668B (en)Interconnect method and the intelligent appliance of Internet of Things intelligent appliance
CN101989376A (en)Intelligent home control system
CN204044598U (en)LED light device and intelligent home control system
CN105357277A (en)Wireless router based intelligent device scene control method and system
CN107171905A (en)Home appliance distribution method and apparatus
CN108810061A (en)A kind of intelligent domestic system
CN106774210A (en)A kind of smart jack, appliance control system and smart jack control method
CN106814711A (en)Using the method and the mobile terminal of mobile terminal control home appliance
CN103713605A (en)Intelligent control platform and method
CN109842537A (en)Smart home system
CN105807619A (en)Small household electrical appliance wireless network control method
CN102291284A (en)Intelligent terminal device of wireless network digital home
CN102692898A (en)Method, device, and system for controlling electrical appliance
CN109542054A (en)Smart home system based on distribution box type
CN106154991A (en)A kind of desktop touch controller in intelligent domestic system
CN110636147A (en)Network distribution method and device of double-control switch, switch and intelligent switch system
CN110337019A (en)It is a kind of for controlling the remote controler of smart home system
CN106707862A (en)Intelligent home electric box with man-machine interaction
CN102707694A (en)Wireless smart home control system based on switching power supply
CN202975632U (en)Wireless switch control module and wireless switch control module system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
WD01Invention patent application deemed withdrawn after publication
WD01Invention patent application deemed withdrawn after publication

Application publication date:20161123


[8]ページ先頭

©2009-2025 Movatter.jp