Beruflich Dokumente
Kultur Dokumente
INDEX
1.INTRODUCTION TO WIRELESS SENSOR N/W
2 4 5 6 7 8 9 10 12 13 14 14 14 18 22 32 41
2.COMMUNICATION NETWORK
3.STAR TOPOLOGY 4.MESH TOPOLOGY 5.RING TOPOLOGY 6.DATA GATHERING APPLICATION 7.COMPUTATION INTENSIVE APPLICATION 8.ON BOARD SPECIFICATIONS 9.BUZZER SECTION 10.LCD SECTION 11.LED SECTION 12.RELAY SECTION 13.DIP SWITCH SECTION 14.HOW TO USE WIRELESS SENSOR NETWORK 15.HOW TO USE COMPILER 16.HOW TO USE FLASH MAGIC 17.ECE FLASH MAGIC
Page 1
Wireless Sensor Networks (WSNs) use tiny, inexpensive sensor nodes with several distinguishing characteristics: they have very low processing power and radio ranges, permit very low energy consumption and perform limited and specific monitoring and sensing functions. Several such wireless sensors in a region self-organize and form a WSN. Information based on sensed data can be used in agriculture and livestock, assisted driving or even in providing security at home or in public places. A key requirement from both the technological and commercial point of view is to provide adequate security capabilities. Fulfilling privacy and security requirements in an appropriate architecture for WSNs offering pervasive services is essential for user acceptance. Five key features need to be considered when developing WSN solutions: scalability, security, reliability, self-healing and robustness. The required strength of each of these features depends on the application in Question. Currently, wireless sensor networks are beginning to be deployed at an accelerated pace. It is not Unreasonable to expect that in 10-15 years that the world will be covered with wireless sensor networks with access to them via the Internet. This can be considered as the Internet becoming a physical network. This new technology is exciting with unlimited potential for numerous application areas including environmental, medical, military, transportation, entertainment, crisis management, homeland defense, and smart spaces. Since a wireless sensor network is a distributed real-time system a natural question is how many solutions from distributed and real-time systems can be used in these new systems?
Page 2
Page 3
COMMUNICATION NETWORKS
NETWORK TOPOLOGY
The basic issue in communication networks is the transmission of messages to achieve a prescribed message throughput (Quantity of Service) and Quality of Service (QoS). QoS can be specified in terms of message delay, message due dates, bit error rates, packet loss, economic cost of transmission, transmission power, etc. Depending on QoS, the installation environment, economic considerations, and the application, one of several basic network topologies may be used. A communication network is composed of nodes, each of which has computing power and can transmit and receive messages over communication links, wireless or cabled. The basic network topologies are shown in the figure Wireless Links Numerous paths to Connect to the same destination. These could be:1. Star 2. Mesh 3. Hybrid
A single network may consist of several interconnected subnets of different topologies. Networks are further classified as Local Area Networks (LAN), e.g. inside one building, or Wide Area Networks (WAN), e.g. between buildings ADVANCE TECHNOLOGY www.atechindia.com
Page 4
Single Hop to Gateway Gateway serves to communicate between nodes Nodes cannot send data to each other directly ProsLowest Power consumption Easily Scalable ConsNot very reliable as one point of failure No alternate communication paths
Page 5
MESH NETWORK
This type of network is regularly distributed networks that generally allow transmission only to a nodes nearest neighbors. The nodes in these networks are generally identical, so that mesh nets are also referred to as peer-to-peer (see below) nets. Mesh nets can be good models for large-scale networks of wireless sensors that are distributed over a geographic region, e.g. personnel or vehicle security surveillance systems. Note that the regular structure reflects the communications topology; the actual geographic distribution of the nodes need not be a regular mesh. Since there are generally multiple ADVANCE TECHNOLOGY www.atechindia.com Page 6
RING TOPOLOGY
In Ring Topology all devices are situated in the form of a ring and each device connected within two neighbors devices by the means of communication. In Ring topology all node communicate with each other clockwise or anti clockwise. Generally FDDI, Token ring and SONET used to configure ring topology. The use of ring topology increasing day by day because a network can easily implement in home, office, building, and school .Ring topology have some benefits such as equal access to every one, transformation of data at very high speed but have disadvantages like The fault in any cable or wire may cause of failure network., trouble shooting also a major problem.
APPLICATION OF INTERESTS
We categorize the applications into two classes. 1. The first class, data gathering applications, focuses on entity monitoring with limited signal processing requirements. The primary goal of these applications is to gather information of a relatively simple form, such as temperature and humidity, from the operating environment. Some environmental monitoring and habitat study applications also belong to this class. 2. The second class of applications requires the processing and transportation of large volumes of complex data. This class includes heavy industrial monitoring and video surveillance, where complicated signal processing algorithms are usually employed. We refer to these applications as computationally intensive applications. In the following sections, we describe several academic and industrial
Page 7
ENVIORMENTAL MONITORING
Environmental monitoring is another application for WSNs. The vast spaces involved in such applications require large volumes of low cost sensor nodes that can be easily dispersed throughout the region. For instance, WSNs have been studied for forest re alarm, landscape hooding alarm, soil moisture monitoring, microclimate and solar radiation mapping, and environmental observation and forecasting in rivers. Researchers at University of West Australia are developing a prototype WSN for outdoor, ne-grained environmental monitoring of soil water such a network can be used to assist salinity management strategies, or to monitor irrigated crops, urban irrigation, and water movement in forest soils. In January 2005, a prototype network was built, which included 15 Mica2 nodes integrated with soil moisture sensors and other gateway and routing nodes. The system distinguishes itself by using a reactive data gathering strategy frequent soil moisture readings are collected during rain, while less frequent readings are collected otherwise. This strategy helps increase the system lifetime. ADVANCE TECHNOLOGY www.atechindia.com
Page 8
ON-BOARD FACILITIES
(a) DISPLAY (LCD, LED) section. (b) SWITCHES (DIP SWITCH) section. (c) RELAY section. (d) BUZZER section (e) RS232 SECTION
PERIPHERALS
Part No. LCD BUZZER RELAY LED Specifications 16 x 2 character LCD 20 x 4 character LCD (coordinator). 5V 5A/250V AC 1.5V
Page 10
PROCESSOR
P89C51RD2/P89V51RD2
FEATURES
On-chip Flash Program Memory with In-System Programming (ISP) and InApplication Programming (IAP) capability Boot ROM contains low-level Flash programming routines for downloading via the UART Can be programmed by the end-user application (IAP) Parallel programming with 87C51 compatible hardware interface to programmer Supports 6-clock/12-clock mode via parallel programmer (default clock mode after Chip Erase is 12-clock) 6-clock/12-clock mode Flash bit erasable and programmable via ISP 6-clock/12-clock mode programmable on-the-fly by SFR bit Peripherals (PCA, timers, UART) may use either 6-clock or 12-clock mode while the CPU is in 6-clock mode Speed up to 20 MHz with 6-clock cycles per machine cycle (40 MHz equivalent performance); up to 33 MHz with 12 clocks per machine cycle Fully static operation RAM expandable externally to 64 Kbytes Four interrupt priority levels Seven interrupt sources Four 8-bit I/O ports Full-duplex enhanced UART Framing error detection Automatic address recognition Power control modes Clock can be stopped and resumed Idle mode Power down mode Programmable clock-out pin ADVANCE TECHNOLOGY www.atechindia.com Page 11
BUZZER SECTION
A Buzzer is output device having +ve and ve terminals, which generate a tone when it get high signal on its positive terminal. These devices are capable of generate sound. Such kind of devices can be used in hardwares like security systems and sensitive equipments to protect them from burn. For example if temperature of particular area rises over than pre-specified temperature then a sound should generate. Connection: connected with P1.3.
RS232 SECTION
This section is on board to program the microcontroller through pc serial port either u can use USB to serial convertor to program microcontroller chip. The Serial Port is harder to interface than the Parallel Port. In most cases, any device you connect to the serial port will need the serial transmission converted back to parallel so that it can be used. This can be done using a UART. On the software side of things, there are many more registers that you have to attend to than on a Standard Parallel Port. (SPP)
Page 12
RELAY SECTION
A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an electromagnet to open or close one or many sets of contacts. It was invented by Joseph Henry in 1835. Because a relay is able to control an output circuit of higher power than the input circuit, it be considered electrical amplifier.
RELAY
Page 14
DIP switches are an alternative to jumper blocks. Their main advantages are that they are quicker to change and there are no parts to lose.
Page 15
Page 16
Page 17
STEP 2
Connect sensor with all end devices (module). On all end device there is a two pin connector provided for sensor connection. Note that sensor connected with this connector must provide logic high (+5v) on its default situation and provide logic low (0 volt) when sensor is activated. If sensors are not available then short two pin connector with wire.
STEP 3
Switch on power supply of board (may be coordinator/end device) with 5v, 1 amp adaptor.
STEP 4
If we switch on power of coordinator first then its LCD will display massage
Advance Tech WSN sensor status x x x x x x x x x x Where x could be F------for End device FOUND N-----for End Device NOT FOUND A-----for sensor ALARMED
ADVANCE TECHNOLOGY www.atechindia.com Page 18
STEP 6
When you switch on power supply of end device, then LCD will show massage
Associated STEP 7
After network formation End device and coordinator are associated in a network. Both, END device and coordinator will wait for sensor Alarming.
STEP 8
If any sensor from complete network alarmed then LCD of that particular END device whose sensor in alarmed, will show
Sensor Alarmed
And buzzer of END device also start giving sound.
STEP 9
At the same moment when sensor alarmed then END device send information to coordinator and LCD shows ADVANCE TECHNOLOGY www.atechindia.com
Page 19
STEP11
When END device receive acknowledgement then END devices LCD shows massage
DATA OK STEP12
Now we can control END device or sensor module from coordinator. I can switch OFF buzzer and even sensor from coordinator. There are eight switches available on coordinator module. One each for one sensor which in connected on END device. For example if sensor 2 is alarmed and buzzer of same device is producing sound .Then to switch it OFF press SW2 from coordinator. LCD of END device 2 will shows
STEP14
Note that after disabling the sensor, END device is still in network but sensor is not in network and disabled permanently. To associate sensor again in network RESET POWER SUPPLY of END device.
Page 20
Page 21
Page 22
STEP: 2
The following window will be popped-up
Page 23
STEP: 4
Make a folder on desktop & give file name.
Page 24
Page 25
STEP: 7
Then select NO on the pop-up given below.
Page 26
STEP: 9
Write or copy your code there & save it with extension .c or .asm depending on your coding.
Page 27
STEP: 11
Select your asm or c file which you want to add.
Page 28
STEP: 12
Go to the option for target, click on output &tick on create hex file option
Page 29
STEP: 14
It will show you 0 errors & 0 warning on Output Window.
Page 30
After performing all these steps the chip will be configured through Flash Magic .Let us hand on the steps of chip configuration through Flash Magic
SPECIAL NOTES
Make all the DIP switches in off position before burning the program in the controller. Connect the Programming Cable on your Kit (prog. Conn.)And other side of cable with the COM Port of the Computer.
Burn the Program in the microcontroller with help of FLASH MAGIC or ECE FLASH as explained in the next section.
Page 31
Page 32
Page 33
Page 34
Page 35
Page 36
Now click ok
Page 37
Page 38
Page 39
Press reset button on hardware or ON/OFF power for a while to reset to make hardware in programming mode. Within 5-6 seconds message will appear ************FINISHED.*********** Now press again reset on hardware to see output or to run program.
Page 40
STEP: 1
To burn chip 89V51RDRXX through ECE flash it required less. Double click on icon as shown below.
STEP: 2
Flash window will appear as shown below.
Page 41
Page 42
Page 43
STEP: 6
Click on flash option reset hardware will appear.
Now press reset switch on hardware board and flash will burn With 5-6 Seconds. Again press reset switch on hardware board to run your program or to see output. ADVANCE TECHNOLOGY www.atechindia.com
Page 44