Assignment
Assignment
Problem(1):
1)Bluetooth protocol stack :
First layer is data
Second layer is L2 CAP: logical link control ,
multiplexing ,segmentation ,configure parameters
of connection
Third layer is Link Controled/managed :
establishment , release ,and configuration of
connection
• Master-slave , role switch
• Authentication , ciphering procedure
• Control of adaptive frequency hopping
• Power management
Fourth layer Baseband:
• Framing of data packets
• Timing
Last layer RF : send and receive modulated signal
2)
Bluetooth (Version 1.2):
Maximum data rate is 780 kbit/s
Bluetooth 2004 (Version 2.0) :
It reduced the employment of electricity in its usage and allowed
data transfer at the rate of 2178 kbit/s. This improvisation was
acted upon when the EDR was introduced. Its modulated using
DQPSK and 8PSK
Bluetooth 2007 (Version 2.1)
In this version, 3 main goals were achieved:
1) Secure Simple Pairing
2) Sniff Sub-rating
Problem(2):
1) Bluetooth uses channel in the 2.4GHZ, ISM band with bandwith of 1 MHZ ,
Bluetooth operates in the frequency range between 2402 and 2480 MHz,
Bluetooth And Wi-Fi Use The Same Frequency Range
Frequency
Region range RF Channels
5)The duration of each slot is 625 microseconds. The Master node initiates the
transmission in even slots and extends the transmission to odd slots when
transmitting a multislot packet. The Slave node initiates the transmission in odd
slots and extends the transmission to even slots when transmitting a multislot
packet.
6)Bluetooth power classes :
1)class 3 :
• up to 1 mw
• battery driven
• work over distance of 10 m
2) class 2 : up to 2.5 mw
3) class 1 :
• up to 100 mw
• usb Bluetooth sticks for PCs
• work over distance of 100 m
7) a master is a device or a process that controls other devices or processes , Slave is a
device or a process that is controlled by another device or a process, up to eight slave
devices can be connected to a piconet .
Using the show commands reveals most of the more common ACL errors before they
cause problems in your network.
10) Bluetooth Low Energy (BLE) is a low power wireless communication technology
that can be used over a short distance to enable smart devices to communicate, uses a
hierarchical data structure to define the information exchange structure. A BLE device
acting as a peripheral will advertise services and characteristics that can be used for
communication with the device.
Problem 3:
1. • Baud rate speeds: 1,200 bps up to 921 Kbps, non-standard baud rates can be
programmed
• Class 1 radio, 330’ (100 m) range, 15 dBm output transmitter, -80 dBm typical
receive sensitivity
• Frequency 2,402 ~ 2,480 MHz
• FHSS/GFSK modulation, 79 channels at 1-MHz intervals
• Secure communication, 128-bit encryption
• Error correction for guaranteed packet delivery
•100 meters covering distance
2. a. do {
UART3_Write_Text("BLUETOOTH_NAME"); // Name of device “by editing this line we
can change the Bluetooth name”
UART3_Write(13); // CR
Delay_ms(500);
} while (BT_Get_Response() != BT_AOK);
b. do {
UART3_Write_Text("SM,1"); // Set mode (0 = slave, 1 = master, 2 = trigger, 3
= auto, 4 = DTR, 5 = ANY)
UART3_Write(13); // CR
Delay_ms(500);
} while (BT_Get_Response() != BT_AOK);
Problem 4 :
M=8;
x = randi([0 M-1],1,1e6);
Zn = dpskmod(x,M); %transmitted sequence
BER = [];
SNRdb_arr= [];
for DB=0:1:15
SNRdb_arr = [SNRdb_arr DB];
SNR = 10.^(DB/10);
rn = Zn + ((1 / (2*sqrt(SNR))) * (randn(1,1e6) + 1j*randn(1,1e6)));
rn_demod = dpskdemod(rn, M);
[N err] = biterr(x, rn_demod);
BER = [BER err];
end
semilogy(SNRdb_arr, BER)
title('BER VS SNR');
ylabel('BER');
xlabel('SNR');