Design_and_Implementation_of_a_Wireless
Design_and_Implementation_of_a_Wireless
Design_and_Implementation_of_a_Wireless
net/publication/47796829
CITATIONS READS
10 103
6 authors, including:
Feng Xia
Dalian University of Technology
205 PUBLICATIONS 1,434 CITATIONS
SEE PROFILE
All in-text references underlined in blue are linked to publications on ResearchGate, Available from: Feng Xia
letting you access and read them immediately. Retrieved on: 03 August 2016
Design and Implementation of a Wireless Sensor Network for Smart Homes
Ming Xu1, Longhua Ma1, Feng Xia2, Tengkai Yuan1, Jixin Qian1, Meng Shao3
1
Department of Control Science and Engineering, Zhejiang University, Hangzhou 310027, China
e-mail: lhma@iipc.zju.edu.cn
2
School of Software, Dalian University of Technology, Dalian 116620, China
e-mail: f.xia@ieee.org
3
Computer Centre, Hangzhou First People’s Hospital, Hangzhou 310006, China
Socket
2) Node Software
B. Software Design The network (coordinator) node software realizes the
1) Monitoring Software collection and transmission of data. Fig. 7 shows the block
The monitoring software on host station (i.e. monitoring diagram of the software. Fig. 7(a) is the main procedure
server) adopts C/S architecture based on Socket flowchart and Fig. 7(b) is the interruption procedure
communication mechanisms of TCP/IP protocol. It is written flowchart. As for sensor nodes, the program realizes
by C# language, using ACCESS database. functions such as data sampling, A/D calculation, I/O
Built on .Net software platform, this software features control, timed sending, and timed hibernating. As for router
independence of platforms and excellent expandability. The nodes and coordinator nodes, it mainly realizes the function
whole monitoring system of the host station mainly consists of data forwarding and path routing. The router nodes and
of two parts: database management server and system the coordinator nodes have the capacity of collecting sensor
management server. The database management server
data. Therefore they can also be treated as sensor nodes.
includes database server and databases. The database
During the interaction between coordinator nodes and the table of distances between nodes by using the following
GPRS network, both of them should follow the same algorithm [11]:
datagram protocol in order to enable the host station to (1) A node is arbitrarily selected as the root node. After
analyze the message more easily. initialized, it will send messages to surrounded nodes asking
for their IDs and location information.
(2) In response to Step (1), the remaining n-1 nodes send
Initialization their IDs and location information to the root node.
(3) The distance table is created after the root node has
received all the information of remaining n-1 nodes.
N As an example, Fig. 8 gives a simple wireless network.
GPRS is connected? Connect GPRS The corresponding distance table is shown in Table I.
Y
N 1
Send GPRS message? Send GPRS message 5 4
2
2
5 2
Y 4 3
N
3 4 5 5
Send ZigBee message? Send ZigBee message 4
5 3
7
4 6
Y 7
2
4 2
Delay 100ms 5
8 4
9
4
(a) 4 10
0
Interruptions in Figure 8. An example network of 10 nodes