aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-07-11radioInterface: HACK: placeholder for the diversity switching logic.achemeris/diversityAlexander Chemeris3-0/+50
2015-07-11UHD: DEBUG: More debug output.Alexander Chemeris1-6/+13
2015-07-11UHD: HACK: diversity switch control function.Alexander Chemeris2-0/+32
2015-07-11UHD: Implement getting current device timestamp.Alexander Chemeris2-2/+7
2015-07-11Transceiver: FIx whitespaces.Alexander Chemeris1-4/+4
2015-07-11Transceiver: Add chan number to the debug output of received bursts.Alexander Chemeris1-0/+1
2015-07-11GSM: Fix whitespaces.Alexander Chemeris1-4/+4
2015-07-11GSM: Make decTN()/incTN() to work with more than one frame adjustment.Alexander Chemeris1-4/+2
2015-06-30Transcever:hack: Support second independent channel by adding CLK socket to ↵achemeris/2sectorAlexander Chemeris2-8/+13
the second channel.
2015-06-22uhd: Output Rx/Tx gain limits to log to make it more transparent.Alexander Chemeris1-4/+10
Conflicts: Transceiver52M/UHDDevice.cpp
2015-06-22Logger: Output ERR log messages to stderr as well.Alexander Chemeris1-1/+1
2015-06-20Transceiver: Add support for OsmoBTS style handover.Alexander Chemeris2-4/+47
2015-06-20Transceiver: Fix whitespace.Alexander Chemeris1-2/+2
2015-06-20uhd: Fix UmTRX tuning broken in commit 90f7a01d.Alexander Chemeris1-1/+2
Commit 90f7a01d lost "return" statement. We also should account the fact that offset can be negative. We should return the tuning request immediately after
2015-06-12transceiver: Add a debug option to dump selected timeslots to disk.Alexander Chemeris2-1/+27
2015-06-10Transceiver: Do not update state->SNRestimate if equalization is disabled.Alexander Chemeris1-4/+4
This also fix a bug of using bool type for noise instead of float.
2015-06-10uhd: Fix rounding error in timestamp conversion functions.Alexander Chemeris1-2/+14
Rounding error introduced oscilating timing advance error by regularly overwriting one bit and then skipping one bit. This commit also adds an error message to show up in logs if this ever happens again.
2015-06-10sigProcLib: Abstract out common part of Normal/RACH burst detection.Alexander Chemeris3-82/+65
As a side change - get rid of passing toa and amp arguments as pointers and use references instead. The commit doesn't change behaviour, but makes the code cleaner.
2015-06-10Checking in clockdump.sh utility.Alexander Chemeris1-0/+3
2015-06-10Checking in a more relevant README.Alexander Chemeris1-135/+83
This READMY is from the OpenBTS's TRXManager and actually describes the transceiver API and behavior.
2015-06-10Transceiver: Update noise level only when the timeslot is marked as IDLE.Alexander Chemeris2-16/+32
We can't rely on an assumption that if we can't decode a burst - it's noise. There are many rasons why we can't decode a burst even if it's well above the noise level. Just one example is a RACH burst which can be overlapped with another RACH burst up to a level both are completely unrecognizable. Another example is when a burst is destroyed by bad multi-path.
2015-06-07transceiver: Remove noise/RSSI gating.Alexander Chemeris1-2/+1
It does more harm than good. the current noise calculation is too error prone, so we can't trust it. And we end up loosing perfectly good bursts because of that.
2015-06-07osmo-trx: Add an option to swap channels on UmTRX.Alexander Chemeris5-9/+16
2015-06-05sigProcLib: Check for bogus TOA before using it.Alexander Chemeris1-2/+2
2015-06-05Transceiver: Fix clipping detection.Alexander Chemeris3-36/+55
There are two primary changes in this commit: 1) Return values of detect functions changed form bool to int to actually pass the return value from the inner function and notify higher levels about clipping. Previously the information was lost due to conversion to bool. 2) Clipping level is not the final verdict now. We still try to demod a burst and mark it as clipped only if the level is above the clipping level AND we can't demod it. The reasoning for this is that in real life we want to do as much as possible to demod the burst, because we want to get as much from our dynamic range as possible. So a little bit of clipping is fine and is expected. We just don't want too much of it to break our demod.
2015-06-05Transceiver: Print noise level for each burst in debug mode.Alexander Chemeris2-10/+14
2015-06-04osmo-trx: Add a command line option for the dBFS to dBm offset.Alexander Chemeris3-28/+46
2015-06-04Common: Use a scoped lock in the Logger to avoid deadlock on thread cancel.Alexander Chemeris1-2/+1
2015-06-01sigProcLib: Fix burst start phase.Alexander Chemeris1-1/+1
R&S CMD57 complains about the start phase of bursts, particularly it shows -15 to -30 deg of error for the bit 0.5 position (start tail bit). This patch makes it happy. ETSI TS 145 004 section 2.2 describes this: "Before the first bit of the bursts as defined in 3GPP TS 45.002 enters the modulator, the modulator has an internal state as if a modulating bit stream consisting of consecutive ones (di = 1) had entered the differential encoder." Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-06-01transceiver: Drive clock indication form the receive thread.Alexander Chemeris1-10/+5
Receive thread receives data from the device, which is a more stable source of clocking than the transmit side. If transmit side has a hiccup, osmo-trx doesn't send the clock indication, and transmit side is getting completely lost in time. With this patch we ensure that clock indication keeps coming. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-06-01transceiver: Fix out-of-bounds acces in genRandNormalBurst().Alexander Chemeris1-2/+2
We should read gTrainingSequence starting from 0 bit index, not 61 bit index. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-05-24osmo-trx: Fix random filler command line option.Alexander Chemeris2-3/+13
Filler types was of "bool" type, which prevented it from taking values greter than 1. And RAND filler type has integer value of 2, which was casted to 1 on assigning, which led to a normal filler table being used instead of the RAND one.
2015-05-24Common: Log to console instead of loging to syslog by default.Alexander Chemeris1-2/+2
2015-05-24Common: Introduce a global variable to disable syslog logging.Alexander Chemeris2-8/+11
When we enable DEBUG logging level, syslog gets Gb's of data and can completely exhaust the file system free space. Now we can just enable it. This is not to say that logging to syslog it just not very useful in general.
2015-05-24Transceiver52M: Change POWERON behavior to return success if the transceiver ↵Ivan Kluchnikov1-1/+1
is already running, and only return fail on device failure
2015-05-20Transceiver: Check TSC values to be in [0..7] range.Alexander Chemeris1-3/+3
Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-05-20Transceiver: Make error response to an unknown command on UDP command ↵Alexander Chemeris1-0/+1
interface more understandable. Previously we just repeated the last response which could confuse a command sender. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-05-19test: Add command line random normal burst optionTom Tsou3-100/+164
2015-05-18uhd: Pass UHD command line arguments to constructorTom Tsou1-2/+2
Previous behaviour used UHD command line args string for device search, but did not apply the values to the device constructor. Now use the user passed args string for both find and device construction. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-05-18umtrx: Don't use DSP tuning, because LMS6002D PLL steps are small enough.Alexander Chemeris1-1/+13
We end up with DSP tuning just for 2-3Hz, which is meaningless and only distort the signal. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-05-18uhd: Set RF frontend bandwidth for UmTRX to improve signal quality.Alexander Chemeris1-0/+10
Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-05-18UmTRX: Manually set Tx gain stages for the best signal quality.Alexander Chemeris1-4/+41
New UHD versions support split configuration of Tx gain stages. We utilize this to set the gain configuration, optimal for the Tx signal quality. From our measurements, VGA1 must be 18dB plus-minus one and VGA2 is the best when 23dB or lower. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-05-18build: Provide option for disabling SSE autodetectionTom Tsou1-1/+8
Setup '--with-sse' option to check system capabilities by default, but allow disabling by the user. Selective SSE build options can be controlled by the user by defining specific HAVE_SSE options. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-05-18sigproc: Add clipping detection on RACH and TSC inputTom Tsou3-6/+43
Alert user of overdriven burst input indicated by a positive threshold detector result. This indication serves as notification that the receive RF gain level is too high for the configured transceiver setup. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-05-18uhd: Use full DAC scale with UmTRX to improve signal quality.Alexander Chemeris1-3/+17
Signed-off-by: Tom Tsou <tom@tsou.cc>
2015-05-18build: Add 'subdir-objects' to AM_INIT_AUTOMAKETom Tsou1-1/+1
This will shutup automake and make it stop complaining about the following subdirectory warnings. "warning: source file 'common/fft.c' is in a subdirectory, but option 'subdir-objects' is disabled" Signed-off-by: Tom Tsou <tom@tsou.cc>
2015-05-07radioInterface: Reset sample buffer cursors on each startTom Tsou1-0/+3
Non-zero buffer indices may lead to uplink/downlink timing offset during repeated start/stop cycles. Mainly affects USRP2 and other resampled devices that rely on the buffer to absorb sample block sizes that are not multiples of the burst size. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-01-19usrp1: Update device API for frequency offset tuningTom Tsou1-1/+1
Commit 8e17df7374367d57 "Add option for baseband frequency offset", modified the base device API to allow for RF tuning, which was never updated for the USRP1. Update the implementation to match the API, however, note actual offset in the USRP1 remains unsupported. Signed-off-by: Tom Tsou <tom@tsou.cc>
2014-12-15b210: Lock dual-channel tuning accessTom Tsou1-0/+3
Frequency tuning is a multi-step process with RF and DDC/DUC protoimns that can be corrupted if both channels attempt to tune at the same time. Signed-off-by: Tom Tsou <tom@tsou.cc>
2014-12-15Transceiver52M: Add X300/X310 and E310 USRP supportTom Tsou1-13/+38
Treat X300 similar to N200 and resample with 100 MHz base clocking, which provides some amount of oversampling for reduced phase error compared to the 1 sample per symbol receiver. Treat E310 similar to 13 MHz rate devices for the lowest computational use. Signed-off-by: Tom Tsou <tom@tsou.cc>