416 Commits

Author SHA1 Message Date
Harvind Samra
8a8c1bc33a Power attenuation argument should be in dB, not a linear value.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3126 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-30 23:50:02 +00:00
Kurtis Heimerl
286eec5e07 handling GPRS suspension requests
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3124 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-30 00:16:56 +00:00
Harvind Samra
c5cc69e793 Missing include.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3095 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-24 21:15:39 +00:00
Harvind Samra
09bfdd4d41 Incorporate external gConfig object.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3094 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-24 21:11:44 +00:00
Harvind Samra
da3d5e8055 Make VCTCXO truly configurable from config file. Previously hard-coded.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3093 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-24 20:54:19 +00:00
Kurtis Heimerl
270d7627d6 Fixes #666, Missing SubscriberRegistry.Port in example config
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3092 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-24 20:53:10 +00:00
Kurtis Heimerl
34fd50b0f6 Small stuff I forgot to reset.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3050 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-17 08:31:15 +00:00
Kurtis Heimerl
f364c01bc4 David's suggestions to the RRLP stuff. Tested and working.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3049 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-17 08:31:11 +00:00
Kurtis Heimerl
f02bdb14e3 RRLP Additions: New config fields enable RRLP messages before mobile terminated calls and SMS.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3048 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-17 08:31:06 +00:00
Kurtis Heimerl
6dd0e7c1fc Fixes #501 in the public release.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3037 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-12 08:13:03 +00:00
Kurtis Heimerl
cb2ea1b55b Fixes #34 in public release. We now have different states for the MTDCanceling and canceled calls now end in a canceled state. Also a few other hardening bug fixes.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3018 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-10 22:57:53 +00:00
Thomas Tsou
b10465449b transceiver, uhd: alert user on unrecoverable errors
Unrecoverable device errors include send and receive
timeouts and mangled packets. Other device errors, such
as non-monotonic timestamps are sometimes recoverable
through a soft restart.

These fatal are generally limited to development
versions of UHD driver or device firmware, but can occur
in release versions.

Alert user on such device errors along with current UHD
version.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3012 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-09 18:11:34 +00:00
Kurtis Heimerl
f98838c76a Fixed Bug #172, OpenBTS now sends CANCEL messages when there is no active call (instead of BYE)
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3006 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-09 01:01:12 +00:00
Kurtis Heimerl
fcbedbb000 Small typo fix
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2996 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-07 09:41:27 +00:00
Kurtis Heimerl
a2fa801062 Bug #173-public. Now appropriately responds to a SIP CANCEL with a SIP OK. Still won't respond if that OK is dropped.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2995 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-07 09:41:24 +00:00
Kurtis Heimerl
8ba4a6a7ae bug #238-private. OpenBTS segfaults when receving an empty SMS destined to go out as text/plain. It no longer segfaults, but does not successfully send the message.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2969 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-05 02:25:08 +00:00
Thomas Tsou
e15178ef3a transceiver, uhd: add check for uhd version requirement
The UHD property tree used for device identification only
exists in the 003.002.000 and newer API.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2949 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-03 20:38:19 +00:00
Kurtis Heimerl
54e663c127 Locking gethostbyname call, as Alexander notes that it is not thread safe
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2865 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-24 02:53:10 +00:00
Kurtis Heimerl
725cff522e Reverted bad function header. There are no timing inversion deadlocks, I made those up.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2836 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-17 00:05:31 +00:00
Kurtis Heimerl
27a8acc789 Alexander's change. Fixes MTC bug by supporting 64bit processors in Timeval. Math was bad.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2835 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-17 00:03:24 +00:00
Kurtis Heimerl
cb51d6b0b2 more documentation
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2823 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-15 06:30:52 +00:00
Kurtis Heimerl
150ab7edde Fixing Thomas's MTC receive bug. We don't have a ticket for it, but there seemed to be a timing inversion deadlock in Interthread.h. We mostly duck it, instead of solving it.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2822 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-15 06:23:39 +00:00
Kurtis Heimerl
82da24cd30 Matching UHD changes in gnuradio
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2817 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-15 00:50:16 +00:00
Harvind Samra
89f86e44cb Fix stack overflow bug that was killing transceiver.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2816 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-14 23:48:53 +00:00
Kurtis Heimerl
bbb06804db Fixed the GSMTAP layer, it's correctly generating packets now.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2784 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-09 22:15:21 +00:00
Kurtis Heimerl
2b163f33fe Changed the RRLP test scripts to use the default Ubuntu/Apache cgi-bin locatons.
Changed the RRLP test scripts to provide instructions on their use. 

Changed the RRLP test scripts and OpenBTS default SQL to use Sather Tower as the default location for RRLP traffic.

Remove the sendrrlp command from the OpenBTS CLI



git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2744 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-06 00:53:30 +00:00
Kurtis Heimerl
a456e9d968 transceiver52M: bump critial errors to ALERT level
Device errors regarding properties such as sample
rate or frequency tuning are almost always fatal and
lead to the common error "assuming TRX is dead".
Make sure that these errors are clearly presented to
the user.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2700 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-28 06:26:08 +00:00
Kurtis Heimerl
847b05e885 transceiver, uhd: exit informatively if no devices are found
Perform a UHD device search before constructing the object,
and inform the user if no device is found.

No device found is the most common reason for the transceiver
to fail with the dreaded error "assuming TRX is dead".

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2699 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-28 06:26:04 +00:00
Kurtis Heimerl
8b45fb52ef transceiver, uhd: reject usrp1 if compiled with uhd support
This configuration is invalid because of FPGA based timestamp
support for the USRP1 in the UHD driver.

Kindly inform the user to recompile with libusrp support from
GNU Radio.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2698 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-28 06:26:01 +00:00
Kurtis Heimerl
224f125cb9 transceiver, uhd: runtime check for setting master clock rate
Before setting the master clock rate, make sure that the
device is capable of being set. For now, assume that devices
that operate with default clock rates above 64 MHz,
specifically USRP2/N200/N210, cannot be set at 52 MHz.

Inform the user that these devices can be used with the
compile time option of host based resampling.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2697 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-28 06:25:58 +00:00
Kurtis Heimerl
827b4fdfac Woops, typo
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2693 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:38:45 +00:00
Kurtis Heimerl
3afb9ecd93 changing config scripts to explitly target UHD/USRP1
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2692 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:36 +00:00
Kurtis Heimerl
a0aa6c9206 transceiver, resamp: enlarge transmit resampler output buffer
It was possible to reach a state where a resampled burst would
overrun the transmit output buffer and corrupt the global
allocated signal vectors. The result was a segmentation fault
when attempting to access heap allocated signal vectors since
the pointers were garbage.

Whether the segfault occured or not appears to depend on the
memory location of the signal vector pointers, since it does
not occur on all systems.

Double buffer size to accomodate an incoming burst plus up to
a full chunk that may be remaining from the previous resampling
operation.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2691 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:33 +00:00
Kurtis Heimerl
bfe288e32e transceiver: enable USRP1 firmware binary install
Not sure why this functionality is commented out.

Make install places the FPGA firmware image in:

  /usr/local/share/usrp/rev2/
  /usr/local/share/usrp/rev4/

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2690 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:31 +00:00
Kurtis Heimerl
3cec3eee0a transceiver, resamp: insert missing filter values
With transceiver integration, the resampling filter files were
dropped. This created a working resampling implementation for
the USRP2 / N200, but with spectrum irregulaties that likely
caused issues at longer range operation. Simply reinsert the
filter files and modify the filter initialization to use them.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2689 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:28 +00:00
Kurtis Heimerl
54651390a3 transceiver: uhd: increase log level on constructor errors
Exceptions on make are major no-start conditions. Make these
errors more apparent.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2688 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:25 +00:00
Kurtis Heimerl
1c6d6b90ba transceiver: usrp1: select single dboard use at compile time
The following option selects single daughterboard use on
side A only. Otherwise, the default setting is TX on A and
Rx on B.

  ./configure --with-singledb

Other options are possible, as per the following enum, but
for simplicity with configure options, there are only two
choices.

  enum dboardConfigType {
    TXA_RXB,
    TXB_RXA,
    TXA_RXA,
    TXB_RXB
  };

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2687 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:22 +00:00
Kurtis Heimerl
b9b7d7aff5 transceiver: uhd: make external reference a compile time option
External reference selection was already compile-time
determined by a hard coded value. Make it selectable
as a configure option.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2686 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:19 +00:00
Kurtis Heimerl
cafe8d5805 uhd: increase initial transmit transport latency
For network based devices (USRP2, N200, etc.), increase the
latency from 2 to 3 frames, which effectively buffers more
samples on the host in front of the Ethernet interface.

USB devices (USRP1 and B100) utilize an adaptive mechanism
so they are less effected by this value.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2685 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:16 +00:00
Kurtis Heimerl
265034e182 transceiver: update main to non-device specific interface
The low-level RadioDevice interface is agnostic to libusrp
or uhd based devices. 'make' allocates and returns a
pointer to a generic RadioDevice implemented for whatever
class of device determined at compile time.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2684 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:13 +00:00
Kurtis Heimerl
c639bffd06 transceiver: update to log messages to work with P2.8
Log level changes in P2.8:

    ERROR     -> ERR
    WARN      -> WARNING
    DEEPDEBUG -> DEBUG

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2683 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:11 +00:00
Kurtis Heimerl
d3204f7673 build: whitespace warning fix
Fixes the following:

Makefile.am:49: whitespace following trailing backslash

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2682 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:08 +00:00
Kurtis Heimerl
98621b28c7 build: insert autofoo for usrp transceiver and options
Usage:

  ./configure --with-usrp1

  Enable non-UHD USRP1 support through the gnuradio-based
  driver. Requires gnuradio (libusrp) to be installed.

 ./configure --with-resample

  Enable host-based 400ksps to 270.833ksps resampling.
  Only supported for UHD devices. If not enabled, the GSM
  sample rate is requested directly from the device.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2681 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:05 +00:00
Kurtis Heimerl
fc2d75d75e build: insert makefile specifier for 52M transceiver
Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2680 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:03 +00:00
Kurtis Heimerl
b332fd693a transceiver: add a newline for uhd information outputs
Minor change to clarify the logging output.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2679 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:00 +00:00
Kurtis Heimerl
0f6d4c45fd transceiver: reject usrp1 if detected using uhd
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2678 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:18:57 +00:00
Kurtis Heimerl
8c5ccbf25f transceiver: make the transmit drive loop bus dependent
With the introduction of the B100, there is USB support
using UHD devices. The characteristics of the trasmit
side burst submissions are more reflective of the bus
type than the device or driver.

Use a fixed latency interval for network devices and the
adaptive underrun approach for USB devices - regardless
of driver or device type.

The GPMC based transport on the E100 appears unaffected
by either latency scheme, which defaults to network.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2677 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:18:55 +00:00
Kurtis Heimerl
c36a14967a transceiver: reroute uhd messages to logging facility
Pipe the following uhd message types to standard warning
levels (INFO, WARN, ERROR) respectively. Ignore fastpath
logging messages and, instead, catch them from the
asynchronous device interface.

    enum type_t{
        status  = 's',
        warning = 'w',
        error   = 'e',
        fastpath= 'f'
    };

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2676 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:18:51 +00:00
Kurtis Heimerl
71e2c411ee transceiver: clean variable init of radio interface constructor
Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2675 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:18:49 +00:00
Kurtis Heimerl
53fa4b93c6 transceiver: move various radio interface definitions
Move them out of the interface file - primarily for
readability.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2674 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:18:46 +00:00