Commit Graph

128 Commits

Author SHA1 Message Date
Harald Welte 2b98363868 avoid memory leaks in gsmtap error paths
Change-Id: I39295fe768908357d0c359a7ae4fb9fca00d69c3
Related: OS#5329
2021-11-25 14:59:01 +01:00
Harald Welte 8a1441e723 configure.ac: introduce --enable-werror and --enable-sanitize
... just like in other osmocom projects

Change-Id: Ic5ad4096031ccf9c6223df624d0fafc24d4bfc94
2021-11-25 14:57:21 +01:00
Sylvain Munaut f5bdb26c94 utils: Import some utilities to actually receive and process signals
This includes an utility to easily identify what ARFCNs are visible in
a given capture made by osmocom_fft and a utility to do live captures
using GNURadio.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut 90526bca2e gmr1_rx: FCCH SNR computation improvement
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut 8d51afb939 sdr/fcch: Improve the FCCH SNR evaluation function
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut 9eb01d12b1 sdr/pix4cxpsk: Improve frequency error estimation/tolerance
- Combine power of correlation chunks rather than the complex value
   (since for long burts, the chunks might have quite a bit of
    phase error and this throws off alignement)

 - Use difference of phase between consecutive chunks and not wrt
   to the first chunks since it might drift more than pi.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut 9ebb5aca34 l1/xch_dc12: Add channel coding for various channel types over DC12 bursts
Used in GMR-1 3G

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut ccf3609ee5 l1/punct: Add all puncturing codes used in GMR-1 3G
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut f176495e0d l1/conv: Add all convolutional codes used in GMR-1 3G
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut d573f62005 sdr/nb: Add DC12 burst definition used in GMR-1 3G
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut aa207a8cc7 sdr/pi4cxpsk: Add support for pi/2-CBPSK
The rotation is not always pi/4 now.
Ideally everything should get renamed but that's a big diff and
will be done later.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut 207b9edd57 sdr/fcch: Add support for FCCH3 used in GMR-1 3G
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Sylvain Munaut 3706e9729a General copyright notice update
find . -name \*.c -exec sed -i -e "s/(C) [0-9\-]*/(C) 2011-2019/g" {} \;
find . -name \*.h -exec sed -i -e "s/(C) [0-9\-]*/(C) 2011-2019/g" {} \;

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-31 08:15:37 +02:00
Harald Welte adb8cc6aa9 Add contrib/jenkins.sh script, like other osmo-* repositories
This simplifies our jenkins setup and uses shared scripts from
osmo-ci.git

Change-Id: I025c4ed919bdfa98914f8161d361fb7c92088e95
2017-11-14 14:17:27 +09:00
Holger Hans Peter Freyther e156c5fee5 doxygen: Attempt to fix make distcheck on Debian 8.0
ERROR: files left in build directory after distclean:
./doc/doxygen_sqlite3.db
Makefile:756: recipe for target 'distcleancheck' failed
make[1]: *** [distcleancheck] Error 1
2016-08-06 22:08:54 +02:00
Sylvain Munaut 1ee9f4dc63 Doxygen: enable tagfile generation and usage for cross-project references
We also don't remove the html/ component of the path to be consistent with
libosmocore and allow possible future installation of pdf/latex/...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-04-25 10:00:23 +02:00
Sylvain Munaut 6a4ca30df3 Doxygen: Enable client-based search engine
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-04-25 10:00:23 +02:00
Sylvain Munaut b52837b969 Doxygen: Don't process static functions/variables
They're not documented anyway and the warnings are annoying

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-04-25 10:00:23 +02:00
Sylvain Munaut 23d198e18d l1/{bcch,ccch}: Minor doc fixes
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-03-08 14:54:50 +01:00
Sylvain Munaut ab9a26c04a codec: Make sure to use float and not double
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-03-08 14:54:50 +01:00
Sylvain Munaut 56392c0f1c codec: Fix comments in tone code
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-03-08 14:54:50 +01:00
Sylvain Munaut ef55d28479 sdr/dkab: Fix softbit extraction
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-04-05 10:08:35 +02:00
Sylvain Munaut ab449343f9 misc: Add an utility to modulate a RACH burst
The output is only 1sps and needs to be filtered by an RRC filter (0.35)
before transmission.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-04-04 13:54:30 +02:00
Sylvain Munaut a23f3d3243 sdr/pi4cxpsk: Add a method for modulation of pi/4 CxPSK bursts
This currently only supports 1sps. To upconvert, it should be
convoluted with a RRC filter.

It required adding a second table of symbol in the modulation
type where the entries are sorted by the 'bits' value rather
than the symbol number.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-04-04 13:54:30 +02:00
Sylvain Munaut 5334182d5a l1/rach: Fix the gmr1_rach_encode function
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-04-04 13:54:30 +02:00
Sylvain Munaut d4aba57dc3 l1/rach: Clear up the unused bits in gmr1_rach_decode return array
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-04-04 13:54:30 +02:00
Sylvain Munaut 810984f26f utils: Remove old unmaintained gmr_multi_rx
This is 3.6 and from another time. Remove it all together for the
time being.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-02-08 15:09:13 +01:00
Sylvain Munaut 43498b223e build: Use LDADD to link apps to libraries instead of LDFLAGS
This way we can control that they're in the appropriate order since
some linkers are pretty picky.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-12-19 09:49:57 +01:00
Sylvain Munaut ebe29d3235 build: Add src/codec/private.h to noinst_HEADERS to fix build
Thanks to Holger for pointing this out ... I should have checked
jenkins after the last push.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-05 10:57:54 +02:00
Sylvain Munaut 3cec874ad2 build: simplify Doxygen output installation and fix it for distcheck
This is equivalent to commit c8b45495ec8192202573361c58a7d52434c6106d
in libosmo-dsp

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-05 10:57:03 +02:00
Sylvain Munaut 1654db12d7 build: Add .version to EXTRA_DIST
This fixes make distcheck and this is equivalent to what we did
in libosmocore commit e28bc6876d127e1165dc7ad2ea96b585a1161ec6

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-05 10:55:58 +02:00
Sylvain Munaut e71e7d7b45 codec: Add the spectral magnitude enhancement
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-04 02:12:13 +02:00
Sylvain Munaut 558eba815b codec: Synthesis rewrite [2/2] - New synthesizer code
This is a complete rewrite based on the doc (but adapting for 80
samples subframes) and also looking at the OP25 code.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-04 02:12:13 +02:00
Sylvain Munaut 98c6a10fb6 codec: Synthesis rewrite [1/2] - Remove mbelib
This obvisouly break synthesis for now, but it's easier to understand
the change in a two step commit.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-04 02:12:13 +02:00
Sylvain Munaut b43654feff codec: ambe_frame_decode_params has no return values
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-04 02:12:13 +02:00
Sylvain Munaut e1a3c68980 codec/math: Whitespace fix
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-04 02:12:13 +02:00
Sylvain Munaut 369d789c22 codec/math: Import new function fo DWT float<->complex
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-04 02:12:13 +02:00
Sylvain Munaut 5c817d5515 codec/math: Add a sinf_fast function
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-10-03 14:56:24 +02:00
Sylvain Munaut 9adbe10542 codec: Remove extern
It's not really valid C ... too bad because this breaks Doxygen

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-17 23:01:07 +01:00
Sylvain Munaut e111201024 codec: Tweak the L generation formula to match DSP implementation
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-17 22:29:04 +01:00
Sylvain Munaut 074f93ad74 codec: Documentation
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-17 18:15:43 +01:00
Sylvain Munaut df95ae699f codec: Fix tone generation
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-17 18:15:43 +01:00
Sylvain Munaut e0a41716db codec: Implement proper 10 ms subframe synthesis
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-17 18:15:43 +01:00
Sylvain Munaut 9353e7698c codec: Cleanup + Interpolate subframe 0 parameters
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-17 18:15:43 +01:00
Sylvain Munaut e8730785b3 codec: First code import
Lots of fixups still needed before merge into master

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-17 18:15:42 +01:00
Sylvain Munaut 255a32a391 doc: Fix a couple of missing documentation string
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-17 18:15:31 +01:00
Sylvain Munaut af517203d3 doc: Fox Doxygen to filter out __attribute__ from source before parsing
Turns out Doxygen doesn't like those we use the pre-processor to filter
them out (only for Doxygen)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-17 18:15:25 +01:00
Max ff628ee8ac utils/gmr_multi_rx: Fix linking on ubuntu
From: Max <max.suraev@fairwaves.ru>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-06 12:44:14 +01:00
Sylvain Munaut 4db4ba7826 sdr/pi4cxpsk: Rewrite loop logic in _gmr1_pi4cxpsk_freq_err for Coverity
Coverity seems confused because it doesn't see that this loop
is going to end exactly after 'n' iterations.

Fixes CID 1042965, CID 1042966

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-09 01:10:29 +02:00
Sylvain Munaut 4b7a86cfbf l1/facch9: Fix wrong index when clearing last upper nibble in decode
Found by Coverity (Fixes CID 1042970)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-09 01:09:03 +02:00