uhd: disable adaptive buffering in 52 MHz transceiver
Similar to the non-52 Mhz case,
589dd9091e
This drastically reduces underruns on the E100.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
parent
4f08ddf45a
commit
e94b1f4827
|
@ -712,6 +712,7 @@ void Transceiver::driveTransmitFIFO()
|
||||||
while (radioClock->get() + mTransmitLatency > mTransmitDeadlineClock) {
|
while (radioClock->get() + mTransmitLatency > mTransmitDeadlineClock) {
|
||||||
// if underrun, then we're not providing bursts to radio/USRP fast
|
// if underrun, then we're not providing bursts to radio/USRP fast
|
||||||
// enough. Need to increase latency by one GSM frame.
|
// enough. Need to increase latency by one GSM frame.
|
||||||
|
#ifndef USE_UHD
|
||||||
if (mRadioInterface->isUnderrun()) {
|
if (mRadioInterface->isUnderrun()) {
|
||||||
// only do latency update every 10 frames, so we don't over update
|
// only do latency update every 10 frames, so we don't over update
|
||||||
if (radioClock->get() > mLatencyUpdateTime + GSM::Time(10,0)) {
|
if (radioClock->get() > mLatencyUpdateTime + GSM::Time(10,0)) {
|
||||||
|
@ -731,6 +732,7 @@ void Transceiver::driveTransmitFIFO()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
// time to push burst to transmit FIFO
|
// time to push burst to transmit FIFO
|
||||||
pushRadioVector(mTransmitDeadlineClock);
|
pushRadioVector(mTransmitDeadlineClock);
|
||||||
mTransmitDeadlineClock.incTN();
|
mTransmitDeadlineClock.incTN();
|
||||||
|
|
|
@ -78,7 +78,7 @@ int main(int argc, char *argv[])
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
RadioInterface* radio = new RadioInterface(usrp,3);
|
RadioInterface* radio = new RadioInterface(usrp,3);
|
||||||
Transceiver *trx = new Transceiver(5700,"127.0.0.1",SAMPSPERSYM,GSM::Time(2,0),radio);
|
Transceiver *trx = new Transceiver(5700,"127.0.0.1",SAMPSPERSYM,GSM::Time(3,0),radio);
|
||||||
trx->receiveFIFO(radio->receiveFIFO());
|
trx->receiveFIFO(radio->receiveFIFO());
|
||||||
|
|
||||||
trx->start();
|
trx->start();
|
||||||
|
|
Reference in New Issue