CN101990335B - Universal remote controller in intelligent household control system - Google Patents

Universal remote controller in intelligent household control system Download PDF

Info

Publication number
CN101990335B
CN101990335B CN 200910159219 CN200910159219A CN101990335B CN 101990335 B CN101990335 B CN 101990335B CN 200910159219 CN200910159219 CN 200910159219 CN 200910159219 A CN200910159219 A CN 200910159219A CN 101990335 B CN101990335 B CN 101990335B
Authority
CN
China
Prior art keywords
level
coded data
level width
infrared
coding
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
CN 200910159219
Other languages
Chinese (zh)
Other versions
CN101990335A (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 CN 200910159219 priority Critical patent/CN101990335B/en
Publication of CN101990335A publication Critical patent/CN101990335A/en
Application granted granted Critical
Publication of CN101990335B publication Critical patent/CN101990335B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a remote controller with the learning function in an intelligent household control system, which is used for providing a possibility for the integral control of the intelligent household control system. The universal remote controller in the intelligent household control system comprises a display module, a short-distance wireless communication module, an infrared signal receiving and dispatching module, a first embedded microprocessor and a second embedded microprocessor, wherein the display module is used for displaying an operation control interface of the intelligent household control system, the short-distance wireless communication module is used for realizing the short-distance wireless communication, the infrared signal receiving module is used for receiving and transferring infrared coding signals with different control functions, sent by the remote controller of intelligent household equipment, the first embedded microprocessor is connected with the display module through an LCD (liquid crystal display) data bus, and is used for learning and reducing the infrared coding signals, and the second embedded microprocessor is respectively connected between the first embedded microprocessor and the short-distance wireless communication module unit through a serial interface, and is used for receiving control instructions output by the first embedded microprocessor and sending the control instructions through the short-distance wireless communication module.

Description

Universal remote control in a kind of intelligent home control system
Technical field
The present invention relates to the home furnishings intelligent system, particularly the universal remote control in a kind of Intelligent lamp control system.
Background technology
Smart Home is take dwelling house as platform, has both intelligent building, network service, information household appliances, light fixture robotization, and that collecting system, structure, service, management are integrated is efficient, comfortable, the living environment of safety, facility, 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 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 are all single equipments, do not form each other communication and networking.
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 sets up integral intelligent house control system take home server as core.
Intelligent home control system need to carry out Based Intelligent Control to electrical equipment and the device of a plurality of applicating categories in 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 operated from a distance and information feedback.
The shortcoming of existing intelligent home control system is that all devices still uses telepilot separately, and controlling for integral body makes troubles.
Summary of the invention
The embodiment of the present invention provides the sensing repeater in a kind of intelligent home control system, in order to the control of simplified intelligent house control system.
Universal remote control in a kind of intelligent home control system comprises:
Display module, the interface is controlled in the operation that is used for the demonstration intelligent home control system;
Close range wireless communication module is used for realizing wireless near field communication;
The infrared signal transceiver module, the telepilot that is used for the reception intelligent home device sends the infrared encoded signal of different control functions and forwards;
the first embedded microprocessor, connect described display module by the LCD data bus, and connect described infrared signal transceiver module by signal wire, be used for according to control the infrared encoded signal learn command of interface input by the operation of described module, detect the high level or low level rising edge and the negative edge that comprise in the infrared encoded signal of described 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 according to recording result the coded data of respectively controlling infrared encoded signal corresponding to function, and when controlling the interface and receive the operation information of remote control home equipment by described operation, according to controlling infrared encoded signal coded data corresponding to function, generate corresponding steering order and output, 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, steering signal comprises at least two high level and low level, what occur for the first time in described infrared coding control signal is high level,
The second embedded microprocessor, be connected between described the first embedded microprocessor and close range wireless communication module by serial line interface respectively, be used for receiving the steering order of described the first embedded microprocessor output and sending by close range wireless communication module.
Described the first embedded microprocessor specifically comprises:
Record sub module, be used for connecting described infrared signal transceiver module by signal wire, according to control the infrared encoded signal learn command of interface input by the operation of described module, detect the high level or low level rising edge and the negative edge that comprise in the infrared encoded signal of described 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 generating according to recording result the coded data of respectively controlling infrared encoded signal corresponding to function;
Sub module stored is for the coding result of storing described coding submodule;
The reduction submodule, be connected to described the second embedded microprocessor by serial line interface, when being used for controlling the interface and receiving the operation information of remote control home equipment by described operation, obtain the infrared encoded signal coded data of respective control function from described sub module stored, generate corresponding steering order and export to described the second embedded microprocessor.
Described 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 the first setting value, and the total bytes that level width coding serial data takies is the second setting value;
Be used for putting in order according to described 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 described level width coding serial data, the ranking of determining is 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 setting value;
Be used for carrier cycle is encoded to the unit of carrier cycle coded data, the byte number that described carrier cycle coded data takies is the 4th setting value;
Be used for forming the unit of the coded data of telepilot infrared encoded signal according to setting the described level width coding of sequential combination serial data, carrier cycle coded data and level width index coded data string; And
Described 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 coding serial data takies, the byte number that the coded data of each ranking takies, and the byte number that takies of described carrier cycle coded data, obtain level width coding serial data from the coded data of telepilot infrared encoded signal, the unit of carrier cycle coded data and level width index coded data string, wherein, described level width coding serial data comprises a plurality of level width value codings that size is not identical, described level width index coded data string comprises the coded data of each high level and low level level width value corresponding ranking in described level width coding serial data in the infrared coding control signal, and arranged sequentially according to each high level and the appearance of low level in the infrared coding control signal,
Be used for according to described 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 corresponding ranking in described level width coding serial data, determine the unit of each high level and low level level width and shooting sequence in described infrared coding control signal;
Be used for determining according to described carrier cycle coded data the unit of the carrier frequency of emission telepilot infrared coding control signal;
Be used for according to described each high level of infrared coding control signal and low level level width and shooting sequence, export successively high level and low level unit according to described carrier frequency.
Described coding submodule specifically comprises:
Be used for carrying out next step 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, otherwise continue the unit of next step after the coded data of the level width value that interpolation is not recorded in described mapping table and level width value index thereof;
Be used for definite each high level or low level level width value at the level width value index of described mapping table correspondence and encode, level width value index coded data is combined as the unit of level width index coded data string according to each high level and low level appearance order, the byte number that the coded data of each ranking takies is the 3rd setting value;
Be used for carrier cycle is encoded to the unit of carrier cycle coded data, the byte number that described carrier cycle coded data takies is the 4th setting value;
Be used for forming the unit of the coded data of telepilot infrared encoded signal according to setting the described carrier cycle coded data of sequential combination and level width index coded data string; And
Described 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, obtain the unit of carrier cycle coded data and level width index coded data string from the coded data of telepilot infrared encoded signal, wherein, described level width index coded data string comprises the index of each high level and low level level width value in the infrared coding control signal, and arranged sequentially according to each high level and the appearance of low level in the infrared coding control signal;
Be used for according to described 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 described infrared coding control signal;
Be used for determining according to described carrier cycle coded data the unit of the carrier frequency of emission telepilot infrared coding control signal;
Be used for according to described each high level of infrared coding control signal and low level level width value and shooting sequence, launch successively the unit of high level and low level infrared encoded signal according to described carrier frequency.
The telepilot that has learning functionality in the intelligent home control system that the embodiment of the present invention provides can be learnt the telepilot control signal of all home equipments, controls for the integration of intelligent home control system and brings possibility.
Description of drawings
A kind of intelligent home control system that Fig. 1 a, 1b, 1c and 1d provide for the embodiment of the present invention.The structural representation of home equipment controller and Household equipment control terminal;
The universal remote control that Fig. 2 a and 2b provide for the embodiment of the present invention realize principle and structural representation;
The lamp control system that Fig. 3 a, 3b, 3c provide for the embodiment of the present invention realize principle schematic;
The structural representation of master controller in the lamp control system that Fig. 4 a, 4b and 4c provide for the embodiment of the present 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 present invention;
The structural representation of sensing repeater in the lamp control system that Fig. 6 provides for the embodiment of the present invention;
The structural representation of light fixture control terminal in the lamp control system that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Intelligent home control system
The embodiment of the present invention provides a kind of home equipment control system, can be used in household, also can be used in the office space of a plurality of workplaces, is used for controlling being distributed in the not home equipment of chummery, and the home equipment control mode generally has following four kinds of demands:
■ controls the interface by the home equipment of hand-held remote controller home equipment is controlled;
■ controls the interface by the login remote web page home equipment is controlled;
■ 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 to control, and last a kind of demand is automatically to control.
As shown in Figure 1a, for realizing above-mentioned the first function, a kind of intelligent home control system that the embodiment of the present 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, is used for generating the home equipment steering order and transmitting by power line network, and receives the home equipment state updating information of power line network transmission and preserve;
The control terminal 13 of each home equipment, connect power line network, be used for receiving the home equipment steering order of power line network transmission, resolve the home equipment steering order and control the home equipment state according to analysis result, and transmit the home equipment state updating information by power line network when the household equipment state changes.
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 chummery, connects power line network, is used for using the short distance wireless communication technology to communicate by letter with telepilot 10;
Telepilot 10, telepilot 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 is crossed the power line network transmission with the straighforward operation information exchange that receives, home equipment controller 11 receives straighforward operation information by power line network, and home equipment steering order corresponding according to this straighforward operation Information generation and sending by power line network; 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 telepilot 10.
For realizing controlling by network remote the function of home equipment, intelligent home control system also further comprises: master controller 14, connect respectively each home equipment controller 11, wherein:
Master controller 14 is used for receiving the operated from a distance 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 also is used for according to the corresponding home equipment steering order of operated from a distance Information generation that receives and sends by power line network.
Home equipment controller 11 can directly connect respectively power line network, also can connect power line network by master controller 14, and Fig. 1 a is only the networking structure schematic diagram of the first situation.In rear a kind of networking structure, home equipment controller 11 must could work after primary controller starts.
Automatically control according to ambient condition for realizing in the household apparatus control system, can further include: at least one sensor, each sensor is connected 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 steering order 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 corresponding Household equipment control terminal 13, Household 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, and opens otherwise control home equipment.
Perhaps, Household equipment control terminal 13 detects the level value by manual physical switch input, and when described level value changes, generates the level value state change information and transmit 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 steering order also by described power line network transmission according to the level value state change information.
In this case, the direct gauge tap state of level value that Household equipment control terminal 13 is not inputted according to manual physical switch, but the level state change information is reported Household equipment control terminal 13, Household equipment control terminal 13 carries out centralized control again, has more embodied the core the driver's seat of Household equipment control terminal 13.
For realize the unified management of equipment in the household apparatus control system, each sensing repeater 12 and Household equipment control terminal 13 could work after need to being registered in system, registration process is controlled interface control by the telepilot utilization and is completed, the final device distribution informational needs of collecting in registration process is aggregated on each home equipment controller 11 and master controller 14, therefore:
Sensing repeater 12 also is used for using the short distance wireless communication technology to send registration request when initialization;
Telepilot 10 receives the registration request that each sensing repeater 12 sends, according to pre-configured room distribution plan and sensing repeater 12 rooms, place, the sensing repeater 12 that is request registration distributes room number and device numbers, generates to carry institute and distribute the registration of room number and device number to respond and use the short distance wireless communication technology transmission; And be recorded in allocation result in device distribution information and the device distribution information after use the short distance wireless communication technology transmission renewal when device distribution information changes;
Sensing repeater 12 receives the registration response that telepilot 10 sends, and wherein room number and device number are recorded in local device distribution information, and sensing repeater 12 also receives telepilot 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 registration request and transmit 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 telepilot 10;
When telepilot 10 receives control terminal 13 registration request of each home equipment, according to pre-configured room distribution plan, home equipment type and room, place, the control terminal 13 that is request registration distributes room number and device numbers, generates to carry institute and distribute the corresponding registration of room number and device number to respond and use the short distance wireless communication technology transmission; And be updated to allocation result in 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 telepilot 10 transmissions and transmits by power line network;
Each control terminal 13 receives the registration response of oneself by power line network, and wherein room number and device number are recorded in local device distribution information.
In the another one embodiment, telepilot can directly generate steering order and send to sensing repeater 13, and distant control function does not need home equipment controller 11 to participate in, and is concrete:
Telepilot 10, telepilot 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 steering order and use the short distance wireless communication technology that the home equipment steering order is sent to sensing repeater 12 according to operation information;
Sensing repeater 12 also is used for the home equipment steering order is transmitted by power line network.
The deletion of each sensing repeater 12 and Household 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, status information of equipment can synchronized transmission to master controller 14, primary controller 14 synchronous refreshs are checked for the user to webpage.
In the embodiment of the present invention, can also pass through the control switching controls pattern of telepilot 10, and the control mode switch instruction is sent to home equipment controller 11 by sensing repeater, home equipment controller 11 is determined mode of operation according to switching command, and carry out corresponding control, concrete:
Telepilot 10 also is used for using the short distance wireless communication technology to send the control mode switch instruction according to user's automatic control mode and the switching command between manual control model;
Sensing repeater 12 also is used for receiving the control mode switch instruction of telepilot and transmitting by power line network;
home equipment controller 11, the control mode switch instruction that reception is transmitted by power line network, and determine to be operated in automatic control mode or manual control model according to described control mode switch instruction, and when at the work automatic control mode, generate the home equipment steering order and transmit by described power line network according to the automatic control mode of described ambient condition sensing data and setting, when being operated in manually with regard to control model, according to straighforward operation information, operated from a distance information or level value state change information generate the home equipment steering order 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, operated from a distance information or the level value state change information that receive, switch to immediately manual control model and transmit according to the Information generation home equipment steering order that receives and by described power line network.
the said system that provides according to the embodiment of the present invention, the home equipment of each type should have a home equipment controller mutually, home equipment to respective type plays the core control action, 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 system, only need to increase corresponding home equipment controller and control terminal, therefore has good extendability, and the most of signal in system transmits by electric power networks, bring 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 present invention provides comprises as shown in Fig. 1 b:
Power line signal coupling module 111, connect power line network by line of electric force, being used for receiving modulation from power line network has the power line carrier signal of home equipment operation information and forwards, and the power line carrier signal coupling that receives is transmitted to power line network;
Power line signal processing module 112, be used for demodulating the home equipment operation information and forwarding from the power line carrier signal that power line signal coupling module 111 forwards, 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, 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:
The 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 the first receiving element 1131, is used for the operation information that storage the 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, home equipment steering order corresponding according to the generating run Information generation also is saved in the 2nd FIFO buffer unit 1134;
The first transmitting element 1135 is used for the storage order according to the home equipment steering order, reads successively the home equipment steering order 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:
The second receiving element 1136 connects master controller in intelligent home control system by serial line interface, is used for receiving the operation information of the Long-distance Control household equipment state that master controller receives and forward as telnet server;
The one FIFO buffer unit 1132 also connects the second receiving element 1136 and is used for the operation information that storage the second receiving element 1136 receives.
Further home equipment controller 113 also comprises: control model storage unit 1138, connect processing unit 1133, and be used for the automatic control mode parameter configuration of storage home equipment;
The 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 further according to the automatic control mode parameter configuration of storage in the ambient condition sensing data that receives and control model storage unit 1138, generates corresponding home equipment steering order and stores in the 2nd FIFO buffer unit 1134.
Further, the 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 forwards, and is saved in data storage cell 1139.
Further, device controller 11 also comprises:
The second transmitting element 1137, connection data storage unit 1139 is used for the data of reading out data storage unit 1139 storages and is transmitted to master controller by serial line interface.
Household equipment control terminal 13 is mainly the corresponding execution terminal of control command, home equipment is carried out the final topworks of the actions such as switch, adjusting, application model configuration, and as shown in Fig. 1 d, a kind of concrete structure of Household 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 is connected 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 controlling the feed circuit of one or one group home equipment;
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 that forwards from the power line signal coupled 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 the feed circuit that gauge tap module 134 is opened or closure is controlled.
For realizing traditional manual control function, Household equipment control terminal also comprises: the hand switch 135 that the feed circuit 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 respectively a data input end of embedded microprocessor 133; 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 recording the home equipment status 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 line of electric force processing module 132;
After line of electric force 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 present invention provides a kind of telepilot with learning functionality, can learn the infrared encoded signal of various telepilots, and according to learning outcome reduction infrared encoded signal, corresponding home equipment is controlled, below first introduce in detail the principle that realizes of universal remote control that the embodiment of the present invention provides.
As shown in Fig. 2 a, be the structural representation of the infrared encoded signal of telepilot emission, infrared encoded signal comprises the square-wave signal that is comprised of a series of high-low levels, and with specific transmit 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 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 8, 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 present invention is in the process of study infrared encoded signal, in order to compress the infrared coding that arrives of study reducing storage space, the overall level number that forms take four kinds of width level value is as the infrared encoded signal of n as 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 maximal value of maximum carrier cycle and level width, the coded data of carrier cycle and each level width value takies 16bit, because the first two level may be the infrared seeker signal, the level width might be very large, therefore takies respectively 32bit:
Table 1.
Figure GDA00002700547900141
Ii) data of record in analytical table 1, the first two level may be the infrared seeker signal, need to 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 less than or equal to 50 μ s(microseconds) level of left and right thinks that all size is identical, then encode according to a kind of form as shown in table 2 below, form the Signal coding data:
Table 2.
Figure GDA00002700547900151
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 scale-of-two four rankings respectively can be designated 00,01,10,11;
Need to prove, the bit number that each level width value coded data takies is to set according to the maximum level value in advance, and total bit number that level width value coded data string takies is also to set according to maximum level value quantity maximal values that may occur.Be less than the situation of four kinds if there is the level width value, the part that will not take volume gets final product for invalid data or arbitrary data.
For more than the situation of four kinds, 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 is also 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 can be deposited 192 level width value index coded datas, and is fully enough 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 preset.
When according to three partial contents in the predefined storage list 2 in turn of putting in order, can be according to the setting that puts in order of three partial contents in the later stage, and aforesaid bit number occupancy, can obtain all required data of reduction infrared encoded signal from the coded data of storage.Putting in order of three partial contents is not to be defined in the form that table 2 provides, can be according to arbitary convention arranged sequentially, later stage order is according to a preconcerted arrangement resolved coded data and is got final product.
Also need to prove, due to the total number of level that has implied in level width index coded data string in the infrared coding control signal, so the total number of the level in table 1 and table 2 can not need.
Also need to prove, owing to not containing steering signal in some infrared encoded signal, so the pilot codes in second portion neither be necessary.
Embodiment one
Based on above-mentioned concrete example, the learning method of a kind of telepilot infrared encoded signal that embodiment one provides comprises the steps:
Step 1, be recorded in respectively the level width value of at least two pilot codes that receive successively before the infrared coding control signal;
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 no steering signal, this step can be omitted.
The infrared coding control signal that the telepilot 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 the first setting value, and the total bytes that level width coding serial data takies is the second setting value;
Step 4, putting in order according to each level width coding data in 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 sequentially encoded according to each high level and low level appearance and is combined as level width index coded data string, and the byte number that the coded data of each ranking takies is the 3rd setting value;
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 setting value;
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 setting value, and the total bytes that pilot codes coded data string takies is the 6th setting value
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 telepilot 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 setting value; And comprise total number coded data in the Signal coding data.
Embodiment one provides a kind of launching technique of corresponding telepilot infrared encoded signal according to the Signal coding data, comprises the steps:
Step 1, obtain level width coding serial data, pilot codes coded data string, carrier cycle coded data and level width index coded data string from the coded data of infrared encoded signal;
Concrete:
Putting in order according to first in table 1 in the Signal coding data, the byte number that each level width coding data takies, the total bytes that level width coding serial data takies, obtain level width coding serial data, and each level width code data;
According to the putting in order in the Signal coding data of second portion in 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 respectively coded data, carrier cycle coded data and each pilot codes coded data of the total number of level.
According to the putting in order in the Signal coding data of third part in 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 corresponding ranking in 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, carrier frequency of launching telepilot infrared coding control signal definite 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 successively according to carrier frequency high level and the low level signal that steering signal and infrared coding control signal comprise.
If comprise steering signal in the infra-red code signal, also need according to pilot codes coded data reduction steering signal and sent before control signal.
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 index for the telepilot 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 to preserve again level width coding serial data in the coded data of each infrared encoded signal, the bit number that index value in 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 telepilot infrared encoded signal that example two provides specifically comprises the steps:
Step 1, receive the infrared coding control signal that the telepilot 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 it is carries out next step 4, otherwise execution in step 3;
Step 3, add coded data and the level width value index thereof of the level width value be not recorded in mapping table, 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 setting value;
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 setting value;
Step 7, according to setting sequential combination carrier cycle coded data and level width index coded data string, form the coded data of telepilot infrared encoded signal.
Further, before receiving the telepilot infrared coding control signal that to learn, can also comprise: the level width value that is recorded in respectively at least two pilot codes that receive successively before the infrared coding control signal, 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;
The coded data that forms the telepilot infrared encoded signal also comprises before: 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 setting value, and the total bytes that pilot codes coded data string takies is the 6th setting value; And
In the coded data of outside line telepilot infrared encoded signal, also comprise pilot codes coded data string in the setting sequence.
Further, when receiving the telepilot 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 telepilot 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 setting value; And
In the coded data of outside line telepilot infrared encoded signal, also comprise total number coded data in the setting sequence.
According to above-mentioned learning method, the launching technique of a kind of telepilot infrared encoded signal that the embodiment of the present invention two provides comprises the steps:
Step 1, obtain carrier cycle coded data and level width index coded data string from the coded data of telepilot infrared encoded signal;
The byte number that specifically takies according to the coded data of putting in order of setting, each ranking, and the byte number that takies of carrier cycle coded data determines carrier cycle coded data and the position of level width index coded data string in coded data, and obtains the data encoding that needs from the relevant position.
Level width index coded data string comprises the index of each high level and low level level width value in the infrared coding control signal, and arranged sequentially according to each high level and the appearance of low level in the infrared coding control signal.
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 level width index coded data string, find out the level width value coded data of each high-low level from mapping table, and according to the putting in order of level width index coded data in level width index coded data string, determine each high level and the low level appearance order in the infrared coding control signal.
Step 3, carrier frequency of launching telepilot infrared coding control signal definite 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 successively high level and low level signal according to carrier frequency.
Further, if also comprise pilot codes coded data string in coded data, also the desired location from the coded data of telepilot infrared encoded signal obtains pilot codes coded data string; And before 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 coded data, also the desired location from the coded data of telepilot infrared encoded signal obtains the coded data of all high level and low level total number; And when launching successively high level and low level signal according to carrier frequency, the total number corresponding according to total number coded data determined 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 index:
Table 4.
Figure GDA00002700547900211
Figure GDA00002700547900221
Wherein, level width value index comprises group number and numbering, and group number is illustrated in the level width value that in an infrared encoded signal, study is first arrived, the sequencing that number-mark level width value is learned in this infrared encoded signal.Concrete, first infrared encoded signal learning 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 arrives at other infrared encoded signal learnings, for example at second infrared encoded signal learning to 6 level width value, wherein four level width values that arrive with first infrared encoded signal learning are identical, repeated storage no longer, only storage is wherein different two, and respective settings group number 01 and number 00,01, 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 to preserve again level width coding serial data in the coded data of each infrared encoded signal, the bit number that index value in 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 storage space.
The study of infrared encoded signal and step of transmitting can referring to the description of embodiment three, repeat no more here.
Embodiment four
Consider that the identical probability of level width value that occurs in the unlike signal of different remote is very high, also can set up take infrared encoded signal as group level width value coded data as shown in table 5 below and the mapping table between index:
Table 5.
Figure GDA00002700547900231
Wherein, the one group of level width value numbering for arriving at different infrared encoded signal learnings is called level width value index group number, does not have at least one level width value not identical between on the same group a plurality of level width values.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, can utilize the information that has been recorded in table 5 to encode, otherwise encode again after one group of new level width value of record in table 5.
The coded format example is as shown in table 6 below, increase a level width value index group number coding in the Signal coding data, 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 one by one each high level or low level level width value again.Compare with embodiment four, although increased level width value index group number coding in Signal coding 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 storage space.
Table 6
Figure GDA00002700547900232
Figure GDA00002700547900241
Be also to comprise in mapping table, be the group number that arranges according to the coded data of the one group of level width value that records in same infrared encoded signal, do not have at least a level width value coded data not identical on the same group a plurality of level width value coded datas; 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 referring to the description of embodiment three, repeat no more here.
Based on above-mentioned principle, as shown in Fig. 2 b, the universal remote control in a kind of intelligent home control system that the embodiment of the present 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 telepilot can be liquid crystal touch screen, and is designed to the control interface of icon drag, convenient operation.
Close range wireless communication module 22 is used for realizing wireless near field communication;
Infrared signal transceiver module 23, the telepilot that is used for the reception intelligent home device sends the infrared encoded signal of different control functions and forwards;
the first embedded microprocessor 24, connect display module 21 by the LCD data bus, and connect infrared signal transceiver module 23 by signal wire, be used for according to control the infrared encoded signal learn command of interface input by the operation of display module, detect the high level or low level rising edge and the negative 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 according to recording result the coded data of respectively controlling infrared encoded signal corresponding to function, and when controlling the interface and receive the operation information of remote control home equipment by operation, according to controlling infrared encoded signal coded data corresponding to function, generate corresponding steering order and output, wherein: what occur for the first time in the infrared coding control signal is high level,
The second embedded microprocessor 25, be connected between the first embedded microprocessor 24 and close range wireless communication module 22 by serial line interface respectively, also send by close range wireless communication module 22 for receiving the first steering order that embeds the processing 24 devices outputs that decline.
Further the first embedded microprocessor 24 specifically comprises:
Record sub module, be used for connecting the infrared signal transceiver module by signal wire, according to control the infrared encoded signal learn command of interface input by the operation of module, detect the high level or low level rising edge and the negative 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 generating according to recording result the coded data of respectively controlling infrared encoded signal corresponding to function;
Sub module stored is for the coding result of memory encoding submodule;
The reduction submodule, be connected to the second embedded microprocessor by serial line interface, when being used for controlling the interface and receiving the operation information of remote control home equipment by operation, obtain the infrared encoded signal coded data of respective control function from sub module stored, generate corresponding steering order and export to the 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 the first setting value, and the total bytes that level width coding serial data takies is the second setting value;
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 is 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 setting value;
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 setting value;
Be used for forming the unit of the coded data of telepilot 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 coding serial data takies, the byte number that the coded data of each ranking takies, and the byte number that takies of carrier cycle coded data, obtain level width coding serial data from the coded data of telepilot infrared encoded signal, 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 not identical, level width index coded data string comprises the coded data of each high level and low level level width value corresponding ranking in level width coding serial data in the infrared coding control signal, and arranged sequentially according to each high level and the appearance of low level in the infrared coding control signal,
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 corresponding ranking in 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 telepilot 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 successively high level and low level unit according to carrier frequency.
Perhaps, the coding submodule specifically comprises:
Be used for carrying out next step 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, otherwise continue the unit of next step after the coded data of the level width value that interpolation is not recorded in mapping table and level width value index thereof;
Be used for definite each high level or low level level width value at the level width value index of mapping table correspondence and encode, level width value index coded data is combined as the unit of level width index coded data string according to each high level and low level appearance order, the byte number that the coded data of each ranking takies is the 3rd setting value;
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 setting value;
Be used for forming the unit of the coded data of telepilot 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, obtain the unit of carrier cycle coded data and level width index coded data string from the coded data of telepilot infrared encoded signal, wherein, level width index coded data string comprises the index of each high level and low level level width value in the infrared coding control signal, and arranged sequentially according to each high level and the appearance of low level in the infrared coding control signal;
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 telepilot 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 successively the unit of high level and low level infrared encoded signal according to carrier frequency.
The intelligent home control system that the embodiment of the present 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 telepilot of infrared learning function, learn original TV remote controller infrared coding;
Work out a code for learning infrared encoded signal rear and that be stored on corresponding home equipment controller;
Corresponding control terminal has power line carrier module and can connect line of electric force, 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;
Telepilot complete study and and corresponding home equipment controller synchronous after, only preserve the code that corresponding home equipment controller is given.
Telepilot sends to sensing repeater with control routine by close range wireless communication according to user instruction; 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 code emission of receiving.
Automatically control example as:
Suppose, connect optical sensor, temperature sensor, humidity sensor, human body sensor on sensing repeater;
Suppose, the 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; It is suitable that temperature sensor collects temperature; It is suitable that humidity sensor collects humidity; At this moment, each corresponding home equipment controller can receive that sensing repeater sends information; Need to 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 too low 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 high (arriving the rainfall standard); At this moment, each corresponding home equipment controller can receive that 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 too low, 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 too low, after opening, curtain may intensity of illumination can change, illuminator is awaited orders;
By above description as seen, automatically control is not singly to control different corresponding home equipment controllers according to environmental data, and each corresponding home equipment controller also can offer as a kind of environmental data other corresponding home equipment controller, selects exectorial reference frame as it.
The Intelligent lamp control system
The specific implementation of the lamp control system during the below controls take Smart Home is elaborated as example.In the present embodiment, remote command can directly be controlled the light fixture control terminal.
The embodiment of the present invention provides a kind of lamp control system, can be used in household, also can be used in the office space of a plurality of workplaces, is used for controlling being distributed in the not light fixture of chummery, and the light fixture control mode generally has following four kinds of demands:
■ controls the interface by the light fixture of hand-held remote controller light fixture is controlled;
■ controls the interface by the login remote web page light fixture is controlled;
■ 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 to control, and last a kind of demand is automatically to control.
The below also is elaborated by reference to the accompanying drawings with specific embodiment.
As shown in Fig. 3 a, the embodiment of the present invention is at first for realizing the first light fixture demand for control, the lamp control system that provides mainly comprises: telepilot 31, be arranged at least one sensing repeater 32 in 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 telepilot 31 and 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 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 present invention provides is realized is: in any one room all, the user can be distributed in by the control interface understanding of hand-held remote controller 31 state of the different lamps in each room, and can utilize the control interface of telepilot 31 that light fixture is controlled, each device need to possess following function accordingly:
Telepilot 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 receiving the light fixture state updating information of using the short distance wireless communication technology to forward;
Sensing repeater 32, use the short distance wireless communication technology to communicate by letter with telepilot 31, and connection power line network, be used for receiving the telecommand that telepilot 31 sends, and transmit the lamp remote-control instruction by power line network, 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 telepilot 31;
Light fixture control terminal 33, connect power line network, be used for receiving the lamp remote-control instruction of power line network transmission, resolve the lamp remote-control instruction and control the light fixture state according to analysis result, and transmit the light fixture state updating information by power line network when the light fixture state changes.
pass through said system, when being arranged on sensing repeater 32 in any one room and receiving the lamp remote-control instruction of telepilot 31, transmit by power line network in the capital, light fixture control terminal 33 is by power line network receiving light telecommand, instruction is resolved to lamp remote-control, if analysis result is that the light fixture of oneself controlling is controlled, carry out this lamp remote-control instruction and when the state of controlled corresponding light fixture changes, by power line network, the light fixture state updating information is returned to telepilot 31, telepilot 31 records the state of all light fixtures and in time according to the light fixture state updating information that receives, recorded information is upgraded, thereby make the user understand the current state of all light fixtures and to control as required by the control interface of telepilot 31.
Further for realizing the demand that the second is controlled light fixture by the Long-distance Control webpage, the lamp control system that the embodiment of the present invention provides, can also comprise: master controller 35, and be connected to lamp controller 34 between power line network and master controller 35, wherein:
Master controller 35 receives the long-range light fixture steering order 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 steering order by power line network;
Light fixture control terminal 33 also is used for receiving the long-range light fixture steering order of power line network transmission, resolves long-range light fixture steering order 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 present invention provides further comprises: the lamp switch of each light fixture, be connected between earth terminal and corresponding light fixture control terminal 33, light fixture control terminal 33 detects the level value of inputting by lamp switch, when level value is high level, the control light fixture is closed, and opens otherwise control light fixture.
At last for to realize that the 4th kind is carried out the automatic demand for control of set model to light fixture according to the ambient condition sensing data, the lamp control system that the embodiment of the present invention provides can also comprise: sensor, 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 steering order 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 steering order that power line network transmits, and resolves automatic steering order and controls the light fixture state according to analysis result.
For example when environment 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 configures corresponding temperature sensor, humidity sensor, optical sensor and infrared human body induction pick-up etc.
The below as preferred embodiment, describes the present invention with the lamp control system of realizing simultaneously above-mentioned four kinds of demands in detail.Wherein, the short distance wireless communication technology between telepilot 31 and sensing repeater 32 is specially the 2.4G wireless network, and steering order and state updating information are transmitted with the packets of information of setting form.
First. the management of equipment and light fixture
For realizing the equipment such as sensing repeater 32, light fixture control terminal 33, and the management of light fixture, can be on telepilot 31 in advance according to the house type distribution plan of application luminaire control system, the design management interface, in the facility registration process, for being arranged on the not corresponding room rate code 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 code for each light fixture, telepilot 31 is recorded in device distribution information the allocation result distribution, and device distribution information is synchronized to master controller 35.By administration interface, can when initialization or newly added equipment, equipment be added in lamp control system, also can dismounting equipment after, deletion relevant device and relevant light fixture from system.The below is elaborated:
1). sensing repeater 32 is added in lamp control system
Generally a sensing repeater 32 is put in each room, is used for gathering the environmental variance sensing data in this room and the forwarding of packets of information.Must first register sensing repeater 32 in lamp control system, could register other light fixture control terminals 33, light fixture and sensor and be registered in this room.
As shown in Fig. 3 b, a sensing repeater 32 is registered to a certain room process as follows:
1. by the human-computer interaction interface of telepilot 31, set up the house type distribution plan of using this lamp control system, and automatically distribute house code for the room.
2. unregistered sensing repeater 32 powers on, and sensing repeater 32 sends the registration request bag by the 2.4G wireless network to telepilot 31.
3. after telepilot 31 receives the registration request bag, by the interface prompt user, sensing repeater 32 request registration are arranged, the user by interface operation with sensing repeater 32 drag and drop to the corresponding room, automatically be sensing repeater 32 distributing equipment codes, and allocation result is kept in local facility information;
4. after telepilot 31 primary 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, telepilot 31 is kept in device distribution information for the house code of its distribution and device code, and is labeled as registered state;
6. sensing repeater 32 sends to telepilot 31 bag that succeeds in registration;
7. telepilot 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 controlling, in 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, light fixture control terminal 33 corresponding light fixture control terminal 33 device numbers of configuration.Because a switch enclosure can comprise a plurality of switches, be respectively used to control different light fixtures, therefore the light fixture controlled of each switch in switch enclosure can be in control flow corresponding logic light fixture, each logic light fixture, a sub-light fixture number can be configured, 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).
As shown in Fig. 3 c, the flow process that first logic light fixture on light fixture control terminal 33 is registered in lamp control system comprises the steps:
1. the switch that connects on action light fixture control terminal 33, light fixture control terminal 33 sends the registration request bag and sends by power line network;
2. sensing repeater 32 receives the registration request bag by power line network;
3. sensing repeater 32 is forwarded to the registration request bag in telepilot 31 by the 2.4G wireless network;
4. after telepilot 31 receives the registration request bag, by the interface prompt user, the light fixture request registration is arranged, and pass through interface operation the user, behind 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 telepilot 31 primary users click the accreditation verification button, by the 2.4G wireless network, the 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 light fixture control terminal 33 rooms, 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 to telepilot 31 bag that succeeds in registration by sensing repeater 32, and after telepilot 31 was received the bag that succeeds in registration, the logic light fixture succeeded in registration.
10 ~ 12. light fixture control terminals 33 are crossed power line network broadcasting with the device distribution information exchange that oneself records and are carried out synchronous.
The registration process of other logic light fixtures in 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 is no longer light fixture control terminal 33 distributing equipment codes.Just all logic light fixtures can be registered in 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 specific works process is as follows:
In the light fixture administration interface of telepilot 31, the light fixture that selection will be deleted, then click delete button, telepilot 31 sends to sensing repeater 32 by the 2.4G wireless network with light fixture removal request bag, then by sensing repeater 32, this packet is forwarded in corresponding light fixture control terminal 33 by power line network.
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; Then light fixture control terminal 33 sends light fixture by sensing repeater 32 to telepilot 31 and deletes successfully bag, and when the device distribution information that oneself records changes, again is broadcast to power line network and carries out synchronously.
Telepilot 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 first register sensing repeater 32 in lamp control system, could register other light fixtures in this room.For security 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 specific works process is as follows:
Telepilot 31 selects to delete the sensing repeater 32 in room in the light fixture administration interface, then click delete button, and telepilot 31 sends light fixture removal request bag to the sensing repeater 32 in this room.
The mode that this sensing repeater 32 is broadcasted by power line network sends to all light fixture removal request bags of room in each light fixture control terminal 33.
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, the juxtaposition house code is 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, again be broadcast to power line network 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 the juxtaposition house code is 0, and device code is 0, and successfully wraps to the deletion that telepilot 31 sends sensing repeaters 32.
After telepilot 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.
The status information of equipment of can be the only synchronous light fixture control terminal 33 identical with own house code of sensing repeater 32 is only preserved the status information of equipment with the light fixture control terminal 33 of own same room with them like this on each sensor.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 complete device distribution information of whole system like this.
Through above-mentioned synchronizing process, in can maintenance system on actual device distribution and sensing repeater 32, telepilot 31 the device distribution Information preservation of record consistent.
Certainly, device distribution information also can only be stored on telepilot 31, and status information of equipment mainly is stored in sensing repeater 32.
Second portion. the lamp operation control section
The control of this part content article light fixture control terminal 33 realizes, and how to realize that actual light fixture status information controls the synchronous of light fixture state in the interface with telepilot 31, remote web page.
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.Light fixture has following six kinds of states:
Automatically turn on light, automatically turn off the light, with an automatic light meter, manually turn on light, manually turn off the light, hand-operating light;
First three plants lamp state is the state that occurs when lamp is in automatic control mode, and rear three kinds of states are states that lamp occurs when being in manual control model.
The transmitting procedure of the light fixture state updating information bag of having registered to lamp control system as:
After light fixture control terminal 33 receives lamp control command (comprising lamp remote-control order and remote control command), control switch or the light modulation of lamp, and control the current state information bag of lamp controller 34 and sensing repeater 32 these lamps of transmission to light by power line network.
The sensing repeater 32(sensing repeater 32 in light fixture control terminal 33 rooms, 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 telepilot 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 telepilot 31.
After lamp controller 34 was received light fixture state updating information bag, to master controller 35, remote web page can show correct lamp state in controlling accordingly with this package forward
After master controller 35 is received light fixture state updating information bag, upgrade the state of this lamp in buffer memory, and send the condition responsive bags to the sensing repeater 32 in the room at this lamp place.
After telepilot 31 is received light fixture state updating information bag, upgrade the state of this lamp in buffer memory, and send lamp condition responsive bags by the sensing repeater 32 in wireless room to this lamp place.If the sensing repeater in other rooms 32 will be forwarded in the sensing repeater 32 in room, light fixture place by line of electric force after receiving 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 telepilot 31, with the retransmission mechanism that starts in sensing repeater 32, guarantee that master controller 35 and telepilot 31 can receive light fixture state updating information bag.
The below introduces respectively concrete light fixture control procedure in all cases:
1). control the light fixture process by the physics hand switch
Shown in Figure 1, when the physics hand switch on 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 control model mode to telepilot 31 and master controller 35 according to the state variation of light fixture.
Because the physics hand switch no longer directly is connected with electric power networks, thereby can not bring Danger Electric shock risk to the operation user, improve the security of manual control light fixture.
2). control the interface by the light fixture of telepilot 31 light fixture is controlled
The light fixture that selection will be controlled in the light fixture of telepilot 31 is controlled the interface, select control command (manually to turn on light, manually turn off the light, hand-operating light, manual/auto pattern is switched), and command packet is sent to sensing repeater 32 by the 2.4G wireless network, be forwarded in light fixture control terminal 33 by sensing repeater 32 again, controlled according to order by the light fixture control terminal 33 at this lamp place and control light fixture, and send the status information bag of response.Operational order can for: manually turn on light, manually turn off the light, hand-operating light is automatically turned on light, is automatically turned off the light, six orders with an automatic light meter.
3). control the interface by remote web page light fixture is controlled
The light fixture of user in webpage controlled the light fixture that in the interface, selection will be controlled, select control command (manually to turn on light, manually turn off the light, hand-operating light, manual/auto pattern is switched), master controller 35 sends to lamp controller 34 with command packet, sent in corresponding light fixture control terminal 33 by power line network by lamp controller 34 again, controlled according to order by the light fixture control terminal 33 at this lamp place and control light fixture, and send the status 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 automatic mode (namely send automatically turn on light, automatically turn off the light, order with an automatic light meter wrap light fixture control terminal 33), and send the status information of response.Wherein automatic control mode judges by the ambient condition sensing data that sensing repeater 32 collects based on lamp controller 34, such as the room monochrome information that collects lower than the threshold value of setting before, the automatic control mode lamp of turning on this room etc. that plays a role.
In above-mentioned control procedure, as required, carry house code, device code or the sub-light fixture code of control object in the relevant control signaling, for sensing repeater 32 or light fixture control terminal 33 identification controlled devices.
Third part. keep room information, device distribution information and light fixture status information thereof in master controller 35 consistent with reality
Depositing the information such as concrete light fixture (numbering of light fixture, the parameter of position) in house type distribution plan, each room in telepilot 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 status information from telepilot 31, sensing repeater 32.
1). master controller 35 active request obtain the room devices distributed intelligence
Device distribution information (not comprising status information) is general in the situation that first install or master controller 35 uses when re-powering initialization, during normal operation, the master controller 35 of lamp control system also can by the real-time device distribution information of transmitting by electric power networks of lamp controller 34, safeguard that automatically device distribution information and the whole system actual conditions of oneself preserving are consistent.
Master controller 35 also can send room light fixture request bag to telepilot 31, if house code is the 0 roomed device distribution information of expression request, if house code is asked the device distribution information in this room greater than 0 expression.
After telepilot 31 is received room light fixture request bag, judge whether house code is 0.
If house code=0, telepilot 31 send the device distribution information in this room to master controller 35.
If house code〉0, telepilot 31 sends the device distribution information in each room successively to master controller 35, and sends at last the roomed device distribution information of a key turn-on data bag (press a key and can open a plurality of light fixtures that the user has set) expression and be sent.
After master controller 35 is often received a room devices distributed intelligence bag, to telepilot 31, room devices distributed intelligence respond packet occurs, this information has been received in expression.
After master controller 35 is received a key turn-on data bag, send a key to telepilot 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 status 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 status request bag to each sensing repeater 32, if house code=0 roomed status information of equipment of expression request, if house code〉0 expression asks the device distribution information in this room.
After each sensing repeater 32 is received room light fixture status request bag, detect whether the house code field is 0
If house code=0, each sensing repeater 32 send the light fixture status information in room separately to master controller 35 respectively, need to prove, the house code of closing all light fixtures can be also other particular identification code;
If house code〉0, only the sensing repeater 32 in this room sends the light fixture status information in room to master controller 35;
After master controller 35 is often received a room status information bag, send the room status information respond packet to corresponding 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 normal operation to the room devices distributed intelligence in master controller 35, light fixture status information
Mainly contain the following aspects:
After telepilot 31 interpolations or deletion light fixture, can initiatively send room devices distributed intelligence bags to master controller 35.
Telepilot 31 modification one keys can initiatively send key opening information bags to master controller 35 after opening and arranging.
After any light fixture state changes, all can send to master controller 35 current state information of these light fixtures.
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 to close whole light fixture because of other reasons, can realize this function by telepilot 31 or by the key X button in the webpage Long-distance Control.
Close implementation procedure by telepilot 31 1 keys as follows:
Telepilot 31 to sensing repeater 32 send key shutdown command bags (if close all compartment lamps, house code=0; If only close all lamps of room, 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 orders of broadcasting, close respond packet to telepilot 31 and master controller 35 transmission one keys by power line network simultaneously.
After each light fixture control terminal 33 is received a key shutdown command, if light fixture is separately closed in house code=0 or be the house code of oneself.
2). a key open function
The user can release the button by telepilot 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 specific works process is as follows:
The user arranges by telepilot 31 interfaces the light fixture that needs a key to open, and telepilot 31 can send to master controller 35 to a key opening information with the form of packet simultaneously, and is synchronous to keep both.
Click the key open command in telepilot 31, telepilot 31 is according to the open command that sends successively each light fixture 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 telepilot 31 as required.
After lamp controller 34, master controller 35 or telepilot 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 realize with lamp controller 34 that Smart Home is controlled and communicate by letter with status data.
As 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 steering order of submitting to by after link layer network chip login Long-distance Control webpage, long-range light fixture steering order is sent to lamp controller 34, and the light fixture state updating information that forwards of receiving light controller 34, and according to the described light fixture state updating information status 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, DHCP service, route service and PPPOE dial-up service that opening network signal post needs, and having added Lighttpd WEB server, the integrated SPI of bottom drives.Whole master controller 35 software platform structured flowcharts are as shown in Fig. 4 b.
Consider that webpage part will call the bottom spi bus and the interface that provides is provided comes the sending and receiving control information to lamp controller 34, thereby adopt the mode development of C language+CGI; Simultaneously because webpage does not have the Real Time Monitoring ability, 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, first control information is write FIFO, in a single day background monitor is found in FIFO meaningful, calls immediately SPI driving interface and forwards information to lamp controller 34; Find control information when background monitor and send from the SPI driving, in acceptance and writing in files, can read control information from file after webpage refreshes, with log-on message and each status information of equipment of correct each equipment of demonstration at once.
Therefore, a kind of concrete structure of embedded microprocessor 352 comprises as shown in Fig. 4 c: webpage control module 3521, the first first-in first-out FIFO storage unit 3522, the 2nd FIFO storage unit 3523 and background monitoring unit 3524, wherein:
Webpage control module 3521, connecting link layer network chip 351, be used for receiving the remote operation instruction of submitting to by the Long-distance Control webpage and storing a FIFO storage unit 3522 into, and read the light fixture state updating information and flush on the Long-distance Control webpage from the 2nd FIFO storage unit 3523;
Background monitoring unit 3524, connect lamp controller 34 by serial bus interface, read successively the remote operation instruction in a FIFO storage unit 3522 and send to lamp controller 34, and receiving light controller 34 returns with the light fixture state updating information and stores in the 2nd FIFO storage unit 3523;
Further, the background monitoring unit can also and store in the 2nd FIFO storage unit by lamp controller 34 receiving equipment log-on messages, the webpage control module is fetch equipment log-on message and flushing on the Long-distance Control webpage from the 2nd FIFO storage unit also, so that the user in time understands registration scenarios and the current state of each equipment in 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, be simultaneously current the turning on light as automatically opening or manually opening of differentiation in webpage, mouse moves to and will have concrete prompting on icon as " automatically opening " 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 automatically opened, automatically closing, with an automatic light meterly, manual open, close by hand, switch between manual light modulation.Concrete Pages Design technology 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 feed back light fixture status informations, device distribution information to master controller 35, and according to the automatic control control model of ambient condition sensing data and setting, light fixture is controlled automatically.
As shown in Fig. 5 a, lamp controller 34 comprises line of electric force 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 line of electric force, being used for receiving modulation from power line network has the power line carrier signal of light fixture state updating information and forwards, and the power line carrier signal coupling that receives is transmitted to power line network;
Power line signal processing module 342, be used for demodulating the light fixture state updating information and forwarding from the power line carrier signal that power line signal coupling module 341 forwards, 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 from the master controller 35 receiving light remote control signals of lamp control system and be transmitted to power line signal processing module 342, and the light fixture state updating information that power line signal processing module 342 is forwarded 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 forwards;
Embedded microprocessor 343, also be used for generating automatic steering order according to ambient condition sensing data and automatic control mode, power line signal processing module 342 also is modulated to automatic steering order in the power line carrier signal and is coupled on power line network by line of electric force 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 synchronously be transmitted to the ambient condition sensing data master controller 35 to be shown to the user or to inquire about for the user.
For realizing the synchronous of device distribution information on master controller 35, 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 forwards;
Embedded microprocessor 343 also is used for device distribution information is transmitted to master controller 35.
As shown in Fig. 5 b, a kind of concrete structure of embedded microprocessor 343 comprises:
the first receiving element 3431, the first first-in first-out FIFO buffer 3432 and the first processing unit 3433, the first receiving element 3431 connects master controller 35 by serial line interface, the first processing unit connects power line signal processing module 342 by serial line interface, the first receiving element 3431 is used for from master controller 35 receiving remote steering orders and according to receiving sequential storage to a FIFO buffer 3432, the first processing unit reads successively remote control commands and sends to power line signal processing module 342 by serial line interface according to the storage order of remote control commands from a FIFO buffer 3432,
the second receiving element 3434, the 2nd FIFO buffer 3435 and the second processing unit 3436, the 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, the second receiving element 3434 is used for from power line signal processing module 342 receive datas and according to receiving sequential storage to the two FIFO buffers 3435, the second processing unit 3436 is according to the storage order of data reading out data from the 2nd FIFO buffer 3435 successively, 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 steering order according to ambient condition sensing data and automatic control mode, and by serial line interface, automatic steering order is sent to power line signal processing module 342.
Better, as shown in Fig. 5 c, the second processing unit 3436 specifically comprises: data read subelement, data validation subelement, data retransmission subelement, automatically control subelement and order transmission subelement, wherein:
Data read subelement, connect the 2nd FIFO buffer 3435, are used for according to the storage order of data successively from the 2nd FIFO buffer 3435 reading out datas and send to the data validation subelement;
The data validation subelement, when be used for confirming that data read data that subelement reads and are light fixture state updating information and device distribution information, be transmitted to master controller 35 by the data retransmission subelement, when confirming that data are the ambient condition sensing data, be transmitted to automatic control subelement;
Automatically controlling subelement generates automatic steering order 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 steering order 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 to master controller 35 by the data retransmission subelement.
Embedded microprocessor 343 can adopt the ARM9 embedded microprocessor as control core equally, carries serial data bus by plate between ARM9 embedded microprocessor and 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 retransmission before, are responsible for simultaneously various sensors (temperature sensor, humidity sensor, luminance sensor etc.) data acquisition.So sensing repeater 32 is integrated close range wireless communication module and power line carrier signal processing module, peripheral integrated various types of other sensor simultaneously.
As shown in Figure 6, the sensing repeater in lamp control system 32 mainly comprises:
Close range wireless communication module 321 is used for from telepilot 31 receiving light telecommands and forwards, and receiving light state updating information and send to telepilot 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 forwards, and receive and preserve the 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 forward after the lamp remote-control instruction of embedded microprocessor 322 output is modulated to the power line carrier signal, and demodulate the light fixture state updating information and be transmitted to embedded microprocessor 322 from the power line carrier signal that receives;
Power line signal coupling module 324, be connected between power line network and power line signal processing module 323, be used for the power line carrier signal that power line signal processing module 323 forwards 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.
Be the collection and the forwarding that realize the ambient condition sensing data, sensing repeater 32 also further comprises:
At least one sensor, the output terminal of each sensor connects respectively the data input pin of embedded microprocessor 322, 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 also sends to power line network for the power line carrier signal coupling that will modulate the ambient condition sensing data.
Further for to realize that the collection of registering functional and device distribution information is synchronous:
Embedded microprocessor 322 also is used for generating sensing repeater 32 registration requests and send to telepilot 31 by close range wireless communication module 321 after powering on;
Close range wireless communication module 321 also responds and is transmitted to embedded microprocessor 322 for sensing repeater 32 registrations that reception telepilot 31 returns;
Embedded microprocessor 322 also is used for registering response from sensing repeater 32 and obtains house code and the device code that telepilot 31 distributes as sensing repeater 32, and is recorded in 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 synchronous:
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 requests and is transmitted to embedded microprocessor 322, and embedded microprocessor 322 sends to telepilot 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, light fixture control terminal 33 registrations of also returning for reception telepilot 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 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, embedded microprocessor 322 with light fixture control terminal 33 device distribution information recording /s in the device distribution information of this locality.
Better, embedded microprocessor 322 be the AVR series monolithic.Serial line interface is the RS232 serial line interface.Sensor comprises at least: humidity sensor, temperature sensor, optical sensor or infrared induction sensor.
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 a status information bag chained list, if relevant device or telepilot 31 are beamed back the response confirmation bag, add the respond packet of this equipment in the respond packet chained list, represent that this status information transmission enters into force.Suppose that relevant device or telepilot 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 device, after matching status packets of information linked list data, the renewal of the equipment status information is retransmitted.This flow process guarantees to produce under more intense disturbed condition in the external world, still can safeguard the consistance of whole status information of equipment.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, the interval setting-up time for example sent the registration information bag in 1 minute again.After arriving the request number of times upper limit, stop sending this packets of information.
Owing to having stored complete device distribution information and light fixture status information in sensing repeater 32, when telepilot 31 is restarted when resetting, can be by equipment state and login state request bag equipment distributed intelligence and light fixture status information from sensing repeater 32, improved 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 that Smart Home is controlled network, the final topworks that light fixture is carried out the 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 of existing design is generally realized the functions such as switch, light modulation and light status information feedback of four street lamp light.
As shown in Figure 9, 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 is connected 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 controlling the feed circuit of one or one group light fixture;
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 that forwards from the power line signal coupled circuit and sends to the signal input part of embedded microprocessor by serial line interface;
Embedded microprocessor generates the control signal of switch module according to the light fixture control command that signal input part receives, and exports to switch module by signal output part, is used for the feed circuit that the gauge tap module is opened or closure is controlled.
Further manually control for realizing, the hand switch that the feed circuit that corresponding each switch module is controlled arrange, wherein: an end of each hand switch connects earth terminal, and the other end connects respectively a data input end of embedded microprocessor;
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, control corresponding switch module and disconnect, otherwise it is closed to control corresponding switch module.
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 line of electric force, for detection of the zero point in each cycle of alternating current, and the zero passage detection signal input part to embedded microprocessor is inputted the zero cross fired signal when zero point being detected, when embedded microprocessor is the lamp light-regulating instruction in control command, according to the angle of flow of zero cross fired signal controlling solid-state relay in each ac period.
For realizing the feedback of light fixture status information, embedded microprocessor also is used for recording the light fixture status information, and when the light fixture state changes, sends the light fixture state updating information by serial line interface to the line of electric force processing module;
After the line of electric force 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 that Smart Home is controlled network, the home appliance of each classification is carried out the final topworks of the actions such as switch, adjusting, application model configuration, 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 status information feedback of four street lamp light.
Due to reasonable in design, the intelligent terminal advantage is also embodied in to be used and installs, need only when intelligent terminal is installed 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 use-pattern and operating characteristic do not become, it is why not same with originally having that the user can not feel to have installed intelligent terminal, and because switch key no longer contacts the line of electric force live wire, so more more safe and reliable than originally.
The below controls respectively four lamps as example take four solid-state relays, 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 buffer memory.Serial line interface interrupts being responsible for the reception of system applies protocol command information.
1). initialization section
When initial, the physics hand switch of 4 lamps is all open mode;
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 changes illustrates that action has occured corresponding physics hand switch with the level that read last time, namely the state of corresponding lamp will change (if off status is opened lamp; If lamp is out state, lamp is closed; If lamp is to be in dimming state, lamp is closed).The level state of the data-in port that the state after changing and switch are connected all preserves, and the light fixture status information is deposited in buffer memory.4 physics hand switches all detect complete after, whether in buffer memory have status information, have to send by serial line interface if then detecting.
3). the external interrupt function
The adjusting of light realizes by the conduction angle of controlling each power frequency period solid-state relay.Open state: increase on the basis of current solid-state relay conduction angle a bit (advance the external interrupt function at every turn, the increase of solid-state relay conduction angle a bit, until the total conduction delay of solid-state relay is 0); Off status: reduce on the basis of current solid-state relay conduction angle a bit (advance the external interrupt function, the solid-state relay conduction angle reduces a bit at every turn, until the solid-state relay conduction delay is 0); Dimming state: if order the current brightness of desired brightness ratio high, increase on the basis of current solid-state relay conduction angle and a bit (advance the external interrupt function at every turn, the increase of solid-state relay conduction angle a bit, until the solid-state relay conduction delay for the order desired conduction delay); If order the current brightness of desired brightness ratio low, reduce on the basis of current solid-state relay conduction angle and a bit (advance the external interrupt function at every turn, the solid-state relay conduction angle reduces a bit, until the solid-state relay conduction delay is the desired conduction delay of order);
After executing top step, start timer 0.
4). timer 0 interrupts
Cumulative time, when the solid-state relay conduction delay of corresponding lamp then, conducting solid-state relay at once.After the whole conductings of the solid-state relay of 4 lamps, stop timer 0.
The 5th part. the interface of telepilot
First of telepilot 31 embeds to decline to process can select the STC single-chip microcomputer, second embeds the processing that declines can select the AVR single-chip microcomputer, telepilot 31 softwares with embedded Linux 2.6 versions as the system platform framework, the integrated liquid crystal display 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.Interface adopts the QT3.4 version.
The below sets forth telepilot 31 software interface designs from the system applies angle:
Telepilot 31 major functions:
A) room management: the interpolation in room, deletion, the selection of room location, type and modification.
B) equipment control: need to register the equipment of interpolation, deletion user family by the user, change equipment position in the room.
C) equipment is controlled: provide equipment to control function to the user as required.
● conventional control: to equipment turn on light, turn off the light, light modulation, the controls such as pattern switching.
● quick control: a key is opened, a key is closed, common equipment is controlled
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 is controlled 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) enter the room administration interface from main interface after the startup
Ii) room type that in the room administration interface, selection will be added
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.
● position functions between moveable house:
I) enter the room administration interface, selection will be deleted mobile room icon
Ii) drag the room icon to suitable position
Equipment control: the function such as interpolation (registration), deletion, movement that realizes equipment by the equipment control interface
Equipment adds (registration)
I) receive interpolation (registration) the request bag of equipment after, telepilot 31 interface prompts have new equipment will register (in the icon flicker of the upper left corner at main interface requesting service type, showing 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 in device distribution zone (can with this physical equipment the position in the room corresponding), can show that question mark represent that also not adding (registration) completes this moment on this icon.
Iii) choose this appliance icon, click the reg(registration) button, telepilot 31 adds respond packet by wireless transmission device.
Iv) telepilot 31 receives that the interpolation of this equipment successfully wraps, and equipment adds (registration) to be completed, and appliance icon is become normal device icon (namely removing question mark).
Annotate: must first add sensing repeater in the room, could normally add other equipment.
Unit deletion:
I) choose the equipment that to delete in the equipment control interface, click delete button.
Ii) whether telepilot 31 promptings want sweep equipment, by determining or cancelling.
Iii) by after determining, telepilot 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, after repeating to send 3 secondary device removal requests, direct sweep equipment;
If sensing repeater after receiving the unit deletion respond packet, is deleted all devices in this room.The position of change equipment in the room:
I) choose the appliance icon that will move in the equipment control interface.
Ii) drag other positions of choosing icon to arrive this room.
Equipment operating is controlled
The equipment that selection will be controlled
Method one:
I) control knob by main interface enters distribution interface, room;
Ii) select room, equipment place in distribution interface, room, click access arrangement distribution interface;
Iii) can check the distribution situation of this room devices and current state in the device distribution interface, need select the equipment controlled, click to enter and control the interface.
Iv) in controlling the interface, can select by the arrow up and down of clicking the left side other equipment in this room.
Method two:
Certain equipment is set to common equipment, then enters the control interface of this equipment by the common equipment interface
I) select corresponding equipment by the up and down arrow that slides in controlling the interface;
Ii) switch automatic or manual button switching working mode;
Iii) shift knob, light modulation slide block are controlled switch, the light modulation of 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 the interface first row is provided with a 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) in main interface, a key is released the button and can be activated the state of all default lamps after selected.
One key close key: it goes without doing sets in advance for X button, is responsible for closing all lamps
Common equipment interface: can navigate to fast equipment commonly used and directly enter by the common equipment interface and control the interface it is controlled.
The program design of telepilot 31 packets of information transmitting-receivings
Following flow process is the overall process of telepilot 31Qt routine processes packets of information.A certain category information bag can both be independently processed at each interface flexibly.Because the method for some program is more similar, so just do not simplified some descriptions for burdensome.Now add (registration) as the example elaboration take equipment:
I) equipment interpolation request packet is issued telepilot 31, and decoding judgement 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 do not process, answer appliance icon otherwise main interface begins shimmery picture, and information is sent to the room administration interface;
Iii) the room administration interface sends to the equipment control interface to facility information;
Iv) show in the lower left at equipment control interface the appliance icon of wanting queued for log-on, judge whether equipment and some necessary conditions in this room when dragging icon, if do not satisfy 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 has question mark (indication equipment is unregistered) on icon afterwards;
V) selection is unregistered namely has the equipment of question mark to click registration button, and telepilot 31 transmitting apparatus add (registration) response messages;
Vi) external world beams back interpolation (registration) success packet to telepilot 31, also enters accreditation process in main interface decoding judgement information type;
Vii) judge whether to satisfy the condition of registration at main interface, if do not satisfy do not process otherwise continue to judge whether register interface is opened, if do not open complete registration at main interface otherwise information is imported into the room administration 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 process otherwise specifically information pass to the equipment control interface;
Ix) the equipment control interface judges that the room that enters is exactly when between the equipment room of pre-treatment, can see that if it is the question mark on this equipment disappears, and namely succeeds in registration;
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the embodiment of the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of claim of the present invention and equivalent technologies thereof, the present invention also is intended to comprise these changes and modification interior.

Claims (4)

1. the universal remote control in an intelligent home control system, is characterized in that, comprising:
Display module, the interface is controlled in the operation that is used for the demonstration intelligent home control system;
Close range wireless communication module is used for realizing wireless near field communication;
The infrared signal transceiver module, the telepilot that is used for the reception intelligent home device sends the infrared encoded signal of different control functions and forwards;
the first embedded microprocessor, connect described display module by the LCD data bus, and connect described infrared signal transceiver module by signal wire, be used for according to control the infrared encoded signal learn command of interface input by the operation of described module, detect the high level or low level rising edge and the negative edge that comprise in the infrared encoded signal of described 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 according to recording result the coded data of respectively controlling infrared encoded signal corresponding to function, and when controlling the interface and receive the operation information of remote control home equipment by described operation, according to controlling infrared encoded signal coded data corresponding to function, generate corresponding steering order and output, 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, steering signal comprises at least two high level and low level, what occur for the first time in described infrared coding control signal is high level,
The second embedded microprocessor, be connected between described the first embedded microprocessor and close range wireless communication module by serial line interface respectively, be used for receiving the steering order of described the first embedded microprocessor output and sending by close range wireless communication module.
2. universal remote control as claimed in claim 1, is characterized in that, described the first embedded microprocessor specifically comprises:
Record sub module, be used for connecting described infrared signal transceiver module by signal wire, according to control the infrared encoded signal learn command of interface input by the operation of described module, detect the high level or low level rising edge and the negative edge that comprise in the infrared encoded signal of described 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 generating according to recording result the coded data of respectively controlling infrared encoded signal corresponding to function;
Sub module stored is for the coding result of storing described coding submodule;
The reduction submodule, be connected to described the second embedded microprocessor by serial line interface, when being used for controlling the interface and receiving the operation information of remote control home equipment by described operation, obtain the infrared encoded signal coded data of respective control function from described sub module stored, generate corresponding steering order and export to described the second embedded microprocessor.
3. universal remote control as claimed in claim 2, is characterized in that, described 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 the first setting value, and the total bytes that level width coding serial data takies is the second setting value;
Be used for putting in order according to described 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 described level width coding serial data, the ranking of determining is 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 setting value;
Be used for carrier cycle is encoded to the unit of carrier cycle coded data, the byte number that described carrier cycle coded data takies is the 4th setting value;
Be used for forming the unit of the coded data of telepilot infrared encoded signal according to setting the described level width coding of sequential combination serial data, carrier cycle coded data and level width index coded data string; And
Described 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 coding serial data takies, the byte number that the coded data of each ranking takies, and the byte number that takies of described carrier cycle coded data, obtain level width coding serial data from the coded data of telepilot infrared encoded signal, the unit of carrier cycle coded data and level width index coded data string, wherein, described level width coding serial data comprises a plurality of level width value codings that size is not identical, described level width index coded data string comprises the coded data of each high level and low level level width value corresponding ranking in described level width coding serial data in the infrared coding control signal, and arranged sequentially according to each high level and the appearance of low level in the infrared coding control signal,
Be used for according to described 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 corresponding ranking in described level width coding serial data, determine the unit of each high level and low level level width and shooting sequence in described infrared coding control signal;
Be used for determining according to described carrier cycle coded data the unit of the carrier frequency of emission telepilot infrared coding control signal;
Be used for according to described each high level of infrared coding control signal and low level level width and shooting sequence, export successively high level and low level unit according to described carrier frequency.
4. universal remote control as claimed in claim 1, is characterized in that, described coding submodule specifically comprises:
Be used for carrying out next step 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, otherwise continue the unit of next step after the coded data of the level width value that interpolation is not recorded in described mapping table and level width value index thereof;
Be used for definite each high level or low level level width value at the level width value index of described mapping table correspondence and encode, level width value index coded data is combined as the unit of level width index coded data string according to each high level and low level appearance order, the byte number that the coded data of each ranking takies is the 3rd setting value;
Be used for carrier cycle is encoded to the unit of carrier cycle coded data, the byte number that described carrier cycle coded data takies is the 4th setting value;
Be used for forming the unit of the coded data of telepilot infrared encoded signal according to setting the described carrier cycle coded data of sequential combination and level width index coded data string; And
Described 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, obtain the unit of carrier cycle coded data and level width index coded data string from the coded data of telepilot infrared encoded signal, wherein, described level width index coded data string comprises the index of each high level and low level level width value in the infrared coding control signal, and arranged sequentially according to each high level and the appearance of low level in the infrared coding control signal;
Be used for according to described 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 described infrared coding control signal;
Be used for determining according to described carrier cycle coded data the unit of the carrier frequency of emission telepilot infrared coding control signal;
Be used for according to described each high level of infrared coding control signal and low level level width value and shooting sequence, launch successively the unit of high level and low level infrared encoded signal according to described carrier frequency.
CN 200910159219 2009-07-31 2009-07-31 Universal remote controller in intelligent household control system Expired - Fee Related CN101990335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910159219 CN101990335B (en) 2009-07-31 2009-07-31 Universal remote controller in intelligent household control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910159219 CN101990335B (en) 2009-07-31 2009-07-31 Universal remote controller in intelligent household control system

Publications (2)

Publication Number Publication Date
CN101990335A CN101990335A (en) 2011-03-23
CN101990335B true CN101990335B (en) 2013-06-05

Family

ID=43746557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910159219 Expired - Fee Related CN101990335B (en) 2009-07-31 2009-07-31 Universal remote controller in intelligent household control system

Country Status (1)

Country Link
CN (1) CN101990335B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184634B (en) * 2011-05-06 2012-11-07 深圳中兴力维技术有限公司 Remote control system and method of infrared controller
CN102325067B (en) * 2011-09-16 2013-08-14 白军民 Intelligent household remote control monitoring system
CN102385889A (en) * 2011-09-28 2012-03-21 惠州市德赛视听科技有限公司 Media player and method for realizing intelligent household control by using the same
CN102693623B (en) * 2012-05-09 2014-09-24 福兴达科技实业(深圳)有限公司 Method and device for realizing infrared remote control based on Android system
CN104216342A (en) * 2013-06-03 2014-12-17 海尔集团公司 Intelligent switch and control method thereof, and intelligent control network
US10043383B2 (en) * 2013-07-02 2018-08-07 Tianjia (Shanghai) Info Tech Co., Ltd. Infrared emission and reception circuit and method of implementing the same
KR102410903B1 (en) * 2015-06-12 2022-06-21 삼성전자 주식회사 Room management system and service setting method
CN104914730A (en) * 2015-06-16 2015-09-16 福建省科正智能科技有限公司 Novel intelligent household operation interface automatic switching control system and method
CN106332382A (en) * 2015-06-18 2017-01-11 东林科技股份有限公司 Wired/wireless control system and data bridging method therefor
CN106020153B (en) * 2016-07-07 2024-01-26 福建船政交通职业学院 Remote home control system based on WIFI and infrared technology and implementation method thereof
CN107592560A (en) * 2017-09-29 2018-01-16 北京盛世辉科技有限公司 Control method, device, intelligent remote controller and computer-readable recording medium
CN108267982A (en) * 2017-12-20 2018-07-10 北京控制工程研究所 A kind of general acquisition method of emulation platform digital quantity
CN112424535B (en) * 2018-02-01 2022-12-16 安定宝公司 Universal wireless HVAC controller with internally stored Infrared (IR) database
CN111833585A (en) * 2019-04-17 2020-10-27 百度在线网络技术(北京)有限公司 Method, device and equipment for intelligent equipment to learn remote control function and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178839A (en) * 2007-12-05 2008-05-14 上海电器科学研究所(集团)有限公司 Intelligent remote controller and dynamic state update apparatus information method thereof
CN101465047A (en) * 2008-12-03 2009-06-24 江苏惠通集团有限责任公司 Intelligent remote controller and control method thereof
CN201504341U (en) * 2009-07-31 2010-06-09 宁波家天下智能系统有限公司 Universal remote controller of intelligent household control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178839A (en) * 2007-12-05 2008-05-14 上海电器科学研究所(集团)有限公司 Intelligent remote controller and dynamic state update apparatus information method thereof
CN101465047A (en) * 2008-12-03 2009-06-24 江苏惠通集团有限责任公司 Intelligent remote controller and control method thereof
CN201504341U (en) * 2009-07-31 2010-06-09 宁波家天下智能系统有限公司 Universal remote controller of intelligent household control system

Also Published As

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

Similar Documents

Publication Publication Date Title
CN101989376B (en) Intelligent home control system
CN101989072B (en) Household equipment controller
CN101990334B (en) Lamp control system, method thereof, main controller and lamp control terminal
CN101990335B (en) Universal remote controller in intelligent household control system
CN201504341U (en) Universal remote controller of intelligent household control system
CN201590145U (en) Intelligent household control system
CN201589946U (en) Household equipment control terminal
CN204331418U (en) Be provided with controlled plant and the remote signal transferring system of duty feedback function
CN104331041A (en) Intelligent home system structure and control method thereof
CN105867145A (en) Intelligent household equipment control method and apparatus
CN103092172A (en) Wire arrangement type intelligent home integrated control device based on cloud service platform
CN104597882A (en) Intelligent electrical appliance, mobile communication device, intelligent electrical appliance control system and method
CN103176445A (en) BLC2200-based intelligent household control system and control method thereof
CN105005215A (en) Protocol conversion device and data acquisition control system for industrial bus equipment
CN201590917U (en) Lamp control system
CN108810061A (en) A kind of intelligent domestic system
CN204925670U (en) Intelligence household electrical appliances control system based on singlechip and bluetooth of mobile phone communication
CN103970097A (en) Smart home internet-of-things system based on EIB/KNX bus
CN102968898A (en) Remote universal infrared remote-control system based on mobile phone short message
CN112866068A (en) Intelligent interaction system, interaction terminal and control platform
CN106163022A (en) Lamp switch device with ammeter function and intelligent lamp control system
CN201590918U (en) Sensing repeater in intelligent household control system
CN104914730A (en) Novel intelligent household operation interface automatic switching control system and method
CN101990340B (en) Sensing repeater in intelligent household control system
CN107219832A (en) A kind of intelligent appliance and access control system based on technology of Internet of things

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: 20130605

Termination date: 20160731