aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/runTransceiver.cpp
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-08-20 18:55:33 -0400
committerThomas Tsou <tom@tsou.cc>2013-09-05 04:55:51 -0400
commit9520ecd0c52b4c96078e2fc570085954ced8934d (patch)
tree1015bba467ce326983582494519f652fbab6f685 /Transceiver52M/runTransceiver.cpp
parentab599f8b6d244bc36b76ad6c9a77cb3a4c34edf5 (diff)
Transceiver52M: Generate RACH correlation sequence at initialization
There is no temporal dependency on when the RACH sequence is generated, so there is no need for transceiver to create it in response to a command from GSM core. If we power on the transceiver, we will need the RACH sequence, so just allocate it during initialization. Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/runTransceiver.cpp')
-rw-r--r--Transceiver52M/runTransceiver.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Transceiver52M/runTransceiver.cpp b/Transceiver52M/runTransceiver.cpp
index 6a05100..0fed868 100644
--- a/Transceiver52M/runTransceiver.cpp
+++ b/Transceiver52M/runTransceiver.cpp
@@ -119,6 +119,9 @@ int main(int argc, char *argv[])
DriveLoop *drive = new DriveLoop(SAMPSPERSYM,GSM::Time(3,0),radio);
Transceiver *trx = new Transceiver(port, addr, SAMPSPERSYM, radio, drive, 0);
radio->activateChan(0);
+ if (!trx->init()) {
+ LOG(ALERT) << "Failed to initialize transceiver";
+ }
/*
signalVector *gsmPulse = generateGSMPulse(2,1);