C24 MC
C24 MC
2: CDMA
PART A
A.4 Outcomes: Student will be able to articulate the knowledge of GSM, CDMA &
Bluetooth
A.6 Theory:
Code-division multiple access (CDMA) is a channel access method used
by various radio communication technologies. CDMA is an example of multiple
accesses, where several transmitters can send information simultaneously over a
single communication channel. This allows several users to share a band of
frequencies (see bandwidth). To permit this without undue interference between
the users, CDMA employs spread spectrum technology and a special codling’s
scheme (where each transmitter is assigned a code).
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:
CDMA Autocorrelation:
Autocorrelation of the sequence, it determines the ability to synchronize and lock the
spreading code for the received signal.
A.7 Procedure:
The station encodes its data bit as follows.
o I
f
b
i
t
=
1
t
h
e
n
+
1
o
I
f
b
i
t
=
0
t
h
e
n
-
1
o n
o
s
i
g
n
a
l
(
i
n
t
e
r
p
r
e
t
e
d
a
s
0
)
i
f
s
t
a
t
i
o
n
i
s
i
d
l
e
Each station is allocated a different orthogonal sequence (code) which is N bit long
for N stations
Each station does a scalar multiplication of its encoded data bit and code
sequence.
The resulting sequence is then stored on the channel.
Since the channel is common, amplitudes add up and hence resultant channel
sequence is the sum of sequences from all channels.
Working
CDMA uses orthogonal codes to transmit different signal over the same channel
Multiple Access.
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:
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)
ANS –
import numpy as np
def main():
# Define orthogonal codes
codes = [
[1, 1, 1, 1], # Code C1
[1, -1, 1, -1], # Code C2
[1, 1, -1, -1], # Code C3
[1, -1, -1, 1], # Code C4
]
codes = np.array(codes)
if __name__ == "__main__":
main()
EXAMPLE-
Let’s assume there are two users (User A and User B) sending data over a CDMA
network.
Suppose:
1. User A wants to send bit 1
2. User B wants to send bit -1
Each user multiplies their data bit with their assigned code:
1. User A's Encoded Signal = 1 × [1, -1, 1, -1] → [1, -1, 1, -1]
2. User B's Encoded Signal = -1 × [1, 1, -1, -1] → [-1, -1, 1, 1]
If the receiver wants to extract User A's data, it takes the received signal and applies
User A's code:
1. Even though both users transmitted data at the same time on the same frequency, their
data was successfully decoded.
2. This is how CDMA allows multiple users to share the same frequency channel
without interference
B.2 Conclusion:
The successful implementation of the basic CDMA function demonstrates that the system
can accommodate multiple users while maintaining signal integrity and minimal
interference. This highlights the robustness of CDMA for communication systems,
making it suitable for applications requiring efficient use of bandwidth and high user
capacity