Professional Documents
Culture Documents
Abstract— Most of traditional gas monitoring uses wired or over cable system. For example, in mobile devices, the location
handled devices to transmit signals, while the complicated wiring of the devices can be moved according the needs without the
causes great inconvenience for power supply, signal transmission, restriction of cable. In addition, the volume of the sensors can
management and maintenance. To overcome these shortcomings, be reduced by decreasing the sensor attached on a large number
the paper gives a wireless combustible gas monitoring solution
of transmission lines. ZigBee has the characteristics of lower
based on ZigBee technique using CC2530 chip which made by TI
(Texas Instruments) [1] as the master chip, in which the ZigBee power consumption, stronger capability of extended network. It
condense protocol is analyzed, network building solution is given, has widely been used in the field of automatic control and
the software for application layer and driver are designed, and remote control, etc. It can satisfy the wireless network and
the real-time monitoring of combustible gas and selfish network control of the small cheap devices. A system of combustible
building of sensor nodes are completed. The study results gas monitoring and networking building technique is described
demonstrate that the parameters such as combustible gas in the paper.
concentration, micro-seismic signal under the case of harsh
environment can be collected. II. ANALYSIS OF ZIGBEE PROTOCOL
Keywords- ZigBee; Network building; CC2530; Combustible A. Main Features of ZigBee
gas monitoring
ZigBee is a technical standard about wireless standard
developed by the networking, security and application software
I. INTRODUCTION ratified by the IEEE [2] (Institute of Electrical and Electronic
The coal mine gas explosion is one of the biggest threats to Engineers) 802.15.4. Different from other wireless standard
coal mine safety production. In recent years, a lot of coal such as 802.11 or 802.16, ZigBee and 802.15.4 carries a
mining enterprises at home and abroad apply mature industrial maximum transmission rate of 250Kbps limited data traffic
monitoring technologies to coal production, which has played [3]. It is the new standard developed by IEEE working group
an important role to protect the safety of mining personnel. But for short-range communications specifically, and it belongs to
the majority of the monitoring systems are isolated, self- wireless personal area network (PAN). This technical standard
contained, so the access of sensor nodes is not flexible enough. includes three frequency bands. The first one is the 2.4GHz
At the same time, data acquisition has a feature of narrow frequency band which is universal. And it defines 16
scope, low efficiency and poor linkage. According to the status independence communication channels. Its transfer rate is
for coal mine monitoring system at home and abroad, and the 250kbps. The second is 868MHz in Europe, it has 1 channel
analysis for analyzing monitoring needs comprehensively, a and its transfer rate is 20kbps. The other one is 915MHz
solution of monitoring and network building technique for frequency band in United States. Its transfer rate is 40kbps and
combustible gas based on ZigBee effectively is proposed in it has 10 channels. And the three frequency bands are ISM
this paper. With the use of tree network topology, the solution frequency band exempting from license [4].
expands the acquisition range, effectiveness and improves the IEEE deals with low-level media access control layer
reliability of transmission of the node. (MAC) and physical layer (PHY) protocol, whereas ZigBee
With the development of science and technology, more and Alliance standardizes to its network layer (NWK) and
more attention is paid to the wireless communication network application layer framework (API). Application-layer
technology. As a new kind of information acquisition and framework includes application support sub-layer (APS), the
management technology, wireless communication can reduce device object (ZDO) and the manufacturer-defined application
the production cost, improve the productivity, and make use of objects [5]. The characteristics of ZigBee protocol are as
energy more effectively. In wireless system electromagnetic follows [6]:
wave is used as the transmission medium, and disadvantages of 1) Saving device power: ZigBee can work for up to 6
cable transmission can be avoided in this solution, while cable months to 2 years in energy-saving mode.
system’s costs are increasing in installation, troubleshooting, 2) Reliable communication: ZigBee uses the CSMA-CA
maintenance and upgrade in spite of the advanced technology. avoidance mechanism to avoid competition and conflict; MAC
At the same time, wireless system is more flexible and practical
1) 0XAAH is a data frame’s start flag which is called the Figure 1. Network Topology
Checksum is used for the data frame to verify whether the data
bit change or not in the transmission process by the parity bit. By analyzing three network topology structure of ZigBee,
2) Sensor nodes write their own short address’s low byte the following can be known: Star network is one of the most
in the domain of device identifies as a flag. So, the superior simple network topology and there is only one coordinator and
network can find which device the data belongs to. one or more of the terminal nodes in the star network. The
3) The data field is the main part of the data frame. Data terminal nodes can’t communicate with each other directly.
field includes several measurement parameters values defined All nodes information must be forwarded by coordinator. If
by system, such as gas concentration, temperature, humidity, the coordinator fails, the entire network will not be able to run
etc. And each parameter position is fixed, in order to verify properly. The mesh network is a high-reliability detection
network and the routing information must not be transferred
whether the data acquisition successes.
along the tree path. The mesh network can provide a plurality
III. THE OVERALL SYSTEM DESIGN SCHEME of data communication channels. Each full function device can
be thought as a router, which can achieve the function of
Zigbee protocol defines two types of physical devices
message’s routing forwarding. Therefore, once the device data
which are used to cooperate with each other. They are full
communication fails, there is another path for data
function device and reduced function device respectively. Full
communication. This can greatly improve the reliability of the
function device can support any kind of topology structure,
data transmission. But network construction is complicated,
and it can be used as a coordinator, a router or a terminal node.
the needs for maintenance of network nodes information is
The full function device has the function of the controller and
much more than tree network, and the cost is higher. A tree
it can communicate with any kind of device. The reduced
network is composed of multiple simple star topologies. The
function device supports the star network topology only. It
terminal node can be connected to coordinator or router.
cannot be used as a coordinator or a router , but it can Router provides two functions: the first one is to increase the
communicate with coordinator or router. number of network nodes, the second is to extend the physical
There are three kinds of network roles in the ZigBee scope of network. In the tree network, terminal nodes will
network: coordinator, router or terminal node [7]. A ZigBee generally send the data to the router nodes. Then the routers
network has only one coordinator. It is the starting point of
I/O controller
FIFO and Frame Control CDMA/CA USART1
Modulator Timer1
Timer2 MAC
Synthesizen
Frequency
RF Timer3
Chain
Figure 2. The System Network Topology Timer4
Send network Y
request
N
Time interrupt?
N Join network
success?
Set sleep mode
[1] Wenzhong Li, Chaoyu Duan, “Introduction and actual combat of ZigBee
wireless network technology,” Beijing: Beijing aeronautics and
astronautics press, 2007.
[2] Chun Jin, Zuqiu Luo, Feng Luo, “Analysis of ZigBee technology and
case,” Beijing: National Defence Industry Press, 2008.
[3] Xiuli Ren, Haibing Yu, “Study of realizing technology on ZigBee
wireless communication protocol,” Computer Engineering and
Figure 7. Flowchart of Protocol Stack Application, vol.43, pp. 143–145, 2007.
[4] Que Lei, Shengde Liu, Xianbing Hu, “ZigBee technology and
{ application,” Beijing: Beijing aeronautics and astronautics press, 2007.
basicRfConfig.panid = PAN_ID; [5] Zhiqing He, “ Development and research of constable gas monitoring
system based on ZigBee,” Shenyang university of technology.
// initialization wireless network ID number Shengyang: Master thesis, 2010.
basicRfConfig.ackRequest = FALSE; [6] http://focus.ti.com/docs/prod/folders/print/cc2530.html, “CC253X
halBoardInit(); User’s Guide [Rev.A],” June 2010.
//initialize board peripherals. [7] Doo Seop Yun, Sung Ho Cho, “A data transmission method in zigbee
if(halRfinit() == FAILED) networks using power efficient devices.advanced technologies
communications, pp.162–165, 2008.
{
[8] De Liu, “ ZigBee Net working technology based on CC2530,”
HAL_ASSERT(FALSE); Programmable Controller & Factory Automation, pp. 93-95, 2012.
} [9] R. Challooa, A. Oladeindea, N. Yilmazera, S. Ozcelikb, and L.
HalLedSet(1); Challooc, “An Overview and Assessment of Wireless Technologies and
//Indicate that device is powered. Co- existence of ZigBee, Bluetooth and Wi-Fi Devices,” Procedia
while( halButtonpushed() != HAL_BUTTON_1); Computer Science, vol.12, pp. 386–391, 2012.
halMcuWaitMs(350);
//Wait for user to press S1 to enter menu;