laforge
/
openbts-osmo
Archived
1
0
Fork 0
Commit Graph

211 Commits

Author SHA1 Message Date
Alexander Chemeris f24e148432 Fix a bug with Timeval difference calculation on 64-bit Linux.
Subtracting uint32_t from uin32_t gives you uint32_t. And assigning result to a long doesn't make it a signed value, because on 64-bit Linux long is 64 bits.

(cherry picked from commit 82dd78d698)
2010-12-21 17:38:21 +03:00
Alexander Chemeris fc81223045 Fix a bunch of typos.
(cherry picked from commits 2da5a28a07, 6cddd36139. 7852c1e572abbc9fee2548a58e377cfbb3eff46d, f85d5b3f528ba19c598cbe77bad2566920bf9dd4, 0f8766a506f25118f732cca10fe44a1c9a0ace6a, 26adfe2d158e6a80d50b4e247c1539b5a07add9f)
2010-12-21 16:58:05 +03:00
Thomas Tsou b7bf610484 Merge branch 'master' of git://openbts.git.sourceforge.net/gitroot/openbts/openbts
* 'master' of git://openbts.git.sourceforge.net/gitroot/openbts/openbts:
  gsm: Remove obsolete PCAP stuff from gsmtap.h
  gsm: Update and enhance the GSM Tap functionality
  gsm: Add same ARFCN()/typeAndOffset() accessors to L1Decoder than L1Encoder
  gsm: Save time of received frame for later use in XCCHL1Decoder
  gsm: Create more precise TypeAndOffset cste for BCCH/CCCH
  transceiver: Fix misusage of ~ in bitfields
  misc: Add a proper .gitignore file
  build: Fix Transceiver/Makefile.am to use AM_CXXFLAGS instead of CXX_FLAGS
  build: Remove all files autogenerated by autoreconf

Fix trivial conflict:
	public-trunk/Transceiver/Makefile.am
2010-12-08 12:18:39 -05:00
Sylvain Munaut 647a207bde gsm: Remove obsolete PCAP stuff from gsmtap.h
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01 00:46:02 +01:00
Sylvain Munaut e6d5057d5d gsm: Update and enhance the GSM Tap functionality
* switch to the new format
* add uplink frame dump as well
* fill more fields than before (not fully complete yet tough)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01 00:46:02 +01:00
Sylvain Munaut b6b3f6ace1 gsm: Add same ARFCN()/typeAndOffset() accessors to L1Decoder than L1Encoder
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01 00:00:18 +01:00
Sylvain Munaut 3c7ad29fa8 gsm: Save time of received frame for later use in XCCHL1Decoder
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01 00:00:18 +01:00
Sylvain Munaut 908bc39f5f gsm: Create more precise TypeAndOffset cste for BCCH/CCCH
Very useful to know in L1 what burst/encoder/fec are related to.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01 00:00:18 +01:00
Sylvain Munaut a8834fde88 transceiver: Fix misusage of ~ in bitfields
Somehow it seems the author tought using ~ would set that bit to 0. But
it invert all bits and as such set all others to '1'.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01 00:00:18 +01:00
Sylvain Munaut d82d8b9496 misc: Add a proper .gitignore file
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01 00:00:18 +01:00
Sylvain Munaut 1a861cad9b build: Fix Transceiver/Makefile.am to use AM_CXXFLAGS instead of CXX_FLAGS
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01 00:00:18 +01:00
Sylvain Munaut 50006e364d build: Remove all files autogenerated by autoreconf
Best practice is to not include those in repositories but only
in tar.gz dist tarball.

autoreconf -i will regenerate them

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-30 23:58:50 +01:00
Thomas Tsou 2ce9041742 uhd: update to change in uhd metadata interface
Fixes the following build error.

UHDDevice.cpp:462: error: ‘EVENT_CODE_SUCCESS’ is not a member of ‘uhd::async_metadata_t’
UHDDevice.cpp:507: error: ‘EVENT_CODE_SUCCESS’ is not a member of ‘uhd::async_metadata_t’

Reported-by: Dirk Kirsten <Dirk.Kirsten@uni-konstanz.de>
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-27 18:43:18 -05:00
Thomas Tsou 6e55e19418 uhd: add missing return in device open
Fixes a compile warning; returns true if all is goes well.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-27 17:58:00 -05:00
Thomas Tsou e9010cb9a0 uhd: fix potential buffer overrun
Fix a bug that might allow a sample buffer write to go a sample too far.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-27 17:57:06 -05:00
Thomas Tsou aaf378a111 uhd: update to new uhd range api
Fixes the following that occurs with recent uhd changes.

UHDDevice.cpp:260: error: ‘struct uhd::gain_range_t’ has no member named ‘max’
UHDDevice.cpp:260: error: ‘struct uhd::gain_range_t’ has no member named ‘min’

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-17 01:45:01 -05:00
Thomas Tsou 589dd9091e uhd: increase initial transmit latency and disable adaptive control
The underrun behaviour of the USRP2 is different from the USRP1, and
the adaptive latency mechanism is not directly transferable. Instead,
fix the latency with a higher starting value, which effectively
buffers more samples on the host in front of the Ethernet interface.

An alternative may be to use the adaptive approach with USRP2
specific upper and lower bounds. For now, just use preprocessor
directives until a better solution comes around.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-17 01:44:51 -05:00
Thomas Tsou af2ded3b01 uhd: remove I/Q swap from radio interface
There should be a better way to do this. Only the USRP1 option
in non-loopback mode needs the swap.

UHD   & !SWLOOPBACK: FLIP_IQ = 0
UHD   &  SWLOOPBACK: FLIP_IQ = 0
USRP1 & !SWLOOPBACK: FLIP_IQ = 1
USRP1 &  SWLOOPBACK: FLIP_IQ = 0

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-17 01:44:44 -05:00
Thomas Tsou fb852969db uhd: add conditional build support
Transceiver can be built with UHD by specifiying the --with-uhd
option. Fractional sample rates are not supported by the USRP2
so Transceiver52M is not built.

Otherwise, the default GNU Radio USRP1 implementation is used.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-17 01:44:38 -05:00
Thomas Tsou 2735b806dd uhd: add uhd device implementation
This patch adds USRP2 device support and future support for
other UHD based devices. On receive, a sample buffer class,
which is indexable by timestamps, is used to temporarily
hold data until the requested samples are available.

On transmit, samples are sent immediately unless sample
alignment is known to be off - during startup or after the
occurrence of underruns or other errors. To regain
synchronization at these moments, timestamps are compared
against the current device time and dropped unless there
exists significant delay margin to physically arrive at the
device before deadline.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-17 01:44:16 -05:00
Thomas Tsou ce33adf422 uhd: exit on device open failure
If the device doesn't open, there's no reason to continue. Shut down
so the process doesn't linger.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-16 22:11:50 -05:00
Thomas Tsou 9c091dc7a9 uhd: separate USRPDevice and create virtual device interface
Move essential interface components into an abstract Device class
and create a factory method for instantiating compile-time
specified derived types (USRP1 or UHD).

The radioInterface has a device specific type conversion call to
the USRP1 driver, so push that behind the Device interface too.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
2010-11-16 22:11:50 -05:00
Alexander Chemeris 62a2d77ccc Better code for MOUSSDController(). 2010-11-01 14:57:22 +03:00
Alexander Chemeris ce66ecb51d Some more changes. 2010-11-01 14:57:22 +03:00
Alexander Chemeris 94523e388a USSD SIP handler initial implementation.
It works for basic requests, but needs more tsting for timeouts and other exceptional cases.
2010-11-01 14:57:22 +03:00
Alexander Chemeris bf4c962d41 Implement another flavor of TransactionTable::find() with mobile ID and service type. 2010-11-01 14:57:22 +03:00
Alexander Chemeris aeedcc50b6 Print USSDData pointer when printing TransactionEntry. 2010-11-01 14:57:22 +03:00
Alexander Chemeris a2298288fe Other USSD code beautification and fixes. 2010-11-01 14:57:22 +03:00
Alexander Chemeris 9f707665ba Better result reporting for waitUSSDData() and postUSSDData(). 2010-11-01 14:57:22 +03:00
Alexander Chemeris 9c542926ac Always initialize mUSSDData in a transaction. 2010-11-01 14:57:22 +03:00
Alexander Chemeris c288b250b6 Remove second USSDHandler constructor. 2010-11-01 14:57:22 +03:00
Alexander Chemeris 00b1810997 Store mobile IMSI instead of TMSI in MOUSSD transaction. 2010-11-01 14:57:22 +03:00
Alexander Chemeris e8ffcdb72f Update SIP interface to support SIP MESSAGEs for USSD. 2010-11-01 14:57:22 +03:00
Alexander Chemeris 77d380565b Send correct text string with USSD release message. 2010-11-01 14:57:22 +03:00
Alexander Chemeris 86b066da63 Fix comments typos and code formating. 2010-11-01 14:57:22 +03:00
Alexander Chemeris 7ae0243308 Implement USSD short code in smqueue for testing purposes. 2010-11-01 14:57:22 +03:00
Alexander Chemeris 7d9b0497bc Added MO-USSD handlers map to config.
Now you can configure which request will go to which handler.
2010-11-01 14:57:22 +03:00
Alexander Chemeris 58821a8f74 Add comments anf better formating to USSDHandler::postUSSDData(). 2010-11-01 14:57:21 +03:00
Alexander Chemeris dd366df4f4 BUGFIX: Forgotten parentheses in USSDHandler::postUSSDData(). 2010-11-01 14:57:21 +03:00
Alexander Chemeris 7f5fbdb906 Create a constant for max USSD message length and make continuation string configurable. 2010-11-01 14:57:21 +03:00
Alexander Chemeris b39dc1bc78 Fix license header in USSD-specific files to AGPLv3. 2010-11-01 14:57:21 +03:00
Alexander Chemeris 216ade372c Merge 'achemeris/pending' into 'USSD' 2010-11-01 14:29:14 +03:00
Alexander Chemeris bac46e3b7d Better documentation and error reporting for ThreadSemaphore. 2010-09-29 10:48:25 +04:00
Alexander Chemeris 6cddd36139 Typos in comments fixed. 2010-09-29 10:47:29 +04:00
Alexander Chemeris d712b09cdd Fix compiler warning about char* and constant strings. 2010-09-29 10:29:55 +04:00
Alexander Chemeris d0b797e62c Don't put real code into assert().
If you compile with optimization and NDEBUG is defined, then the whole assert() is replaced with ((void) 0) and your code is not executed at all.
2010-09-29 10:29:26 +04:00
Alexander Chemeris 82dd78d698 Fix a bug with Timeval difference calculation on 64-bit Linux.
Subtracting uint32_t from uin32_t gives you uint32_t. And assigning result to a long doesn't make it a signed value, because on 64-bit Linux long is 64 bits.
2010-08-24 21:03:13 +04:00
Alexander Chemeris e139404884 Implementation of Semaphore. 2010-08-18 22:52:33 +04:00
Alexander Chemeris 2da5a28a07 Typos in comments and debug logs fixed. 2010-08-18 21:59:08 +04:00
Alexander Chemeris ae0def5cc7 Implemented "trans" CLI command to list all active transacions. 2010-08-18 21:59:07 +04:00