Hello I have a very urgent problem and i need some help. I need to make a program that will use LMS algorithm to detect 2 users in a system that uses bpsk modulated PN sequence. I have made Pn sequence generator to spread and despread the message but haven't still managed to make it work with the bpsk modulation. Please if you have any codes or if you have any suggestion as to where i should search or advice of what i should do, please help because my situation is very urgent. If someone wants me to send my code and suggest any solution please droop me an email. If you have please do help Best Regards |
|
PN Sequence with Bpsk
Started by ●August 28, 2003
Reply by ●August 28, 20032003-08-28
hai John, here is some code for your BPSK mod-demod. it is not at all general and works for only two pns. It has to slightly modify for 3 or more pns. i think it will help you. Its just an illustration. %--------------------------- msg1=[1,-1,1,1,-1,1,1,-1,1] msg2=[-1,-1,-1,1,1,1,-1,-1,1] pn1=[1,-1,1,-1,1,-1,1,-1]; pn2=[-1,-1,1,1,-1,-1,1,1]; carrier=sin(linspace(0,1,20)*2*pi*2); %Spreading cdma1=reshape((carrier'*reshape(pn1'*msg1,1,8*9)),8*9*20,1); cdma2=reshape((carrier'*reshape(pn2'*msg2,1,8*9)),8*9*20,1); %Mixing cdmaa1+cdma2; %Despreading de_msg1=int8(pn1*reshape(carrier*reshape(cdma,20,8*9),8,9)/76) de_msg1=int8(pn2*reshape(carrier*reshape(cdma,20,8*9),8,9)/76) %---------------------------- -- Best Wishes RAVIKIRAN.D.N --- In , "john vasalos" <john_vasalos@h...> wrote: > Hello > > I have a very urgent problem and i need some help. I need to make a program > that will use LMS algorithm to detect 2 users in a system that uses bpsk > modulated PN sequence. I have made Pn sequence generator to spread and > despread the message but haven't still managed to make it work with the bpsk > modulation. Please if you have any codes or if you have any suggestion as to > where i should search or advice of what i should do, please help because my > situation is very urgent. If someone wants me to send my code and suggest > any solution please droop me an email. > > If you have please do help > > Best Regards |