09-11-2017 10:13 PM
i ) at the DTx
DTxInitParameters
swapFreqFlag = 0; %same channel operation
codegen transceiveXXX -args {complex(zeros(1408,1)),true, txGain,rxGain,centerFreqTx, centerFreqRx,decFactor, intFactor,swapFreqFlag}
ii) at the DRx
DRxInitParameters
codegen transceiveXXX -args {complex(zeros(1408,1)),true, txGain,rxGain,centerFreqTx, centerFreqRx,decFactor, intFactor}
after complete the step above,we found errors when running the 1DTx(dtxPHYLayerVisual.m) and 1DRx (drxPHYLayerVisual.m). The error come out from DTxPHYlayerVisual.m as below:
@ 3.06: 802.11b DATA Packet #1 Transmitted.
xxx
Error using coder.internal.errorIf (line 8)
The input signal must be complex.
Error in comm.internal. CoarseFrequencyEstimatorBase/ validateInputsImpl (line 70)
coder.internal.errorIf(isreal( x), ...
Error in rffe (line 66)
ofs = step(he,ddf);
Error in dtxPHYLayerVisual>dtx_ 3ReceiveACK (line 453)
dfr (1:halfUsrpFrameLength)= rffe(df,ft,cas,cau,cef);
Error in dtxPHYLayerVisual (line 81)
[faf,dfl,flg,nrb,rbs,st] = dtx_3ReceiveACK(df,ft,st);
From these errors, we know that t
he transmitter cannot receive the acknowledgement from the receiver. I've suspected these errors are due to wrong declaration of IPaddress. Currently, I've setup the IP Address DTx is 192.168.10.2 and DRx is 192.168.10.20.is our declaration is correct or not?
I hope someone can enlighten me either it is due to the IPaddress or other issues and can give me the solutions.
Regards,
ChongSeah