Commit Graph

767 Commits

Author SHA1 Message Date
Andreas.Eversberg 49d6f1aca9 [layer23/lapdm] Added more headroom for data indication to prevent underrun 2010-08-12 07:13:16 +00:00
Andreas.Eversberg c27bbfa7d9 [layer23] Removed hack: Allocate SDCCH when requesting a TCH
Includes removal of compiler warnings when selecting the right channel
request type for TCH.
2010-08-12 07:11:04 +00:00
Andreas.Eversberg a5b023cd98 [layer23] Paging response depends on the supported channels: SDCCH, TCH/F, and TCH/H 2010-08-11 16:11:28 +00:00
Andreas.Eversberg cb73be0d0c Added support for NMEA GPS receiver
This early support does not use the received postion, it just dumps it.

Later it can be used to set clock of the phone. Also it can be used
to calculate the location of a BTS.
2010-08-10 19:56:59 +00:00
Andreas.Eversberg 6439e4f279 Added sequence number to L3 messages (see GSM 04.08 Clause 3.1.4.3)
This is required to detect duplicated messages during assignment or
handover. Each PDISC uses its own sequence number, but MM+CC+SS share the
same. The sequence number is only required in uplink direction.

Dieter: Please check, if your tester eats it now. Also try to trace if the
sequence number is set correctly.
2010-08-10 19:31:07 +00:00
Harald Welte 72523a02a6 [layer23] use gsm48_decode_freq_list() which has been moved into libosmocore 2010-08-04 12:53:52 +02:00
Harald Welte a7d2cfec49 Merge commit '1523d7039d9b8c49a2174d93c3673aa8c5a100a9' 2010-08-04 11:48:20 +02:00
Harald Welte 1523d7039d Import gsm48_decode_freq_list() from osmocom-bb/layer23
This will enable us to use this function from OpenBSC / ipaccess-config
2010-08-04 11:46:44 +02:00
Holger Hans Peter Freyther 18e6298e88 vty: Forward delcare the logging command. 2010-08-04 06:34:06 +08:00
Andreas.Eversberg 85253cf06d [layer23] Correctly release a call, if not yet acknowledged by the network 2010-08-01 10:42:11 +00:00
Harald Welte a439a3a505 logging: Make sure we don't use "end of color" code if colors are turned off 2010-07-30 21:01:54 +02:00
Harald Welte dee47cd14d add new hexdump_nospc() function 2010-07-30 11:47:50 +02:00
Harald Welte 40481e8954 move hexdump() from logging.c to utils.c 2010-07-30 11:40:32 +02:00
Harald Welte 3eba991b3d Import 'hexparse' function from OpenBSC 2010-07-30 10:37:29 +02:00
Sylvain Munaut ef0377b11c layer23: Fix Makefile.am noinst_HEADERS for vty.h
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-30 01:40:03 +02:00
Steve Markgraf 5e81ff0351 [layer23] request a layer1 reset on startup of layer2 applications
This omits the need for starting layer23 applications before
loading layer1 (which still works).

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-07-29 11:12:31 +02:00
Harald Welte df3c7a9c99 Merge remote branch 'origin/sylvain/pending' 2010-07-29 11:10:09 +02:00
Sylvain Munaut 0cbd5d0139 layer23: Unify the prefix of l1ctl TX functions
Some had tx_ph_XX, others l1ctl_tx_XXX and some l1ctl_tx_ph_XXX

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:51:52 +02:00
Sylvain Munaut d1028f49a3 l1ctl_proto: Use an enum for the message type rather than #defines
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:51:45 +02:00
Sylvain Munaut 09b2ed2f3a l1ctl_proto.h: Fixup name of the guard ifdef
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:51:39 +02:00
Sylvain Munaut c382fbf943 include: Rename l1a_l23_interface.h to l1ctl_proto.h
The interface between l1 and upper layer is called by several
name. IMHO l1ctl is shorted and sounds good so try to unify
using that.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:51:29 +02:00
Sylvain Munaut 50f1eb1114 layer23: Use libosmocore rsl_chan_nr_str instead of local func
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:51:21 +02:00
Sylvain Munaut a4b1b1bcc1 layer1/l23_api: Fix the L3_MSG_SIZE to include l1ctl header size
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:51:14 +02:00
Sylvain Munaut 3573380908 shared/libosmocore: Make sure to use the 'infinite loop' abort handler
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:51:07 +02:00
Sylvain Munaut a54a8d04c6 Merge commit '7459d6cfd1765f8431b3d9a262eff332f9af807c' into sylvain/pending 2010-07-27 20:50:57 +02:00
Sylvain Munaut 9e9f99c0a0 layer23: Split [2/2] -> The header files
This split the headers and adapt the source.

We use osmocom/bb as a prefix because libosomore also
uses osmocom and generic names such as misc & common could
conflict in the future.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:49:27 +02:00
Sylvain Munaut de21ca4aaf layer23: Split [1/2] -> The source code
We split into :
 - common: Everything that can be shared
 - mobile: The real spec compliant mobile phones
 - misc:   Different test stuff

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:49:04 +02:00
Sylvain Munaut 7459d6cfd1 core/msgb: Use the new osmo_panic call to handle errors
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 18:09:28 +02:00
Sylvain Munaut ac3e61a7a6 core: Add some generic panic handling
This also includes an option for a minimal 'infinite loop' type
panic that could be required for embedded target that don't have
abort() or fprintf()

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 18:08:54 +02:00
Sylvain Munaut f23ababfb2 build: Use AS_HELP_STRING macro to format the ./configure --help better
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 16:16:42 +02:00
Sylvain Munaut 27af075e1e osmocore: Add utility function rsl_chan_nr_str to RSL
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 12:27:44 +02:00
Sylvain Munaut fb48f690d3 layer23: Pre-rework of the Makefile.am
liblayer23 contained a bunch of stuff that are not shared at all ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 10:19:34 +02:00
Sylvain Munaut 603b8f8680 layer23/include: Remove eXecutable permission bit from gsm322.h
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 10:19:34 +02:00
Sylvain Munaut 66c3ca0527 layer23: Switch to using gsmtap_util from libosmocom
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 10:19:34 +02:00
Sylvain Munaut da6bc3b577 layer23: Remove useless file telnet_interface.c
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 10:19:34 +02:00
Sylvain Munaut b4aac95581 layer23: Alloc some headroom in incoming l1ctl packets
The upper layer will modify the headers and add somestuff in front,
so it's needed to avoid corrupting memory.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 10:18:56 +02:00
Sylvain Munaut b2bc4dcb59 fw/rf: Use printd for the trf6151_set_gain debug message
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25 10:18:56 +02:00
Steve Markgraf d42f73a1ff [firmware] bring back gta0x images
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-07-23 18:11:25 +02:00
Holger Hans Peter Freyther 5e84a86937 msgb: Avoid warnings that the string might contain %s or such.. 2010-07-23 19:22:23 +08:00
Holger Hans Peter Freyther b60a4b3b97 gsm0808: Why should there be a lchan in the parameter... 2010-07-23 18:35:59 +08:00
Holger Hans Peter Freyther 06f795c56f gsm0808: Import unaligned mem access fix from on-waves/bsc-master 2010-07-23 18:20:02 +08:00
Holger Hans Peter Freyther dd02a47234 gsm_utils: Move the gsm_7bit_alphabet into the impl and make it static 2010-07-23 16:36:05 +08:00
Harald Welte 652a72385c msgb: Check for available headroom/tailroom and abort() if we violate it 2010-07-22 21:56:10 +02:00
Andreas.Eversberg 33c2a1c265 [layer23] Fixed interpretation of the power measurement result. 2010-07-22 16:14:40 +00:00
Andreas.Eversberg 82fbc17d4b [layer23] Re-structured the VTY commands for SIM insert/remove
Now the commands are "sim testcard <ms> [<mcc> <mnc>] " or "sim remove <ms>"
2010-07-22 16:11:28 +00:00
Ingo Albrecht 0dde40f462 flash: corrected coding style 2010-07-22 04:43:11 +02:00
Holger Hans Peter Freyther 0d60aa2ad7 gsm_04_12.h: Add beginning of structs for SMS CB
I am trying to understand the RSL and GSM 04.12
spec to implement CBS for OpenBSC...
2010-07-21 05:02:33 +08:00
Holger Hans Peter Freyther f8a342c350 gsm_7bit_decode: rtext does not hold a null byte, reduce the size
I have added the + 1 as I thought rtext will hold a terminating
null byte but it will not.
2010-07-21 03:14:01 +08:00
Nico Golde c0ce9aa20d tests: don't hardcode length values of expected encoding gsm_7bit_encode:
make sure to return the number of actually written bytes gsm_7bit_decode:
calculate length of resulting septets from input length before decoding

The input length to gsm_7bit_decode reflects the number of encoded bytes
to be decoded. As the decoding is done on the input in septetes we need
to take this into account and recalculate the length.
2010-07-21 02:43:58 +08:00
Steve Markgraf 0cfa309dea [display] add driver for the Toppoly TD014, as used in the C139/C140
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-07-20 14:41:21 +02:00