Commit Graph

57 Commits

Author SHA1 Message Date
Sylvain Munaut 45c84b6a4e misc: Add software to generate the G/g matrices for the FACCH3 codes
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-14 13:51:53 +01:00
Sylvain Munaut ade05aaf4d l1: Add RACH channel coding/decoding routines
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-14 11:24:52 +01:00
Sylvain Munaut 7f94db9417 l1: Do a bit of #include cleanup, make sure to include what's needed
... and not rely on someone to get it for us.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-14 10:56:29 +01:00
Sylvain Munaut a4e796324d l1/a5: Use better numerotation for LFSR bits
bit 0 == (1<<0) is feedback
bit N-1 is the highest bit.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-01 19:49:34 +01:00
Sylvain Munaut 83e63c2009 apps/gmr1_rx: Add deciphering support
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-02-01 08:05:18 +01:00
Sylvain Munaut c70e5208d5 l1/a5: Add implementation of the GMR-1 A5/1 ciphering algorithm
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-02-01 08:04:44 +01:00
Sylvain Munaut 626193583d apps/gmr1_rx: Add TCH3 channel follow
Simple "follow first TCH"

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-17 16:39:16 +01:00
Sylvain Munaut 135ce0561e sdr/pi4cxpsk: Add method to detect modulation order
Just another possible method to differentiate FACCH3 from TCH3

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-17 16:04:58 +01:00
Sylvain Munaut 010025b7c9 sdr/pi4cxpsk: Add method to detect burst type by correlating training sequences
The _gmr1_pi4cxpsk_sync_find method is modified to:
 - Return the pwr peak of the match
 - Divide the peak by the number of corr point (to scale it appropriately)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-17 16:04:58 +01:00
Sylvain Munaut 80e0aabf91 sdr/dkab: Add support for Dual Keep Alive Bursts demodulation
The actual data out of the demodulation is not tested tough since
the upper layers can't handle that yet.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-16 14:11:16 +01:00
Sylvain Munaut 240dfdf22f sdr/pi4cxpsk: Use 'float' version of carg
Data are float anyway ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-16 14:11:16 +01:00
Sylvain Munaut 2556c6d04b sdr: Fix documentation references error (to 05.003 instead of 05.004)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-16 14:11:16 +01:00
Sylvain Munaut ecceb996aa l1/tch3: Add support for TCH3 (speech) channel coding
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-15 10:12:03 +01:00
Sylvain Munaut 069fa2e094 l1/conv: Add the special tail-biting code used in TCH3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-14 23:02:53 +01:00
Sylvain Munaut 77037d37bc l1/facch3: Add support for FACCH3 channel coding
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-14 23:02:53 +01:00
Sylvain Munaut 98db75d85e l1/punct: Add method to generate the puncturing array from a gmr1_puncturer
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-14 23:02:53 +01:00
Sylvain Munaut 88ad4a48fc l1/{bcch,ccch}: Add missing doc for conv_rv parameter and return value
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-14 22:25:22 +01:00
Sylvain Munaut 330d7ce0af l1/ccch: Fix missing const qualifier on gmr1_ccch_{encode,decode}
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-14 22:25:22 +01:00
Sylvain Munaut dc50d50bb7 l1: Use constructor attribute to init the channel coders
Much more elegant than doing a manual check ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-19 21:30:20 +01:00
Sylvain Munaut 9cfb493b81 apps/gmr1_rx: Better formatting of the FN debug status line
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-19 19:26:27 +01:00
Sylvain Munaut 1e7e483ff6 apps/gmr1_rx: Fix wrong initial value for bcch_energy
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-19 19:26:27 +01:00
Sylvain Munaut 800942cd0a l1: Couple of fixes in the documentation of bcch/ccch channe coding
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-30 21:42:45 +01:00
Sylvain Munaut a145d368a1 gsmtap: Send proper FN & TN
... and adapt gsm1_rx consequently

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-30 21:32:40 +01:00
Sylvain Munaut 9d1af55983 apps/gmr1_rx: Add proper TDMA sync yielding correct frame number
This way the FN & TN are properly set.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-30 21:31:10 +01:00
Sylvain Munaut e9509fa521 apps/gmr1_rx: Add CCCH detection/processing
(only in BCCH/CCCH channels)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-19 08:35:48 +02:00
Sylvain Munaut a41f641457 l1/ccch: Add CCCH (PCH/AGCH) channel coding
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-19 08:34:25 +02:00
Sylvain Munaut 63e9d84adb sdr/fcch: Add equation for the up/down/dual chirps doc
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-19 08:31:18 +02:00
Sylvain Munaut 93848d25af l1/bcch: Add 'const' to input arguments of channel coding funcs
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-18 22:33:39 +02:00
Sylvain Munaut 8b388923e7 apps/gmr1_rx: Protect against negative alignement
In the code we have margin because of START_DISCARD, but if someone
modifies that it could cause an unexpected crash.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-17 22:04:46 +02:00
Sylvain Munaut dd331b4b31 sdr/fcch: Fix off-by-1 overflow in multi FCCH detection peak record
Thanks to steve-m for the report and the help tracing that sucker :)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-17 00:44:28 +02:00
Sylvain Munaut cbd13287b0 build: Fix link order to make Ubuntu 11.10 happy
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 21:24:32 +02:00
Sylvain Munaut 05df2ac27d apps/gmr1_rx: Fix 'wrong' warning about possible uninitialized var
Those can't be used uninitialized but the compiler doesn't 'get' that ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 21:24:08 +02:00
Sylvain Munaut 02b2575adc sdr/fcch: Add safety to FCCH multi rough detection for period discovery
We try to find the periodicity, but in some case, for some signals
this can fail and we need to ensure Lp is valid and within bounds
since it's used as offset.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 17:07:38 +02:00
Sylvain Munaut b6fc11d17c apps/gmr1_rx: Fix type in error string
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 13:02:42 +02:00
Sylvain Munaut 1f410536e1 utils/gmr_multi_rx: Import Makefile
It was ignored erroneously ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 13:01:21 +02:00
Dimitri Stolnikov 213492b7f5 utils: Import the gmr_multi_rx tool to listen to RF
Written-by: Dimitri Stolnikov <horiz0n@gmx.net>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 12:45:03 +02:00
Sylvain Munaut 06aee3401b Update .gitignore with autotools stuff
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 12:21:28 +02:00
Sylvain Munaut 9a69e5cc0c build: Add autotools magic
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 12:21:28 +02:00
Sylvain Munaut 8bc840360a apps: Remove old demo app bcch_rx
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 12:21:28 +02:00
Sylvain Munaut d1a06e3c4d apps: Add demo application gmr1_rx
This currently try to lock to any FCCH alignement
and process the BCCH to wireshark

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-16 12:21:28 +02:00
Sylvain Munaut ea5a308cae sdr/nb: Add normal bursts definitions
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-15 20:21:50 +02:00
Sylvain Munaut 953237c5db sdr/pi4cxpsk: Add pi4-CxPSK raw primitives
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-15 20:21:50 +02:00
Sylvain Munaut fed4cd84f9 sdr/fcch: Add FCCH raw primitives
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-15 20:21:50 +02:00
Sylvain Munaut 49f4670fb5 sdr: Add a SDR sublibrary
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-15 20:21:50 +02:00
Sylvain Munaut 74092a9b31 l1/bcch: Fix trailing whitespaces
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-15 20:21:50 +02:00
Sylvain Munaut 6e4a96fe4a l1/interleave: Fix mismatch in function prototype between .c & .h
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-15 15:17:01 +02:00
Sylvain Munaut b6ae0e101a doc: Fix Doxygen tags in pre-existing files
Most of the doc in the files committed so far has been written "blind"
without actually running Doxygen. This commits fixes the various things
needed to make it "look nice"

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-15 15:17:01 +02:00
Sylvain Munaut a6b636cf4c l1/bcch: Fix documentation cut & paste error
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-09 16:11:28 +02:00
Sylvain Munaut 9f4030cf32 Add example bcch_rx application
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-09-18 12:09:46 +02:00
Sylvain Munaut 33e5d23450 l1/bcch: Add complete BCCH stateless coder/decoder
The BCCH doesn't have inter-burst dependency, hence we just
have a stateless coding/decoding routine.

See GMR 05.003 Section 6.1

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-09-18 12:08:53 +02:00