CN106878447B - Data acquisition system based on ZigBee communication - Google Patents

Data acquisition system based on ZigBee communication Download PDF

Info

Publication number
CN106878447B
CN106878447B CN201710140873.6A CN201710140873A CN106878447B CN 106878447 B CN106878447 B CN 106878447B CN 201710140873 A CN201710140873 A CN 201710140873A CN 106878447 B CN106878447 B CN 106878447B
Authority
CN
China
Prior art keywords
data
transfer device
acquisition
zigbee
acquisition terminal
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.)
Active
Application number
CN201710140873.6A
Other languages
Chinese (zh)
Other versions
CN106878447A (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.)
Nantong University
Original Assignee
Nantong University
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 Nantong University filed Critical Nantong University
Priority to CN201710140873.6A priority Critical patent/CN106878447B/en
Publication of CN106878447A publication Critical patent/CN106878447A/en
Application granted granted Critical
Publication of CN106878447B publication Critical patent/CN106878447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]

Abstract

The invention relates to a data acquisition system and a data acquisition system based on ZigBee communication. When each acquisition terminal uploads data, one acquisition terminal can randomly select one acquisition terminal from a plurality of transfer devices for transmission, so that the data blocking situation is reduced. The system response mechanism provided by the invention can automatically adjust to other channels when a certain transit device fails, thereby avoiding the situation of data loss caused by channel failure and improving the stability and robustness of the communication system.

Description

Data acquisition system based on ZigBee communication
Technical Field
The invention relates to a data acquisition system based on ZigBee communication.
Background
ZigBee is a low power consumption local area network protocol based on IEEE802.15.4 standard. The ZigBee technology has the characteristics of short distance, low complexity, self-organization, low power consumption and low data rate. The device is mainly suitable for the fields of automatic control and remote control, and can be embedded into various devices. In short, ZigBee is an inexpensive and low-power-consumption short-range wireless networking communication technology.
The ZigBee technology organizes a network in a dynamic routing manner. Dynamic routing means that the data transmission path in the network is not preset, but before data transmission, all available paths in the network are searched, the position relationship and the distance between the paths are analyzed, and then one path is selected for data transmission. The path can be selected by using a "gradient method", that is, a channel closest to the path is selected for transmission, if the transmission is not performed, then another channel farther away is used for transmission, and so on, until the data reaches the destination. In an actual industrial field, a predetermined transmission path may change at any time, or the path is interrupted for various reasons, or the transmission is too busy to be carried out in time. Dynamic routing in combination with mesh topology can solve this problem well, thus ensuring reliable transmission of data.
Through the retrieval discovery, chinese utility model patent CN 202600943U discloses a data acquisition system based on zigBee technique, mainly comprises data acquisition terminal and data processing terminal, and data processing terminal mainly comprises zigBee wireless receiving module and data management center computer, and data acquisition terminal passes through zigBee wireless network and links to each other with data processing terminal. Data acquisition is realized through a ZigBee wireless network.
The problems of the existing ZigBee data acquisition system are as follows: data collected by the system are generally transferred and output through the coordinator, and when the collected data volume is large, data blockage is easily caused by single-channel output. In addition, when the channel is abnormal, the data transmission is directly interrupted, and the data loss is easily caused. If a multi-channel ZigBee data acquisition system capable of automatically adjusting channels can be constructed, the problems can be solved.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a data acquisition system based on ZigBee communication.
The data acquisition system based on ZigBee communication provided by the invention is characterized in that: the system comprises a server, a plurality of transfer devices and a plurality of acquisition terminals; the server is used for storing data acquired by each acquisition terminal;
the acquisition terminal is provided with a microcontroller, an acquisition module and a ZigBee module; the microcontroller controls the acquisition module to acquire data and uploads the acquired data through the ZigBee network by the ZigBee module;
the transfer device comprises a microcontroller, a ZigBee module and an Ethernet module; the microcontroller of the transfer device controls the ZigBee module to acquire the acquired data uploaded by the acquisition terminal from the ZigBee network, and the acquired data is transmitted to the server through the local area network by the Ethernet module; each transfer device can establish a data transmission channel from the acquisition terminal to the server.
The data acquisition method of the data acquisition system comprises the following steps:
step one, when the acquisition terminal is powered on, channel request information is sent to a transfer device in a ZigBee network in a group sending mode;
step two, when the transfer device is powered on or receives channel request information, channel invitation information is sent to a collection terminal in the ZigBee network in a group sending mode;
step three, when the acquisition terminal runs, detecting the channel invitation information in real time; if new channel invitation information appears, storing the ZigBee network node address of the transfer device sending the channel invitation information into an open channel address table in the acquisition terminal;
when the acquisition terminal uploads the acquired data, a ZigBee network node address is randomly selected from the open channel address table to serve as a receiving end address of the uploaded data, and the acquired data are uploaded to a corresponding transfer device in a point-to-point transmission mode;
after receiving the acquired data uploaded by the acquisition terminal, the transfer device transmits the acquired data to a server through the Ethernet module for storage, and returns response information in a point-to-point transmission mode;
step six, if response information is received within set reply time after the data is uploaded by the acquisition terminal, the data is uploaded successfully, otherwise, the transfer device receiving the data is determined to be abnormal, the ZigBee network node address of the transfer device is deleted from the open channel address table, and the step four is carried out until the data is uploaded successfully;
and step seven, if the transfer device does not receive any acquisition data within the set acquisition time, sending channel invitation information to the acquisition terminals in the ZigBee network in a group transmission mode.
The invention also has the following further features:
1. in the sixth step, if the acquisition terminal does not receive the response information within the set reply time after uploading the data, the acquisition terminal performs secondary retransmission; if the response information is not received in the set reply time after the second retransmission, the transfer device receiving the data is determined to be abnormal, and the ZigBee network node address of the transfer device is deleted from the open channel address table.
2. In the fifth step, after receiving the collected data uploaded by the collecting terminal, the transfer device transmits the collected data to the server through the ethernet module for storage and response, and then returns the collecting terminal response information in a point-to-point transmission mode.
3. The ZigBee network node address of the transfer device is a short address of the ZigBee module.
In the prior art, only one transfer device of a data acquisition system based on ZigBee communication is provided. The data acquisition system provided by the invention is provided with a plurality of transfer devices. When each acquisition terminal uploads data, one acquisition terminal can randomly select one acquisition terminal from a plurality of transfer devices for transmission, so that the data blocking situation is reduced. The system response mechanism provided by the invention can automatically adjust to other channels when a certain transit device fails, thereby avoiding the situation of data loss caused by channel failure and improving the stability and robustness of the communication system.
Drawings
Fig. 1 is a schematic diagram of a data acquisition system based on ZigBee communication according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments.
The data acquisition system based on ZigBee communication provided by the invention comprises a server, a plurality of transfer devices and a plurality of acquisition terminals. The acquisition terminal acquires external data, transmits the data to the transfer device through the Zigbee network, and the transfer device accesses the local area network and transmits the data to the server for storage. Each relay device may establish an independent transmission data channel.
In order to realize the automatic selection of the collected data and the transmission of the transfer device, the system adopts the following working mode.
Newly added acquisition terminal conditions
Step 1: when the newly-added acquisition terminal is powered on, channel request information, namely new node request information, is sent to a transfer device in the ZigBee network in a group sending mode.
Step 2: and when receiving the new node request information, the transfer device sends channel invitation information, namely new channel invitation information, to the acquisition terminals in the ZigBee network in a group sending mode.
And 3, step 3: the acquisition terminal detects the channel invitation information in real time; and if new channel invitation information appears, updating an open channel address table in the terminal.
And 4, step 4: when the acquisition terminal uploads the acquired data, one receiving terminal address is randomly selected from the open channel address list to serve as the receiving terminal address of the uploaded data, and the acquired data are uploaded to the corresponding transfer device in a point-to-point transmission mode.
And 5, step 5: after receiving the acquired data uploaded by the acquisition terminal, the transfer device transmits the acquired data to a server for storage through an Ethernet module and returns response information in a point-to-point transmission mode;
and 6, step 6: and after the acquisition terminal uploads the data, response information is received within the set reply time, and the data is uploaded successfully.
Situation of newly added transfer device
Step 1: when the newly-added transfer device is powered on, channel invitation information, namely new channel invitation information, is sent to the acquisition terminal in the ZigBee network in a group sending mode.
Step 2: and the acquisition terminal detects the channel invitation information in real time and adds the newly added channel invitation information into an open channel address table in the acquisition terminal.
And 3, step 3: when the acquisition terminal uploads the acquired data, one receiving terminal address is randomly selected from the open channel address list to serve as the receiving terminal address of the uploaded data, and the acquired data are uploaded to the corresponding transfer device in a point-to-point transmission mode.
And 4, step 4: after receiving the acquired data uploaded by the acquisition terminal, the transfer device transmits the acquired data to a server for storage through an Ethernet module and returns response information in a point-to-point transmission mode;
and 5, step 5: and after the acquisition terminal uploads the data, response information is received within the set reply time, and the data is uploaded successfully.
Failure condition of transfer device
When a certain transfer device fails, the acquisition terminal transmitting data through the channel cannot receive response information within the set reply time, and at the moment, the acquisition terminal deletes the ZigBee network node address of the transfer device from the open channel address table. And then randomly selecting one from the updated open channel address table as a receiving end address for uploading data, and uploading the acquired data to a corresponding transfer device again in a point-to-point transmission mode.
Therefore, the method and the device can automatically adjust to other channels when a certain transit device fails, avoid the situation of data loss caused by channel failure, and improve the stability and the robustness of a communication system.
As a further optimization of the invention, an information response mechanism can be established between the transfer device and the server, and the channel detection between the transfer device and the server is also used as a part of the whole system transmission monitoring.
As a further optimization of the invention, the method can be designed to carry out secondary retransmission if the response information is not received within the set reply time after the data is uploaded by the acquisition terminal; if the response message is not received in the set reply time after the second retransmission, the transfer device receiving the data is determined to be abnormal. The secondary retransmission mechanism can deal with the short-time data transmission abnormal situation caused by some burst interference.
As a further limitation of the invention, the ZigBee network node address of the transfer device is a short address distributed by the ZigBee module in the ZigBee network, and the system can directly carry out point-to-point communication according to the short address of the ZigBee module.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiment, and all technical solutions belonging to the principle of the present invention belong to the protection scope of the present invention. It will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.

Claims (4)

1. The utility model provides a data acquisition system based on zigBee communication which characterized in that: the system comprises a server, a plurality of transfer devices and a plurality of acquisition terminals; the server is used for storing data acquired by each acquisition terminal;
the acquisition terminal is provided with a microcontroller, an acquisition module and a ZigBee module; the microcontroller controls the acquisition module to acquire data and uploads the acquired data through the ZigBee network by the ZigBee module;
the transfer device comprises a microcontroller, a ZigBee module and an Ethernet module; the microcontroller of the transfer device controls the ZigBee module to acquire the acquired data uploaded by the acquisition terminal from the ZigBee network, and the acquired data is transmitted to the server through the local area network by the Ethernet module; each transfer device establishes a data transmission channel from the acquisition terminal to the server;
the data acquisition method of the data acquisition system comprises the following steps:
step one, when the acquisition terminal is powered on, channel request information is sent to a transfer device in a ZigBee network in a group sending mode;
step two, when the transfer device is powered on or receives channel request information, channel invitation information is sent to a collection terminal in the ZigBee network in a group sending mode;
step three, when the acquisition terminal runs, detecting the channel invitation information in real time; if new channel invitation information appears, storing the address of the ZigBee network node of the transfer device which sends the channel invitation information into an open channel address table in the acquisition terminal;
when the acquisition terminal uploads the acquired data, a ZigBee network node address is randomly selected from the open channel address table to serve as a receiving end address of the uploaded data, and the acquired data are uploaded to a corresponding transfer device in a point-to-point transmission mode;
after receiving the acquired data uploaded by the acquisition terminal, the transfer device transmits the acquired data to a server through the Ethernet module for storage, and then returns the response information of the acquisition terminal in a point-to-point transmission manner;
step six, if response information is received within set reply time after the data is uploaded by the acquisition terminal, the data is uploaded successfully, otherwise, the transfer device receiving the data is determined to be abnormal, the ZigBee network node address of the transfer device is deleted from the open channel address table, and the step four is carried out until the data is uploaded successfully;
and step seven, if the transfer device does not receive any acquisition data within the set acquisition time, sending channel invitation information to the acquisition terminals in the ZigBee network in a group transmission mode.
2. The data acquisition system of claim 1, wherein: in the sixth step, if the acquisition terminal does not receive the response information within the set reply time after uploading the data, the acquisition terminal performs secondary retransmission; if the response information is not received in the set reply time after the second retransmission, the transfer device receiving the data is determined to be abnormal, and the ZigBee network node address of the transfer device is deleted from the open channel address table.
3. The data acquisition system of claim 1, wherein: in the fifth step, after receiving the collected data uploaded by the collecting terminal, the transfer device sends the collected data to the server through the ethernet module for storage and response, and then returns the collecting terminal response information in a point-to-point transmission manner.
4. The data acquisition system of claim 1, wherein: the ZigBee network node address of the transfer device is a short address of the ZigBee module.
CN201710140873.6A 2017-03-10 2017-03-10 Data acquisition system based on ZigBee communication Active CN106878447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710140873.6A CN106878447B (en) 2017-03-10 2017-03-10 Data acquisition system based on ZigBee communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710140873.6A CN106878447B (en) 2017-03-10 2017-03-10 Data acquisition system based on ZigBee communication

Publications (2)

Publication Number Publication Date
CN106878447A CN106878447A (en) 2017-06-20
CN106878447B true CN106878447B (en) 2020-03-31

Family

ID=59170037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710140873.6A Active CN106878447B (en) 2017-03-10 2017-03-10 Data acquisition system based on ZigBee communication

Country Status (1)

Country Link
CN (1) CN106878447B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110568779A (en) * 2019-08-29 2019-12-13 南宁学院 control system sensing data processing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685786A (en) * 2011-03-18 2012-09-19 中兴通讯股份有限公司 Method and system for accessing wireless sensor network (WSN) to telecommunication network
CN102769894A (en) * 2012-07-04 2012-11-07 上海大学 Multi-gateway multi-node wireless sensor network and multi-gateway channel selection and node adaptive network access method for same
CN202600943U (en) * 2012-04-11 2012-12-12 徐州雷奥医疗设备有限公司 Zigbee technology based data acquisition system
CN102882972A (en) * 2012-10-10 2013-01-16 全渝娟 Universal gatekeeper system of mobile internet of things
CN203057531U (en) * 2012-09-05 2013-07-10 江南大学 Multiple gateway transmission system based on ZigBee network
CN104796333A (en) * 2015-03-31 2015-07-22 桂林电子科技大学 IPv6-based wireless sensor network and Internet multi-gateway interconnection scheme
CN205945813U (en) * 2016-07-12 2017-02-08 国网河南省电力公司开封供电公司 Wireless sensor network communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104284402B (en) * 2013-07-09 2018-11-13 南宁富桂精密工业有限公司 The electricity dispatching method and control device of wireless sensor network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685786A (en) * 2011-03-18 2012-09-19 中兴通讯股份有限公司 Method and system for accessing wireless sensor network (WSN) to telecommunication network
CN202600943U (en) * 2012-04-11 2012-12-12 徐州雷奥医疗设备有限公司 Zigbee technology based data acquisition system
CN102769894A (en) * 2012-07-04 2012-11-07 上海大学 Multi-gateway multi-node wireless sensor network and multi-gateway channel selection and node adaptive network access method for same
CN203057531U (en) * 2012-09-05 2013-07-10 江南大学 Multiple gateway transmission system based on ZigBee network
CN102882972A (en) * 2012-10-10 2013-01-16 全渝娟 Universal gatekeeper system of mobile internet of things
CN104796333A (en) * 2015-03-31 2015-07-22 桂林电子科技大学 IPv6-based wireless sensor network and Internet multi-gateway interconnection scheme
CN205945813U (en) * 2016-07-12 2017-02-08 国网河南省电力公司开封供电公司 Wireless sensor network communication system

Also Published As

Publication number Publication date
CN106878447A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
EP2025110B1 (en) Method and apparatus for controlling energy consumption of sensor network nodes
US20200008150A1 (en) Sleeping and Wake-Up Methods and Apparatuses of Master-Slave Network, and Power Saving System of Master-Slave Network
US7053770B2 (en) System and method for communicating alarm conditions in a mesh network
US20090135750A1 (en) System and Method for Message Consolidation in a Mesh Network
CN105827488A (en) MESH network system applicable to smart home, networking method and communication method
CN102057731A (en) Method of establishing a wireless multi-hop network
CN103337142A (en) Wireless networking method for electric energy meter management system
US8504639B2 (en) Wireless communication device and method, and system comprising such a method
CN110139224B (en) Wireless ad hoc network method suitable for Internet of things environment
CN106538038B (en) Transmission mode selection of ZigBee green energy equipment
CN102665297B (en) Communication device and system as well as method of wireless cloud sensor network
Dinh et al. Method for organizing mesh topology based on LoRa technology
US9693179B2 (en) Method and apparatus for producing personal area network identifier (PANID) on network in wireless communication system
CN106878447B (en) Data acquisition system based on ZigBee communication
CN103687080A (en) A Zigbee dynamic networking method
CN106170133A (en) Multi-mode communication method in a kind of sensing network and device
CN105282770A (en) Wireless self-healing networking optimization and self-inspection method
JP2019176361A (en) Mesh network
CN109246836A (en) A kind of X2 interface establishes management method, device and base station
US10716162B2 (en) Reconstructing a personal area network or system after a failure in the network or system
CN207166787U (en) A kind of extensive ZigBee mixed-media network modules mixed-medias
US11395112B2 (en) Wireless sensor system, wireless terminal device, communication control method and communication control program
CN113347682B (en) Power distribution terminal method and equipment with adaptive communication obstacle avoidance capability
TWI715822B (en) City network control signal equipment
CN112423364A (en) Wireless mobile ad hoc communication method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant