diff --git a/TransceiverRAD1/RAD1Device.cpp b/TransceiverRAD1/RAD1Device.cpp index 0091ac9..14d3e2b 100644 --- a/TransceiverRAD1/RAD1Device.cpp +++ b/TransceiverRAD1/RAD1Device.cpp @@ -50,7 +50,7 @@ unsigned char* write_it(unsigned v, unsigned char *s) { } -const float RAD1Device::LO_OFFSET = 4.0e6; +const float RAD1Device::LO_OFFSET = 6.0e6; const double RAD1Device::masterClockRate = (double) 52.0e6; bool RAD1Device::compute_regs(double freq, @@ -68,8 +68,8 @@ bool RAD1Device::compute_regs(double freq, else { DIV2 = 0; freq_mult = 1; - CP1 = 1; - CP2 = 1; + CP1 = 7; + CP2 = 7; } double phdet_freq = 13.0e6/(double) R_DIV; diff --git a/TransceiverRAD1/RAD1ping.cpp b/TransceiverRAD1/RAD1ping.cpp index a73ab00..315aff1 100644 --- a/TransceiverRAD1/RAD1ping.cpp +++ b/TransceiverRAD1/RAD1ping.cpp @@ -52,8 +52,8 @@ int main(int argc, char *argv[]) { TIMESTAMP timestamp; - if (!usrp->setTxFreq(925.2e6,113)) printf("TX failed!"); - if (!usrp->setRxFreq(925.2e6,113)) printf("RX failed!"); + if (!usrp->setTxFreq(1825.2e6,113)) printf("TX failed!"); + if (!usrp->setRxFreq(1825.2e6,113)) printf("RX failed!"); usrp->start(); @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) { } printf("For %llu to %llu, power is %f\n",timestamp,timestamp+511,pwr); timestamp += rd; - //usrp->writeSamples((short*) data2,512*numpkts,&underrun,timestamp+1000); + usrp->writeSamples((short*) data2,512*numpkts,&underrun,timestamp+1000); } } diff --git a/TransceiverRAD1/runTransceiver.cpp b/TransceiverRAD1/runTransceiver.cpp index 04dea50..a1ff9e9 100644 --- a/TransceiverRAD1/runTransceiver.cpp +++ b/TransceiverRAD1/runTransceiver.cpp @@ -39,7 +39,7 @@ using namespace std; -ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db"); +ConfigurationTable gConfig("OpenBTS.db"); volatile bool gbShutdown = false;