complete construction, environmental and economics information of biomass com...
Â
Embedded Summer training
1. A PROJECT ON
WIRELESS SENSOR NETWORK
By Mr. Rajan Singh
M.E
TechnoCrats Engg classes
SPIT (Andheri)
2. AIM
AIM To design, build and test the circuit for wireless sensors
network using Embedded system programming.
OBJECTIVES
To study the Wireless Sensor Network(WSN) using some
Transmitter and Receiver module. To design (8051 series) / AVR
based circuit for WSN. To program and study the working of
microcontroller (Atmega series ) and related hardwares.
4. RF MODULE (434 & 315 MHZ)
The circuit of this project utilises the RF module (TX / Rx)
for making a wireless remote, which could be used to drive
an output from a distant place. RF module, as the name
suggests, uses radio frequency to send and receive signals at
same frequency and baud rate.
9. ⢠GSM-Introduction
⢠Architecture
⢠Technical Specifications
⢠Frame Structure
⢠Channels
â˘Security
â˘Characteristics and features
â˘Applications
CONTENTS
10. WHAT IS GSM ?
Global system for mobile (GSM) is a second
generation cellular standard developed to cater voice
services and data delivery using digital modulation.
11. GSM: HISTORY
⢠Developed by Group SpÊcial Mobile (founded 1982) which was an initiative of
CEPT ( Conference of European Post and Telecommunication )
⢠Aim : to replace the incompatible analog system
⢠Presently the responsibility of GSM standardization resides with special mobile group
under ETSI ( European telecommunication Standards Institute )
⢠Full set of specifications phase-I became available in 1990
⢠Under ETSI, GSM is named as â Global System for Mobile communication â
⢠Today many providers all over the world use GSM (more than 135 countries in Asia,
Africa, Europe, Australia, America)
⢠More than 1300 million subscribers in world and 45 million subscriber in India.
12. GSM IN WORLD
Figures: March, 2005
37%
1%
4%43%
4%
3%
3%
3% (INDIA)
3%
Arab World
Asia Pacific
Africa
East Central Asia
Europe
Russia
India
North America
South America
13. GSM IN INDIA
Figures: March 2005
Bharti
27%
BSNL
22%
Spice
4%
IDEA
13%
Hutch
19%
BPL
6%
Aircel
4%
Reliance
3%
MTNL
2%
Bharti
BSNL
Hutch
IDEA
BPL
Aircel
Spice
Reliance
MTNL
15. TELE SERVICES
⢠Telecommunication services that enable voice
communication via mobile phones
⢠Offered services
- Mobile telephony
- Emergency calling
16. BEARER SERVICES
⢠Include various data services for information transfer
between GSM and other networks like PSTN, ISDN etc
at rates from 300 to 9600 bps
⢠Short Message Service (SMS)
â˘up to 160 character alphanumeric data transmission
to/from the mobile terminal
⢠Unified Messaging Services(UMS)
⢠Voice mailbox
⢠Electronic mail
17. SUPPLEMENTARY SERVICES
Call related services :
⢠Call Waiting- Notification of an incoming call while on the handset
⢠Call Hold- Put a caller on hold to take another call
⢠Call Barring- All calls, outgoing calls, or incoming calls
⢠Call Forwarding- Calls can be sent to various numbers defined by the
user
⢠Multi Party Call Conferencing - Link multiple calls together
⢠CLIP â Caller line identification presentation
19. FREQUENCY MULTIPLEX
⢠Separation of the whole spectrum into smaller frequency bands
⢠A channel gets a certain band of the spectrum for the whole time
â˘Advantages:
⢠no dynamic coordination necessary c
⢠works also for analog signals
â˘Disadvantages:
⢠waste of bandwidth if the traffic is
distributed unevenly
⢠Inflexible t
t
k2 k3 k4 k5k1 k6
f
20. â˘A channel gets the whole spectrum for a certain amount of time
â˘Advantages:
⢠only one carrier in the medium at any time
⢠throughput high even for many users
â˘Disadvantages:
⢠precise synchronization necessary
f
t
c
k2 k3 k4 k5 k6k1
TIME MULTIPLEX
21. ⢠Combination of both methods (FDM +TDM)
⢠A channel gets a certain frequency band
for a certain amount of time.
f
TIME AND FREQUENCY MULTIPLEX
t
c
k2 k3 k4 k5 k6k1
22. f
â˘Example: GSM
â˘Advantages:
⢠Better protection against
tapping
⢠Protection against frequency
selective interference
⢠Higher data rates compared to
code multiplex
But: precise coordination required
t
c
k2 k3 k4 k5 k6k1
TIME AND FREQUENCY MULTIPLEX
23. GSM USES PAIRED RADIO CHANNELS
0 124 0 124
890MHz 915MHz 935MHz 960MHz
GSM combines FDM and TDM:
Bandwidth is subdivided into channels of 200khz, shared by up to eight
stations, assigning slots for transmission on demand.
24. CODE MULTIPLEX
⢠Each channel has a unique code
⢠All channels use the same spectrum at the same time
⢠Advantages:
⢠Bandwidth efficient
⢠No coordination and synchronization necessary
⢠Good protection against interference and tapping
⢠Disadvantages:
⢠Lower user data rates
⢠More complex signal regeneration
⢠Implemented using spread spectrum technology
k2 k3 k4 k5 k6k1
f
t
c
28. GSM SYSTEM ARCHITECTURE-I
⢠Mobile Station (MS)
Mobile Equipment (ME)
Subscriber Identity Module (SIM)
⢠Base Station Subsystem (BSS)
Base Transceiver Station (BTS)
Base Station Controller (BSC)
⢠Network Switching Subsystem(NSS)
Mobile Switching Center (MSC)
Home Location Register (HLR)
Visitor Location Register (VLR)
Authentication Center (AUC)
Equipment Identity Register (EIR)
29. MOBILE STATION (MS)
The Mobile Station is made up of two entities:
1. Mobile Equipment (ME)
2. Subscriber Identity Module (SIM)
30. MOBILE STATION (MS) CONTD.
Subscriber Identity Module (SIM)
⢠Smart card contains the International Mobile Subscriber
Identity (IMSI)
⢠Allows user to send and receive calls and receive other
subscribed services
⢠Encoded network identification details
- Key Ki,Kc and A3,A5 and A8 algorithms
⢠Protected by a password or PIN
⢠Can be moved from phone to phone â contains key information
to activate the phone
31. BASE STATION SUBSYSTEM (BSS)
Base Station Subsystem is composed of two parts that communicate
across the standardized Abis interface allowing operation between
components made by different suppliers
1. Base Transceiver Station (BTS)
2. Base Station Controller (BSC)
32. BASE STATION SUBSYSTEM (BSS)
Base Transceiver Station (BTS):
⢠Encodes, encrypts, multiplexes, modulates and feeds the RF signals
to the antenna.
⢠Frequency hopping
⢠Communicates with Mobile station and BSC
⢠Consists of Transceivers (TRX) units
33. BASE STATION SUBSYSTEM (BSS)
Base Station Controller (BSC)
⢠Manages Radio resources for BTS
⢠Assigns Frequency and time slots for all MSâs in its area
⢠Handles call set up
⢠Transcoding and rate adaptation functionality
⢠Handover for each MS
⢠Radio Power control
⢠It communicates with MSC and BTS
34. NETWORK SWITCHING SUBSYSTEM(NSS)
Mobile Switching Center (MSC)
⢠Heart of the network
⢠Manages communication between GSM and other networks
⢠Call setup function and basic switching
⢠Call routing
⢠Billing information and collection
⢠Mobility management
- Registration
- Location Updating
- Inter BSS and inter MSC call handoff
⢠MSC does gateway function while its customer roams to other network by using
HLR/VLR.
35. NETWORK SWITCHING SUBSYSTEM
⢠Home Location Registers (HLR)
- permanent database about mobile subscribers in a large service
area(generally one per GSM network operator)
- database contains IMSI, MSISDN, prepaid/postpaid, roaming restrictions,
supplementary services.
⢠Visitor Location Registers (VLR)
- Temporary database which updates whenever new MS enters its area, by
HLR database
- Controls those mobiles roaming in its area
- Reduces number of queries to HLR
- Database contains IMSI, TMSI, MSISDN,MSRN,Location Area,
authentication key
36. ⢠Authentication Center (AUC)
- Protects against intruders in air interface
- Maintains authentication keys and algorithms
and provides security triplets (
RAND,SRES,Kc)
- Generally associated with HLR
⢠Equipment Identity Register (EIR)
- Database that is used to track handsets using the
IMEI (International Mobile Equipment Identity)
- Made up of three sub-classes: The White List, The
Black List and the Gray List
- Only one EIR per PLMN
NETWORK SWITCHING SUBSYSTEM
37. GSM SPECIFICATIONS-1
⢠RF Spectrum
GSM 900
Mobile to BTS (uplink): 890-915 Mhz
BTS to Mobile(downlink):935-960 Mhz
Bandwidth : 2* 25 Mhz
GSM 1800
Mobile to BTS (uplink): 1710-1785 Mhz
BTS to Mobile(downlink) 1805-1880 Mhz
Bandwidth : 2* 75 Mhz
41. OUTGOING CALL
1. MS sends dialed number to BSS
2. BSS sends dialed number to MSC
3,4 MSC checks VLR if MS is allowed the
requested service. If so, MSC asks BSS to
allocate resources for call.
5 MSC routes the call to GMSC
6 GMSC routes the call to local exchange of
called user
7, 8,
9,10 Answer back(ring back) tone is routed
from called user to MS via
GMSC,MSC,BSS
42. INCOMING CALL
1. Calling a GSM subscribers
2. Forwarding call to GSMC
3. Signal Setup to HLR
4. 5. Request MSRN( MS roaming no)
from VLR
6. Forward responsible MSC to GMSC
7. Forward Call to current MSC
8. 9. Get current status of MS
10.11. Paging of MS
12.13. MS answers
14.15. Security checks
16.17. Set up connection
43. HANDOVERS
⢠Between 1 and 2 â Inter BTS / Intra BSC
⢠Between 1 and 3 â Inter BSC/ Intra MSC
⢠Between 1 and 4 â Inter MSC
44. SECURITY IN GSM
â˘On air interface, GSM uses encryption and TMSI (Temperory MS
identity) instead of IMSI.
â˘SIM is provided 4-8 digit PIN to validate the ownership of SIM
â˘3 algorithms are specified :
- A3 algorithm for authentication
- A5 algorithm for encryption
- A8 algorithm for key generation
47. ADVANTAGES OF GSM OVER ANALOG SYSTEM
⢠Capacity increases
⢠Reduced RF transmission power and longer battery life.
⢠International roaming capability.
⢠Better security against fraud (through terminal validation and user
authentication).
⢠Encryption capability for information security and privacy.
⢠Compatibility with ISDN,leading to wider range of services
48. FUTURE OF GSM
ďś2nd Generation
ďą GSM -9.6 Kbps (data rate)
ďś2.5 Generation ( Future of GSM)
ďąHSCSD (High Speed ckt Switched data)
ďData rate : 76.8 Kbps (9.6 x 8 kbps)
ďąGPRS (General Packet Radio service)
ďData rate: 14.4 - 115.2 Kbps
ďąEDGE (Enhanced data rate for GSM
Evolution)
ďData rate: 547.2 Kbps (max)
ďś 3 Generation
ďąWCDMA(Wide band CDMA)
ďData rate : 0.348 â 2.0 Mbps
ďś 4 Generation
ďą Wi Max (Ultra widwBand)
ď Data rate : practically ~50 Mbps & theorically 672 Mbps
ď 5 Generation coming soon
49. BLUETOOTH
Contents:
⢠What is Bluetooth?
⢠How Bluetooth Technology works ?
⢠Advantages of Bluetooth Technology
⢠Disadvantage of Bluetooth Technology
⢠Future of Bluetooth Technology
50. 1. Bluetooth technology is simple, secure and everywhere.
2. This technology enable users to automatically and easily connect
a wide range of computing and telecommunication devices.
⢠What is Bluetooth?
51. 3. Bluetooth is actually a IEEE 802.15.1 standard for wireless
communications between devices within a range of 10metres.
4. This is in the globally unlicensed Industrial, Scientific and
Medical (ISM) 2.4 GHz short-range radio frequency band.
5. Bluetooth was officially introduced in 1998 and its intended
basic purpose was to be a wire replacement technology in order
to rapidly transfer voice and data.
52. 6. Bluetooth âSpecial Interest Groupâ (SIG) is a group of
companies from the telecommunications, computing and
networking industries that promotes the development and
deployment of Bluetooth technology.
7. Bluetooth is a high-speed, low-power microwave wireless
link technology, designed to connect phones, laptops, PDAs
and other portable equipments together with little or no work
by the user.
8. Unlike infra-red, Bluetooth does not require any line-of-
sight positioning of connected devices like Infra-red.
53. 9. Connections can be point-to-point or multipoint. The
maximum range is 10 meters but can be extended to 100 meters
by increasing the power. Bluetooth devices are protected from
radio interference by changing their frequencies arbitrarily up to
a maximum of 1600 times a second, a technique known as
frequency hopping.
10. Each Bluetooth device could be connected to 200 other
devices. It supports both point to point and point to multipoint
connections.
54. DISADVANTAGE
⢠Bluetooth has a low data rate( i.e.1 MBps) in comparison to
infra-red(i.e.4 MBps).
⢠Also some other technologies are available in market which
required less power consumption.(Zigbee)..
55. ZIGBEE
⢠IEEE 802.15.4 specification for low data rates technology allows for
devices to communicate with one another with very low power
consumption
⢠ZigBee-based products can access up to 16 different 5 MHz channels
within the 2.4 GHz band, several of which do not overlap those of
802.11 and WiFi. ZigBee has been designed to transmit slowly. It has
a data rate of 250kbps while WiFi is hitting throughput of 20Mbps or
more.
⢠All ZigBee networks have at least one reduced-functionality device
(RFD), the full-functional device (FFD) and a network coordinator.
58. ⢠It uses 27 channels in 3 separate frequency bands
⢠The 902â928 MHz band serves the Americas and much of the Pacific Rim,
with 10 channels and a burst rate of 40 Kbps.
⢠PHY layer uses binary phase shift keying (BPSK) in the 868/915 MHz bands
and offset quadrature phase shift keying (O-QPSK) at 2.4 GHz. Both are
robust and simple forms of modulation that work well in low SNR.
59.
60.
61.
62. (LOW-COST LOW-POWER 2.4 GHZ RF TRANSCEIVER)
â˘2400-2483.5 MHz ISM (Industrial, Scientific and Medical) and
SRD (Short Range Device) frequency band.
â˘The RF transceiver is integrated with a highly configurable
baseband modem. The modem supports various modulation formats
and has a configurable data rate up to 500 kBaud.
CC2500
64. DESCRIPTION
⢠The CC2520 is second generation ZigBee/ IEEE 802.15.4 RF
transceiver for the 2.4 GHz unlicensed ISM band.
⢠This chip enables industrial grade applications by offering
operation up to 125°C and low voltage operation.
⢠CC2520 also provides extensive hardware support for frame
handling, data buffering, burst transmissions, data encryption,
data authentication, clear channel assessment and frame timing
information. These features reduce the load on the host controller.
65. ⢠CC2500 is configured via a simple 4-wire SPI compatible interface
(SI, SO, SCLK and CSn) where CC2500 is the slave. This interface
is also used to read and write buffered data. All transfers on the SPI
interface are done most significant bit first.
â˘Low Power
⢠RX (receiving frame, â50 dBm) 18.5 mA
⢠TX 33.6 mA @ +5 dBm
⢠TX 25.8 mA @ 0 dBm
⢠<1¾A in power down
⢠High sensitivity.
⢠Operation voltage: 1.8~3.6 Volts.
66. FEATURES
⢠Adjacent channel rejection:49 dB
Alternate channel rejection: 54 dB
⢠Modulation techniques: DSSS
⢠400 m Line-of-sight range
⢠Extended temp range (â40 to +125°C)
⢠Wide supply range: 1.8 V â 3.8 V
⢠Extensive IEEE 802.15.4 MAC hardware support to
offload the microcontroller
⢠AES-128 security module
67. ⢠Automatic clear channel assessment for CSMA/CA
⢠Automatic CRC
⢠768 bytes RAM for flexible buffering and security
processing
⢠Fully supported MAC 128 bits security
⢠4 wire SPI
⢠6 configurable IO pins
⢠Interrupt generator
⢠Random number generator
Microcontroller Support
68. GLOBAL POSITIONING SYSTEM (GPS)
⢠GPS is a revolutionary navigation system
⢠24 satellites orbiting the earth
⢠Provide location within meters or less anywhere on the globe.
⢠Now available in many cars as an option
⢠Created and operated by the US Department of Defense
69. MORE ABOUT GPS SATELLITES
⢠Constellation of 27 satellites
⢠(24 active + 3 spare)
⢠Orbit 12,600 miles above earth
⢠(10,900 nautical miles)
⢠Satellites in 12 hour orbit
⢠First satellite launched in 1978, 24th became operational in 1994
⢠Selective availability was removed in May, 2000
⢠Handheld receivers are now much more accurate
71. DISTANCE CALCULATION
⢠Measuring distance by measuring time
⢠Satellites send coded signals indicating their position in space and the
exact time the signals are being sent
⢠Receivers use the time it takes signal to travel from satellite to receiver
to determine distance from satellite to receiver
⢠Information from multiple satellites is used to determine position
through âtriangulationâ.
72. POSITION IS BASED ON TIME
T + 3
Distance between satellite and
receiver = â3 times the speed of
lightâ
T
Signal leaves satellite at
time âTâ
Signal is picked up by the
receiver at time âT + 3â
74. SOURCES OF GPS ERROR
⢠Standard Positioning Service (SPS ): Civilian Users
⢠Source Amount of Error
ď Satellite clocks: 1.5 to 3.6 meters
ď Orbital errors: < 1 meter
ď Ionosphere: 5.0 to 7.0 meters
ď Troposphere: 0.5 to 0.7 meters
ď Receiver noise: 0.3 to 1.5 meters
ď Multipath: 0.6 to 1.2 meters
ď Selective Availability (see notes)
ď User error: Up to a kilometer or more
75. COMMON GPS DATA FORMAT
â˘NMEA (National Marine Electronics Association)
⢠Transmission of data between GPS receiver and other devices (e.g. GPS
antenna ď PDA with ArcPad software)
⢠For real time positioning
â˘RTCM (Radio Technical Commission for Maritime Services)
⢠Transmission of data between GPS receivers (e.g Base ď Rover)
⢠Binary file (more compact but difficult to understand)
⢠For real time DGPS/RTK corrections
â˘RINEX
⢠Combine data from different manufacturerâs GPS receivers
⢠For static data processing and archive
76. FLOW OF NMEA DATA BETWEEN DEVICES
NMEA data transfer from GPS
antenna to PDA with ArcPAD
software
Real-time positioning
using the NMEA data
77. WHAT IS NMEA DATA?
⢠Developed by National Marine Electronics Association
⢠Standard for interfacing marine electronic devices (GPS, , Compass, Echo
-sounder)
⢠Standard specifies the electrical signal requirements, data transmission
protocol (i.e. agreed format for transmitting data between two devices),
message formats
78. WHAT IS NMEA DATA?
⢠ASCII file
⢠Easily readable (even by people)
⢠Less compact than binary
⢠Numerous sentence types
⢠Not all related GPS application
⢠Some popular GPS-related sentences are described in this presentation
79. NMEA SETTINGS
⢠Baud rate: 4800 (4800 characters in one second )
⢠Data bits: 8 (Bit 7 set to 0)
⢠Stop bits: 1 or 2
⢠Parity: none
⢠The âsendâ device and âreceiveâ device should have same setting
so as to transfer the NMEA data
80. STANDARD MESSAGE FORMAT
â˘$aaaaa, df1,df2âŚâŚâŚ [Carriage Return][Line Feed]
⢠Each message start with $
⢠Five characters after $ are address field
⢠Multiple data fields delimited by commas
⢠Check sum (optional): a 2-character field (0-9,A-F) to
increase data integrity
⢠(*) character placed after the last data field
81. SENTENCE STRUCTURE
â˘There are three sentence structures
⢠Talker: output from talker (e.g. GPS receiver) to other
devices (PAD)
⢠Query: means for listener (e.g. notebook) to request
specified talker sentence from talker (GPS receiver)
⢠Proprietary: means for manufactures to use non-
standard sentences for special purpose
82. TALKER SENTENCE
â˘Format: $ttsss, df1, df2âŚ[CR][LF]
⢠tt: defines device (for gps receivers the prefix is GP)
⢠sss: sentence type
Example
$GPGGA,031956,2218.2035,N,11410.7595,E,1,04,3,9,005.9,M,-001.3,M,,*51
â˘The talker sends the GPS data in GGA sentence
format.
83. QUERY SENTENCE
⢠Format: $ttllQ, sss, [CR][LF]
Example
CCGPQ,GGA, [CR][LF]
⢠A computer (CC) is requesting from GPS device (GP) the GGA
sentence
84. PROPRIETARY SENTENCE
⢠Format: $PmmmA,df1,df2,âŚ.[CR][LF]
⢠âPâ indicates it is a proprietary message
⢠âmmmâ define as the manufacture
⢠The fifth character is a letter (A-Z) defines the specific message
type
Example
$PLEIS,AHT,0,1.90,0*34
⢠âLEI" is Leica manufacturer
⢠âSâ for set command
The message set the antenna height at 1.9m in the configuration of
the internal sensor setting.
85. COMMON NMEA-0183 SENTENCE
Sentence Description
$GPGGA: Global positioning system fixed data
$GPGLL: Geographic position - latitude / longitude
$GPGSA: GNSS DOP and active satellites
$GPGSV: GNSS satellites in view
$GPRMC: Recommended minimum specific GPS data
$GPVTG: Course over ground and ground speed
To extract information related to surveyed positionď
Record at least one of the 3 sentences: $GPGGA, $GPGLL,
$GPRMC
86. GGA SENTENCE FORMAT
$GPGGA,092204.999,4250.5589,S,14718.5084,E,1,04,24.4,19.7,M,,,,0000*1F
Field Example Comments
Sentence ID $GPGGA
UTC Time 092204.999 hhmmss.sss
Latitude 4250.5589 ddmm.mmmm
N/S Indicator S N = North, S = South
Longitude 14718.5084 dddmm.mmmm
E/W Indicator E E = East, W = West
Position Fix 1 0 = Invalid, 1 = Valid SPS,
2 = Valid DGPS, 3 = Valid PPS
Satellites Used 04 Satellites being used (0-12)
HDOP 24.4 Horizontal dilution of precision
Altitude 19.7 Altitude (WGS-84 ellipsoid)
Altitude Units M M= Meters
Geoid Separation Geoid separation (WGS-84 ellipsoid)
Seperation Units M= Meters
Time since DGPS in seconds
DGPS Station ID
Checksum *1F always begin with *
http://aprs.gids.nl/nmea/
87. APPLICATIONS OF GPS
⢠In-vehicle Navigation (car, boat, airplane)
⢠Asset Management
⢠Construction
⢠Geologic Research & Mining
⢠Military Navigation and Operations
⢠Mapping & Surveying
⢠Precision Agriculture
⢠Public Health
⢠Public Safety
⢠Wireless Communications