CN104270776A - A ZigBee network online configuration management method - Google Patents
A ZigBee network online configuration management method Download PDFInfo
- Publication number
- CN104270776A CN104270776A CN201410289221.5A CN201410289221A CN104270776A CN 104270776 A CN104270776 A CN 104270776A CN 201410289221 A CN201410289221 A CN 201410289221A CN 104270776 A CN104270776 A CN 104270776A
- Authority
- CN
- China
- Prior art keywords
- zigbee
- network
- equipment
- configuration
- zigbee equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a ZigBee network online configuration management method, that is, the following processing is executed by AT instructions: receiving a management configuration request by on-line ZigBee equipment; analyzing whether the management configuration request is related to a management configuration request of current ZigBee equipment; in the case that the management configuration request is related to the management configuration request of the current ZigBee equipment, executing configuration management operation for the configuration request; in the case that the management configuration request is not related to the management configuration request of the current ZigBee equipment, broadcasting the management configuration request in the network, so as to enable each of other pieces of on-line ZigBee equipment to analyze operation for the management configuration request and only execute configuration management operation for the management configuration request related to each piece of the on-line ZigBee equipment itself; and returning an operation result back to ZigBee equipment connected to a computer or microprocessor in the network. According to the invention, not only each piece of the ZigBee equipment in the ZigBee network can be configured separately, but also online remote configuration of any of other pieces of ZigBee equipment in the ZigBee network can be realized by any piece of the ZigBee equipment in the ZigBee network.
Description
Technical field
The present invention relates to a kind of ZigBee-network technology, particularly relate to a kind of ZigBee-network online management method based on AT command set.
Background technology
Zigbee network and each ZigBee equipment adding/form this network need to carry out administration configuration.The Zigbee equipment participating in networking has serial ports, carries out transfer of data by serial ports; Meanwhile, also can carry out command by serial ports, realize various control, wherein administration configuration is one of this controlling functions.
Based on the consideration such as efficiency and convenience, the best way is the administration configuration to realizing remote online at net Zigbee equipment.
Summary of the invention
In order to overcome above-mentioned prior art Problems existing, the present invention proposes a kind of ZigBee-network Configuration Online management method, based on AT command set realize ZigBee-network and wherein each ZigBee equipment online management configuration.
The present invention proposes a kind of ZigBee-network Configuration Online management method, and it is characterized in that, the method comprises the following steps:
Computer or microprocessor are connected by serial ports with certain ZigBee equipment in ZigBee-network;
Above-mentioned serial ports is made to enter configuration mode by data communication mode;
Arbitrary equipment in ZigBee net is configured, namely performs following process by AT instruction:
Administration configuration request is received at net Zigbee equipment; Analyze the administration configuration request of this request of this administration configuration about current Zigbee equipment? if so, the configuration management operation of configuring request is performed; If not; This administration configuration request of broadcast in net, makes other can analyze the operation of this administration configuration request at net Zigbee equipment, only performs the configuration management operation about the administration configuration request of self separately; Operating result is recycled to the Zigbee equipment be connected with the computer in network or microprocessor.
Describedly make above-mentioned serial ports enter the step of configuration mode by data communication mode, send special instruction " $ $ $ $ $ $ " specifically by serial ports and enter configuration mode to ZigBee, ZigBee equipment.
Describedly make above-mentioned serial ports enter the step of configuration mode by data communication mode, be specially and add low level to the SET pin of described serial ports, continue at least 6 seconds, then enter configuration mode.
Described configuration management request at least comprises one of these process following:
Each ZigBee equipment in ZigBee-network is configured separately;
Realize carrying out online Remote configuration to other ZigBee equipment any in ZigBee-network by the arbitrary ZigBee equipment in ZigBee-network;
And screening is carried out to ZigBee equipment and exits the setting that ZigBee-network and recovery dispatch from the factory.
Described setting ZigBee equipment being carried out to screening, is also realized by following steps:
If when ZigBee equipment searches ZigBee-network information, the skip signal of a high to Low level is inputted to the SET pin of this equipment, and low level gets back to high level after continuing about 100ms ~ 200ms, then now this ZigBee equipment asks AT instruction to the coordinator unit transmission networking of ZigBee-network, and this ZigBee-network of screening.
Described the setting that ZigBee-network and recovery dispatch from the factory is exited to ZigBee equipment, is also realized by following steps:
After ZigBee equipment is restarted, give SET pin low level immediately, and continue at least 5 seconds, then trigger AT instruction, the ZigBee-network before ZigBee equipment exits, and factory reset.
Compared with prior art, the present invention not only can configure separately each ZigBee equipment in ZigBee-network, and can be realized by the arbitrary ZigBee equipment in ZigBee-network carrying out online Remote configuration to other ZigBee equipment any in ZigBee-network.
Accompanying drawing explanation
Fig. 1 is Zigbee network equipment connection structure schematic diagram;
Fig. 2 is controlled Zigbee equipment pin working state figure of the present invention;
Fig. 3 is ZigBee-network Configuration Online management method schematic flow sheet of the present invention.
Embodiment
Be below by reference to the accompanying drawings with the specific descriptions of specific embodiment to technical solution of the present invention.
About whether administration configuration request illustrates about the method for the administration configuration request of current Zigbee equipment: check in instruction whether comprise device address item, if do not comprise, then accept the parameter of this instruction to equipment self and be configured or network management; If comprise device address item, if device address and the device address of self coupling, then accept this instruction and equipment inherent parameters is configured or network management; If device address and the device address of self are not mated, then pass through ZigBee wireless network by command broadcast to other each ZigBee equipment, after other ZigBee equipment receive this AT instruction, first whether the device address of decision instruction mates with the device address of self, if configuration, is managed for configuration operation.
Enter the rule declaration of configuration mode:
ZigBee equipment is operated in normal data communication mode at ordinary times, does not now accept AT instruction, and the AT instruction of namely issuing this equipment is all used as general data and is processed; Carry out AT instruction configuration if having, need to enter configuration mode, concrete grammar has two kinds:
After ZigBee device start, to SET pin low level, continue at least 6S, then enter configuration mode;
Send special instruction " $ $ $ $ $ $ " by serial ports and enter configuration mode to ZigBee, ZigBee equipment.
The specific embodiment of the invention is described as follows:
This AT instruction is sent to the ZigBee equipment 5 (this equipment is any equipment in ZigBee-network) connected by serial ports (RS232 or TTL method) by computer or embedded microprocessor, after this ZigBee equipment receives AT instruction, exploitation based on AT command set can realize managing other equipment in ZigBee equipment self or ZigBee-network and configuring, and the result of instruction execution is replied with AT instruction type, unsuccessfully can error code be replied if perform, can the reason of Wrong localization by error code.
1, the form of ZigBee AT command set
Send instruction: AT+ instruction name [: device address]=value 1 [; Value 2; Value n] new line symbol
Note: the item between " [" and "] " is option, and namely this is not essential, and this instruction terminates with new line symbol.
(1) if there is no device address item
Send instruction: AT+ instruction name=value 1 [; Value 2; Value n]
This instruction only self carries out administration configuration to the ZigBee equipment of specifying
(2) if there is device address item
Send instruction: AT+ instruction name: device address=value 1 [; Value 2; Value n]
This instruction can be sent to the ZigBee equipment of the device address of specifying by ZigBee wireless network, and then to its online telemanagement configuration.
Device address comprises two special addresses, if device address is " FFFD ", then instruction acquiescence issues ZigBee equipment self, can not occur to other ZigBee equipment; If device address is " FFFF ", all ZigBee equipment in ZigBee-network all can receive this instruction, and accept this instruction support configuration operation.
2, ZigBee AT command set type
(1) parameter setting instruction
Form: AT+ instruction name [: device address]=value 1 [; Value 2; Value n] new line symbol
Reply:
The reply if run succeeded:
OK
Perform failure, reply:
Error: error code
Instruction name starts with " SET ", as: AT+SETPAN:0005=9310
(2) parameter query instruction
Form:
AT+ instruction name [: device address] new line symbol
Reply:
Run succeeded reply:
AT+ instruction name [: device address]=value 1 [; Value 2; Value n] new line symbol
Perform and unsuccessfully reply:
Error: error code
Instruction name with " GET beginning ", as: AT+GETPAN:0005, reverting value is: AT+GETPAN:0005=9310 network management commands
Mainly contain:
Switching working mode instruction AT+OPTMOD [: device address] new line symbol
Restarting equipment instruction AT+OPTRST [: device address] new line symbol
Exit network instruction AT+OPTDEL [: device address] new line symbol
Preservation parameter instruction AT+OPTWRT [: device address] new line symbol
Recovery is dispatched from the factory instruction AT+OPTDEF [: device address] new line symbol
Test network path instruction AT+TSTRTN [: device address] new line symbol
Reply:
Run succeeded, reply:
OK
Perform failure, reply:
Error: error code
The SET pin of described serial ports adopts complex function design, and SET pin adds low level, continues at least 6S, can trigger AT instruction, then enter configuration mode by this pin; Complete the composition operation of screening, logout and factory reset.Concrete grammar is:
(1) logout and factory reset operation level
ZigBee device power or after restarting, gives designated pin low level immediately, and continues at least 5 seconds, then ZigBee device trigger AT+OPTDEF instruction, the ZigBee-network before exiting, and factory reset.
(2) screening
First guarantee that ZigBee equipment does not add any other network, if added other networks, exited original network, otherwise cannot carry out adding net operation.(feature: the network state pin STNW of ZigBee equipment exports long low short height when then waiting this ZigBee equipment to search ZigBee-network information, 300ms high level/1000ms low level heartbeat type saltus step level) time, the skip signal of a high to Low level is inputted to this SET pin, and low level continues about 100ms ~ 200ms gets back to high level, then now this ZigBee equipment can send networking request instruction AT+SETIND to the coordinator unit of ZigBee-network, and this ZigBee-network of screening.
Claims (6)
1. a ZigBee-network Configuration Online management method, is characterized in that, the method comprises the following steps:
Computer or microprocessor are connected by serial ports with certain ZigBee equipment in ZigBee-network;
Above-mentioned serial ports is made to enter configuration mode by data communication mode;
Arbitrary equipment in ZigBee net is configured, namely performs following process by AT instruction:
Administration configuration request is received at net Zigbee equipment; Analyze the administration configuration request of this request of this administration configuration about current Zigbee equipment? if so, the configuration management operation of configuring request is performed; If not; This administration configuration request of broadcast in net, makes other can analyze the operation of this administration configuration request at net Zigbee equipment, only performs the configuration management operation about the administration configuration request of self separately; Operating result is recycled to the Zigbee equipment be connected with the computer in network or microprocessor.
2. ZigBee-network Configuration Online management method as claimed in claim 1, it is characterized in that, describedly above-mentioned serial ports is made to enter the step of configuration mode by data communication mode, send special instruction " $ $ $ $ $ $ " specifically by serial ports and enter configuration mode to ZigBee, ZigBee equipment.
3. ZigBee-network Configuration Online management method as claimed in claim 1, it is characterized in that, described in make above-mentioned serial ports enter the step of configuration mode by data communication mode, be specially and add low level to the SET pin of described serial ports, continue at least 6 seconds, then enter configuration mode.
4. ZigBee-network Configuration Online management method as claimed in claim 1, is characterized in that, described configuration management request at least comprises one of these process following:
Each ZigBee equipment in ZigBee-network is configured separately;
Realize carrying out online Remote configuration to other ZigBee equipment any in ZigBee-network by the arbitrary ZigBee equipment in ZigBee-network;
And screening is carried out to ZigBee equipment and exits the setting that ZigBee-network and recovery dispatch from the factory.
5. ZigBee-network Configuration Online management method as claimed in claim 4, it is characterized in that, described setting ZigBee equipment being carried out to screening, is also realized by following steps:
If when ZigBee equipment searches ZigBee-network information, the skip signal of a high to Low level is inputted to the SET pin of this equipment, and low level gets back to high level after continuing about 100ms ~ 200ms, then now this ZigBee equipment asks AT instruction to the coordinator unit transmission networking of ZigBee-network, and this ZigBee-network of screening.
6. ZigBee-network Configuration Online management method as claimed in claim 4, is characterized in that, describedly exits to ZigBee equipment the setting that ZigBee-network and recovery dispatch from the factory, and is also realized by following steps:
After ZigBee equipment is restarted, give SET pin low level immediately, and continue at least 5 seconds, then trigger AT instruction, the ZigBee-network before ZigBee equipment exits, and factory reset.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410289221.5A CN104270776A (en) | 2014-06-24 | 2014-06-24 | A ZigBee network online configuration management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410289221.5A CN104270776A (en) | 2014-06-24 | 2014-06-24 | A ZigBee network online configuration management method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104270776A true CN104270776A (en) | 2015-01-07 |
Family
ID=52162243
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410289221.5A Pending CN104270776A (en) | 2014-06-24 | 2014-06-24 | A ZigBee network online configuration management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104270776A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008067764A1 (en) * | 2006-12-08 | 2008-06-12 | Huawei Technologies Co., Ltd. | Method and system and device for managing zigbee network |
CN201230325Y (en) * | 2008-07-22 | 2009-04-29 | 王睿哲 | Intelligent household gateway |
CN101639695A (en) * | 2009-08-25 | 2010-02-03 | 深圳职业技术学院 | Intelligent building networking control system |
CN102158376A (en) * | 2011-01-28 | 2011-08-17 | 田进 | Wireless intelligent home security system and control method thereof |
CN202663420U (en) * | 2012-05-17 | 2013-01-09 | 天津菲利科电子技术有限公司 | Remote network management system based on ZigBee communication protocol |
CN202794947U (en) * | 2012-05-17 | 2013-03-13 | 天津菲利科电子技术有限公司 | ZigBee equipment network system capable of customizing control relation |
-
2014
- 2014-06-24 CN CN201410289221.5A patent/CN104270776A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008067764A1 (en) * | 2006-12-08 | 2008-06-12 | Huawei Technologies Co., Ltd. | Method and system and device for managing zigbee network |
CN201230325Y (en) * | 2008-07-22 | 2009-04-29 | 王睿哲 | Intelligent household gateway |
CN101639695A (en) * | 2009-08-25 | 2010-02-03 | 深圳职业技术学院 | Intelligent building networking control system |
CN102158376A (en) * | 2011-01-28 | 2011-08-17 | 田进 | Wireless intelligent home security system and control method thereof |
CN202663420U (en) * | 2012-05-17 | 2013-01-09 | 天津菲利科电子技术有限公司 | Remote network management system based on ZigBee communication protocol |
CN202794947U (en) * | 2012-05-17 | 2013-03-13 | 天津菲利科电子技术有限公司 | ZigBee equipment network system capable of customizing control relation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104598513B (en) | A kind of method of data flow control and system based on web page frame | |
JP2019537322A (en) | Network connection method for home appliances, network connection method for home appliances and home systems | |
EP3051776B1 (en) | Method and apparatus for controlling turn-on and turn-off of smart socket | |
CN105224362A (en) | Host computer carries out the method and system of program upgrade to slave computer | |
CN103309308B (en) | A kind of device intelligence control method and device, system, PnP device | |
WO2017129124A1 (en) | Smart appliance control method and smart appliance | |
CN109547306A (en) | A kind of smart home device management method, system, intelligent gateway and server | |
CN103475703A (en) | Intelligent home equipment control method based on ZigBee network | |
CN103595768B (en) | A kind of method that realizes configuration synchronization between virtual equipment | |
US9836958B2 (en) | Device control method, server, system and computer storage medium | |
CN103138985A (en) | Method and system of process of service host computer of supporting network | |
CN110768840A (en) | Control method, device, equipment and storage medium of communication equipment | |
CN202230371U (en) | Intelligent home control system | |
US10489055B2 (en) | Z-wave controller shift in thermostats | |
CN105094914A (en) | Remote online programming method, device and system | |
CN104640231A (en) | Wireless network setting method and wireless network setting system of intelligent household electrical appliance | |
CN106648721A (en) | Method and device for upgrading software | |
CN104916118A (en) | Method and device for realizing infrared remote control | |
WO2013135016A1 (en) | Version construction system and method | |
CN104507100B (en) | A method of Zigbee network is managed using wireless terminal | |
CN105262604A (en) | Virtual machine migration method and equipment | |
CN203984450U (en) | Intelligent domestic gateway | |
CN104270776A (en) | A ZigBee network online configuration management method | |
CN104063227A (en) | Command learning method based on internet of things | |
CN104158877A (en) | Remote control method, and device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150107 |