CN102238236A - Intelligent household electric appliance system based on ZigBee and page generation and implementation method thereof - Google Patents

Intelligent household electric appliance system based on ZigBee and page generation and implementation method thereof Download PDF

Info

Publication number
CN102238236A
CN102238236A CN2011101936316A CN201110193631A CN102238236A CN 102238236 A CN102238236 A CN 102238236A CN 2011101936316 A CN2011101936316 A CN 2011101936316A CN 201110193631 A CN201110193631 A CN 201110193631A CN 102238236 A CN102238236 A CN 102238236A
Authority
CN
China
Prior art keywords
terminal equipment
embedded web
page
zigbee
web gateway
Prior art date
Application number
CN2011101936316A
Other languages
Chinese (zh)
Inventor
陆以勤
朱青仑
周耀炎
乔洋
Original Assignee
华南理工大学
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 华南理工大学 filed Critical 华南理工大学
Priority to CN2011101936316A priority Critical patent/CN102238236A/en
Publication of CN102238236A publication Critical patent/CN102238236A/en

Links

Abstract

The invention provides an intelligent household electric appliance system based on ZigBee and page generation and an implementation method thereof, wherein the system comprises a computer, an embedded Web gateway and a plurality of terminal devices. The embedded Web gateway comprises an ARM (Advanced RISC Machine) microprocessor, a Flash SDRAM (synchronous dynamic random access memory), a time circuit, a power circuit, a network card interface and a ZigBee coordinator module, wherein the automatic generation of the household electric appliance control page is achieved based on the embedded Web server. The ZigBee coordinator module is wirelessly connected with the terminal devices via a ZigBee protocol for transmitting operation instructions and uploading the date of the terminal devices. The terminal devices receive the gateway instructions, execute the control instructions and unload the operation state of the devices and the environment parameter data. The computer remotely accesses the embedded Web gateway via the internet so as to obtain the household electric appliance control page, to manage the names of the terminal devices and to check and control the operation state of the devices and the environment parameter.

Description

Intelligent appliance system and its implementation based on ZigBee and page generation

Technical field

The present invention relates to long-distance intelligent man electric control field, be specifically related to intelligent appliance system and its implementation based on ZigBee and page generation.

Background technology

Long-distance intelligent household electrical appliances control technology is the advanced technology that combines electronics, communication, household electrical appliances and computer four big subjects, has attracted the advanced research organization of every field, the research of esbablished corporation, and has formed the consensus standard with different emphasis.These agreements mainly contain the proprietary protocol of each company originally, and the disclosure agreement of final formation is also arranged, and wherein external well-known disclosure agreement has the leading UpnP of Microsoft, leading HAVi and the leading Jini of Sun Microsystems of Sony.Also lessly in the current long-distance intelligent man electric control field can realize that the page generates automatically, a kind of situation is that equipment vendor preestablishes a fixing page for each equipment, download on the user side and install, the advantage of this mode is a control page feature richness, but new equipment of every installation or device upgrade all will be downloaded the new page again, and pattern is too fixing; Another kind of situation is that terminal equipment provides a little information to realize that the page generates automatically, but because information is less, the page of generation is simple, incomplete, the inconvenient operation of function.Remote household electrical appliance control technology of the present invention is used very popular ZigBee technology, has that cost is low, easy for installation, low in energy consumption, the advantage of stable performance; The tame electric control page provides enough key messages to the ZigBee network for gateway generates automatically, convenient, the page feature richness of the tame electric control page operation of generation; Gateway carries out the title management to terminal equipment, has realized the centralized management of terminal equipment.

Summary of the invention

The objective of the invention is to overcome the prior art above shortcomings, intelligent appliance system and its implementation based on ZigBee and page generation are provided.Concrete technical scheme is as follows:

The invention provides intelligent appliance system and its implementation based on ZigBee and page generation, described system comprises computer, embedded Web gateway and a plurality of terminal equipment.Computer obtains the tame electric control page by the Internet remote access embedded Web gateway, terminal equipment is carried out the inquiry and the control of title management, equipment running status and environmental parameter.Embedded Web gateway and terminal equipment adopt the ZigBee agreement to realize wireless connections, the embedded Web gateway sends to operational order by wireless network the terminal equipment of given network address, terminal equipment receives the gateway instruction, carry out control command, uploading device running status and ambient parameter data.

In the above-mentioned intelligent appliance system based on ZigBee and page generation, the embedded Web gateway adopts (SuSE) Linux OS, comprises BOA server, CGI(Common gateway interface) CGI and SQLite database; The equipment that the BOA server receives from the ZigBee coordinator module dispatches from the factory and obtains the page the information and generate key message, according to tame electric control Page Template, through cgi script the page is generated key message and handle, generate the tame electric control page of this terminal equipment automatically.

In the above-mentioned intelligent appliance system based on ZigBee and page generation, ZigBee coordinator module and terminal equipment in the embedded Web gateway are formed the ZigBee wireless network jointly, the ZigBee coordinator module is responsible for setting up the ZigBee network, distribute the network address that adds the member, the binding relationship table of Maintenance Point, data such as the information of on the one hand physical address, the equipment of sending out on the terminal equipment being dispatched from the factory send to the embedded web server in the embedded Web gateway, and the operational order that embedded web server is issued sends to designated terminal equipment on the other hand; Terminal equipment is after adding the ZigBee network, last stimulating food reason address, the equipment data such as information of dispatching from the factory are given the ZigBee coordinator module, receive query statement or control command that the ZigBee coordinator module issues, environmental parameter such as acquisition terminal equipment running status and humiture or carry out corresponding control command.

In the above-mentioned intelligent appliance system based on ZigBee and page generation, terminal equipment comprises wireless singlechip, radio circuit, sensor assembly, device control module and clock circuit; Wireless singlechip is connected with radio circuit by difference prevention at radio-frequency port, transmitting-receiving port switching; Wireless singlechip is connected with sensor assembly by the ADC port; Wireless singlechip is connected with device control module by the I/O port; If terminal equipment is when receiving query statement, issue the embedded Web gateway on the environmental parameter values such as humiture of terminal equipment with its running status and sensor assembly collection, the tame electric control page will show environmental parameter information such as this terminal equipment running status and up-to-date humiture; If terminal equipment is when receiving control command, and terminal equipment is controlled equipment by device control module, will issue the embedded Web gateway on the feedback information after control successfully, and the tame electric control page will show this feedback information, show that this Equipment Control successfully.

In the above-mentioned intelligent appliance system based on ZigBee and page generation, computer obtains the tame electric control page by the Internet remote access embedded Web gateway; Be on the electric control page, installation site according to terminal equipment, acquiescence terminal equipment title is carried out self-defined, storage such as information that self-defining device title physical address corresponding, equipment are dispatched from the factory realize the management of terminal equipment title in the SQLite database; Be in and select any terminal equipment on the electric control page, the operation push-button that environmental parameter information such as the instant humiture of this equipment and equipment are supported appears, selection will realize the button of function, and then the embedded Web gateway issues the query statement of the corresponding button of this terminal equipment or the terminal equipment that control command is given corresponding physical address.

Above-mentioned intelligent appliance system and its implementation based on ZigBee and page generation, the embedded Web gateway is set up system earlier in this method, after the terminal equipment adding system, submit physical address, the equipment information of dispatching from the factory to, the embedded Web gateway generates this terminal equipment man electric control page automatically by extracting page generation key message, computer is operated this terminal equipment by tame electric control pages button, specifically comprises the steps:

(1) the embedded Web gateway is connected with the mains, terminal equipment is connected with the mains;

(2) browser software is installed on computers, by the internet access embedded web server, after opening the tame electric control page, in the terminal equipment tabulation that shows, choose terminal equipment, the page will demonstrate the operational order button that environmental parameter such as the humiture of this terminal equipment and this terminal equipment are supported, the terminal equipment title of relevant position is carried out self-defined, as parlor air-conditioning, parlor electric light, bedroom air-conditioning, bedroom electric light;

(3) be on the electric control page, this terminal equipment is selected running status and environmental parameter value inquiry button, as " Query Running Status and ambient temperature " button of air-conditioning equipment, with display terminal's switch whether and up-to-date environmental parameter value the page;

(4) according to environmental parameter values such as terminal equipment running status of inquiring about and humitures, terminal equipment is controlled; If terminal equipment is in " opening " state, then directly select a control button, controlling successfully, the man electric control page in back will show " OK "; If terminal equipment is in " pass " state, then to select terminal equipment to open button earlier, the main electric control page shows after " OK ", selects other function buttons again;

(5) according to step (3), (4) the tame electric control page is operated, got final product long-range control, realize the adjusting of environmental parameter terminal equipment;

In the above-mentioned implementation method, when powering on the adding system once more after described certain terminal equipment power down, the embedded Web gateway will identify its physical address according to database, automatically generate service control interface, and the dispatch from the factory device name of information and self-defined adding equipment of the equipment that does not need to obtain again adding equipment.

In the above-mentioned implementation method, described embedded Web gateway can be controlled 65535 terminal equipments at most, and each terminal equipment has one 16 network address numbering, and network address range is 0x0001 ~ 0xFFFF.

In the above-mentioned implementation method, the embedded Web gateway issues two kinds of instructions to terminal equipment altogether:

Query statement: after the tame electric control page generates, user's remote access embedded Web gateway, be used for obtaining the instruction of environmental parameters such as terminal equipment running status and humiture, as air-conditioning equipment whether open, the ambient temperature of air-conditioning, the ambient bright degree of electric light;

Control command: user's remote access embedded Web gateway, be used for that control terminal is finished certain controlled function and the instruction that issues, as the open and close terminal equipment, the rising of air-conditioning or reduce temperature, the increase of electric light or reduce brightness.

In the above-mentioned implementation method, terminal equipment has two kinds of operating states:

The execution command state: terminal equipment receives the director data that the ZigBee coordinator module issues, and immediately equipment is carried out corresponding operating after receiving instruction;

Deep sleep state: terminal equipment is in resting state, and poll is carried out to the ZigBee coordinator module in the back of waking up the one period length of one's sleep of being separated by, if there is data instant to transfer the execution command state to, if free of data then continues dormancy.

The present invention realizes embedded web server at the embedded Web gateway, and the tame electric control page generates automatically, realizes the management of terminal equipment title, for the centralized management of terminal equipment provides the foundation; ZigBee coordinator module in the embedded Web gateway and terminal equipment employing ZigBee agreement have that cost is low, easy for installation, low in energy consumption, the advantage of stable performance.Specifically, compared with prior art, the present invention has following advantage and beneficial effect:

(1) equipment interoperability height.Terminal equipment is sent out the equipment information of dispatching from the factory on the embedded Web gateway, embedded web server obtains the page and generates key message from this information, apply mechanically tame electric control Page Template, through cgi script the page being generated key message handles, automatically generate the tame electric control page, this method is not subjected to the distinct device institute of dispatching from the factory to support to control the restriction at interface.

(2) be convenient to centralized management.When terminal equipment adds system for the first time, carry out self-defined according to equipment installation site situation to the terminal equipment default name, its physical address, self-defining device title and equipment are dispatched from the factory information stores in database, when the terminal equipment outage added system again, the embedded Web gateway can identify equipment.

(3) antijamming capability is strong, reliability is high.The ZigBee network has very strong interference free performance, adopts the DS/FA of high processing gain in physical layer, and processing gain is big more, and the ability anti-interference and expansion of anti-multipath time delay is also strong more; The ZigBee protocol stack has adopted collision-avoidance mechanism, competition and conflict when having reserved for the communication service that needs fixed-bandwidth that dedicated time slot has been avoided sending data simultaneously; The MAC layer has adopted the data transmission mechanism of full confirmation, and the packet of each transmission all must be waited for recipient's affirmation information.

(4) low-cost, low-power consumption.ZigBee is a light weight protocol stack, and is low to its hardware requirement of terminal processes, saved the device hardware cost; Exempt from patent fee; Adopt dormancy mechanism, terminal equipment carries out poll every one section dormancy time to coordinator module, if free of data then continues dormancy, the radio communication average power consumption is lower.

(5) intellectuality.The user utilizes the Internet remote access gateway terminal equipment man electric control page, according to the terminal equipment environmental parameter information that the page shows, can carry out Long-distance Control to terminal equipment; System operation instruction is abundant, can carry out running status and environmental parameter inquiry to equipment, and opening of device/close, brightness regulation and adjustment control realize that terminal equipment control is intelligent.

Description of drawings

Fig. 1 is the system construction drawing in the embodiment of the present invention.

Fig. 2 is that the terminal equipment in the embodiment of the present invention is formed module map.

Fig. 3 is the function realization figure of the embedded web server in the embodiment of the present invention.

Fig. 4 is the terminal equipment workflow diagram in the embodiment of the present invention.

Embodiment

The present invention is further illustrated below in conjunction with drawings and Examples, but the scope of protection of present invention is not limited to the scope of embodiment statement.

1. the hardware plan of embedded Web gateway and terminal equipment

The embedded Web gateway mainly comprises ARM microprocessor S3C2410, Flash storage chip, SDRAM storage chip, clock circuit, power circuit, network interface card interface and ZigBee coordinator module; The general flash interface CFI of Flash is connected with the ARM microprocessor, takes on the storage of Bootloader, (SuSE) Linux OS kernel, BOA server program, CGI(Common gateway interface) cgi script and SQLite database; SDRAM is connected with the ARM microprocessor with control three buses by data, address, temporarily deposits the data in the ARM microprocessor; The network interface card interface is connected with the ARM microprocessor by isa bus; The ZigBee coordinator module is connected with the ARM microprocessor by serial line interface, the ZigBee coordinator module is set up network and is waited for that terminal equipment adds, after terminal equipment adds, dispatch from the factory terminal equipment physical address and equipment and issue embedded web server on the information in the distribution network address; The operational order that embedded web server issues sends to the ZigBee coordinator module earlier, and the ZigBee coordinator module sends to the terminal equipment of given network address again by wireless network.

Terminal equipment comprises wireless singlechip CC2430, radio circuit, sensor assembly, device control module and clock circuit; Wireless singlechip is connected with radio circuit by difference prevention at radio-frequency port, transmitting-receiving port switching; Wireless singlechip is connected with sensor assembly by the ADC port, and sensor assembly is responsible for gathering analogue data, and the ADC that analogue data is delivered to CC2430 is carried out analog-to-digital conversion, finally obtains corresponding environmental parameter numerical value; Device control module is connected with the I/O of CC2430, and when instruction was handed down to terminal equipment, device control module was realized the corresponding operating of terminal equipment.When the user does not send instruction, terminal node will be in resting state, define the sleep interval time with timer in advance, will wake up every a dormancy time terminal equipment ZigBee coordinator module is carried out poll, see if there is the command information of this terminal equipment.If have command information then terminal equipment carry out this instruction immediately, if query statement, issue the embedded Web gateway on the environmental parameter values such as humiture of terminal equipment with its running status and sensor assembly collection, the tame electric control page will show environmental parameter information such as this terminal equipment running status and up-to-date humiture; If during control command, terminal equipment is controlled equipment by device control module, will issue the embedded Web gateway on the feedback information after controlling successfully, and the tame electric control page will show this feedback information, shows this Equipment Control success; Reenter resting state after executing.If there is not command information, terminal then reenters dormancy.

2. the function of embedded Web gateway realizes

2.1 the realization of BOA server

The function of embedded Web gateway realize comprising in have BOA server, CGI(Common gateway interface) CGI and SQLite database, BOA is transplanted on the ARM microprocessor of operation (SuSE) Linux OS, set up embedded web server, for the user provides access way based on http protocol, can finish the user side request of accepting, analysis request, response request, return tasks such as request results to user side; The BOA server is only supported the automatic generation webpage based on CGI, writes the processing of cgi script realization to operational order; The BOA server is realized the automatic generation of the tame electric control page by calling cgi script, and sends operational order to terminal equipment, and the function realization flow is as follows:

(1) initialization of BOA server.Finish the initial work of BOA server, as the creation environment variable, create TCP socket, bundling port, begin to intercept, enter loop structure and wait for the connection request that receives the user side browser;

(2) receive the user side request.When the client connection request, the BOA server is responsible for receiving the user side request, and preserves association requests information;

(3) solicited message is responded.The BOA server is made different responses according to the requesting method difference.If requesting method is HEAD, then returns response header simply and get final product; If method is GET, then at first return response header, then the URL file destination of user side request is read from server, give the user side browser again; If requesting method is POST, then the form information that user side is sended over sends to corresponding C GI program, carries out cgi script as the parameter of CGI, and execution result is sent to the user side browser;

(4) close and being connected of subscriber computer.

2.2 the automatic generation of the tame electric control page

The terminal equipment adding system that powers on dispatches from the factory physical address, equipment and issues the ZigBee coordinator module of embedded Web gateway on the information; The equipment that the BOA server receives from the ZigBee coordinator module dispatches from the factory and obtains the page the information and generate key message, and the page generates key message and comprises that mainly device association, service association, operative association, operating key are described, parametric description; The page generates key message and is associated with a terminal equipment, according to the service association zoning, a zone is divided in a service, in the zone, operating key, parameterized graphics are positioned, operating key and parameter bind together by operative association, operating key is described and is comprised parameter list, graphical information, locating information, and parametric description comprises data type, graphical information, locating information; According to the html template in the embedded Web gateway, through cgi script data are handled, generation can present the html file of service state and exercisable service control interface automatically.

3. the title of terminal equipment management

Computer is by the Internet remote access embedded Web gateway, obtain the tame electric control page, installation site according to terminal equipment, carry out self-defined to acquiescence terminal equipment title, storage such as information that self-defining device title physical address corresponding, equipment are dispatched from the factory realize the management of terminal equipment title in the SQLite database; When the terminal equipment power down joins system again, system compares the physical address of this equipment and the physical address information in the SQLite database, then directly take out the terminal equipment data if find the success of physics matching addresses, generate service control interface, the equipment that the embedded Web gateway does not need the to obtain terminal equipment again information of dispatching from the factory.

4. the embedded Web gateway is to the control flow of terminal equipment

(1) the embedded Web gateway is connected with the mains, the initialization of ZigBee coordinator module activates and sets up a new network, enters the wireless monitor state then, waits for that terminal equipment adds; Terminal equipment is connected with the mains, the terminal equipment initialization, search network after the activation, transmission joins request, submit physical address, the equipment of this terminal equipment information of dispatching from the factory to, the monitoring of ZigBee coordinator module receives joining request that terminal equipment sends, and allows its adding, the embedded Web gateway is issued on the information of simultaneously its physical address, equipment being dispatched from the factory in the distribution network address;

(2) browser software is installed on computers, by the internet access embedded web server, embedded web server receives the physical address sent out on the ZigBee coordinator module and the equipment information of dispatching from the factory, and slave unit dispatches from the factory and obtains the page in the information and generate key message, according to the html template in the embedded Web gateway, through cgi script the page is generated key message and handle, generation can present the html file of the service state and the exercisable family electric control page automatically; Computer is opened the tame electric control page, in the terminal equipment tabulation that shows, choose terminal equipment, the page will demonstrate the operational order button that environmental parameter such as the humiture of this terminal equipment and this terminal equipment are supported, installation site according to terminal equipment, acquiescence terminal equipment title is carried out self-defined, storage such as information that self-defining device title physical address corresponding, equipment are dispatched from the factory are in the SQLite database;

(3) be on the electric control page, this terminal equipment is selected running status and environmental parameter value inquiry button, the embedded Web gateway is handed down to terminal equipment with query statement, after terminal equipment is received query statement, the aanalogvoltage of wireless singlechip sampling sensor module, quantize by inner ADC analog to digital converter, again according to the corresponding relation of environmental parameters such as quantized value and humiture, obtain environmental parameter numerical value, at last these data and terminal equipment running status are issued the embedded Web gateway on together; Embedded web server is handled the data of receiving, with display terminal's switch whether and up-to-date environmental parameter value the page;

(4) according to environmental parameter values such as terminal equipment running status of inquiring about and humitures, select corresponding control button, this control command sends to embedded web server with the HTTP request mode; The control command that embedded web server is received is handed down to the ZigBee coordinator module, and the ZigBee coordinator module is handed down to control command by wireless network the terminal equipment of appointment; After terminal equipment was received control command, the wireless singlechip resolve command was carried out corresponding operating by I/O mouth enabled devices control module, and after the Equipment Control success, terminal equipment is sent out " OK " information on the embedded Web gateway; Embedded web server is received " OK " information, shows on the electric control page of being in after handling " OK ";

(5) according to step (3), (4) the tame electric control page is operated, got final product long-range control, realize the adjusting of environmental parameter terminal equipment;

When joining system again after the terminal equipment power down, system compares the physical address of this equipment and the physical address information in the SQLite database, then directly take out the terminal equipment data if find the success of physics matching addresses, generate service control interface, the equipment that the embedded Web gateway does not need the to obtain terminal equipment again information of dispatching from the factory.

Embodiment:

As shown in Figure 1, module 10 embedded Web gateways mainly comprise with lower unit:

(1) the network interface card interface 11: be connected with the ARM microprocessor by isa bus, realize the physical connection of network interface card and network cable, during system works, the embedded Web gateway is connected to the Internet by the network interface card interface, and computer is by internet access embedded Web gateway.

(2) the ZigBee coordinator module 12: be connected with the ARM microprocessor by serial line interface, be responsible for setting up the ZigBee network, distribute the network address that adds the member, the binding relationship table of Maintenance Point, data such as the information of on the one hand physical address, the equipment of sending out on the terminal equipment being dispatched from the factory send to the embedded web server in the embedded Web gateway, and the operational order that embedded web server is issued sends to designated terminal equipment on the other hand.

(3) the ARM microprocessor 13: powerful microprocessor chip, the data of sending out on the processing terminal equipment better; BOA is transplanted on the ARM chip of operation (SuSE) Linux OS, sets up embedded web server.

(4) Flash 14: be connected with the ARM microprocessor by general flash interface CFI, mainly take on the storage of code datas such as BootLoader, kernel, file system, user software code, constant.

(5) SDRAM 15: be connected with the ARM microprocessor by data, address and control three buses, temporarily deposit the deal with data in the ARM chip.

(6) clock circuit 16: comprise the crystal oscillating circuit that each modular circuit is required, for system's operation provides clock signal.

(7) power circuit 17: form power circuit by the voltage stabilizing chip, be responsible for each system module power supply.

(8) terminal equipment 18: terminal equipment is after adding the ZigBee network, and last stimulating food reason address, the equipment data such as information of dispatching from the factory are given the ZigBee coordinator module, receive the gateway instruction, execution control command, uploading device running status and ambient parameter data.

(9) connecting line of serial ports circuit 19:ZigBee coordinator module and ARM chip.Embedded web server on the ARM chip issues operational order and gives the ZigBee coordinator module, and the ZigBee coordinator module sends the data message that terminal equipment is uploaded to the ARM chip.

(10) isa bus 110: the connecting line of network interface card interface and ARM chip.

(11) the Internet 111: the network connecting mode of computer, computer is by the Internet remote access embedded Web gateway.

(12) computer 112: operate browser software, household electrical appliances are carried out remote inquiry and control.

As Fig. 2, form module map for the terminal equipment among the present invention, specifically comprise with lower module:

(1) wireless singlechip 21: after terminal equipment was received query statement, the aanalogvoltage of wireless singlechip sampling sensor module quantized by inner ADC analog to digital converter; After terminal equipment was received control command, the wireless singlechip resolve command was carried out corresponding operating by I/O mouth enabled devices control module.

(2) radio circuit 22: be connected with difference prevention at radio-frequency port, the transmitting-receiving port switching of wireless singlechip, be responsible for the transmitting-receiving of wireless data.

(3) device control module 23: be connected with the I/O port of wireless singlechip, receive the I/O enable signal that wireless singlechip sends, realize the control to household electrical appliances.

(4) clock circuit 24: be made up of crystal oscillating circuit, for the terminal equipment operation provides clock signal.

(5) sensor assembly 25: be connected with the ADC port of wireless singlechip, gather environmental parameter, the output aanalogvoltage carries out analog-to-digital conversion for the ADC of wireless chip, again according to the corresponding relation of quantized value and environmental parameter, obtains environmental parameter numerical value.

(6) sampling circuit 26: the connecting line of sensor assembly and wireless singlechip.The analog voltage signal of sensor assembly output is sent to the ADC pin of wireless singlechip.

(7) the I/O holding wire 27: the connecting line of wireless singlechip and device control module.

As Fig. 3, be the function realization figure of the embedded web server among the present invention, idiographic flow is as follows:

(1) ZigBee coordinator module 31 initialization activate and set up a new network, upload physical address after terminal equipment adds, the equipment information of dispatching from the factory is given the ZigBee coordinator module.

(2) dispatch from the factory by CGI 32 slave units and obtain the page in the information and generate key message and handle, generate the tame electric control page automatically.

(3) computer run browser 33 remote access embedded Web gateways obtain the tame electric control page on BOA server 34.

As Fig. 4, be terminal equipment workflow diagram among the present invention.Flow chart step is as follows:

(1) power on after, system initialization 41 searches network after the activation, application adds network 42.

(2) judge whether earlier successfully to add 43, successfully whether according to adding judges what state terminal equipment should enter.If successfully add then enter the operational order 44 whether inquiry has this terminal equipment, if does not add successfully then continuation application adding network 42.

(3) whether inquiry has the operational order 44 of this terminal equipment, whether then enters query statement 45 if having, if then do not enter resting state 410.

(4) judge whether query statement 45,, after having gathered ambient parameter data and terminal equipment running status are uploaded to ZigBee coordinator module 48, enter resting state 410 if then enable sensor assembly image data 47; Then enabled devices control module power supply if not sends to device control module with control command and wait is finished 46, will issue ZigBee coordinator module 49 on the feedback information after being finished, and enters resting state 410.

(5) enter resting state 410 after, set timer time in advance, carry out timer and wake 411 up, whether the terminal equipment back of waking up has the operational order 44 of terminal equipment to telegon inquiry, enters for (3) step.

Claims (10)

1. based on the intelligent appliance system of ZigBee and page generation, it is characterized in that this system comprises computer, embedded Web gateway and a plurality of terminal equipment; Computer is by the Internet remote access embedded Web gateway, obtain the tame electric control page, terminal equipment is carried out the inquiry and the control of title management, equipment running status and environmental parameter, embedded Web gateway and terminal equipment adopt the ZigBee agreement to realize wireless connections, the embedded Web gateway sends to operational order by wireless network the terminal equipment of given network address, terminal equipment receives the gateway instruction, carries out control command, uploading device running status and ambient parameter data.
2. intelligent appliance system according to claim 1 is characterized in that the embedded Web gateway comprises ARM microprocessor, Flash, SDRAM, clock circuit, power circuit, network interface card interface and ZigBee coordinator module seven parts; Flash is connected with the ARM microprocessor by general flash interface CFI, takes on the storage of Bootloader, (SuSE) Linux OS kernel, BOA server program, CGI(Common gateway interface) cgi script and SQLite database; SDRAM is connected with the ARM microprocessor with control three buses by data, address, temporarily deposits the data in the ARM microprocessor; The network interface card interface is connected with the ARM microprocessor by isa bus; The ZigBee coordinator module is connected with the ARM microprocessor by serial line interface.
3. intelligent appliance system according to claim 1 is characterized in that the embedded Web gateway adopts (SuSE) Linux OS, comprises BOA server, CGI(Common gateway interface) CGI and SQLite database; The equipment that the BOA server receives from the ZigBee coordinator module dispatches from the factory and obtains the page the information and generate key message, according to tame electric control Page Template, through cgi script the page is generated key message and handle, generate the tame electric control page of this terminal equipment automatically.
4. intelligent appliance system according to claim 1, it is characterized in that ZigBee coordinator module and terminal equipment in the embedded Web gateway form the ZigBee wireless network jointly, the ZigBee coordinator module is responsible for setting up the ZigBee network, distribute the network address that adds the member, the binding relationship table of Maintenance Point, data such as the information of on the one hand physical address, the equipment of sending out on the terminal equipment being dispatched from the factory send to the embedded web server in the embedded Web gateway, and the operational order that embedded web server is issued sends to designated terminal equipment on the other hand; Terminal equipment is after adding the ZigBee network, last stimulating food reason address, the equipment data such as information of dispatching from the factory are given the ZigBee coordinator module, receive query statement or control command that the ZigBee coordinator module issues, environmental parameter such as acquisition terminal equipment running status and humiture or carry out corresponding control command; Computer obtains the tame electric control page by the Internet remote access embedded Web gateway; Be on the electric control page, installation site according to terminal equipment, acquiescence terminal equipment title is carried out self-defined, storage such as information that self-defining device title physical address corresponding, equipment are dispatched from the factory realize the management of terminal equipment title in the SQLite database; Be in and select any terminal equipment on the electric control page, the operation push-button that this equipment instant humiture environmental parameter information and equipment are supported appears, selection will realize the button of function, and then the embedded Web gateway issues the query statement of the corresponding button of this terminal equipment or the terminal equipment that control command is given corresponding physical address.
5. intelligent appliance system according to claim 1 is characterized in that terminal equipment comprises wireless singlechip, radio circuit, sensor assembly, device control module and clock circuit; Wireless singlechip is connected with radio circuit by difference prevention at radio-frequency port, transmitting-receiving port switching; Wireless singlechip is connected with sensor assembly by the ADC port; Wireless singlechip is connected with device control module by the I/O port; If terminal equipment is when receiving query statement, issue the embedded Web gateway on the humiture environmental parameter value of terminal equipment with its running status and sensor assembly collection, the tame electric control page will show this terminal equipment running status and up-to-date humiture environmental parameter information; If terminal equipment is when receiving control command, and terminal equipment is controlled equipment by device control module, will issue the embedded Web gateway on the feedback information after control successfully, and the tame electric control page will show this feedback information, show that this Equipment Control successfully.
6. the implementation method of an intelligent appliance system that generates based on ZigBee and the page, the embedded Web gateway is set up system earlier in this method, after the terminal equipment adding system, the embedded Web gateway generates this terminal equipment man electric control page automatically, computer is operated this terminal equipment by tame electric control pages button, specifically comprises the steps:
(1) the embedded Web gateway is connected with the mains, terminal equipment is connected with the mains;
(2) browser software is installed on computers, by the internet access embedded web server, after opening the tame electric control page, in the terminal equipment tabulation that shows, choose terminal equipment, the page will demonstrate the humiture environmental parameter of this terminal equipment and the operational order button that this terminal equipment is supported, the terminal equipment title of relevant position is carried out self-defined, the terminal equipment of relevant position comprises more than one in parlor air-conditioning, parlor electric light, bedroom air-conditioning, the bedroom electric light;
(3) be on the electric control page, this terminal equipment is selected running status and environmental parameter value inquiry button, with display terminal's switch whether and up-to-date environmental parameter value the page;
(4) according to the terminal equipment running status and the humiture environmental parameter value of inquiry, terminal equipment is controlled; If terminal equipment is in " opening " state, then directly select a control button, controlling successfully, the man electric control page in back will show " OK "; If terminal equipment is in " pass " state, then to select terminal equipment to open button earlier, the main electric control page shows after " OK ", selects other function buttons again;
(5) according to step (3), (4) the tame electric control page is operated, can long-range terminal equipment be controlled.
7. the implementation method of the intelligent appliance system that generates based on ZigBee and the page according to claim 6, when it is characterized in that after certain terminal equipment power down, powering on the adding system once more, the embedded Web gateway will identify its physical address according to database, generate service control interface automatically.
8. the implementation method of the intelligent appliance system that generates based on ZigBee and the page according to claim 6, it is characterized in that the embedded Web gateway can control 65535 terminal equipments at most, each terminal equipment has one 16 network address numbering, and network address range is 0x0001 ~ 0xFFFF.
9. the implementation method of the intelligent appliance system that generates based on ZigBee and the page according to claim 6 is characterized in that the instruction that the embedded Web gateway issued to terminal equipment when step (3) was selected different key to terminal equipment is divided into two kinds:
Query statement: after the tame electric control page generates, user's remote access embedded Web gateway, the instruction that is used for obtaining terminal equipment running status and humiture environmental parameter;
Control command: user's remote access embedded Web gateway is used for that control terminal is finished certain controlled function and the instruction that issues.
10. the implementation method of the intelligent appliance system that generates based on ZigBee and the page according to claim 6 is characterized in that terminal equipment has two kinds of operating states:
The execution command state: terminal equipment receives the director data that the ZigBee coordinator module issues, and immediately equipment is carried out corresponding operating after receiving instruction;
Deep sleep state: terminal equipment is in resting state, and poll is carried out to the ZigBee coordinator module in the back of waking up the one period length of one's sleep of being separated by, if there is data instant to transfer the execution command state to, if free of data then continues dormancy.
CN2011101936316A 2011-07-12 2011-07-12 Intelligent household electric appliance system based on ZigBee and page generation and implementation method thereof CN102238236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101936316A CN102238236A (en) 2011-07-12 2011-07-12 Intelligent household electric appliance system based on ZigBee and page generation and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101936316A CN102238236A (en) 2011-07-12 2011-07-12 Intelligent household electric appliance system based on ZigBee and page generation and implementation method thereof

Publications (1)

Publication Number Publication Date
CN102238236A true CN102238236A (en) 2011-11-09

Family

ID=44888432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101936316A CN102238236A (en) 2011-07-12 2011-07-12 Intelligent household electric appliance system based on ZigBee and page generation and implementation method thereof

Country Status (1)

Country Link
CN (1) CN102238236A (en)

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752884A (en) * 2012-06-28 2012-10-24 北京邮电大学 Internet-of-things system based on Web technology and data processing method of internet-of-things system
CN102769555A (en) * 2012-06-27 2012-11-07 喻应东 Intelligent home system
CN102833836A (en) * 2012-09-19 2012-12-19 东莞宇龙通信科技有限公司 Terminal and method for acquiring radio-frequency emission power of terminal
CN102892213A (en) * 2011-12-06 2013-01-23 中国科学院深圳先进技术研究院 Wireless node control terminal
CN103116336A (en) * 2013-01-14 2013-05-22 广州从兴电子开发有限公司 Method and device for automatic management of controlled device through intelligent home control terminal
CN103139294A (en) * 2013-01-30 2013-06-05 深圳市深信服电子科技有限公司 Method and system for local resource mapping based on application virtualization
CN103297530A (en) * 2013-06-08 2013-09-11 国家电网公司 Method for controlling intelligent household devices
CN103365269A (en) * 2013-06-28 2013-10-23 南京邮电大学 Wireless sensor network-based intelligent household electrical appliance multimode remote monitoring system and method
CN103365283A (en) * 2013-07-24 2013-10-23 管仲博 Digital home control method and device
CN103379166A (en) * 2012-04-28 2013-10-30 孙羽 Wireless sensing control network system based on Internet of Things
WO2013166921A1 (en) * 2012-05-11 2013-11-14 彭影彪 Intelligent wireless router and wireless communication system
CN103561044A (en) * 2013-11-20 2014-02-05 无锡儒安科技有限公司 Data transmission method and data transmission system
CN103631205A (en) * 2012-08-21 2014-03-12 江苏怡海科技发展有限公司 An intelligent household electrical appliance network interconnection and integration remote control system
CN103744411A (en) * 2014-02-07 2014-04-23 上海金牌软件开发有限公司 Control method related to ZigBee technology for realizing smart home
CN103843282A (en) * 2011-09-30 2014-06-04 三星电子株式会社 Apparatus and method for integrally managing maintenance of electronic devices
CN103941599A (en) * 2013-01-21 2014-07-23 海尔集团公司 Intelligent household electrical appliance control method, intelligent household electrical appliance and control system
CN104469984A (en) * 2014-12-26 2015-03-25 深圳市彩易生活科技有限公司 Access method and system of terminal and related equipment
CN104702669A (en) * 2015-02-04 2015-06-10 联想(北京)有限公司 Information processing method and electronic devices
CN104714413A (en) * 2015-03-17 2015-06-17 郑波 Intelligent home system based on ZigBee technique
CN104820364A (en) * 2015-03-13 2015-08-05 李念 Intelligent home integrated management system and method thereof
CN104901821A (en) * 2014-03-04 2015-09-09 中国地震台网中心 Nagios-based network management system framework and realization method
CN104932352A (en) * 2015-05-28 2015-09-23 广州番禺职业技术学院 Intelligent monitoring method based on WEB network remote monitoring and cellphone
CN105208673A (en) * 2014-06-24 2015-12-30 小米科技有限责任公司 Communication establishing method and device
CN105357245A (en) * 2015-06-23 2016-02-24 南京理工大学紫金学院 Intelligent home system based on cloud service and ZigBee technology and design method thereof
CN105527952A (en) * 2016-01-20 2016-04-27 宁波六脉神剑软件科技有限公司 Smart home control device and electric appliance matching system and method
CN105719454A (en) * 2016-01-28 2016-06-29 无锡南理工科技发展有限公司 Extensible ZigBee data transmission device and method
WO2016107078A1 (en) * 2014-12-29 2016-07-07 小米科技有限责任公司 Binding method and apparatus of intelligent device
CN105955111A (en) * 2016-05-09 2016-09-21 京东方科技集团股份有限公司 Equipment control method, equipment control device and equipment control system
CN103701878B (en) * 2013-12-13 2017-01-04 小米科技有限责任公司 A kind of method and device showing account state
CN106325119A (en) * 2015-07-02 2017-01-11 艾体威尔电子技术(北京)有限公司 Method of man-machine interactive control device
CN107291788A (en) * 2016-03-31 2017-10-24 雲大江 Parameter type measures addressing method
CN107945473A (en) * 2016-10-12 2018-04-20 常州市小先信息技术有限公司 Intelligent home control system and its method based on wireless radio frequency modules
US9954691B2 (en) 2014-12-29 2018-04-24 Xiaomi Inc. Method and apparatus for binding intelligent device
WO2018112738A1 (en) * 2016-12-20 2018-06-28 Intel Corporation Power state management
CN109213009A (en) * 2018-08-24 2019-01-15 意力(广州)电子科技有限公司 A kind of roasting plant monitoring system and method
CN110071958A (en) * 2019-02-01 2019-07-30 西安电子科技大学 Sensor node control method based on embedded type web

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040208164A1 (en) * 2003-04-15 2004-10-21 Keenan Sean M. Transaction card information access web service
CN201758454U (en) * 2010-04-27 2011-03-09 山东大学 Novel intelligent household system in the internet of things era
CN102035703A (en) * 2010-12-07 2011-04-27 中兴通讯股份有限公司 Family wireless network and implementation method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040208164A1 (en) * 2003-04-15 2004-10-21 Keenan Sean M. Transaction card information access web service
CN201758454U (en) * 2010-04-27 2011-03-09 山东大学 Novel intelligent household system in the internet of things era
CN102035703A (en) * 2010-12-07 2011-04-27 中兴通讯股份有限公司 Family wireless network and implementation method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋耀华: "基于ZigBee的嵌入式Web网关设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 08, 31 August 2008 (2008-08-31) *

Cited By (52)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103843282B (en) * 2011-09-30 2018-07-27 三星电子株式会社 Device and method for the maintenance for integrally managing electronic device
CN103843282A (en) * 2011-09-30 2014-06-04 三星电子株式会社 Apparatus and method for integrally managing maintenance of electronic devices
CN102892213B (en) * 2011-12-06 2016-04-13 中国科学院深圳先进技术研究院 Radio node control terminal
CN102892213A (en) * 2011-12-06 2013-01-23 中国科学院深圳先进技术研究院 Wireless node control terminal
CN103379166A (en) * 2012-04-28 2013-10-30 孙羽 Wireless sensing control network system based on Internet of Things
CN103379166B (en) * 2012-04-28 2015-03-04 孙羽 Wireless sensing control network system based on Internet of Things
WO2013166921A1 (en) * 2012-05-11 2013-11-14 彭影彪 Intelligent wireless router and wireless communication system
US9853829B2 (en) 2012-05-11 2017-12-26 Yong Lu Intelligent wireless router and wireless communication system
CN102769555B (en) * 2012-06-27 2015-10-14 喻应东 Intelligent domestic system
CN102769555A (en) * 2012-06-27 2012-11-07 喻应东 Intelligent home system
CN102752884B (en) * 2012-06-28 2016-02-10 北京邮电大学 The Internet of things system of sing on web technology and the data processing method of this system
CN102752884A (en) * 2012-06-28 2012-10-24 北京邮电大学 Internet-of-things system based on Web technology and data processing method of internet-of-things system
CN103631205A (en) * 2012-08-21 2014-03-12 江苏怡海科技发展有限公司 An intelligent household electrical appliance network interconnection and integration remote control system
CN102833836A (en) * 2012-09-19 2012-12-19 东莞宇龙通信科技有限公司 Terminal and method for acquiring radio-frequency emission power of terminal
CN103116336B (en) * 2013-01-14 2015-04-29 从兴技术有限公司 Method and device for automatic management of controlled device through intelligent home control terminal
CN103116336A (en) * 2013-01-14 2013-05-22 广州从兴电子开发有限公司 Method and device for automatic management of controlled device through intelligent home control terminal
CN103941599A (en) * 2013-01-21 2014-07-23 海尔集团公司 Intelligent household electrical appliance control method, intelligent household electrical appliance and control system
CN103139294A (en) * 2013-01-30 2013-06-05 深圳市深信服电子科技有限公司 Method and system for local resource mapping based on application virtualization
CN103139294B (en) * 2013-01-30 2015-12-09 深圳市深信服电子科技有限公司 Based on local resource mapping method and the system of applying virtual
CN103297530A (en) * 2013-06-08 2013-09-11 国家电网公司 Method for controlling intelligent household devices
CN103297530B (en) * 2013-06-08 2017-03-08 国家电网公司 A kind of method of control intelligent home device
CN103365269A (en) * 2013-06-28 2013-10-23 南京邮电大学 Wireless sensor network-based intelligent household electrical appliance multimode remote monitoring system and method
CN103365269B (en) * 2013-06-28 2015-11-25 南京邮电大学 Based on intelligent appliance multi-mode long distance control system and the method for wireless sense network
CN103365283A (en) * 2013-07-24 2013-10-23 管仲博 Digital home control method and device
CN103561044A (en) * 2013-11-20 2014-02-05 无锡儒安科技有限公司 Data transmission method and data transmission system
CN103561044B (en) * 2013-11-20 2017-06-27 无锡儒安科技有限公司 Data transmission method and data transmission system
CN103701878B (en) * 2013-12-13 2017-01-04 小米科技有限责任公司 A kind of method and device showing account state
CN103744411A (en) * 2014-02-07 2014-04-23 上海金牌软件开发有限公司 Control method related to ZigBee technology for realizing smart home
CN103744411B (en) * 2014-02-07 2016-08-17 上海金牌软件开发有限公司 A kind of relevant ZigBee technology realizes the control method of Smart Home
CN104901821A (en) * 2014-03-04 2015-09-09 中国地震台网中心 Nagios-based network management system framework and realization method
CN105208673A (en) * 2014-06-24 2015-12-30 小米科技有限责任公司 Communication establishing method and device
CN104469984A (en) * 2014-12-26 2015-03-25 深圳市彩易生活科技有限公司 Access method and system of terminal and related equipment
CN104469984B (en) * 2014-12-26 2018-11-09 深圳市彩易生活科技有限公司 A kind of cut-in method of terminal, system and relevant device
RU2630222C2 (en) * 2014-12-29 2017-09-06 Сяоми Инк. Method and device for smart device coupling
WO2016107078A1 (en) * 2014-12-29 2016-07-07 小米科技有限责任公司 Binding method and apparatus of intelligent device
US9954691B2 (en) 2014-12-29 2018-04-24 Xiaomi Inc. Method and apparatus for binding intelligent device
CN104702669A (en) * 2015-02-04 2015-06-10 联想(北京)有限公司 Information processing method and electronic devices
CN104820364A (en) * 2015-03-13 2015-08-05 李念 Intelligent home integrated management system and method thereof
CN104714413A (en) * 2015-03-17 2015-06-17 郑波 Intelligent home system based on ZigBee technique
CN104932352A (en) * 2015-05-28 2015-09-23 广州番禺职业技术学院 Intelligent monitoring method based on WEB network remote monitoring and cellphone
CN105357245A (en) * 2015-06-23 2016-02-24 南京理工大学紫金学院 Intelligent home system based on cloud service and ZigBee technology and design method thereof
CN105357245B (en) * 2015-06-23 2019-04-02 南京理工大学紫金学院 A kind of smart home system and its design method based on cloud service and ZigBee technology
CN106325119A (en) * 2015-07-02 2017-01-11 艾体威尔电子技术(北京)有限公司 Method of man-machine interactive control device
CN105527952A (en) * 2016-01-20 2016-04-27 宁波六脉神剑软件科技有限公司 Smart home control device and electric appliance matching system and method
CN105719454A (en) * 2016-01-28 2016-06-29 无锡南理工科技发展有限公司 Extensible ZigBee data transmission device and method
CN107291788A (en) * 2016-03-31 2017-10-24 雲大江 Parameter type measures addressing method
US10423139B2 (en) 2016-05-09 2019-09-24 Boe Technology Group Co., Ltd. Device control method and apparatus, and device control system
CN105955111A (en) * 2016-05-09 2016-09-21 京东方科技集团股份有限公司 Equipment control method, equipment control device and equipment control system
CN107945473A (en) * 2016-10-12 2018-04-20 常州市小先信息技术有限公司 Intelligent home control system and its method based on wireless radio frequency modules
WO2018112738A1 (en) * 2016-12-20 2018-06-28 Intel Corporation Power state management
CN109213009A (en) * 2018-08-24 2019-01-15 意力(广州)电子科技有限公司 A kind of roasting plant monitoring system and method
CN110071958A (en) * 2019-02-01 2019-07-30 西安电子科技大学 Sensor node control method based on embedded type web

Similar Documents

Publication Publication Date Title
Chandramohan et al. Intelligent smart home automation and security system using Arduino and Wi-fi
CN103309308B (en) A kind of device intelligence control method and device, system, PnP device
EP2742650B1 (en) User status- and user behavior-based control system and method for building-installation systems and components
CN204332062U (en) Infrared signal strengthens system and remote signal transferring system
US8725274B2 (en) Energy use control system and method
US8443071B2 (en) Data server system and method
CN103365269B (en) Based on intelligent appliance multi-mode long distance control system and the method for wireless sense network
CA2753003C (en) Low cost and flexible energy management system defined in a single unitary housing
CN103941668B (en) User operating terminal for household appliance controlling
CN103438549B (en) The central air-conditioning centralized control system at graphic based interface and control method
US20180248968A1 (en) Remote access gateway configurable control system
CN103941653B (en) The master and slave control method of intelligent appliance and system
CN102420784B (en) Home gateway and energy control method thereof
US9920948B2 (en) Asynchronous reporting system
Han et al. More efficient home energy management system based on ZigBee communication and infrared remote controls
CN103019162B (en) A kind of intelligent appliance supervisory system and method
CN201707570U (en) Intelligent socket remote control system
Lanzisera et al. Communicating power supplies: Bringing the internet to the ubiquitous energy gateways of electronic devices
Ferreira et al. IoT architecture to enable intercommunication through REST API and UPnP using IP, ZigBee and arduino
US8190275B2 (en) Peer-to-peer home automation management
CN102801816B (en) Cloud air conditioning system based on cloud computation
CN201887794U (en) Gateway of internet of things
KR101955976B1 (en) Activation of limited user interface capability device
Wang et al. An IoT-based appliance control system for smart homes
US7526539B1 (en) Method and apparatus for a distributed home-automation-control (HAC) window

Legal Events

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

Application publication date: 20111109

C02 Deemed withdrawal of patent application after publication (patent law 2001)