Wireless Encrypted Data Transmission
Wireless Encrypted Data Transmission
(Session 2008-09)
Vinay Lakhera
(5T858)
Recommendation
Project Guide
Endorsed By
Dr. Sanjeev K. Tokekar,
HOD, Department of Electronics and
Telecommunication Engineering.
Institute of Engineering and Technology
Devi Ahilya Vishwavidyalaya, Indore
Director
I hereby declare that the work which has been presented in this project
entitled “WIRELESS ENCRYPTED DATA TRANSMISSION” in partial
fulfillment for the award of degree of Bachelor of Engineering (B.E.) Electronic
And Telecommunication Engineering is an authentic record of my own work
carried out under the supervision and guidance of Mr. Vaibhav Neema ,
Institute of Engineering and Technology Devi Ahilya Vishwa Vidhaylaya Indore.
We are fully responsible for matter embodied in this project in case of any
discrepancy found in the project and project has not been submitted for the award
of any other degree.
Signature of Student
Signature of Student
Signature of Student
ACKNOWLEDGEMENT
We would specially like to thank Dr. Sanjeev V Tokekar (HOD, Electronic and
Telecommunication Engineering) as he has been instrumental in the preparation of
this thesis report and kept on encouraging us to submit the project deliverables on
time. We wish to express our sincere gratitude to our guide Mr. Vaibhav Neema
(Faculty Member of Electronics Dept.), for his encouragement and guidance
throughout the work on this project. The invaluable suggestions given by our guide
have helped us to improve the quality of our project and deliver the project in time.
We would also like to thank all the people in the Department of Electronic And
Telecommunication Engineering in I.E.T, who was always there with help
whenever we needed it.
Here we think from the core, everybody who has helped us at work when it started
as an unknown ocean to swim though, we needed more than sense of words. In true
sense, we are indebted to all our teachers during graduation at I.E.T, without them
we hardly ever thought of, the project we did.
Finally thanks to all our friends, our colleagues and classmates for their nice
cooperation.
The project is based on the concept of setting up wireless data link between
Personal computers. There are about a dozen different communication interfaces
integrated in PCs on the market today to tackle almost any conceivable
communication task. With this increasing interface variety it becomes more
complicated to pick the "right" interface for the task at hand. Each of the available
interfaces has its advantages and disadvantages and is better suited at some tasks
than others.
The aim of this project is to setup wireless data link between PC’s to enable them
to communicate with each other. Encryption of the messages will add extra
security from interception and hacking.
Table of Contents
1. Introduction……………………………………………………… 8
1.1 Overview and involved………………………………. 8
1.2 Problem definition…………………………………… 8
1.3 Proposed solution……………………………………. 8
2. Requirement Gathering………………………………………… 9
2.1 Hardware Requirements ……………………………… 9
2.2 Hardware Details……………………………………... 10
2.3 Software Requirements …………..… ……………… 19
2.4 Software coding……………………………………… 19
3. Implementation………………………………………………… 21
4.1 Block Diagram………………………………………… 21
4.2 Circuit Diagram……………………………………… 22
4. Working…………………………………………………….......... 23
5. Microcontroller programming.………………………………… 26
6. Conclusion………………………………………………………. 31
Appendix………………………………………………………… 32
Bibliography…………………………………………………….. 36
Chapter 1
INTRODUCTION
In the present era of communication where mobility along with communication has
become an indispensible and inevitable part, there is an urgent need for the mode
of communication which is flexible in nature in context to mobility i.e.
communication could be set up when the two communicating node are at a
considerable distance without any physical connection. Such type of
communication is defined as wireless communication. One more fact which should
be considered while developing such communication is that it should be secure. It
should not have any eavesdropping or interception by an unintended user. So the
suitable encryption should be done before transmission and hence the projected
targeted towards encrypted wireless transmission.
Chapter 2
Requirement Gathering
• Microcontroller 8051
• Crystal oscillator
• Max 232
• RS 232
• Transistor BC547
• RF modem
Microcontroller (AT89C51):
The 8051 features the so-called "Boolean processor". This refers to the way
instructions can single out bits just about anywhere (RAM, accumulators, I/O
registers, etc.), perform complex bit tests and comparisons, and then execute
relative jumps based on the results.
Piles of software, both commercial and free, are available for the 8051 line. Many
manufacturers supply what must be a hundred different variants of this chip for any
requirement. Often featured in construction projects in the popular hobbyist
magazines.
Crystal Oscillator:
The 8051 operates based on an external crystal. This is an electrical device which,
when energy is applied, emits pulses at a fixed frequency. One can find crystals of
virtually any frequency depending on the application requirements. When using an
8051, the most common crystal frequencies are 12 megahertz and 11.059
megahertz--with 11.059 being much more common. Microcontrollers (and many
other electrical systems) use crystals to synchronize operations. The 8051 uses the
crystal for precisely that: to synchronize its operation. Effectively, the 8051
operates using what are called "machine cycles." A single machine cycle is the
minimum amount of time in which a single 8051 instruction can be executed.
although many instructions take multiple cycles.
A cycle is, in reality, 12 pulses of the crystal. That is to say, if an instruction takes
one machine cycle to execute, it will take 12 pulses of the crystal to execute. Since
we know the crystal is pulsing 11,059,000 times per second and that one machine
cycle is 12 pulses, we can calculate how many instruction cycles the 8051 can
execute per second:
11,059,000 / 12 = 921,583
This means that the 8051 can execute 921,583 single-cycle instructions per second.
Since a large number of 8051 instructions are single-cycle instructions it is often
considered that the 8051 can execute roughly 1 million instructions per second,
although in reality it is less--and, depending on the instructions being used, an
estimate of about 600,000 instructions per second is more realistic.
MAX 232
The MAX232 is an integrated circuit that converts signals from an RS-232 serial
port to signals suitable for use in TTL compatible digital logic circuits. The
MAX232 is a dual driver/receiver and typically converts the RX, TX, CTS and
RTS signals.
The drivers provide RS-232 voltage level outputs (approx. ± 7.5 V) from a single
+ 5 V supply via on-chip charge pumps and external capacitors. This makes it
useful for implementing RS-232 in devices that otherwise do not need any voltages
outside the 0 V to + 5 V range, as power supply design does not need to be made
more complicated just for driving the RS-232 in this case.
The receivers reduce RS-232 inputs (which may be as high as ± 25 V), to standard
5 V TTL levels. These receivers have a typical threshold of 1.3 V, and a typical
hysteresis of 0.5 V.
The later MAX232A is backwards compatible with the original MAX232 but may
operate at higher baud rates and can use smaller external capacitors – 0.1 μF in
place of the 1.0 μF capacitors used with the original device
RS 232
Asserted by DCE when it detects a ring signal from the telephone line.
Transistor BC547
It is a npn general purpose transistor which is used for general purpose switching.
FEATURES
· Low current (max. 100 mA)
RF Modem can be used for applications that need two way wireless data
transmission. It features high data rate (9600bps) and longer transmission distance
(100mts). The communication protocol is self controlled and completely
transparent to user interface. The module can be embedded to your current design
so that wireless communication can be set up easily.
Features
Remote control
• Remote measurement system
• Weather stations
• Sensor Networks
• Wireless metering
• Access control
• Identity discrimination
• Data collection
• IT home appliance
• Smart house products, Security Systems
Operations
Module works in half-duplex mode. Means it can either transmit or receive but not
both at same time. Module has packet buffer of 128 bytes. When receiving 128
Bytes from the serial port, it will send data out at once. If the data package
received is below 128 Bytes, the module will wait for about 30 ms and then send it.
In order to send data immediately, 128 Bytes data per transmission is necessary.
After each transmission, module will be switched to receiver mode automatically.
The switch time is about 5ms. The LED for TX and RX indicates whether module
is currently receiving or transmitting data. The data sent is checked for CRC error
if any, the transmitter sends out data up to 15 times till data is correctly received.
• C compiler
• Keil C51 compiler
2.4 Software Details
#include <dos.h>
#include <stdio.h>
#include <conio.h>
void main(void)
{
int c;
int ch;
outportb(PORT1 + 1 , 0); /* Turn off interrupts - Port1 */
Chapter 3.
Implementation
4.1 Block diagram
PC AT
89C51
Chapter 4.
Working
PC to Master Microcontroller
The data to be transmitted is given as an input from the keyboard. The entered data
is then transmitted to master microcontroller (the controller connected to pc is here
defined as master microcontroller). The data transmission is in serial mode. PC
communicates via its serial port RS 232 to the microcontroller. Microcontroller not
being compatible to RS 232 voltage levels is connected to PC via a MAX 232 IC.
• STEP 1:
Handshake signal
• STEP 2:
Data is transmitted when the Serial clock pulse is high.
• STEP 3:
Acknowledge signal.
The data is then transferred via serial port of slave Microcontroller to the RF
modem which then transmits the data using FSK modulation Technique.
Reception of Signal
Chapter 5.
Microcontroller programming
Programming of controller connected to pc
org 00h
mov p1,#03h
mov p2,#00h
mov p3,#03h
mov p0,#00h
mov tmod,#20h
mov scon,#50h
mov th1,#-3
setb tr1
main: jb ri,pc_recv
jb p2.2,i2c_rec
sjmp main
i2c_trnc:
setb p1.2
jnb p1.0,out
clr p1.0
lcall delay_500us
wit: jnb p1.2,wit
mov r0,#08
mov a,30h
con_i2c_tr:
rlc
setb p1.0
lcall delay_clk
mov p1.1,c
clr p1.0
lcall delay_clk
djnz r0,con_i2c_tr
sjmp main
delay:
mov r2,#100
here0: mov r3,#125
here: djnz r3,here
djnz r2,here0
ret
org 00h
mov p1,#03h
mov p2,#00h
mov p3,#03h
mov p0,#00h
mov tmod,#20h
mov scon,#50h
mov th1,#-3
setb tr1
main:
clr p1.2
nop
jnb p1.0,i2c_rec
rf_rec: jb ri,rec
sjmp main
i2c_rec:
setb p1.2
setb p1.1
st: jb p1.0,st
lcall delay_500us
mov c,p1.1
rlc a
djnz r0,st
mov sbuf,a
i2c_trnc:
setb p1.2
jnb p1.0,out
clr p1.0
lcall delay_500us
wit: jnb p1.2,wit
mov r0,#08
mov a,30h
con_i2c_tr:
rlc
setb p1.0
lcall delay_clk
mov p1.1,c
clr p1.0
lcall delay_clk
djnz r0,con_i2c_tr
sjmp main
delay:
mov r2,#100
here0:
mov r3,#125
here:
djnz r3,here
djnz r2,here0
ret
end
Chapter 6.
Conclusions
The project which we have designed is working properly. The utility of the project
lies in short range secured communication. The device can be used as an
alternative of wired network in offices, school and in all application which requires
the communication between two communicating nodes.
Appendix
Transistor BC547 datasheet
1. The 8051 microcontroller and embedded system by Muhammad Ali Mazidi and
Janice Gillespie Mazidi.
3. www.wikipedia.org
4. www.sunrom.com
5. www.alldatasheet.com
6. www.atmel.com