How to get correct bit stream at receiver side of simple wireless communication without communication channel
古いコメントを表示
Hello experts,
I am trying to send the data(bitstream) by modulation using DBPSK and RRC match filter for both Tx and Rx. as following MATLAB code
% Parameters
bitstream = [0 1 1 0 1 0 1 0]; % Sample bitstream to be transmitted
fSpan=4;
%add filter
txfilter = comm.RaisedCosineTransmitFilter(...
'OutputSamplesPerSymbol',4,RolloffFactor=0.05,FilterSpanInSymbols=fSpan);
rxfilter = comm.RaisedCosineReceiveFilter(...
'InputSamplesPerSymbol',4,'DecimationFactor',4,RolloffFactor=0.05,FilterSpanInSymbols=fSpan);
% DBPSK modulation
dbpskmod=comm.DBPSKModulator(0,"OutputDataType","double");
dbpskdemod=comm.DBPSKDemodulator;
mod=dbpskmod(bitstream');
tFilter=txfilter(mod);
rFilter=rxfilter(tFilter);
demod=dbpskdemod(rFilter);
% Display received bitstream
disp('Sent Bitstream:');
disp(bitstream);
disp('Received Bitstream:');
disp(demod');
My expectation is to get Received Bitstream same as the sent. but it turned out that Tx and Rx bit stream is not same as below result.
Sent Bitstream:
0 1 1 0 1 0 1 0
Received Bitstream:
0 0 1 1 0 1 1 0
Anyway, if I am not using the RRC filter. receiver side can decode the sent Bitsteam correctly as below MATLAB code and result.
% Parameters
bitstream = [0 1 1 0 1 0 1 0]; % Sample bitstream to be transmitted
fSpan=4;
%add filter
txfilter = comm.RaisedCosineTransmitFilter(...
'OutputSamplesPerSymbol',4,RolloffFactor=0.05,FilterSpanInSymbols=fSpan);
rxfilter = comm.RaisedCosineReceiveFilter(...
'InputSamplesPerSymbol',4,'DecimationFactor',4,RolloffFactor=0.05,FilterSpanInSymbols=fSpan);
% DBPSK modulation
dbpskmod=comm.DBPSKModulator(0,"OutputDataType","double");
dbpskdemod=comm.DBPSKDemodulator;
mod=dbpskmod(bitstream');
% tFilter=txfilter(mod);
% rFilter=rxfilter(tFilter);
demod=dbpskdemod(mod);
Sent Bitstream:
0 1 1 0 1 0 1 0
Received Bitstream:
0 1 1 0 1 0 1 0
Is there any way to ensure the Rx accurately decodes the Tx bitstream when the RRC filter is added to the system?
Best Regards,
Fumihiko Sato
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Communications Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!