C07 MC Exp-02
C07 MC Exp-02
Experiment
No.2: CDMA
PART A
A.1 Aim: To implement a basic function of Code Division Multiple Access (CDMA) to test
the orthogonality and autocorrelation of a code to be used for CDMA operation. Write an
application based on the above concept.
A.4 Outcomes: Student will be able to articulate the knowledge of GSM, CDMA &
Bluetooth technologies and demonstrate it.(LO-2)
A.6 Theory:
CDMA issued as the access method in many mobile phone standards. IS-95,also called" cdma One",
and its 3G evolution CDMA2000, are often simply referred to as "CDMA", but UMTS, the 3G standard
used by GSM carriers, also uses "wideband CDMA", or W-CDMA, as well as TDCDMA and TD-SCDMA,
as its radio technologies.
▪ CDMA Orthogonality:
Techniques generally used are direct sequence spread spectrum modulation (DS-CDMA),
frequency hopping or mixed CDMA detection (JDCDMA). Here, a signal is generated which
extends over a wide bandwidth. A code called spreading code is used to perform this action.
Using a group of codes, which are orthogonal to each other, it is possible to select a signal with a
given code in the presence of many other signals with different orthogonal codes.
▪ CDMA Autocorrelation:
Autocorrelation of the sequence, it determines the ability to synchronize and lock the spreading code
for the received signal.
A.7 Procedure:
o no
signal(interpreted
as 0) if station is
idle
✔ Each station is allocated a different orthogonal sequence (code) which is N bit long for N stations
Lab Manual: Mobile Computing Lab (CSL-603) Branch: Computer Engg. Sem: VI Year: FH 2022
✔ Each station does a scalar multiplication of its encoded data bit and code sequence.
✔ Since the channel is common, amplitudes add up and hence resultant channel sequence is the sum
of sequences from all channels.
✔ If station 1 wants to listen to station 2, it multiplies (inner product) the channel sequence with
code of station S2
✔ The inner product is then divided by N to get data bit transmitted from station 2.
▪ Working
✔ CDMA uses orthogonal codes to transmit different signal over the same channel
✔ CDMA is use in 3’rd generation wireless communication like CDMA 2000, w-CDMA,HSDPA
(high speed downlink packet access), HSUPA(high speed uplink packet access) ✔
✔ It spreads the signal over a fully available spectrum or over multiple channels through
division.
communication channel.
✔ If two diff orthogonal codes are multiplied it will always give 0; this is the property of orthogonal
code.
✔ User send data 1,0 (stream of data)or use may be silent that is no data to transmit.
R2= C(x)*C2
And hence we are getting –a after dividing by 4 and data send by user 2 is -a
Sample Output:
Lab Manual: Mobile Computing Lab (CSL-603) Branch: Computer Engg. Sem: VI Year: FH 2022
PART B
(Students must submit the soft copy as per following segments within two hours of the
practical. The soft copy must be uploaded on the ERP or emailed to the concerned lab in
charge faculties at the end of the practical in case the there is no ERP access available)
Grade :
Q.1: Source Code (students need to implement CDMA using any programming language like Java, Python ,
etc)
import numpy as np
c1 = [1, 1, 1, 1]
c2 = [1, -1, 1, -1]
c3 = [1, 1, -1, -1]
c4 = [1, -1, -1, 1]
rc = []
r1 = np.multiply(c1, z1)
r2 = np.multiply(c2, z2)
r3 = np.multiply(c3, z3)
r4 = np.multiply(c4, z4)
resultant_channel = r1 + r2 + r3 + r4
print("Resultant Channel:", resultant_channel)
Channel = int(input("(Enter Digits as C1=1, C2=2, C3=3, C4=4)\nEnter the station to listen: "))
Lab Manual: Mobile Computing Lab (CSL-603) Branch: Computer Engg. Sem: VI Year: FH 2022
if Channel == 1:
rc = c1
elif Channel == 2:
rc = c2
elif Channel == 3:
rc = c3
elif Channel == 4:
rc = c4 # This line was missing indentation
res1 = sum(inner_product)
data = res1 / len(inner_product)
print("Data bit that was sent:", data)
Lab Manual: Mobile Computing Lab (CSL-603) Branch: Computer Engg. Sem: VI Year: FH 2022
CDMA (Code-Division Multiple Access) refers to any of several protocols used in second-generation (2G) and third-
generation (3G) wireless communications. As the term implies, CDMA is a form of multiplexing, which allows
numerous signals to occupy a single transmission channel, optimizing the use of available bandwidth. The technology
is used in ultra-high-frequency (UHF) cellular phone systems in the 800 megahertz (MHz) and 1.9 gigahertz
(GHz) bands.
CDMA employs analog-to-digital conversion (ADC) in combination with spread spectrum technology. Audio input is
first digitized into binary elements. The frequency of the transmitted signal is then made to vary according to a defined
pattern code. This enables the signal to be intercepted only by a receiver whose frequency response is programmed
with the same code, following along with the transmitter frequency. There are trillions of possible frequency
sequencing codes, which enhances privacy and makes cloning difficult.
Lab Manual: Mobile Computing Lab (CSL-603) Branch: Computer Engg. Sem: VI Year: FH 2022
Spread spectrum is a technique used for wireless communications in telecommunication and radio
communication. In this technique, the frequency of the transmitted signal, i.e., an electrical signal,
electromagnetic signal, or acoustic signal, is deliberately varied and generates a much greater bandwidth than
the signal would have if its frequency were not varied.
In other words, "Spread Spectrum is a technique in which the transmitted signals of specific frequencies are
varied slightly to obtain greater bandwidth as compared to initial bandwidth."
Now, spread spectrum technology is widely used in radio signals transmission because it can easily reduce
noise and other signal issues.
The Frequency Hopping Spread Spectrum or FHSS allows us to utilize bandwidth properly and
maximum. In this technique, the whole available bandwidth is divided into many channels and spread
between channels, arranged continuously.
The frequency slots are selected randomly, and frequency signals are transmitted according to their
occupancy.
The transmitters and receivers keep on hopping on channels available for a particular amount of time
in milliseconds.
So, you can see that it implements the frequency division multiplexing and time-division
multiplexing simultaneously in FHSS.
The Direct Sequence Spread Spectrum (DSSS) is a spread-spectrum modulation technique primarily
used to reduce overall signal interference in telecommunication. The Direct Sequence Spread
Spectrum modulation makes the transmitted signal wider in bandwidth than the information
bandwidth. In DSSS, the message bits are modulated by a bit sequencing process known as a
spreading sequence. This spreading-sequence bit is known as a chip. It has a much shorter duration
(larger bandwidth) than the original message bits. Following are the features of Direct Sequence
Spread Spectrum or DSSS.
Lab Manual: Mobile Computing Lab (CSL-603) Branch: Computer Engg. Sem: VI Year: FH 2022
FHSS DSSS
FHSS changes the frequency, and DSSS changes the phase, and the carrier
the hopping of frequency follows a frequency remains in a fixed frequency
pattern known to the sender and band
receiver
Lower signal transmission rate (up Higher signal transmission rate (up to 11 Mbps)
to 3Mbps)
FHSS is suitable for single point DSSS is suitable for point to point
as well as multipoint communication
communications
The decoding process is simple To decode in DSSS, a particular algorithm is
in FHSS required to make the connection between the
transmitter and receiver
The analog to digital conversion The time taken to convert an analog signal to
in FHSS takes less time digital is higher
As the carrier frequency is varied In DSSS, the message bits are both frequency and
in FHSS, it causes frequency- time spread DSSS. This kind of spreading reduces
selective fading, where the error the influence of interference and fading. The
is bursty in nature. percentage error in DSSS is less than FHSS
Lab Manual: Mobile Computing Lab (CSL-603) Branch: Computer Engg. Sem: VI Year: FH 2022
B.2 Conclusion:
(Students must write the conclusion as per the attainment of individual outcome listed
above and learning/observation)
We implemented a basic function of Code Division Multiple Access (CDMA) and tested the
orthogonality and autocorrelation of a code to be used for CDMA operation. And wrote an
application based on the above concept.