CN101990334B - Lamp control system, method thereof, main controller and lamp control terminal - Google Patents

Lamp control system, method thereof, main controller and lamp control terminal Download PDF

Info

Publication number
CN101990334B
CN101990334B CN2009101592180A CN200910159218A CN101990334B CN 101990334 B CN101990334 B CN 101990334B CN 2009101592180 A CN2009101592180 A CN 2009101592180A CN 200910159218 A CN200910159218 A CN 200910159218A CN 101990334 B CN101990334 B CN 101990334B
Authority
CN
China
Prior art keywords
light fixture
control
lamp
remote controller
information
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.)
Expired - Fee Related
Application number
CN2009101592180A
Other languages
Chinese (zh)
Other versions
CN101990334A (en
Inventor
鲍向前
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Jiatianxia Intelligent System Co Ltd
Original Assignee
Ningbo Jiatianxia Intelligent System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Jiatianxia Intelligent System Co Ltd filed Critical Ningbo Jiatianxia Intelligent System Co Ltd
Priority to CN2009101592180A priority Critical patent/CN101990334B/en
Publication of CN101990334A publication Critical patent/CN101990334A/en
Application granted granted Critical
Publication of CN101990334B publication Critical patent/CN101990334B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/185Controlling the light source by remote control via power line carrier transmission

Abstract

The invention relates to an electrical control technology, in particular to a lamp control method for a lamp control system used for improving the networking flexibility of the lamp control system. The lamp control method for the lamp control system comprises: a remote control unit receiving operation information of a lamp state controlled by a user and generating corresponding lamp remote control instructions, transmitting the lamp remote control instructions to a lamp control terminal through sense repeaters distributed in different rooms; the lamp control terminal analyzing the lamp remote control instructions and controlling the lamp state according to analyzed results, and generating lamp state updating information to the sense repeaters when the lamp state is changed; the sense repeaters updating the lamp state information stored locally according to the lamp state updating information, transmitting the lamp state updating information to the remote control unit, and the remote control unit updating the lamp state information stored locally according to the lamp state updating information.

Description

A kind of light fixture control method for lamp control system
Technical field
The present invention relates to Electrical Control Technology, particularly a kind of light fixture control method for lamp control system.
Background technology
Smart Home is to be platform with the dwelling house, has both intelligent building, network service, information household appliances, light fixture automation, and collecting system, structure, service, management are efficient, comfortable, safety, the facility of one, the living environment of environmental protection.Intelligent home control system just transforms from existing second generation intelligent home control system to third generation intelligent home control system, can not be called system on the second generation intelligent home control system stricti jurise, it is the set of a series of simple function equipment, such as security light fixture, video intercom, automatic curtain, the clothing etc. that dries in the air automatically, these all are single equipments, do not form communication and networking each other.
Third generation intelligent home control system is attempted the triangular web of these second generation intelligent home control systems is carried out integrated on the basis of second generation intelligent home control system, and to set up with the home server be the integral intelligent house control system of core.
Intelligent home control system need carry out Based Intelligent Control to electric equipment and the device of a plurality of applicating categories in the domestic environment, concrete Based Intelligent Control classification has: light fixture Based Intelligent Control, security protection Based Intelligent Control, door and window Based Intelligent Control, the control of household instrument, amusement and recreation Based Intelligent Control, home appliance Based Intelligent Control etc., this intelligent home control system carries out integrated management to all these control informations simultaneously, realizes remote operation and information feedback.
The shortcoming of existing intelligent home control system is that the design deficiency is used in integration, is difficult to enhancement row response control function expansion, especially light fixture intelligence control system according to home equipment, realizes based on the Internet that mostly inconvenience is according to the room flexible networking.
Summary of the invention
The embodiment of the invention provides a kind of light fixture control method for lamp control system, is used for improving the networking flexibility of lamp control system.
A kind of light fixture control method for lamp control system, described lamp control system comprises remote controller, at least one sensing repeater, use the short distance wireless communication technology to communicate by letter with remote controller, at least one lamp controller, the environmental directives of accepting the transmission of sensing repeater carries out automatic control mode and realizes at least one light fixture control terminal, connect described power line network by power line network, described control method comprises:
Described remote controller receives the operation information that the user controls the light fixture state, generates corresponding lamp remote-control instruction and by the sensing repeater lamp remote-control instruction is transferred to the light fixture control terminal according to described operation information;
Described light fixture control terminal is resolved the instruction of described lamp remote-control and according to analysis result control light fixture state, and when the light fixture state changes to sensing repeater generation light fixture state updating information;
The sensing repeater upgrades local light fixture state information of preserving according to described light fixture state updating information, and the light fixture state updating information is transmitted to remote controller;
Remote controller upgrades local light fixture state information of preserving according to described light fixture state updating information.
Described lamp control system also comprises master controller, and is connected the lamp controller between described power line network and the master controller, and described control method further comprises:
Described master controller receives the long-range light fixture control command of submitting to by the Long-distance Control webpage and is transmitted to lamp controller as telnet server;
Described lamp controller is by being transmitted to the light fixture control terminal with long-range light fixture control command;
Described light fixture control terminal is resolved described long-range light fixture control command and is controlled the light fixture state according to analysis result; And
Described lamp controller also receives the light fixture state updating information and is transmitted to master controller;
Described master controller upgrades local light fixture state information of preserving according to described light fixture state updating information.
Described at least one sensing repeater is distributed in the not chummery in the building of using described lamp control system, and then described control method also comprises:
After unregistered sensing repeater powers on, send registration request bag to remote controller;
After remote controller receives registration request bag, by the interface prompt user sensing repeater request registration is arranged;
Remote controller when the user by interface operation with the corresponding room of sensing repeater drag and drop to the pre-set house type distribution map after, be recorded in the local device distribution information of preserving for sensing repeater distributing equipment sign indicating number and with allocation result, each room configuration has corresponding house code;
Remote controller confirms that the user registration back to sensing repeater transmitting apparatus registration respond packet, wherein comprises the device code of house code and distribution;
Sensing repeater receiving equipment registration respond packet therefrom obtains to be the house code of oneself and the device code of distribution, and is recorded in the local device distribution information of preserving.
Described at least one light fixture control terminal is distributed in the not chummery in the building of using described lamp control system, is respectively applied to control the light fixture in the chummery not, and described control method also comprises:
The light fixture control terminal sends registration request bag by the sensing repeater to remote controller after the lamp switch work that connects;
After remote controller receives the registration request bag of light fixture control terminal, by the interface prompt user light fixture request registration is arranged;
Remote controller when the user by interface operation with the drag and drop of light fixture control terminal to the relevant position in corresponding room, be light fixture control terminal dispenser device sign indicating number, and allocation result be recorded in the local device distribution information of preserving;
Remote controller will be registered respond packet and send to the light fixture control terminal by the sensing repeater after the user confirms registration, wherein comprise the room number in room, light fixture control terminal place and the device code of distribution;
Light fixture control terminal receiving equipment registration respond packet therefrom obtains the house code of oneself and the device code of distribution, and is recorded in the device distribution information;
The light fixture control terminal is broadcast to the sensing repeater with the device distribution information that oneself records and carries out the device distribution information synchronization.
When described light fixture control terminal connects a plurality of lamp switch simultaneously, described light fixture control terminal is according to the number of switches that connects, initiate repeatedly registration request to remote controller respectively, remote controller also divides gamete light fixture number for each lamp switch, and is carried in the registration response and returns to the light fixture control terminal.
Described method also comprises:
Remote controller sends to main controller with the device synchronization information of oneself preserving to carry out synchronously; Perhaps
The sensing repeater sends to main controller with the device synchronization information of oneself preserving to carry out synchronously.
Described light fixture control method also comprises:
Remote controller or master controller send a key to the sensing repeater and close/the open command bag, wherein: if close all compartment lamps, then the described key house code of closing/carrying in the open command bag is particular identification code, if only close all lamps of room, then the described key house code of closing/carrying in the open command bag is the house code in corresponding room;
The sensing repeater broadcasts this key to each light fixture control terminal and cuts out/the open command bag after receiving key shutdown command/unlatching bag;
Each light fixture control terminal receive a key close/open command after, if the house code that a described key is closed/carried in the open command bag is particular identification code or is oneself house code, then close/open light fixture separately.
According to the above-mentioned light fixture control method that the embodiment of the invention provides, utilize the electric power networks transmission of control signals, bring great convenience to networking.
Description of drawings
A kind of intelligent home control system that Fig. 1 a, 1b, 1c and 1d provide for the embodiment of the invention.The structural representation of home equipment controller and home equipment control terminal;
Realization principle and the structural representation of the universal remote control that Fig. 2 a and 2b provide for the embodiment of the invention;
The realization principle schematic of the lamp control system that Fig. 3 a, 3b, 3c provide for the embodiment of the invention;
The structural representation of master controller in the lamp control system that Fig. 4 a, 4b and 4c provide for the embodiment of the invention;
The software architecture schematic diagram of lamp controller in the lamp control system that Fig. 5 a, 5b, 5c provide for the embodiment of the invention;
The structural representation of sensing repeater in the lamp control system that Fig. 6 provides for the embodiment of the invention;
The structural representation of light fixture control terminal in the lamp control system that Fig. 7 provides for the embodiment of the invention.
Embodiment
Intelligent home control system
The embodiment of the invention provides a kind of home equipment control system, can be used in the household, also can be used in the office space of a plurality of workplaces, is used for control and is distributed in the not home equipment of chummery, and the home equipment control mode generally has following four kinds of demands:
■ controls home equipment by the home equipment control interface of hand-held remote controller;
■ controls home equipment by login remote web page control interface;
■ controls home equipment by the physics hand switch;
■ controls the carrying out of home equipment automatically according to the control model of setting.
Wherein, first three kind demand is manually control, and last a kind of demand is control automatically.
As shown in Figure 1a, for realizing above-mentioned first kind of function, a kind of intelligent home control system that the embodiment of the invention provides is used for control and is distributed in the not home equipment of chummery, comprising:
The home equipment controller 11 of each type connects power line network, for generation home equipment control command and by the power line network transmission, and the also preservation of home equipment state updating information that receives the power line network transmission;
The control terminal 13 of each home equipment, connect power line network, be used for receiving the home equipment control command of power line network transmission, resolve the home equipment control command and control the home equipment state according to analysis result, and when the household equipment state changes, transmit the home equipment state updating information by power line network.
For realizing the function of remote control home equipment, intelligent home control system also comprises:
At least one sensing repeater 12 is separately positioned on not in the chummery, connects power line network, is used for using the short distance wireless communication technology to communicate by letter with remote controller 10;
Remote controller 10, remote controller 10 uses the short distance wireless communication technology to communicate by letter with sensing repeater 12, being used for receiving the user controls the straighforward operation information of home equipment state and uses the short distance wireless communication technology to send to sensing repeater 12, sensing repeater 12 transmits the straighforward operation information that receives by power line network, home equipment controller 11 receives straighforward operation information by power line network, and generates corresponding home equipment control command and send by power line network according to this straighforward operation information; And
Sensing repeater 12 also is used for receiving the home equipment state updating information of power line network transmission, and uses the short distance wireless communication technology to send to remote controller 10.
For realizing that intelligent home control system also further comprises by the function of network remote control home equipment: master controller 14, connect each home equipment controller 11 respectively, wherein:
Master controller 14 is used for receiving the remote operation information of the Long-distance Control household equipment of submitting to by the Long-distance Control webpage and being transmitted to home equipment controller 11 as telnet server;
Home equipment controller 11 is also for generating corresponding home equipment control command according to the remote operation information that receives and sending by power line network.
Home equipment controller 11 can be distinguished and directly connects power line network, also can connect power line networks by master controller 14, and Fig. 1 a only is the networking structure schematic diagram of first kind of situation.In a kind of networking structure in back, home equipment controller 11 must could operate as normal after main controller starts.
Automatically control according to ambient condition in the household apparatus control system, realizing, can further include: at least one transducer, each transducer links to each other with one of them sensing repeater 12, is used for gathering the ambient condition sensing data and sending to sensing repeater 12;
Sensing repeater 12 also is used for by power line network transmission environment state sensing data;
Home equipment controller 11 also be used for to receive the ambient condition sensing data of power line network transmission, generates corresponding home equipment control command and transmits by power line network according to the automatic control mode of ambient condition sensing data and setting.
For realizing traditional demand for control of hand switch, the home equipment control system also comprises: the manual physical switch of each home equipment, be connected between earth terminal and the corresponding home equipment control terminal 13, home equipment control terminal 13 detects the level value by manual physical switch input, when level value is high level, the control home equipment is closed, otherwise the control home equipment is opened.
Perhaps, home equipment control terminal 13 detects the level value by manual physical switch input, and when described level value changes, and generation level value state change information also transmits by power line network; Home equipment controller 11 also is used for receiving the level value state change information that power line network transmits, and generates corresponding home equipment control command and passes through described power line network transmission according to the level value state change information.
In this case, the direct control switch state of level value that home equipment control terminal 13 is not imported according to manual physical switch, but the level state change information is reported home equipment control terminal 13, home equipment control terminal 13 carries out centralized control again, has embodied the core the driver's seat of home equipment control terminal 13 more.
For in the household apparatus control system, realizing the unified management of equipment, ability operate as normal after each sensing repeater 12 and home equipment control terminal 13 need be registered in the system, registration process is finished by remote controller utilization control Interface Control, the final device distribution informational needs of collecting in registration process is aggregated on each home equipment controller 11 and the master controller 14, therefore:
Sensing repeater 12 also is used for using when initialization the short distance wireless communication technology to send the registration request;
Remote controller 10 receives the registration request that each sensing repeater 12 sends, according to pre-configured room distribution map and room, sensing repeater 12 place, the sensing repeater 12 that is request registration distributes room number and device numbers, generates to carry registration response and the transmission of use the short distance wireless communication technology that institute distributes room number and device number; And be recorded in allocation result in the device distribution information and the device distribution information after the use the short distance wireless communication technology transmission renewal when device distribution information changes;
Sensing repeater 12 receives the registration response that remote controller 10 sends, and wherein room number and device number are recorded in the local device distribution information, and sensing repeater 12 also receives remote controller 10 device distribution information and transmits by power line network;
Home equipment controller 11 receives the device distribution information of power line network transmission and preserves.
Further, the control terminal 13 of each home equipment also is used for generating respectively the registration request and transmits by power line network when initialization;
Sensing repeater 12 receives the registration request of power line network transmission and uses the short distance wireless communication technology to send to remote controller 10;
When remote controller 10 receives the control terminal 13 registration requests of each home equipment, according to pre-configured room distribution map, home equipment type and room, place, the control terminal 13 that is request registration distributes room number and device numbers, generates to carry corresponding registration response and the transmission of use the short distance wireless communication technology that institute distributes room number and device number; And be updated to allocation result in the device distribution information and use the short distance wireless communication technology send to upgrade after device distribution information;
Sensing repeater 12 receives each registration response of remote controller 10 transmissions and transmits by power line network;
Each control terminal 13 responds by the registration that power line network receives oneself, and wherein room number and device number are recorded in the local device distribution information.
In the another one execution mode, remote controller can directly generate control command and send to sensing repeater 13, and distant control function does not need home equipment controller 11 to participate in, and is concrete:
Remote controller 10, remote controller 10 uses the short distance wireless communication technology to communicate by letter with sensing repeater 12, be used for receiving the operation information of user's remote control home equipment state, generate corresponding home equipment control command and use the short distance wireless communication technology that the home equipment control command is sent to sensing repeater 12 according to operation information;
Sensing repeater 12 also is used for the home equipment control command is transmitted by power line network.
The deletion of each sensing repeater 12 and home equipment control terminal 13 is equivalent to one and goes the process registered, idiographic flow and registration class are seemingly, need the distributed intelligence of updating the equipment after deletion, the detailed technology details is well known to those skilled in the art does not here give unnecessary details in detail.
Home equipment controller 11 receives all devices distributed intelligence, and status information of equipment can be given master controller 14 by synchronized transmission, and main controller 14 synchronous refreshs are checked for the user to webpage.
In the embodiment of the invention, control switching controls pattern that can also be by remote controller 10, and the control model switching command sent to home equipment controller 11 by the sensing repeater, home equipment controller 11 are determined mode of operation according to switching command, and carry out corresponding control, concrete:
Remote controller 10 also is used for using the short distance wireless communication technology to send the control model switching command according to user's automatic control mode and the switching command between the manual control model;
Sensing repeater 12 also is used for receiving control of remote controller pattern switching command and transmitting by power line network;
Home equipment controller 11, reception is by the control model switching command of power line network transmission, and determine to be operated in automatic control mode or manual control model according to described control model switching command, and when at the work automatic control mode, automatic control mode according to described ambient condition sensing data and setting generates the home equipment control command and passes through described power line network transmission, when being operated in manually with regard to control model, according to straighforward operation information, remote operation information or level value state change information generate the home equipment control command and transmit by described power line network.
Certainly, home equipment controller 11 can also be worked as when being operated in automatic control mode, according to any one the straighforward operation information, remote operation information or the level value state change information that receive, switch to manual control model immediately and generate the home equipment control command also by described power line network transmission according to the information that receives.
The said system that provides according to the embodiment of the invention, the home equipment of each type should have a home equipment controller mutually, home equipment to respective type plays the core control action, the sensing repeater plays the forwarding capability of signaling and data, do not need to arrange respectively according to the type of home equipment, when therefore needing to increase the control of newtype home equipment in the system, only need to increase corresponding home equipment controller and control terminal, therefore has favorable expansibility, and the most of signal in the system transmits by electric power networks, brings great convenience to networking.
According to above-mentioned intelligent home control system, the concrete structure of the home equipment controller 11 in a kind of intelligent home control system that the embodiment of the invention provides comprises shown in Fig. 1 b:
Power line signal coupling module 111, connect power line network by power line, being used for receiving modulation from power line network has the power line carrier signal of home equipment operation information and transmits, and the power line carrier signal that receives is coupled transmits to power line network;
Power line signal processing module 112, be used for demodulating the home equipment operation information and transmitting from the power line carrier signal that power line signal coupling module 111 is transmitted, and be transmitted to power line signal coupling module 111 after the home equipment control signal that receives is modulated to the power line carrier signal;
If home equipment controller 11 connects power line network by master controller 14, then do not comprise power line signal coupling module 111.
As described in Fig. 1 c, a kind of concrete structure of embedded microprocessor 113 wherein comprises:
First receiving element 1131 connects power line signal processing module 112 by serial line interface, is used for the operation information of the remote control home equipment state of reception power line signal processing module 112 forwardings;
The first first-in first-out FIFO buffer unit 1132 connects first receiving element 1131, is used for the operation information that storage first receiving element 1131 receives;
Processing unit 1133 and the 2nd FIFO buffer unit 1134, processing unit is connected between a FIFO buffer unit 1132 and the 2nd FIFO buffer unit 1134, be used for from a FIFO buffer unit according to storage order read operation information successively, generate corresponding home equipment control command and be saved in the 2nd FIFO buffer unit 1134 according to generating run information;
First transmitting element 1135 is used for the storage order according to the home equipment control command, reads the home equipment control command successively and send to power line signal processing module 112 by serial line interface from the 2nd FIFO buffer unit 1134.
Further home equipment controller also comprises:
Second receiving element 1136 by the master controller in the serial line interface connection intelligent home control system, is used for receiving master controller as the operation information of the Long-distance Control household equipment state of telnet server reception and forwarding;
The one FIFO buffer unit 1132 also connects second receiving element 1136 and is used for the operation information that storage second receiving element 1136 receives.
Further embedded microprocessor 113 also comprises: control model memory cell 1138, connect processing unit 1133, and be used for the automatic control mode parameter configuration of storage home equipment;
First transmitting element 1135 also is used for receiving the ambient condition sensing data of power line signal processing module 112 forwardings and being transmitted to processing unit 1133;
Processing unit 1133 is further according to the automatic control mode parameter configuration of storage in the ambient condition sensing data that receives and the control model memory cell 1138, generates corresponding home equipment control command and stores in the 2nd FIFO buffer unit 1134.
Further, first receiving element 1131 also is used for receiving device distribution signal and the status information of equipment that power line signal processing module 112 is transmitted, and is saved in the data storage cell 1139.
Further, device controller 11 also comprises:
Second transmitting element 1137 connects data storage cell 1139, is used for reading the data of data storage cell 1139 storages and is transmitted to master controller by serial line interface.
Home equipment control terminal 13 mainly is the corresponding execution terminal of control command, home equipment is carried out the final actuator of actions such as switch, adjusting, application model configuration, and shown in Fig. 1 d, a kind of concrete structure of home equipment control terminal 13 comprises:
Power line signal coupling module 131, power line signal processing module 132, embedded microprocessor 133 and at least one switch module 134, wherein:
Power line signal coupling module 131 connects power line network, power line signal processing module 132 links to each other with power line signal coupling module 131, and connect the signal input part of embedded microprocessor 133 by serial line interface, the signal output part of embedded microprocessor 133 connects the control end of each switch module 134, and each switch module 134 is used for the power supply circuits of one or one group home equipment of control;
The power line signal coupling is used for receiving modulation from power line network to be had the power line carrier signal of home equipment control command and is transmitted to power line signal processing module 132;
Power line signal processing module 132 demodulates the home equipment control command for the power line carrier signal of transmitting from the power line signal coupling circuit and sends to the signal input part of embedded microprocessor 133 by serial line interface;
The home equipment control command that embedded microprocessor 133 receives according to signal input part generates the control signal of switch module 134, and export to switch module 134 by signal output part, be used for that control switch module 134 is opened or the closed power supply circuits of controlling.
For realizing traditional manual control function, the home equipment control terminal also comprises: the hand switch 135 that the power supply circuits that corresponding each switch module 134 is controlled arrange, wherein: an end of each hand switch 135 connects earth terminal, and the other end connects a data input of embedded microprocessor 133 respectively; Embedded microprocessor 133 also is connected with the level value of the data input pin of hand switch 135 for detection of each, when level value is high level, controls corresponding switch module 134 and disconnect, otherwise control corresponding switch module 134 closures.
Further, embedded microprocessor 133 also is used for record home equipment state information, and when the household equipment state changes, sends home equipment state and home equipment system control model lastest imformation by serial line interface to power line processing module 132;
After power line processing module 132 is modulated to the power line carrier signal with the home equipment state updating information, be coupled to the power line network transmission by power line signal coupling module 131.
Universal remote control
For intelligent home control system, universal remote control with learning functionality is extremely important, the embodiment of the invention provides a kind of remote controller with learning functionality, can learn the infrared encoded signal of various remote controllers, and according to learning outcome reduction infrared encoded signal corresponding home equipment is controlled, below introduce earlier the realization principle of the universal remote control that the embodiment of the invention provides in detail.
Shown in Fig. 2 a, be the structural representation of the infrared encoded signal of remote controller emission, infrared encoded signal comprises the square-wave signal of being made up of a series of high-low levels, and launches with the particular carrier wave frequency.Wherein infrared encoded signal can comprise infrared coding control signal and steering signal, also can include only the infrared coding control signal, the square wave number that comprises according to the infrared coding control signal and the width of high-low level, distinguish different control functions, steering signal is used for notifying controlled electric equipment to prepare to accept the infrared coding control signal, and steering signal comprises at least two high level and low level.The infrared coding control signal begins with high level, can finish with high level, also can finish with low level.
The basic skills of study infrared encoded signal is, the width of the carrier cycle of the infrared encoded signal that record will be learnt, all high-low levels that comprise and shooting sequence, then when corresponding electric appliance equipment is controlled, launch and original the same infrared encoded signal according to learning outcome, thereby reach the control function.
Infrared encoded signal shown in the analysis chart 2a can be found, wherein level 6 is the same with the width of level 8, level 7 is the same with the width of level 9, the probability that this situation occurs is very high, utilize the high level of four kinds of width and the infrared coding control signal that low level is combined to form, even can satisfy the functional requirement of any electric equipment.
Thus, the embodiment of the invention is in the process of study infrared encoded signal, in order to compress the infrared coding that arrives of study reducing memory space, the overall level number that forms with four kinds of width level value is that the infrared encoded signal of n is example, and the Learning Principle of infrared encoded signal comprises:
I) receive the infrared encoded signal that to learn, detect its carrier cycle, and according to rise and fall along measuring all high level and low level level width value, and according to the format record of similar following table 1, wherein, according to the maximum of maximum carrier cycle and level width, the coded data of carrier cycle and each level width value takies 16bit, because preceding two level may be infrared steering signal, the level width might be very big, therefore takies 32bit respectively:
Table 1.
Figure GDA00003320645500131
Ii) in the analytical table 1 record data, preceding two level may be infrared steering signal, need compile and be the pilot codes data, other level values are the level in the infrared coding control signal, a kind of have four kinds of level width values, and wherein equal at can thinking of setting range for error, for example difference is smaller or equal to 50 μ s(microseconds) about level think that all size is identical, encode according to a kind of form as shown in table 2 below then, form the signal coded data:
Table 2.
Figure GDA00003320645500132
Figure GDA00003320645500141
Table 2 comprises three partial contents, is specially:
First's content be numbered 0~3, comprise the level width value coded data string that four kinds of level width value coded datas form, in level width value coded data string, the ranking of each level width value coded data is fixed, and utilizes binary system four rankings respectively can be designated 00,01,10,11;
Need to prove that the bit number that each level width value coded data takies is to set according to the maximum level value in advance, total bit number that level width value coded data string takies also is to set according to maximum level value quantity maximums that may occur.If the level width value is less than four kinds situation, the part volume that then will not take gets final product for invalid data or arbitrary data.
For more than four kinds situation, only need adaptability according to the length of the maximum quantity expansion first of level width value.
Second portion be numbered 4~7, comprise the total number of level, carrier cycle and pilot codes coded data;
Need to prove that the bit number that the total number of level, carrier cycle and pilot codes coded data take respectively also is predefined.
Third part be numbered 8, in this part, appearance order according to each high-low level in the infrared coding control signal, and the ranking of level width value correspondence in first, the corresponding ranking in first of level width value can be used as the index code of determining the actual level width value in first's coded data string, therefore the ranking of the correspondence of all each high-low level width values is encoded and the appearance sequential combination according to high-low level after the serial data that forms can be called level width index coded data string.Like this, each level width index coded data only need take 2bit, and 48 bytes then can be deposited 192 level width value index coded datas, and is enough fully for electric equipment commonly used.
Still need to prove, the bit number that each level width value index coded data takies, and total bit number that level width index coded data string takies also needs to preestablish.
When according to three partial contents in the predefined storage list 2 in turn of putting in order, then can be according to the setting that puts in order of three partial contents in the later stage, and aforesaid bit number occupancy, can from the coded data of storage, obtain all required data of reduction infrared encoded signal.Putting in order of three partial contents is not to be defined in the form that table 2 provides, and can arrange according to the order of arbitary convention, and later stage order is according to a preconcerted arrangement resolved coded data and got final product.
Also need to prove, owing to implied the total number of level in the infrared coding control signal in the level width index coded data string, so the total number of the level in table 1 and the table 2 can not need.
Also need to prove, owing to do not contain steering signal in some infrared encoded signal, so the pilot codes in the second portion neither be necessary.
Embodiment one
Based on above-mentioned concrete example, the learning method of a kind of remote controller infrared encoded signal that embodiment one provides comprises the steps:
Step 1, be recorded in the level width value of at least two pilot codes that receive successively before the infrared coding control signal respectively;
At least two pilot codes are that high-low level alternately occurs, and wherein first pilot codes is high level, and last pilot codes is low level, if there is not steering signal, then this step can be omitted.
The infrared coding control signal that the remote controller that step 2, reception will be learnt sends, obtain the carrier cycle of infrared coding control signal, and high level and low level appearance order and level width value in the infrared coding control signal, what wherein occur for the first time in the infrared coding control signal is high level;
Step 3, according to the size of all level width values that obtain, big or small identical level width value wherein is encoded to level width coding data, and all level width coding data are combined as level width coding serial data, the byte number that each level width coding data takies is first set point, and the total bytes that level width code data string takies is second set point;
Step 4, putting in order according to each level width coding data in the level width coding serial data, determine the ranking of each high level or low level level width value correspondence in level width coding serial data, the ranking of determining is encoded in proper order according to each high level and low level appearance and be combined as level width index coded data string, the byte number that the coded data of each ranking takies is the 3rd set point;
Step 5, carrier cycle is encoded to the carrier cycle coded data, the byte number that the carrier cycle coded data takies is the 4th set point;
Step 6, the level width value of at least two pilot codes is encoded respectively and be combined into pilot codes coded data string, the byte number that each pilot codes coded data takies is the 5th set point, and the total bytes that pilot codes coded data string takies is the 6th set point
Step 7, according to setting sequential combination level width coding serial data, carrier cycle coded data, pilot codes coded data string and level width index coded data string, form the coded data of remote controller infrared encoded signal.
Certainly, can also add up all high level and low level total number, and total number is encoded to total number coded data, the byte number that total coded data takies is the 7th set point; And in the signal coded data, comprise total number coded data.
Embodiment one provides a kind of launching technique of corresponding remote controller infrared encoded signal according to the signal coded data, comprises the steps:
Step 1, from the coded data of infrared encoded signal, obtain level width coding serial data, pilot codes coded data string, carrier cycle coded data and level width index coded data string;
Concrete:
According to the putting in order in the signal coded data of first in the table 1, the byte number that each level width coding data takies, the total bytes that level width code data string takies, obtain level width coding serial data, and each level width code data;
According to the putting in order in the signal coded data of second portion in the table 1, the total bytes that the byte number that the byte number that the bit number that the coded data of total number of level takies, carrier cycle coded data take, each pilot codes coded data take and pilot codes coded data string take obtains coded data, carrier cycle coded data and each pilot codes coded data of the total number of level respectively.
According to the putting in order in the signal coded data of third part in the table 1, the byte number that each level width index coded data takies, the total bytes that level width index coded data string takies is determined the level width index coded data of the level width of each;
Step 2, determine each high level and low level level width and shooting sequence in the infrared coding control signal;
In level width index coded data string, according to each high level and the tactic level width of the appearance of low level in infrared coding control signal index coded data, and the level width coding data in the corresponding ranking in the level width coding serial data, determine each high level and low level level width and shooting sequence in the infrared coding control signal;
Step 3, determine the carrier frequency of emission remote controller infrared coding control signal according to the carrier cycle coded data;
Step 4, according to each high level in the infrared coding control signal and low level level width and shooting sequence, launch high level and the low level signal that steering signal and infrared coding control signal comprise successively according to carrier frequency.
If comprise steering signal in the infra-red code signal, then also need according to pilot codes coded data reduction steering signal and before control signal, send.
Embodiment two
Further for saving amount of coded data, can also set up level width value coded data as shown in table 3 below and the mapping table between the index for the remote controller that a quilt is learnt:
Table 3.
Level width value index Level width value coded data
001 Level width value coded data 1
010 Level width value coded data 2
011 Level width value coded data 3
100 Level width value coded data 4
101 Level width value coded data 5
…… ……
Unified level width value coded data and the index deposited in mapping table, do not need in the coded data of each infrared encoded signal, to preserve again level width code data string, the bit number that index value in the mapping table takies rule of thumb is worth definite, and the level width value that satisfies maximum quantity gets final product.
Based on this, the learning method of executing a kind of remote controller infrared encoded signal that example two provides specifically comprises the steps:
Step 1, receive the infrared coding control signal that the remote controller that will learn sends, obtain the carrier cycle of infrared coding control signal, and high level and low level appearance order and level width value in the infrared coding control signal;
In the infrared coding control signal, high-low level alternately occurs, and what occur for the first time is high level.
Each level width value that step 2, judgement obtain all has been recorded in the mapping table of level width value coded data and level width value index, if then carry out next step 4, otherwise execution in step 3;
Step 3, in mapping table, add coded data and the level width value index thereof of the level width value be not recorded, continue next step 4;
Step 4, determine each high level or low level level width value corresponding level width value index and encoding in mapping table;
Step 5, according to each high level and low level appearance order level width value index coded data is combined as level width index coded data string;
Wherein: the byte number that the coded data of each ranking takies is the 3rd set point;
Step 6, carrier cycle is encoded to the carrier cycle coded data;
Wherein: the byte number that the carrier cycle coded data takies is the 4th set point;
Step 7, according to setting sequential combination carrier cycle coded data and level width index coded data string, form the coded data of remote controller infrared encoded signal.
Further, before receiving the remote controller infrared coding control signal that to learn, can also comprise: the level width value that is recorded at least two pilot codes that receive successively before the infrared coding control signal respectively, wherein at least two pilot codes comprise the high-low level that alternately occurs, first pilot codes is high level, and last pilot codes is low level;
Also comprise before forming the coded data of remote controller infrared encoded signal: the level width value of at least two pilot codes is encoded respectively and be combined into pilot codes coded data string, the byte number that each pilot codes coded data takies is the 5th set point, and the total bytes that pilot codes coded data string takies is the 6th set point; And
In the coded data of outside line remote controller infrared encoded signal, also comprise pilot codes coded data string in the setting ordering.
Further, when receiving the remote controller infrared coding control signal that to learn, also can also comprise: all high level of accumulative total and low level total number; And
The coded data that forms the remote controller infrared encoded signal also comprises before: total number is encoded to total number coded data, and the byte number that total coded data takies is the 7th set point; And
In the coded data of outside line remote controller infrared encoded signal, also comprise total number coded data in the setting ordering.
According to above-mentioned learning method, the launching technique of a kind of remote controller infrared encoded signal that the embodiment of the invention two provides comprises the steps:
Step 1, from the coded data of remote controller infrared encoded signal, obtain carrier cycle coded data and level width index coded data string;
The concrete byte number that takies according to the coded data of putting in order of setting, each ranking, and the byte number that the carrier cycle coded data takies determines carrier cycle coded data and the position of level width index coded data string in coded data, and obtains the data coding that needs from the relevant position.
The index that comprises each high level and low level level width value in the infrared coding control signal in the level width index coded data string, and according to each high level and low level the appearance in the infrared coding control signal is arranged in proper order.
Step 2, determine each high level and low level level width value and shooting sequence in the infrared coding control signal;
Concrete, according to the level width index coded data in the level width index coded data string, from mapping table, find out the level width value coded data of each high-low level, and according to the putting in order of level width index coded data in the level width index coded data string, determine each high level and the low level appearance order in the infrared coding control signal.
Step 3, determine the carrier frequency of emission remote controller infrared coding control signal according to the carrier cycle coded data;
Step 4, according to each high level in the infrared coding control signal and low level level width value and shooting sequence, launch high level and low level signal successively according to carrier frequency.
Further, if also comprise pilot codes coded data string in the coded data, then also the desired location from the coded data of remote controller infrared encoded signal obtains pilot codes coded data string; And before the emission infrared coding control signal, according to the signal of at least two pilot codes of transmit frequency.
Further, if also comprise the coded data of all high level and low level total number in the coded data, then also the desired location from the coded data of remote controller infrared encoded signal obtains the coded data of all high level and low level total number; And when launching high level and low level signal successively according to carrier frequency, according to total number of total number coded data correspondence, determine high level and low level total number of launching.
Embodiment three
When needing the infrared encoded signal of different remote of a plurality of equipment of study, further for saving amount of coded data, can also set up level width value coded data as shown in table 4 below and the mapping table between the index:
Table 4.
Figure GDA00003320645500201
Figure GDA00003320645500211
Wherein, level width value index comprises group number and numbering, and group number is illustrated in the level width value that study is first arrived in the infrared encoded signal, the sequencing that number-mark level width value is learned in this infrared encoded signal.Concrete, in first infrared encoded signal study to the group number of level width value be 00, all study to four level width value serial numbers be 00,01,10,11.The follow-up varying level width value sequential organization group number that study is arrived in other infrared encoded signal, for example in second infrared encoded signal, learn to 6 level width values, wherein four identical with the level width value that arrives of study in first infrared encoded signal, repeated storage no longer, only storage is wherein different two, and respective settings group number 01 and number 00,01, and the like.Be combined as complete level width value index by group number and numbering like this, be used for distinguishing each different level width value.
Unified level width value coded data and the index deposited in mapping table, do not need in the coded data of each infrared encoded signal, to preserve again level width code data string, the bit number that index value in the mapping table takies rule of thumb is worth definite, and the level width value that satisfies maximum quantity gets final product.Compare embodiment two, can further save memory space.
The study of infrared encoded signal and step of transmitting can repeat no more here referring to the description of embodiment three.
Embodiment four
Considering that the identical probability of level width value that occurs in the unlike signal of different remote is very high, also can be that group is set up level width value coded data as shown in table 5 below and the mapping table between the index with the infrared encoded signal:
Table 5.
Figure GDA00003320645500212
Figure GDA00003320645500221
Wherein, one group of level width value numbering for study in different infrared encoded signal is arrived is called level width value index group number, does not have at least one level width value inequality between a plurality of level width values on the same group.Like this in learning process, if the level width value that occurs in the infrared encoded signal that is being learnt by wherein one group all contain, then can utilize the information that has been recorded in the table 5 to encode, otherwise in table 5, encode again behind one group of new level width value of record.
The coded format example is as shown in table 6 below, in the signal coded data, increase a level width value index group number coding, be used for the group number in the corresponding level width value coded data of table 5 inquiry, further according to level width value index coded data string, determine each high level or low level level width value one by one again.Compare with embodiment four, although increased level width value index group number coding in the signal coded data, but the bit number that each level width value index takies can correspondingly reduce, and total data volume is corresponding minimizing also, thereby has further saved memory space.
Table 6
Figure GDA00003320645500222
Be also to comprise in the mapping table, the group number for the coded data according to the one group of level width value that records in the same infrared encoded signal arranges does not have at least a level width value coded data inequality in a plurality of level width value coded datas on the same group; And in the infrared encoded signal coded data, also comprise: the group number coded data that contains all level width value coded data respective sets in the control signal of this infrared encoded signal.
The study of infrared encoded signal and step of transmitting can repeat no more here referring to the description of embodiment three.
Based on above-mentioned principle, shown in Fig. 2 b, the universal remote control in a kind of intelligent home control system that the embodiment of the invention provides comprises:
Display module 21, the interface is controlled in the operation that is used for the demonstration intelligent home control system; The display module of remote controller can be liquid crystal touch screen, and is designed to the control interface of icon drag, is convenient to operation.
Close range wireless communication module 22 is used for realizing wireless near field communication;
Infrared signal transceiver module 23, the remote controller that is used for the reception intelligent home device sends infrared encoded signal and the forwarding of different control functions;
First embedded microprocessor 24, connect display module 21 by the LCD data/address bus, and by holding wire connection infrared signal transceiver module 23, be used for according to the infrared encoded signal learn command of controlling the interface input by the operation of display module, detect the high level or low level rising edge and the trailing edge that comprise in the infrared encoded signal of infrared signal transceiver module reception, replace high level and low level level width value and the appearance order that occurs according to the testing result record, generate the coded data of the infrared encoded signal of respectively controlling the function correspondence according to the record result, and when receiving the operation information of remote control home equipment by operation control interface, infrared encoded signal coded data according to control function correspondence, generate corresponding control command and output, wherein: what occur for the first time in the infrared coding control signal is high level;
Second embedded microprocessor 25, be connected between first embedded microprocessor 24 and the close range wireless communication module unit 22 by serial line interface respectively, also send by close range wireless communication module 22 for receiving first control command that embeds the processing 24 devices output that declines.
Further first embedded microprocessor 24 specifically comprises:
Record sub module, be used for connecting the infrared encoded signal receiver module by holding wire, according to the infrared encoded signal learn command of importing by the operation control interface of module, detect the high level or low level rising edge and the trailing edge that comprise in the infrared encoded signal of infrared signal transceiver module reception, replace high level and low level level width value and the appearance order that occurs according to the testing result record;
The coding submodule is used for according to recording the coded data that the result generates the infrared encoded signal of respectively controlling the function correspondence;
Sub module stored is for the coding result of memory encoding submodule;
The reduction submodule, be connected second embedded microprocessor by serial line interface, when being used for receiving the operation information of remote control home equipment by operation control interface, from sub module stored, obtain the infrared encoded signal coded data of respective control function, generate corresponding control command and export to second embedded microprocessor.
According to aforesaid infrared signal coding principle and reduction principle, the coding submodule specifically comprises:
Be used for the size according to all level width values that obtain, big or small identical level width value wherein is encoded to level width coding data, and all level width coding data are combined as the unit of level width coding serial data, the byte number that each level width coding data takies is first set point, and the total bytes that level width code data string takies is second set point;
Be used for putting in order according to level width coding each level width coding data of serial data, determine the ranking of each high level or low level level width value correspondence in level width coding serial data, the ranking of determining encoded and according to each high level with low levelly the unit that sequential combination is level width index coded data string occurs, the byte number that the coded data of each ranking takies is the 3rd set point;
Be used for carrier cycle is encoded to the unit of carrier cycle coded data, the byte number that the carrier cycle coded data takies is the 4th set point;
Be used for forming the unit of the coded data of remote controller infrared encoded signal according to setting sequential combination level width coding serial data, carrier cycle coded data and level width index coded data string; And
The reduction submodule specifically comprises:
Be used for according to putting in order of setting, the byte number that each level width coding data takies, the total bytes that level width code data string takies, the byte number that the coded data of each ranking takies, and the byte number that takies of carrier cycle coded data, from the coded data of remote controller infrared encoded signal, obtain level width coding serial data, the unit of carrier cycle coded data and level width index coded data string, wherein, level width coding serial data comprises a plurality of level width value codings that size is inequality, the coded data that comprises each high level and low level level width value corresponding ranking in level width coding serial data in the infrared coding control signal in the level width index coded data string, and according to each high level and low level the appearance in the infrared coding control signal is arranged in proper order;
Be used for according to level width index coded data string, according to each high level and the tactic level width of the appearance of low level in infrared coding control signal index coded data, and the level width coding data in the corresponding ranking in the level width coding serial data, determine the unit of each high level and low level level width and shooting sequence in the infrared coding control signal;
Be used for determining according to the carrier cycle coded data unit of the carrier frequency of emission remote controller infrared coding control signal;
Be used for according to each high level of infrared coding control signal and low level level width and shooting sequence, export high level and low level unit successively according to carrier frequency.
Perhaps, the coding submodule specifically comprises:
Be used for when each the level width value that obtains all has been recorded in the mapping table of level width value coded data and level width value index, carrying out next step, otherwise continue the unit of next step behind the coded data of the level width value that interpolation is not recorded in mapping table and the level width value index thereof;
For determining each high level or low level level width value at the level width value index of mapping table correspondence and encoding, according to each high level and low level appearance order level width value index coded data is combined as the unit of level width index coded data string, the byte number that the coded data of each ranking takies is the 3rd set point;
Be used for carrier cycle is encoded to the unit of carrier cycle coded data, the byte number that the carrier cycle coded data takies is the 4th set point;
Be used for forming the unit of the coded data of remote controller infrared encoded signal according to setting sequential combination carrier cycle coded data and level width index coded data string; And
The reduction submodule specifically comprises:
Be used for the byte number that the coded data according to putting in order of setting, each ranking takies, and the byte number that takies of carrier cycle coded data, from the coded data of remote controller infrared encoded signal, obtain the unit of carrier cycle coded data and level width index coded data string, wherein, the index that comprises each high level and low level level width value in the infrared coding control signal in the level width index coded data string, and according to each high level and low level the appearance in the infrared coding control signal is arranged in proper order;
Be used for according to level width index coded data string, according to each high level and the tactic level width of the appearance of low level in infrared coding control signal index coded data, and the mapping table of level width value coded data and level width value index, determine the unit of each high level and low level level width value and shooting sequence in the infrared coding control signal;
Be used for determining according to the carrier cycle coded data unit of the carrier frequency of emission remote controller infrared coding control signal;
Be used for according to each high level of infrared coding control signal and low level level width value and shooting sequence, launch the unit of high level and low level infrared encoded signal according to carrier frequency successively.
The intelligent home control system that the embodiment of the invention provides, purpose are to realize the unified control of home equipment, for example:
TV remote controller study and the principle of controlling by system:
By having the remote controller of infrared learning function, learn original TV remote controller infrared coding;
For the infrared encoded signal of learning the back and be stored on the corresponding home equipment controller is worked out a code;
Corresponding control terminal has the power line carrier module and can connect power line, and has memory module in order to storage and synchronous infrared coding and its code of corresponding home equipment controller; And has infrared transmission module;
Remote controller finish study and and corresponding home equipment controller synchronously after, only preserve the code that corresponding home equipment controller is given.
Remote controller sends to sensing repeater with control routine by close range wireless communication according to user instruction; The sensing repeater is transmitted to corresponding home equipment controller; Corresponding home equipment controller is transmitted to corresponding control terminal; Corresponding control terminal is according to the corresponding infrared coding of receiving of code emission.
Automatically control example as:
Suppose, connect optical sensor, temperature sensor, humidity sensor, human body sensor on the sensing repeater;
Suppose that corresponding home equipment controller such as door and window control, curtain control, air-conditioning control, light control has been installed by system; Emphasized strong when optical sensor collects illumination; Human body sensor collects indoor unmanned; Temperature sensor collects temperature and suits; Humidity sensor collects humidity and suits; At this moment, each corresponding home equipment controller can both receive that the sensing repeater sends information; Need carry out following control:
Because indoor unmanned, door and window can be in (locking) state of closing;
Because intensity of illumination is too high, curtain can be pulled on automatically;
Because temperature is suitable, air-conditioning quits work;
Because indoor unmanned, and intensity of illumination is too high, and illuminator is closed;
To collect intensity of illumination low excessively when optical sensor; Human body sensor collects the indoor people of having; Temperature sensor collects temperature and crosses cold or overheated; Humidity sensor collects humidity height (arriving the rainfall standard); At this moment, each corresponding home equipment controller can both receive that the sensing repeater sends information; Need following control:
Because indoor have a people, door can be in unlatching (not locking) state;
Because just in rainfall, window can be in closed condition;
Because intensity of illumination is low excessively, curtain can be opened automatically;
Because temperature is crossed cold or overheated, air-conditioning is started working;
Because indoor have the people, though intensity of illumination is low excessively, after opening, curtain may intensity of illumination can change, illuminator is awaited orders;
By above description as seen, automatically control singly is not according to the different corresponding home equipment controller of environmental data control, and each corresponding home equipment controller also can offer other corresponding home equipment controller as a kind of environmental data, selects exectorial reference frame as it.
The intelligence lamp control system
Specific implementation with the lamp control system in the Smart Home control is that example is elaborated below.In the present embodiment, remote command can directly be controlled the light fixture control terminal.
The embodiment of the invention provides a kind of lamp control system, can be used in the household, also can be used in the office space of a plurality of workplaces, is used for control and is distributed in the not light fixture of chummery, and the light fixture control mode generally has following four kinds of demands:
■ controls light fixture by the light fixture control interface of hand-held remote controller;
■ controls light fixture by login remote web page control interface;
■ controls light fixture by the physics hand switch;
■ controls the carrying out of light fixture automatically according to the control model of setting.
Wherein, first three kind demand is manually control, and last a kind of demand is control automatically.
Also be elaborated by reference to the accompanying drawings with specific embodiment below.
Shown in Fig. 3 a, the embodiment of the invention is at first for realizing first kind of light fixture demand for control, the lamp control system that provides mainly comprises: remote controller 31, be arranged at least one the sensing repeater 32 in the chummery not, and at least one light fixture control terminal 33 of controlling each light fixture state, wherein:
Adopt the short distance wireless communication technology to communicate between remote controller 31 and the sensing repeater 32, for example use the free frequency range of public 2.4G to carry out wireless near field communication, and pass through power line network between sensing repeater 32 and the light fixture control terminal 33, the use power carrier signal communicates, at first, first function that the lamp control system that the embodiment of the invention provides is realized is: in any one room all, the user can understand the state of the different lamps that is distributed in each room by the control interface of hand-held remote controller 31, and can utilize the control interface of remote controller 31 that light fixture is controlled, each device need possess following function accordingly:
Remote controller 31, be used for receiving the operation information that the user controls the light fixture state, generate corresponding lamp remote-control instruction and use the short distance wireless communication technology to send to sensing repeater 32 according to operation information, and receive the light fixture state updating information of using the short distance wireless communication technology to transmit;
Sensing repeater 32, use the short distance wireless communication technology to communicate by letter with remote controller 31, and connection power line network, be used for receiving the remote control command that remote controller 31 sends, and by the instruction of power line network transmission lamp remote-control, and the light fixture state updating information that receives the power line network transmission, preserve the light fixture state updating information and use the short distance wireless communication technology to be transmitted to remote controller 31;
Light fixture control terminal 33, connect power line network, be used for the lamp remote-control instruction that the reception power line network transmits, resolve the lamp remote-control instruction and control the light fixture state according to analysis result, and when the light fixture state changes, transmit the light fixture state updating information by power line network.
Pass through said system, when being arranged on sensing repeater 32 in any one room and receiving the lamp remote-control instruction of remote controller 31, transmit by power line network in the capital, light fixture control terminal 33 receives the light fixture remote control command by power line network, instruction is resolved to lamp remote-control, if analysis result is that the light fixture of oneself controlling is controlled, carry out the instruction of this lamp remote-control and when the state of controlled corresponding light fixture changes, by power line network the light fixture state updating information is returned to remote controller 31, the state of all light fixtures of remote controller 31 record also in time upgrades recorded information according to the light fixture state updating information that receives, thereby makes the user understand the current state of all light fixtures and control as required by the control interface of remote controller 31.
Further for realizing second kind of demand of light fixture being controlled by the Long-distance Control webpage, the lamp control system that the embodiment of the invention provides, can also comprise: master controller 35, and be connected lamp controller 34 between power line network and the master controller 35, wherein:
Master controller 35 receives the long-range light fixture control command of submitting to by the Long-distance Control webpage and is transmitted to lamp controller 34 as telnet server;
Lamp controller 34 also is used for transmitting long-range light fixture control command by power line network;
Light fixture control terminal 33 also is used for receiving power line network and transmits long-range light fixture control command, resolves long-range light fixture control command and controls the light fixture state according to analysis result;
Lamp controller 34 also is used for receiving the light fixture state updating information of power line network transmission, and is transmitted to master controller 35.
For realizing the third demand for control, the lamp control system that the embodiment of the invention provides further comprises: the lamp switch of each light fixture, be connected between earth terminal and the corresponding light fixture control terminal 33, the level value that light fixture control terminal 33 detects by the lamp switch input, when level value is high level, the control light fixture is closed, otherwise the control light fixture is opened.
At last for realizing the 4th kind of automatic demand for control of light fixture being set pattern according to the ambient condition sensing data, the lamp control system that the embodiment of the invention provides can also comprise: transducer, connect sensing repeater 32, be used for gathering the ambient condition sensing data and sending to sensing repeater 32;
Sensing repeater 32 also is used for by power line network the ambient condition sensing data being transferred to lamp controller 34;
Lamp controller 34 also is used for generating automatic control command according to the automatic control mode of ambient condition sensing data and setting, and is transferred to lamp controller 34 by power line network;
Light fixture control terminal 33 also is used for receiving the automatic control command that power line network transmits, and resolves automatic control command and controls the light fixture state according to analysis result.
For example when ambient temperature or humidity reach setting range, open light fixture, close light fixture or adjust lamp brightness etc., the user can set the automatic control mode that needs as required flexibly, and disposes corresponding temperature sensor, humidity sensor, optical sensor and infrared human body inductive pick-up etc.
Below with the lamp control system of realizing above-mentioned four kinds of demands simultaneously as preferred embodiment, describe the present invention in detail.Wherein, the short distance wireless communication technology between remote controller 31 and the sensing repeater 32 is specially the 2.4G wireless network, and control command and state updating information are transmitted with the packets of information of setting form.
First. the management of equipment and light fixture
For realizing equipment such as sensing repeater 32, light fixture control terminal 33, and the management of light fixture, can be on remote controller 31 in advance according to the house type distribution map of application luminaire control system, the design management interface, in the facility registration process, for being installed in the not corresponding room rate sign indicating number of devices allocation and the device code of chummery, when light fixture control terminal 33 is controlled each light fixture, also further divide gamete light fixture sign indicating number for each light fixture, remote controller 31 is recorded in the device distribution information the allocation result distribution, and gives master controller 35 with the device distribution information synchronization.By administration interface, can when initialization or newly added equipment, equipment be added in the lamp control system, also can dismounting equipment after, deletion relevant device and relevant light fixture from system.Be elaborated below:
1). sensing repeater 32 is added in the lamp control system
A sensing repeater 32 is put in each room generally speaking, is used for gathering the environmental variance sensing data in this room and the forwarding of packets of information.Must register sensing repeater 32 earlier in the lamp control system, could register other light fixture control terminals 33, light fixture and transducer and be registered in this room.
Shown in Fig. 3 b, it is as follows that a sensing repeater 32 is registered to a certain room process:
1. by the human-computer interaction interface of remote controller 31, set up the house type distribution map of using this lamp control system, and distribute house code automatically for the room.
2. unregistered sensing repeater 32 powers on, and sensing repeater 32 sends registration request bag by the 2.4G wireless network to remote controller 31.
3. after remote controller 31 receives registration request bag, by the interface prompt user sensing repeater 32 request registration are arranged, the user by interface operation with 32 drag and drop of sensing repeater to the corresponding room, automatically be sensing repeater 32 distributing equipment sign indicating numbers, and allocation result is kept in the local facility information;
4. after remote controller 31 main users click the accreditation verification button, to sensing repeater 32 transmitting apparatus registration respond packet, wherein comprise house code and device code by the 2.4G wireless network.
5. after sensing repeater 32 is received the facility registration respond packet, remote controller 31 is kept in the device distribution information for the house code of its distribution and device code, and is labeled as registered state;
6. sensing repeater 32 sends the bag that succeeds in registration to remote controller 31;
7. remote controller 31 receives the bag that succeeds in registration.
Can successively each sensing repeater 32 be added in each room of lamp control system according to above order.
2). a light fixture control terminal 33 is added in this lamp control system, and set up corresponding relation with the actual physics light fixture of controlling
Each light fixture can also use switch enclosure to realize manually control, in the lamp control system provided by the invention, according to the light fixture of controlling, the corresponding light fixture control terminal 33 of each switch enclosure arranges, corresponding light fixture control terminal 33 device numbers of light fixture control terminal 33 configurations.Because a switch enclosure can comprise a plurality of switches, be respectively applied to control different light fixtures, therefore the light fixture of each switch control in the switch enclosure can be in control flow corresponding logic light fixture, each logic light fixture, a sub-light fixture number can be disposed, a logic light fixture can be uniquely determined by light fixture control terminal 33 device numbers, house code and sub-light fixture number (for example from 1 to 4).
Shown in Fig. 3 c, the flow process that first logic light fixture on the light fixture control terminal 33 is registered in the lamp control system comprises the steps:
1. the switch that connects on the action light fixture control terminal 33, light fixture control terminal 33 sends registration request bag and sends by power line network;
2. sensing repeater 32 receives registration request bag by power line network;
3. sensing repeater 32 request of will registering is wrapped and is forwarded in the remote controller 31 by the 2.4G wireless network;
4. after remote controller 31 receives registration request bag, by the interface prompt user light fixture request registration is arranged, and pass through interface operation the user, behind the relevant position with the corresponding room of lamp drag and drop, be light fixture control terminal 33 automatic distributor light fixture control terminal 33 device codes and sub-light fixture number, and allocation result is recorded in the local facility information of preserving;
5. after remote controller 31 main users click the accreditation verification button, by the 2.4G wireless network registration respond packet is sent to sensing repeater 32;
6. sensing repeater 32 should be registered respond packet and send to light fixture control terminal 33 by power line network, wherein comprised room number, device code and the sub-light fixture number in room, light fixture control terminal 33 place;
7. after light fixture control terminal 33 is received the registration respond packet, wherein room number, device code and sub-light fixture number are saved in the device distribution information of local record, and the corresponding light fixture of mark is registered state;
8~9. light fixture control terminals 33 send the bag that succeeds in registration by sensing repeater 32 to remote controller 31, and after remote controller 31 was received the bag that succeeds in registration, the logic light fixture succeeded in registration.
10~12. light fixture control terminals 33 are undertaken the device distribution information of oneself record synchronously by power line network broadcasting.
The registration process of other logic light fixtures in the light fixture control terminal 33 is similar, and difference has: in the first step, and the device code that the light fixture in the registration request that light fixture control terminal 33 sends has distributed when being numbered first registration; In second step, lamp control system no longer is light fixture control terminal 33 distributing equipment sign indicating numbers.Just all logic light fixtures can be registered in the lamp control system by above method.
3). a logic light fixture is deleted from lamp control system
With reference to the register flow path schematic diagram, its concrete course of work is as follows:
In the light fixture administration interface of remote controller 31, the light fixture that selection will be deleted, click delete button then, remote controller 31 sends to sensing repeater 32 by the 2.4G wireless network with light fixture removal request bag, by sensing repeater 32 this packet is forwarded in the corresponding light fixture control terminal 33 by power line network again.
After light fixture control terminal 33 is received the light fixture removal request, change this lamp into unregistered state, simultaneously house code is set to 0; If deletion is last light fixture of this terminal, also device code is set to 0, represent that this device code is for empty; Light fixture control terminal 33 sends light fixture by sensing repeater 32 to remote controller 31 and deletes successfully bag then, and when the device distribution information that oneself records changes, is broadcast to power line network again and carries out synchronously.
Remote controller 31 is deleted this light fixture after receiving that deletion is successfully wrapped from lamp control system, and upgrades local device distribution information of preserving.
4). a sensing repeater 32 is deleted from lamp control system.
Sensing repeater 32 is data acquisition and the retransmission centers in a room, must register sensing repeater 32 earlier in the lamp control system, could register other light fixtures in this room.For fail safe and maintainable consideration, if the sensing repeater 32 in a room is deleted, all light fixtures in this room also will be deleted from lamp control system.With reference to the register flow path schematic diagram, its concrete course of work is as follows:
Remote controller 31 selects to delete the sensing repeater 32 in room in the light fixture administration interface, click delete button then, and remote controller 31 sends light fixture removal request bag to the sensing repeater 32 in this room.
This sensing repeater 32 sends to all light fixture removal request bags of room in each light fixture control terminal 33 by the mode of power line network broadcasting.
After light fixture control terminal 33 is received all light fixture removal request bags of room of being broadcasted by sensing repeater 32, detect the light fixture whether this room is arranged, change this light fixture into unregistered state if having, and to put house code be 0, if this light fixture is last light fixture in this light fixture control terminal 33, putting its device code is 0.When light fixture control terminal 33 changes in the device distribution information that oneself records, be broadcast to power line network again and carry out synchronously.
This sensing repeater 32 is set to unregistered state after receiving the deletion respond packet of all light fixtures in this room, and to put house code be 0, and device code is 0, and successfully wraps to the deletion that remote controller 31 sends sensing repeaters 32.
After remote controller 31 receives that sensing repeater 32 is deleted successfully, from lamp control system, this sensing repeater 32 is deleted, and upgraded local device distribution information of preserving.
Sensing repeater 32 can the light fixture control terminal 33 that only synchronous and own house code is identical status information of equipment, only preserve the status information of equipment with the light fixture control terminal 33 in own same room like this on each transducer.Sensing repeater 32 also can all carry out the device distribution information of all light fixture control terminal 33 broadcasting synchronously, and the device distribution information on each repeater is the distributed intelligence of whole system complete device like this.
Through above-mentioned synchronizing process, in can maintenance system on actual device distribution and sensing repeater 32, the remote controller 31 the device distribution information of record be consistent.
Certainly, device distribution information also can only be stored on the remote controller 31, and status information of equipment mainly is stored in sensing repeater 32.
Second portion. the lamp operation control section
The control that this part content is mainly introduced light fixture control terminal 33 realizes, and how to realize that actual light fixture state information is with the light fixture state synchronization in remote controller 31, the remote web page control interface.
As previously mentioned, the control mode of light fixture has following four kinds of approach, and first three is planted control mode and is manual control mode.Then light fixture has following six kinds of states:
Automatically turn on light, turn off the light automatically, with an automatic light meter, manually turn on light, manually turn off the light, manually light modulation;
First three plants lamp state is the state that takes place when lamp is in automatic control mode, and back three kinds of states are states that lamp takes place when being in manual control model.
Transmission course to the light fixture state updating information bag of lamp control system registration is:
After light fixture control terminal 33 receives lamp control command (comprising lamp remote-control order and remote control command), switch or the light modulation of control lamp, and by the current state information bag of power line network to light control lamp controller 34 and sensing repeater 32 these lamps of transmission.
The sensing repeater 32(sensing repeater 32 in room, light fixture control terminal 33 place is safeguarded the last state of all light fixtures of room, place) receive light fixture state updating information bag after, send the condition responsive bag to light fixture control terminal 33, and the lamp state data packets is forwarded in the remote controller 31; And after the sensing repeater 32 in other rooms receives light fixture state updating information bag, by the 2.4G wireless network light fixture state updating information bag is dealt into remote controller 31.
Lamp controller 34 is forwarded to master controller 35 with this packet after receiving light fixture state updating information bag, can show correct lamp state accordingly in the remote web page control
After master controller 35 is received light fixture state updating information bag, upgrade the state of this lamp in the buffer memory, and send the condition responsive bags to the sensing repeater 32 in the room at this lamp place.
After remote controller 31 is received light fixture state updating information bag, upgrade the state of this lamp in the buffer memory, and the sensing repeater 32 transmission lamp condition responsive bags by wireless room to this lamp place.If will be forwarded in the sensing repeater 32 in room, light fixture place by power line after the sensing repeater 32 in other rooms is received lamp condition responsive bag.
If the sensing repeater 32 in room, light fixture place is not received the condition responsive bag of master controller 35 or remote controller 31, with the retransmission mechanism that starts in the sensing repeater 32, guarantee that master controller 35 and remote controller 31 can both receive light fixture state updating information bag.
Introduce concrete light fixture control procedure in all cases below respectively:
1). by physics hand switch control light fixture process
Referring to shown in Figure 1, when the physics hand switch on the action light fixture control terminal 33 was controlled opening or closing of light fixture, light fixture control terminal 33 can detect the level of physics hand switch one end, closes light fixture during high level, opens light fixture during low level.And carry out the renewal of light fixture state and system's control model mode to remote controller 31 and master controller 35 according to the state variation of light fixture.
Because the physics hand switch no longer directly links to each other with electric power networks, thereby can not bring Danger Electric shock risk to the operation user, improve the fail safe of manual control light fixture.
2). the light fixture control interface by remote controller 31 is controlled light fixture
The light fixture that selection will be controlled in the light fixture control interface of remote controller 31, select control command (manually to turn on light, manually turn off the light, manually light modulation, manual pattern is switched), and command packet sent to sensing repeater 32 by the 2.4G wireless network, be forwarded in the light fixture control terminal 33 by sensing repeater 32 again, control light fixture by light fixture control terminal 33 controls at this lamp place according to order, and send the state information bag of response.Operational order can for: manually turn on light, manually turn off the light, manually light modulation is turned on light automatically, is turned off the light automatically, six orders with an automatic light meter.
3). by remote web page control interface light fixture is controlled
The light fixture that selection will be controlled in the light fixture control interface of user in webpage, select control command (manually to turn on light, manually turn off the light, manually light modulation, manual pattern is switched), master controller 35 sends to lamp controller 34 with command packet, sent in the corresponding light fixture control terminal 33 by power line network by lamp controller 34 again, control light fixture by light fixture control terminal 33 controls at this lamp place according to order, and send the state information bag of response.
4). the control that lamp controller 34 carries out light fixture by automatic control mode
Lamp controller 34 is according to the variable data of automatic control mode and current room environment, automatically control being in light fixture under the automatic mode (namely send turn on light automatically, turn off the light automatically, order with an automatic light meter wrap light fixture control terminal 33), and send the state information of response.Wherein automatic control mode is judged by the ambient condition sensing data that sensing repeater 32 collects based on lamp controller 34, preset threshold before being lower than such as the room monochrome information that collects, then the automatic control mode lamp of turning on this room etc. that plays a role.
In above-mentioned control procedure, as required, in relevant control signaling, carry house code, device code or the sub-light fixture sign indicating number of control object, for sensing repeater 32 or light fixture control terminal 33 identification controlled devices.
Third part. keep room information, device distribution information and light fixture state information thereof in the master controller 35 consistent with reality
Depositing the concrete light fixture information such as (numbering of light fixture, the parameters of position) in house type distribution map, each room in the remote controller 31, and sensing repeater 32 is being deposited the latest state information of all light fixtures of room, place.Master controller 35 obtains required device distribution information and light fixture state information from remote controller 31, sensing repeater 32.
1). master controller 35 active request obtain the room devices distributed intelligence
Device distribution information (not comprising state information) generally first install or situation that master controller 35 re-powers under use during initialization, during operate as normal, the master controller 35 of lamp control system also can safeguard that automatically device distribution information and the whole system actual conditions of oneself preserving are consistent by lamp controller 34 in real time by the device distribution information of electric power networks transmission.
Master controller 35 also can send room light fixture request bag to remote controller 31, if house code is the device distribution information in all rooms of expression request 0, if house code is greater than the device distribution information in this room of expression request 0.
After remote controller 31 is received room light fixture request bag, judge whether house code is 0.
If house code=0, remote controller 31 send the device distribution information in this room to master controller 35.
If house code〉0, remote controller 31 sends the device distribution information in each rooms successively to master controller 35, and sends a key turn-on data bag (press a key and can open a plurality of light fixtures that the user has set) at last and represent that the device distribution information in all rooms has sent and finish.
After master controller 35 is whenever received a room devices distributed intelligence bag, to remote controller 31 room devices distributed intelligence respond packet takes place, this information has been received in expression.
After master controller 35 is received a key turn-on data bag, send a key to remote controller 31 and open respond packet, this information has been received in expression.
By above process, master controller 35 obtains all devices distributed intelligence (light fixture type, numbering, position etc.) in a room or a plurality of rooms by the mode of active request.
2). master controller 35 active request obtain the detailed process of room light fixture state information
In the lamp system course of normal operation, master controller 35 can receive the status information of equipment of electric power networks transmission in real time by lamp controller 34, and safeguards that automatically status information of equipment and the whole system actual conditions of oneself preserving are consistent.
Master controller 35 also can regularly initiatively send room light fixture state request bags to each sensing repeater 32, if the status information of equipment in house code=all rooms of expression request 0, if house code〉the device distribution information in this room of expression request 0.
After each sensing repeater 32 is received room light fixture state request bag, detect whether the house code field is 0
If house code=0, each sensing repeater 32 sends the light fixture state information in room separately to master controller 35 respectively, need to prove, the house code of closing all light fixtures also can be other particular identification code;
If house code〉0, only the sensing repeater 32 in this room sends the light fixture state information in room to master controller 35;
After master controller 35 is whenever received a room status information bag, send the room status information respond packet to phase inductive sensing repeater 32, this information has been received in expression.
By above process, master controller 35 obtains the latest state information of the light fixture in a room or a plurality of rooms by the mode of active request.
3). when the maintenance of lamp control system operate as normal to the room devices distributed intelligence in the master controller 35, light fixture state information
Mainly contain the following aspects:
Behind remote controller 31 interpolations or the deletion light fixture, can initiatively send room devices distributed intelligence bags to master controller 35.
After remote controller 31 modifications one key is opened and arranged, can initiatively send key unlatching packets of information to master controller 35.
After any light fixture state changes, all can send the current state information of these light fixtures to master controller 35.
All packets of lamp control system all have retransmission mechanism, to guarantee the reliability of lamp control system communication.
The 4th part. other
1). a key closing function
When the user goes out for a long time or need close whole light fixture because of other reasons, can realize this function by remote controller 31 or by the key X button in the webpage Long-distance Control.
It is as follows to close implementation procedure by remote controller 31 1 keys:
Remote controller 31 sends a key shutdown command bag (if cut out all compartment lamps, then house code=0 to sensing repeater 32; If only close all lamps of room, then house code is corresponding house code).
After sensing repeater 32 is received a key shutdown command bag, to each light fixture control terminal 33 these order of broadcasting, close respond packet to remote controller 31 and master controller 35 transmissions one key by power line network simultaneously.
After each light fixture control terminal 33 is received a key shutdown command, if light fixture is separately then closed in house code=0 or be the house code of oneself.
2). a key open function
The user can release the button by remote controller 31 or by the key in the webpage Long-distance Control and open a plurality of light fixtures (turning on light or light modulation) that pre-set.Its concrete course of work is as follows:
The user arranges the light fixture that needs a key to open by remote controller 31 interfaces, and remote controller 31 can send to master controller 35 to the key information of opening with the form of packet simultaneously, and is synchronous to keep both.
Click the key open command in the remote controller 31, remote controller 31 is according to the open command that sends each light fixture successively is set;
After sensing repeater 32 is received open command, forward the command to corresponding light fixture control terminal 33, open light fixture.
3). the transmission of ambient condition sensing data
Sensing repeater 32 timing acquiring indoor temperatures, humidity, brightness, whether a series of ambient condition sensing datas such as people are arranged, initiatively (or when receiving the sensing data request) mails to lamp controller 34, master controller 35 and remote controller 31 as required.
After lamp controller 34, master controller 35 or remote controller 31 are received the ambient condition sensing data, send the sensing data respond packet to sensing repeater 32.
Each module is introduced in detail
First. the master controller 35 of light fixture intelligence control system
Master controller 35 has two major functions: the one, realize home gateway (home gateway) function, and realize that automatically PPPOE dials up on the telephone; The 2nd, realize telnet server, and communicate by letter with status data with lamp controller 34 realization Smart Home controls.
Shown in Fig. 4 a, master controller 35 primary structures comprise embedded microprocessor 351 and link layer network chip 352, wherein:
Link layer network chip 351 is used for realizing network service;
Embedded microprocessor 352, be used for receiving the long-range light fixture control command of submitting to by behind the link layer network chip login Long-distance Control webpage, long-range light fixture control command is sent to lamp controller 34, and receive the light fixture state updating information that lamp controller 34 is transmitted, and according to the described light fixture state updating information state information of new lamp more.
Embedded microprocessor 352 can adopt the ARM9 embedded microprocessor, the link layer network chip can comprise that two 100M Ethernet chip realize the function of home gateway, simultaneously with the logical path of plate level serial data bus spi bus as master controller 35 and lamp controller 34.
Master controller 35 softwares can be with embedded Linux 2.6 versions as the lamp control system platform architecture, open required DHCP service, route service and the PPPOE dial-up service of network service, and having added Lighttpd WEB server, the integrated SPI of bottom drives.Whole master controller 35 software platform structured flowcharts are shown in Fig. 4 b.
Consider that webpage part will call the bottom spi bus and the interface that provides is provided sends with receiving control information to lamp controller 34, thereby adopt the mode development of C language+CGI; Simultaneously because webpage does not have real-time monitoring capacity, the supporting other background monitor that designed with it, between the two by the FIFO(named pipes) and file carry out information interchange, when webpage has control information to send, earlier control information is write FIFO, in a single day background monitor is found among the FIFO meaningful, calls SPI driving interface immediately and forwards information to lamp controller 34; Find control information when background monitor and send from the SPI driving, accept at once and write in the file, after webpage refreshes, can from file, read control information, with log-on message and each status information of equipment of correct each equipment of demonstration.
Therefore, a kind of concrete structure of embedded microprocessor 352 comprises shown in Fig. 4 c: webpage control unit 3521, FIFO memory cell 3522, information memory cell 3523 and background monitoring unit 3524, wherein:
Webpage control unit 3521, connect link layer network chip 351, be used for to receive the remote operation instruction of submitting to by the Long-distance Control webpage and store FIFO memory cell 3522 into, and from information memory cell 3523, read the light fixture state updating information and flush on the Long-distance Control webpage;
Background monitoring unit 3524, connect lamp controller 34 by serial bus interface, read the remote operation instruction in the FIFO memory cell 3522 successively and send to lamp controller 34, and receive lamp controller 34 and return with the light fixture state updating information and store in the information memory cell 3523;
Further, the background monitoring unit further is by lamp controller 34 receiving equipment log-on messages and store in the information memory cell 3523, the webpage control unit is fetch equipment log-on message and flushing on the Long-distance Control webpage from information memory cell 3523 also, so that the user in time understands registration scenarios and the current state of each equipment in the lamp control system.
The Long-distance Control webpage is flexible design as required, can show for the different icon of each room design according to house structure, clicks the light fixture device distribution information inspection page that corresponding room icon can enter corresponding room.The different state of light fixture also can have different icons to show, in webpage, still manually open for opening automatically for distinguishing current turning on light simultaneously, mouse moves to and will have concrete prompting on the icon as " opening automatically " or " manually opening ", and light modulation and turn-off are also distinguished automatically and manually and respectively and pointed out.Click the page that arranges that corresponding lamp icon will enter this light fixture equipment.Current light fixture equipment state can opened automatically, closing automatically, with an automatic light meterly, manual open, close by hand, switch between the manual light modulation.Concrete page designing technique is well known to those skilled in the art, and repeats no more here.
Second portion. lamp controller 34:
The major function of lamp controller 34 is to be responsible for the management of light fixture, realize the Based Intelligent Control of light fixture, simultaneously to power line network transmission network remote control commands, perhaps to master controller 35 feedback light fixture state informations, device distribution information, and according to the automatic control control model of ambient condition sensing data and setting light fixture is controlled automatically.
Shown in Fig. 5 a, lamp controller 34 comprises power line coupling module 341, power line signal processing module 342 and embedded microprocessor 343, wherein:
Power line signal coupling module 341, connect power line network by power line, being used for receiving modulation from power line network has the power line carrier signal of light fixture state updating information and transmits, and the power line carrier signal that receives is coupled transmits to power line network;
Power line signal processing module 342, be used for demodulating the light fixture state updating information and transmitting from the power line carrier signal that power line signal coupling module 341 is transmitted, and be transmitted to power line signal coupling module 341 after the light fixture remote control signal that receives is modulated to the power line carrier signal;
Embedded microprocessor 343, connect power line signal processing module 342 by serial line interface, be used for receiving the light fixture remote control signal and being transmitted to power line signal processing module 342 from the master controller 35 of lamp control system, and the light fixture state updating information that power line signal processing module 342 is transmitted sends to master controller 35.
Further, for realizing the automatic control of 34 pairs of each light fixtures of lamp controller, power line signal coupling module 341 also is used for receiving to modulate the power line carrier signal of ambient condition sensing data being arranged and being transmitted to power line signal processing module 342;
Power line signal processing module 342 is used for demodulating the ambient condition sensing data and being transmitted to embedded microprocessor 343 from the power line carrier signal that power line signal coupling module 341 is transmitted;
Embedded microprocessor 343, also be used for generating automatic control command according to ambient condition sensing data and automatic control mode, power line signal processing module 342 also is modulated to automatic control command in the power line carrier signal and is coupled on the power line network by power line coupling module 341 and sends.
Certainly, understand ambient condition in order to make the user pass through master controller 35, embedded microprocessor 343 can also be transmitted to the ambient condition sensing data master controller 35 synchronously to be shown to the user or to inquire about for the user.
For realize device distribution information on the master controller 35 synchronously, power line signal coupling module 341 also is used for receiving modulation to be had the power line carrier signal of device distribution information and is transmitted to power line signal processing module 342;
Power line signal processing module 342 is used for demodulating device distribution information and being transmitted to embedded microprocessor 343 from the power line carrier signal that power line signal coupling module 341 is transmitted;
Embedded microprocessor 343 also is used for device distribution information is transmitted to master controller 35.
Shown in Fig. 5 b, a kind of concrete structure of embedded microprocessor 343 comprises:
First receiving element 3431, the first first-in first-out FIFO buffer 3432 and first processing unit 3433, first receiving element 3431 connects master controller 35 by serial line interface, first processing unit connects power line signal processing module 342 by serial line interface, first receiving element 3431 is used for reading remote control commands successively and send to power line signal processing module 342 by serial line interface from a FIFO buffer 3432 from master controller 35 receiving remote control commands and according to receiving the storage order of sequential storage to a FIFO buffer 3432, the first processing units according to remote control commands;
Second receiving element 3434, the 2nd FIFO buffer 3435 and second processing unit 3436, second receiving element 3434 connects power line signal processing module 342 by serial line interface, processing unit connects master controller 35 by serial line interface, second receiving element 3434 is used for from power line signal processing module 342 reception data and according to receiving sequential storage to the two FIFO buffers 3435, second processing unit 3436 reads data successively according to the storage order of data from the 2nd FIFO buffer 3435, when the data that read are light fixture state updating information and device distribution information, the data that read are transmitted to master controller 35 by serial line interface, when the data that read are the ambient condition sensing data, generate automatic control command according to ambient condition sensing data and automatic control mode, and by serial line interface automatic control command is sent to power line signal processing module 342.
Preferable, shown in Fig. 5 c, second processing unit 3436 specifically comprises: data read subelement, data validation subelement, data are transmitted subelement, are controlled subelement and order transmission subelement automatically, wherein:
The data read subelement connects the 2nd FIFO buffer 3435, is used for reading data and sending to the data validation subelement from the 2nd FIFO buffer 3435 successively according to the storage order of data;
The data validation subelement, when be used for confirming that data that the data read subelement reads are light fixture state updating information and device distribution information, transmit subelement by data and be transmitted to master controller 35, when confirming that data are the ambient condition sensing data, be transmitted to automatic control subelement;
Automatically the control subelement generates automatic control command and sends to order transmission subelement according to ambient condition sensing data and automatic control mode;
Order sends subelement and by serial line interface automatic control command is sent to power line signal processing module 342.
Wherein, the data validation subelement, the ambient condition sensing data that also is used for confirming is transmitted subelement by data and is transmitted to master controller 35.
Embedded microprocessor 343 can adopt the ARM9 embedded microprocessor as the control core equally, carries serial data bus by plate between ARM9 embedded microprocessor and the power line signal processing module and connects.
Third part. sensing repeater 32
Sensing repeater 32 major functions are to be responsible for wireless and power line network data forwarding before, are responsible for various transducers (temperature sensor, humidity sensor, luminance sensor etc.) data acquisition simultaneously.So sensing repeater 32 is integrated close range wireless communication module and power line carrier signal processing module, peripheral integrated various types of other transducer simultaneously.
As shown in Figure 6, the sensing repeater 32 in the lamp control system mainly comprises:
Close range wireless communication module 321 is used for receiving light fixture remote control command and forwarding from remote controller 31, and receives the light fixture state updating information and send to remote controller 31;
Embedded microprocessor 322, connect close range wireless communication module 321 by serial line interface, receive lamp remote-control instruction and output that close range wireless communication module 321 is transmitted, and receive and preservation light fixture state updating information, and the light fixture state updating information is transmitted to close range wireless communication module 321;
Power line signal processing module 323, connect embedded microprocessor 322 by serial line interface, continue to transmit after the lamp remote-control instruction of embedded microprocessor 322 output is modulated to the power line carrier signal, and from the power line carrier signal that receives, demodulate the light fixture state updating information and be transmitted to embedded microprocessor 322;
Power line signal coupling module 324, be connected between power line network and the power line signal processing module 323, be used for the power line carrier signal that power line signal processing module 323 is transmitted is transmitted by power line network, and the power line carrier of light fixture state updating information arranged and be transmitted to power line signal processing module 323 from power line network reception modulation.
For realizing collection and the forwarding of ambient condition sensing data, sensing repeater 32 also further comprises:
At least one transducer, the output of each transducer connects the data input pin of embedded microprocessor 322 respectively, is used for gathering the ambient condition sensing data and being transferred to embedded microprocessor 322;
Embedded microprocessor 322 also is used for preserving the ambient condition sensing data and being transmitted to power line signal processing module 323;
Power line signal processing module 323 also is used for the ambient condition sensing data is modulated to the power line carrier signal, and the power line carrier signal that will modulate the ambient condition sensing data continues to be transmitted to power line signal coupling module 324;
Power line signal coupling module 324, the power line carrier signal that also is used for having modulated the ambient condition sensing data is coupled on the power line network and sends.
Further synchronous for the collection that realizes registering functional and device distribution information:
Embedded microprocessor 322 also is used for generating sensing repeater 32 in the back that powers on and registers request and send to remote controller 31 by close range wireless communication module 321;
Close range wireless communication module 321 also responds and is transmitted to embedded microprocessor 322 for sensing repeater 32 registrations that reception remote controller 31 returns;
Embedded microprocessor 322, also being used for obtaining remote controller 31 from the 32 registration responses of sensing repeater is house code and the device code that sensing repeater 32 distributes, and is recorded in the device distribution information.
For the collection of the registration that realizes other light fixture control terminals 33 and light fixture control terminal 33 device distribution information and synchronously:
Power line signal coupling module 324, also being used for receiving modulation from power line network has the power line carrier signal of light fixture control terminal 33 registration requests and sends to power line signal processing module 323, power line signal processing module 323 therefrom demodulates light fixture control terminal 33 registration request and is transmitted to embedded microprocessor 322, and embedded microprocessor 322 sends to remote controller 31 by close range wireless communication module 321 with the registration request of light fixture control terminal 33; And
Close range wireless communication module 321, also light fixture control terminal 33 registrations of returning for reception remote controller 31 respond and are transmitted to the power line carrier signal by embedded microprocessor 322, the power line carrier signal is modulated to light fixture control terminal 33 registration response on the power line carrier signal, and is coupled to by power line signal coupling module 324 and is transferred to light fixture control terminal 33 on the power line network;
Power line signal coupling module 324, also being used for receiving modulation from power line network has the power line carrier signal of light fixture control terminal 33 device distribution information and sends to power line signal processing module 323, power line signal processing module 323 therefrom demodulates light fixture control terminal 33 device distribution information and is transmitted to embedded microprocessor 322, and embedded microprocessor 322 is recorded to light fixture control terminal 33 device distribution information in the local device distribution information.
Preferable, embedded microprocessor 322 be the AVR series monolithic.Serial line interface is the RS232 serial line interface.Transducer comprises at least: humidity sensor, temperature sensor, optical sensor or infrared induction transducer.
For guaranteeing the transmission of equipment state lastest imformation, sensing repeater 32 can be saved in all status information of equipment bags from power line network in the state information bag chained list, if relevant device or remote controller 31 are beamed back the response confirmation bag, then in the respond packet chained list, add the respond packet of this equipment, represent that this status information transmission enters into force.Suppose that relevant device or remote controller 31 do not beam back the response confirmation bag, sensing repeater 32 keeps chaining search respond packet chained list, do not receive when the response confirmation bag that retrieves this terminal equipment, then after matching status packets of information linked list data, the renewal of the equipment state information is retransmitted.This flow process guarantees to produce under the more intense disturbed condition in the external world, still can safeguard the consistency of entire equipment state information.Certainly its number of retransmissions has certain upper limit, and this can be changed according to concrete circumstance complication degree.
The handling principle of corresponding registration request and response is identical, and when not receiving the registration information respond packet, setting-up time for example sent the registration information bag in 1 minute again at interval.After arriving the request number of times upper limit, then stop to send this packets of information.
Owing to stored complete device distributed intelligence and light fixture state information in the sensing repeater 32, when remote controller 31 is restarted when resetting, can from sensing repeater 32, obtain device distribution information and light fixture state information by equipment state and login state request bag, improve the man-machine interaction of system.
The 4th part. control terminal
The major function of control terminal is the corresponding control terminal of control command of Smart Home control network, the final actuator that light fixture is carried out actions such as switch, adjusting, application model configuration, and the work state information of extraction light fixture feeds back to power line network.The light fixture control terminal 33 general functions such as switch, light modulation and light state information feedback that realize four street lamp light of existing design.
As shown in Figure 7, the light fixture control terminal 33 in a kind of lamp control system comprises: power line signal coupling module, power line signal processing module, embedded microprocessor and at least one switch module, wherein:
The power line signal coupling module connects power line network, the power line signal processing module links to each other with the power line signal coupling module, and connect the signal input part of embedded microprocessor by serial line interface, the signal output part of embedded microprocessor connects the control end of each switch module, and each switch module is used for the power supply circuits of one or one group light fixture of control;
The power line signal coupling is used for receiving modulation from power line network to be had the power line carrier signal of light fixture control command and is transmitted to the power line signal processing module;
The power line signal processing module demodulates the light fixture control command for the power line carrier signal of transmitting from the power line signal coupling circuit and sends to the signal input part of embedded microprocessor by serial line interface;
The light fixture control command that embedded microprocessor receives according to signal input part generates the control signal of switch module, and exports to switch module by signal output part, is used for the power supply circuits that the control switch module is opened or closure is controlled.
Further manually control for realizing, the hand switch that the power supply circuits that corresponding each switch module is controlled arrange, wherein: an end of each hand switch connects earth terminal, and the other end connects a data input of embedded microprocessor respectively;
Embedded microprocessor also is connected with the level value of the data input pin of hand switch for detection of each, when level value is high level, controls corresponding switch module and disconnect, otherwise control corresponding switch module closure.
Further for realizing brightness adjustment control, switch module can be selected solid state relay, light fixture control terminal 33 also comprises: zero-crossing detector, connect power line network by power line, for detection of the zero point in each cycle of alternating current, and the zero passage detection signal input part to embedded microprocessor is imported the zero cross fired signal when detecting zero point, when embedded microprocessor instructs for the light fixture light modulation in control command, according to the conducting angle of zero cross fired signal controlling solid state relay in each ac period.
For realizing the feedback of light fixture state information, embedded microprocessor also is used for record light fixture state information, and when the light fixture state changes, sends the light fixture state updating information by serial line interface to the power line processing module;
After the power line processing module is modulated to the power line carrier signal with the light fixture state updating information, be coupled to the power line network transmission by the power line signal coupling module.
The major function of intelligent terminal is the corresponding control terminal of control command of Smart Home control network, home appliance to each classification carries out the final actuator that switch, adjusting, application model configuration etc. are moved, and the work state information of extraction home appliance feeds back to power line network.The light intelligent terminal of existing design is realized the functions such as switch, light modulation and light state information feedback of four street lamp light.
Because it is reasonable in design, the intelligent terminal advantage is also embodied in to be used and installs, when intelligent terminal is installed, need only existing light switch panel is unloaded, then intelligent terminal is packed in the middle of existing switch 86 boxes, do not need to change the light switch panel, the intelligent terminal of newly packing into has well kept original switch, and occupation mode and operating characteristic there are not change, the user can not feel to have installed intelligent terminal with why not together having originally, and because switch key no longer contacts the power line live wire, so more more safe and reliable than originally.
Controlling four lamps respectively with four solid-state relays below is example, describes control principle in detail, utilizes 0 two break in service functions of external interrupt and timer to realize.Principal function partly is responsible for the transmission of data in the detection of switch motion and the buffer memory.Serial line interface interrupts being responsible for the reception of system applies protocol command information.
1). initialization section
The physics hand switch of 4 lamps all is open mode when initial;
The state that 4 lamps are set is physics hand switch state and preserves;
Read original levels state and the preservation of four data input ports that connect respectively of 4 switches;
The level state of four data input ports that 4 lamps connect is set, makes each solid-state relay be in closed condition, namely lamp is in closed condition;
2). the principal function part
The level state of four data input ports that 4 switches of poll connect, if the level of corresponding data-in port and the level that read last time change then illustrate that action has taken place the corresponding physical hand switch, namely the state of Dui Ying lamp will change (if off status is then opened lamp; If lamp is out state, then lamp is closed; If lamp is to be in dimming state, then lamp is closed).The level state of the data-in port that the state after changing is connected with switch is all preserved, and the light fixture state information is deposited in the buffer memory.After 4 physics hand switches all detected and finish, whether in buffer memory had state information, have then to send by serial line interface if then detecting.
3). the external interrupt function
The adjusting of light realizes by the angle of flow of controlling each power frequency period solid-state relay.Open state: the basis at the current solid-state relay angle of flow increases a bit (advance the external interrupt function, the increase of the solid-state relay angle of flow is 0 up to the total conduction delay of solid-state relay a bit at every turn); Off status: a bit (advance the external interrupt function, the solid-state relay angle of flow reduces a bit at every turn, is 0 up to the solid-state relay conduction delay) reduced on the basis at the current solid-state relay angle of flow; Dimming state: if order the current brightness height of desired brightness ratio, then increase on the basis of the current solid-state relay angle of flow and a bit (advance the external interrupt function at every turn, the increase of the solid-state relay angle of flow a bit is the desired conduction delay of order up to the solid-state relay conduction delay); If order the current brightness of desired brightness ratio low, then reduce on the basis of the current solid-state relay angle of flow and a bit (advance the external interrupt function at every turn, the solid-state relay angle of flow reduces a bit, is the desired conduction delay of order up to the solid-state relay conduction delay);
After executing top step, start timer 0.
4). timer 0 interrupts
Cumulative time, when the solid-state relay conduction delay of corresponding lamp then, the solid-state relay of conducting at once.After the whole conductings of the solid-state relay of 4 lamps, stop timer 0.
The 5th part. the interface design of remote controller
First of remote controller 31 embeds to decline to handle can select the STC single-chip microcomputer for use, second embeds the processing that declines can select the AVR single-chip microcomputer for use, remote controller 31 softwares with embedded Linux 2.6 versions as the system platform framework, the integrated liquid crystal display screen driving of bottom, touch-screen driving, battery management and Charge Management drive, infrared reception study and sending drives, with the operation-interface driving of AVR single-chip microcomputer etc., and the AVR single-chip microcomputer is responsible for the wireless communication protocol management.The QT3.4 version is adopted in the interface design.
Set forth the design of remote controller 31 software interfaces from the system applies angle below:
Remote controller 31 major functions:
A) room management: the interpolation in room, deletion, the selection of room location, type and modification.
B) equipment control: need register the equipment of interpolation, deletion user family, change equipment position in the room by the user.
C) equipment control: provide equipment control function to the user as required.
● conventional control: to equipment turn on light, turn off the light, light modulation, controls such as pattern switching.
● quick control: a key is opened, a key is closed, common equipment control
D) equipment state is checked: the state that the equipment of checking is current
E) room state is checked: the environmental information such as temperature, humidity, brightness of checking certain room
F) infrared coding study: study (having infrared remote receiver) equipment control required infrared coding, and the control function is provided.
Room management: by the room administration interface, according to the house type in actual conditions design house, determine the type position in each room.
● the room adds function:
I) start the back and enter the room administration interface from main interface
Ii) select the room type that to add in the room administration interface
Iii) drag the room type icon chosen correct position in the distributed areas, room
● the room delete function:
I) enter the room administration interface, the room icon that selection will be deleted
Ii) drag the room icon in dustbin
Iii) if there is device prompts to want first sweep equipment in the room, otherwise the room deletion.
● mobile room location function:
I) enter the room administration interface, selection will be deleted mobile room icon
Ii) drag the room icon to suitable position
Equipment control: the functions such as interpolation (registration), deletion, movement that realize equipment by the equipment control interface
Equipment adds (registration)
I) receive interpolation (registration) the request bag of equipment after, remote controller 31 interface prompts have new equipment will register (the icon flicker in the upper left corner at main interface requesting service type shows requesting service type icon in the lower left corner at equipment control interface).
Ii) access arrangement place room devices administration interface, drag the appliance icon in the lower left corner to the correct position (can be corresponding with the position of this physical equipment in the room) in device distribution zone, can demonstration question mark represent also do not add (registration) finish on this icon this moment.
Iii) choose this appliance icon, click the reg(registration) button, remote controller 31 adds respond packet by wireless transmission device.
Iv) remote controller 31 receives that the interpolation of this equipment successfully wraps, and equipment adds (registration) to be finished, and appliance icon is become normal device icon (namely removing question mark).
Annotate: must add the sensing repeater earlier in the room, could normally add other equipment.
Unit deletion:
I) in the equipment control interface, choose the equipment that to delete, click delete button.
Ii) whether remote controller 31 promptings want sweep equipment, by determining or cancellation.
Iii) by after determining, remote controller 31 is by the wireless transmission device removal request.
Iv) receive the unit deletion respond packet, the sweep equipment success is deleted equipment from system.
Annotate:
If unregistered equipment, repeat to send 3 secondary device removal requests after, direct sweep equipment;
If the sensing repeater, receive the unit deletion respond packet after, delete all devices in this room.
The position of change equipment in the room:
I) in the equipment control interface, choose the appliance icon that will move.
Ii) drag and choose icon to arrive other positions in this room.
Equipment operation control
The equipment that selection will be controlled
Method one:
I) control button by main interface enters distribution interface, room;
Ii) in distribution interface, room, select room, equipment place, click access arrangement distribution interface;
Iii) in the device distribution interface, can check the distribution situation of this room devices and current state, need select the equipment of control, click and enter the control interface.
Iv) in the control interface, can select other equipment in this room by the arrow up and down of clicking the left side.
Method two:
Certain equipment is set to common equipment, enters the control interface of this equipment then by the common equipment interface
I) in the control interface, select corresponding equipment by arrow about sliding;
Ii) switch automatic or manual button switching working mode;
Iii) switch, the light modulation of shift knob, light modulation slide block control lamp apparatus;
One key of equipment is opened a key of setting and equipment and is opened
I) browse a key in setting (set) and open the equipment that interface first row are provided with key unlatching attribute that arranges;
Ii) set in advance opening the light and brightness of lamp by secondary series and the 3rd row;
Iii) check preset content at (display);
Iv) a key is released the button and can be activated the state of all default lamps after being selected in the main interface.
One key close key: then it goes without doing sets in advance for X button, is responsible for closing all lamps
The common equipment interface: by the common equipment interface can navigate to fast equipment commonly used and directly enter control the interface it is controlled.
The programming of remote controller 31 packets of information transmitting-receiving
Following flow process is the overall process of remote controller 31Qt routine processes packets of information.A certain category information bag can both be independently handled at each interface flexibly.Because the method for some program is more similar, so just do not simplified some descriptions for burdensome.Now adding (registration) with equipment is that example is set forth:
I) equipment interpolation request packet is issued remote controller 31, and decoding judges that information type also enters corresponding accreditation process in main interface;
Ii) judge whether to satisfy the condition of registration at main interface, if do not satisfy then do not handle, the relevant device icon otherwise main interface begins to glimmer, and information sent to the room administration interface;
Iii) the room administration interface sends to the equipment control interface to facility information;
Iv) show the appliance icon of wanting queued for log-on in the lower left at equipment control interface, judge whether equipment and some necessary conditions in this room when dragging icon, if do not satisfy then needs withdraw from current room adds equipment again otherwise will being drawn in the room to correct room and go, being dragged in the room afterwards has question mark (indication equipment is unregistered) on the icon;
V) selecting unregisteredly namely has the equipment of question mark to click registration button, and remote controller 31 transmitting apparatus add (registration) response message;
Vi) the external world beams back interpolation (registration) success packet to remote controller 31, judges that in the decoding of main interface information type also enters accreditation process;
Vii) judge whether to satisfy the condition of registration at main interface, if do not satisfy then do not handle otherwise continues to judge whether register interface is opened, register otherwise information is imported into the room administration interface if do not open then finish at main interface;
Viii) registered equipment records and continued judge whether register interface is opened at the room administration interface, if do not open or enter wrong simultaneously the room and just do not handle otherwise specifically information pass to the equipment control interface;
Ix) the equipment control interface judges that the room that enters is exactly the equipment room when pre-treatment, disappears if then can see the question mark on this equipment, namely succeeds in registration;
Obviously, those skilled in the art can carry out various changes and modification to the embodiment of the invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (6)

1. light fixture control method that is used for lamp control system, described lamp control system comprises remote controller, at least one sensing repeater, use the short distance wireless communication technology to communicate by letter with remote controller, at least one lamp controller, the environmental directives of accepting the transmission of sensing repeater carries out automatic control mode and realizes at least one light fixture control terminal, connect described power line network by power line network, described control method comprises:
Described remote controller receives the operation information that the user controls the light fixture state, generates corresponding lamp remote-control instruction and by the sensing repeater lamp remote-control instruction is transferred to the light fixture control terminal according to described operation information;
Described light fixture control terminal is resolved the instruction of described lamp remote-control and according to analysis result control light fixture state, and when the light fixture state changes to sensing repeater generation light fixture state updating information;
The sensing repeater upgrades local light fixture state information of preserving according to described light fixture state updating information, and the light fixture state updating information is transmitted to remote controller;
Remote controller upgrades local light fixture state information of preserving according to described light fixture state updating information;
Wherein, described lamp control system also comprises master controller, and is connected the lamp controller between described power line network and the master controller, and described control method further comprises:
Described master controller receives the long-range light fixture control command of submitting to by the Long-distance Control webpage and is transmitted to lamp controller as telnet server;
Described lamp controller is by being transmitted to the light fixture control terminal with long-range light fixture control command;
Described light fixture control terminal is resolved described long-range light fixture control command and is controlled the light fixture state according to analysis result; And
Described lamp controller also receives the light fixture state updating information and is transmitted to master controller;
Described master controller upgrades local light fixture state information of preserving according to described light fixture state updating information;
It is characterized in that described at least one sensing repeater is distributed in the not chummery in the building of using described lamp control system, then described control method also comprises:
After unregistered sensing repeater powers on, send registration request bag to remote controller;
After remote controller receives registration request bag, by the interface prompt user sensing repeater request registration is arranged;
Remote controller when the user by interface operation with the corresponding room of sensing repeater drag and drop to the pre-set house type distribution map after, be recorded in the local device distribution information of preserving for sensing repeater distributing equipment sign indicating number and with allocation result, each room configuration has corresponding house code;
Remote controller confirms that the user registration back to sensing repeater transmitting apparatus registration respond packet, wherein comprises the device code of house code and distribution;
Sensing repeater receiving equipment registration respond packet therefrom obtains to be the house code of oneself and the device code of distribution, and is recorded in the local device distribution information of preserving.
2. light fixture control method as claimed in claim 1, it is characterized in that, described at least one light fixture control terminal is distributed in the not chummery in the building of using described lamp control system, is respectively applied to control the light fixture in the chummery not, and described control method also comprises:
The light fixture control terminal sends registration request bag by the sensing repeater to remote controller after the lamp switch work that connects;
After remote controller receives the registration request bag of light fixture control terminal, by the interface prompt user light fixture request registration is arranged;
Remote controller when the user by interface operation with the drag and drop of light fixture control terminal to the relevant position in corresponding room, be light fixture control terminal dispenser device sign indicating number, and allocation result be recorded in the local device distribution information of preserving;
Remote controller will be registered respond packet and send to the light fixture control terminal by the sensing repeater after the user confirms registration, wherein comprise the room number in room, light fixture control terminal place and the device code of distribution;
Light fixture control terminal receiving equipment registration respond packet therefrom obtains the house code of oneself and the device code of distribution, and is recorded in the device distribution information;
The light fixture control terminal is broadcast to the sensing repeater with the device distribution information that oneself records and carries out the device distribution information synchronization.
3. light fixture control method as claimed in claim 2, it is characterized in that, when described light fixture control terminal connects a plurality of lamp switch simultaneously, described light fixture control terminal is according to the number of switches that connects, initiate repeatedly registration request to remote controller respectively, remote controller also divides gamete light fixture number for each lamp switch, and is carried in the registration response and returns to the light fixture control terminal.
4. as claim 1,2 or 3 described light fixture control methods, it is characterized in that described method also comprises:
Remote controller sends to main controller with the device synchronization information of oneself preserving to carry out synchronously; Perhaps
The sensing repeater sends to main controller with the device synchronization information of oneself preserving to carry out synchronously.
5. light fixture control method as claimed in claim 4 is characterized in that, also comprises:
Remote controller or master controller send a key to the sensing repeater and close/the open command bag, wherein: if close all compartment lamps, then the described key house code of closing/carrying in the open command bag is particular identification code, if only close all lamps of room, then the described key house code of closing/carrying in the open command bag is the house code in corresponding room;
The sensing repeater broadcasts this key to each light fixture control terminal and cuts out/the open command bag after receiving key shutdown command/unlatching bag;
Each light fixture control terminal receive a key close/open command after, if the house code that a described key is closed/carried in the open command bag is particular identification code or is oneself house code, then close/open light fixture separately.
6. light fixture control method as claimed in claim 5 is characterized in that, also comprises: described remote controller receive the user by a key of interface operation input close/open command at light fixture place house code, and be transmitted to master controller.
CN2009101592180A 2009-07-31 2009-07-31 Lamp control system, method thereof, main controller and lamp control terminal Expired - Fee Related CN101990334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101592180A CN101990334B (en) 2009-07-31 2009-07-31 Lamp control system, method thereof, main controller and lamp control terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101592180A CN101990334B (en) 2009-07-31 2009-07-31 Lamp control system, method thereof, main controller and lamp control terminal

Publications (2)

Publication Number Publication Date
CN101990334A CN101990334A (en) 2011-03-23
CN101990334B true CN101990334B (en) 2013-08-14

Family

ID=43746556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101592180A Expired - Fee Related CN101990334B (en) 2009-07-31 2009-07-31 Lamp control system, method thereof, main controller and lamp control terminal

Country Status (1)

Country Link
CN (1) CN101990334B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102252253A (en) * 2011-05-03 2011-11-23 安徽天柱绿色能源科技有限公司 Intelligent burglar-proof solar street lamp
CN102647459A (en) * 2012-03-28 2012-08-22 深圳市赛盟特科技有限公司 Unified remote control device for internet of thing terminal equipment
EP2685793B1 (en) 2012-07-12 2019-09-04 LG Innotek Co., Ltd. Lighting control method and lighting control system
US9839102B2 (en) 2012-07-12 2017-12-05 Lg Innotek Co., Ltd. Lighting control method and lighting control system
CN103025008B (en) * 2012-12-03 2015-04-08 深圳华智测控技术有限公司 Street lamp control method
SG2014010136A (en) * 2013-02-20 2015-02-27 Panasonic Ip Corp America Control method for information apparatus and program
US9634852B2 (en) 2013-02-20 2017-04-25 Panasonic Intellectual Property Corporation Of America Control method for information apparatus and computer-readable recording medium
CN104216348B (en) * 2013-06-05 2018-02-27 广州凯图电子科技有限公司 Intelligent home control system
CN104375459A (en) * 2013-08-14 2015-02-25 苏州微连纺织科技有限公司 Monitoring system of textile machine and monitoring method thereof
CN105323898B (en) * 2014-08-05 2018-04-10 赛尔富电子有限公司 A kind of control device of wireless, illuminator and control method
WO2016088006A1 (en) * 2014-12-01 2016-06-09 Philips Lighting Holding B.V. Identifying and controlling signal influence on one or more properties of emitted light
CN106101221B (en) * 2016-06-13 2019-05-24 杭州电子科技大学 The information synchronization method based on distributed storage in intelligent illuminating system
DE112017003157T5 (en) * 2016-06-22 2019-03-14 Soraa, Inc. Intelligent modules for intelligent networks
CN106228794A (en) * 2016-07-18 2016-12-14 徐承柬 Power supply switch controlling method and system in a kind of room
JP6793330B2 (en) * 2016-07-29 2020-12-02 パナソニックIpマネジメント株式会社 Signal transmitter and lighting system
CN106327826B (en) * 2016-08-19 2019-08-23 深圳迈睿智能科技有限公司 A kind of control method and remote control system by remote control setting wireless networking
CN106465521B (en) * 2016-08-29 2019-02-22 深圳市一窗科技有限责任公司 A kind of method for controlling lamp and system, illumination control apparatus, server
CN114980398A (en) 2016-10-21 2022-08-30 路创技术有限责任公司 Controlling electrical load groups
CN107179698A (en) * 2017-05-25 2017-09-19 青岛海信日立空调系统有限公司 The inter-linked controlling method and device of a kind of home appliance
CN107507402B (en) * 2017-08-31 2021-09-28 刘应波 Mobile wireless remote control method and device for high-power equipment in complex environment
CN109769329A (en) * 2019-01-15 2019-05-17 东莞华明灯具有限公司 A kind of light controller, lamps and lanterns and lighting control system
CN112822826A (en) * 2019-10-30 2021-05-18 厦门立达信照明有限公司 Light control method, system and signal transceiver
CN111908289B (en) * 2020-08-06 2022-03-04 日立楼宇技术(广州)有限公司 Method, device and equipment for detecting illumination in elevator car and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5471190A (en) * 1989-07-20 1995-11-28 Timothy D. Schoechle Method and apparatus for resource allocation in a communication network system
CN2554740Y (en) * 2002-06-29 2003-06-04 海信集团有限公司 Power carrier home controller
CN101052262A (en) * 2006-03-23 2007-10-10 三菱电机株式会社 Discharge lamp lighting apparatus, illumination control system and control management system
CN201000575Y (en) * 2006-12-29 2008-01-02 靳洪升 Intelligent home and safety remote monitoring control automated apparatus
CN201039543Y (en) * 2007-04-26 2008-03-19 上海智统电气有限公司 Lighting controller
CN201197150Y (en) * 2008-03-27 2009-02-18 珠海格力电器股份有限公司 Intelligent household network system based on wireless propagation and central processing equipment
CN201590917U (en) * 2009-07-31 2010-09-22 宁波家天下智能系统有限公司 Lamp control system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5471190A (en) * 1989-07-20 1995-11-28 Timothy D. Schoechle Method and apparatus for resource allocation in a communication network system
CN2554740Y (en) * 2002-06-29 2003-06-04 海信集团有限公司 Power carrier home controller
CN101052262A (en) * 2006-03-23 2007-10-10 三菱电机株式会社 Discharge lamp lighting apparatus, illumination control system and control management system
CN201000575Y (en) * 2006-12-29 2008-01-02 靳洪升 Intelligent home and safety remote monitoring control automated apparatus
CN201039543Y (en) * 2007-04-26 2008-03-19 上海智统电气有限公司 Lighting controller
CN201197150Y (en) * 2008-03-27 2009-02-18 珠海格力电器股份有限公司 Intelligent household network system based on wireless propagation and central processing equipment
CN201590917U (en) * 2009-07-31 2010-09-22 宁波家天下智能系统有限公司 Lamp control system

Also Published As

Publication number Publication date
CN101990334A (en) 2011-03-23

Similar Documents

Publication Publication Date Title
CN101990334B (en) Lamp control system, method thereof, main controller and lamp control terminal
CN101989376B (en) Intelligent home control system
CN101989072B (en) Household equipment controller
CN201504341U (en) Universal remote controller of intelligent household control system
CN101990335B (en) Universal remote controller in intelligent household control system
CN201590145U (en) Intelligent household control system
CN201589946U (en) Household equipment control terminal
CN103092172B (en) Wire arrangement type intelligent home integrated control device based on cloud service platform
CN201589976U (en) Intelligent home system based on ZigBee technology
CN104331041A (en) Intelligent home system structure and control method thereof
CN105867145A (en) Intelligent household equipment control method and apparatus
CN105739318A (en) Intelligent socket, intelligent household control system and control method thereof
CN102355390A (en) Intelligent home system
CN104597882A (en) Intelligent electrical appliance, mobile communication device, intelligent electrical appliance control system and method
CN102945029A (en) Intelligent gateway, smart home system and intelligent control method for home appliance equipment
CN1829182A (en) Wireless intelligent house system based on blue tooth infrared
CN201590917U (en) Lamp control system
CN105005215A (en) Protocol conversion device and data acquisition control system for industrial bus equipment
CN108810061A (en) A kind of intelligent domestic system
CN103970097A (en) Smart home internet-of-things system based on EIB/KNX bus
CN112866068A (en) Intelligent interaction system, interaction terminal and control platform
CN106154993A (en) A kind of device controller
CN106933114B (en) Wireless transmission internet intelligent home system
CN104199391A (en) Intelligent building monitor system and method
CN201590918U (en) Sensing repeater in intelligent household control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130814

Termination date: 20160731