Andreas.Eversberg [Fri, 15 Oct 2010 18:54:57 +0000 (18:54 +0000)]
[layer23] DTMF support
Andreas.Eversberg [Fri, 15 Oct 2010 18:50:25 +0000 (18:50 +0000)]
[layer23] If the mobile sticks to a cell, RXLEV_MIN is ignored
Andreas.Eversberg [Thu, 14 Oct 2010 07:37:52 +0000 (07:37 +0000)]
[layer23] Adding abbreviated dialing to VTY
It is possible to store phone numbers with abbreviations now. Dialing these
abbreviation makes testing of mobile originated calls much easier too.
Andreas.Eversberg [Wed, 13 Oct 2010 18:33:16 +0000 (18:33 +0000)]
[layer23] If SIM is invalid, display that on the VTY
Andreas.Eversberg [Wed, 13 Oct 2010 18:30:59 +0000 (18:30 +0000)]
[layer23] Fix of signal loss handling
The cell must be kept "selected" in case of loosing radio link. It is
required to perform reselection of that cell or of the given neighbor
cells.
Andreas.Eversberg [Wed, 13 Oct 2010 18:28:57 +0000 (18:28 +0000)]
[layer23] Minor fix of debugging message in call control
Andreas.Eversberg [Wed, 13 Oct 2010 18:27:15 +0000 (18:27 +0000)]
[layer23] Fixed cell monitoring output (RR idle mode)
Andreas.Eversberg [Wed, 13 Oct 2010 18:26:04 +0000 (18:26 +0000)]
[layer23] Minor change in paging debugging
Andreas.Eversberg [Wed, 13 Oct 2010 18:23:20 +0000 (18:23 +0000)]
[layer23] Give ARFCN together with "show states <MS_NAME>"
Andreas.Eversberg [Tue, 12 Oct 2010 17:41:49 +0000 (17:41 +0000)]
[layer23] Fixed CAUSE information element
Coding standard must be 0x3 = GSM. Otherwise it may generate a protocol error
at the network.
Andreas.Eversberg [Tue, 12 Oct 2010 11:26:51 +0000 (11:26 +0000)]
[layer23] Fixed ASSIGNMENT / HANDOVER failure handling
Andreas.Eversberg [Tue, 12 Oct 2010 11:19:06 +0000 (11:19 +0000)]
[layer23] Reconnect of layer 2 link must be performed in idle mode also
Andreas.Eversberg [Tue, 12 Oct 2010 09:40:05 +0000 (09:40 +0000)]
[layer23] Call control is disabled when mobile is set to SDCCH only
On SDCCH only mobiles, incomming calls must be rejected by a minimal call
control implementation, even if basic calls are not supported.
Andreas.Eversberg [Tue, 12 Oct 2010 09:03:34 +0000 (09:03 +0000)]
[layer23] Fixed resume of datalink (after assignment or handover)
In order to resume correctly, the first message (ASSIGNMENT COMPLETE or
HANDOVER COMPLETE) must be sent after the link is resumed. Therefore it
must be given with the resume command. Unacknowledged messages are
transmitted afterwards, if any.
Andreas.Eversberg [Tue, 12 Oct 2010 08:53:40 +0000 (08:53 +0000)]
[layer23] FACILITY message is handled now, but not decoded
Andreas.Eversberg [Tue, 12 Oct 2010 08:48:08 +0000 (08:48 +0000)]
[layer23] Bugfix: Loosing CCCH signal must cause unselection of cell.
Andreas.Eversberg [Tue, 12 Oct 2010 08:44:18 +0000 (08:44 +0000)]
[layer23] Adding some debugging output
Andreas.Eversberg [Tue, 12 Oct 2010 08:26:48 +0000 (08:26 +0000)]
[layer23] Implementation of signal loss criteria as defined in TS 05.08
There are two criterions for lossing a signal, idle mode and dedicated mode.
A counter counts down when a frame is dropped, and counts up when a valid
frame is received on certain channel. The loss criterion is reached, if the
counter reaches 0. The values added to / removed from the counter and the
limits depend on the process.
Andreas.Eversberg [Tue, 5 Oct 2010 15:42:29 +0000 (15:42 +0000)]
[layer23] Increase sync tollerance by increasing freq_err_thresh1
This is a quick workarround to make synchronizing to a cell more reliable.
Without it, just a few cells will sync. When network search is restarted, no
more sync happens. By increasing the freq_err_thresh1 to 10000, many cells
sync, even after the first network search.
Andreas.Eversberg [Sun, 3 Oct 2010 21:53:24 +0000 (21:53 +0000)]
[layer23] Fixed ACCH reception of TCH channels
Without it, the indicated TA and power never get received by layer23.
This may cause a release duing TCH on certain networks. Also it
is required to apply timing advance and transmit power during movement.
Andreas.Eversberg [Sun, 3 Oct 2010 21:52:56 +0000 (21:52 +0000)]
[layer23] Fixed emergency call setup
Andreas.Eversberg [Sun, 3 Oct 2010 10:51:31 +0000 (10:51 +0000)]
[layer23] Rework of "support"-features, features can be disabled now
Supported features of hardware (support.c) can be disabled by config.
This way the full featured mobile can be downgraded to indicate less
features to the network, like disabling speech support or crypto support.
Holger Hans Peter Freyther [Sat, 2 Oct 2010 19:22:55 +0000 (03:22 +0800)]
misc: Fix the name of the header file for the hexdump...
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:45:28 +0000 (02:45 +0800)]
gsm48_rr.c: Move the access below the parsing (found by clang
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:39:29 +0000 (02:39 +0800)]
msic: Include osmocom/util.h for the hexdump definition
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:39:06 +0000 (02:39 +0800)]
sim.c: Fix NULL pointer dereference found by clang.
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:29:58 +0000 (02:29 +0800)]
osmoload.c: Cast to uint8_t from char* to fix a compiler warning
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:20:32 +0000 (02:20 +0800)]
osmocom.c: rc is not assigned and contains garbage, return 0.
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:16:32 +0000 (02:16 +0800)]
osmocon.c: Use C99 inttypes instead of u_intX_t.
Holger Hans Peter Freyther [Sat, 2 Oct 2010 18:09:35 +0000 (02:09 +0800)]
sercomm.c: Avoid unused variable compiler warning
For the host build the local_irq_save/_restore is a NOOP
and the compiler warns about the unused flags variable. Cast
it to void to avoid compiler warning.
Andreas.Eversberg [Sat, 2 Oct 2010 16:34:04 +0000 (16:34 +0000)]
[layer23] Notify user when config change requires restart to take effect
Andreas.Eversberg [Fri, 1 Oct 2010 19:24:34 +0000 (19:24 +0000)]
[layer23] Minimum RX-level is now a configuratio option
The default (if config not yet created/updated), is still taken from
settings.c.
Andreas.Eversberg [Fri, 1 Oct 2010 19:22:31 +0000 (19:22 +0000)]
[layer23] Remove obsolete function from header file
Andreas.Eversberg [Fri, 1 Oct 2010 19:21:33 +0000 (19:21 +0000)]
[layer23] Using loglevel to disable heavy debugging on cell selection
Andreas.Eversberg [Wed, 29 Sep 2010 13:29:31 +0000 (13:29 +0000)]
[layer23] Disabled display of SYSINFO message at message handlers
This way the SYSINFO is logged once and not three times.
Andreas.Eversberg [Wed, 29 Sep 2010 13:28:04 +0000 (13:28 +0000)]
[layer23] Added a workarround to ignore the first (invalid) PM result
Andreas.Eversberg [Wed, 29 Sep 2010 13:26:34 +0000 (13:26 +0000)]
[layer23] Disabled the scanning of maximum cells per band
This way all frequencies are scanned, in case they meat the minimum
receive level.
Andreas.Eversberg [Wed, 29 Sep 2010 13:24:12 +0000 (13:24 +0000)]
[layer23] Disabled may debugging in cell selection process
This way the syncing and cell selection can be reviewed much better.
Andreas.Eversberg [Wed, 29 Sep 2010 13:18:46 +0000 (13:18 +0000)]
[layer23] Added missing state change, if location update is not required.
Dieter Spaar [Fri, 17 Sep 2010 19:49:29 +0000 (21:49 +0200)]
target/dsp: Add dsp audio initialization
Written-by: Dieter Spaar <spaar@mirider.augusta.de>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Dieter Spaar [Fri, 17 Sep 2010 19:47:54 +0000 (21:47 +0200)]
target/dsp: Adjust dsp parameters for TCH FR Codec
Written-by: Dieter Spaar <spaar@mirider.augusta.de>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Sun, 26 Sep 2010 21:03:18 +0000 (23:03 +0200)]
fw/layer1: Process the tch_mode and store it for later use
Currently unused since no TCH support ...
Will be used by future commits.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Sun, 26 Sep 2010 20:55:02 +0000 (22:55 +0200)]
l1ctl: Add initial tch_mode value in DM_EST_REQ
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Sun, 26 Sep 2010 20:00:16 +0000 (22:00 +0200)]
fw/layer1: Add support for proper meas. report (and use in prim_tx_nb)
Rewritten based on an original patch by Andreas.Eversberg.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Andreas.Eversberg [Sun, 26 Sep 2010 09:50:56 +0000 (11:50 +0200)]
fw/layer1: Add support for measurement messages from layer2/3
Written-by: Andreas.Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Sun, 26 Sep 2010 19:50:00 +0000 (21:50 +0200)]
fw/layer1: Introduce prim_utils.c for shared helper betwee primitives
Currently only share the idle frame pattern.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Sun, 26 Sep 2010 19:29:23 +0000 (21:29 +0200)]
fw/layer1: Introduce prim.h for all primitive related things
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Sun, 26 Sep 2010 20:30:30 +0000 (22:30 +0200)]
fw/layer1: Fix type of p3 in tdma window setup/cleanup sched items
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Andreas.Eversberg [Tue, 28 Sep 2010 06:15:39 +0000 (06:15 +0000)]
[layer23] Fixed incorrect use of memcpy for frequency list IEs
Andreas.Eversberg [Mon, 27 Sep 2010 19:46:26 +0000 (19:46 +0000)]
[layer23] Fixed parsing of ASSIGNMENT / HANDOVER (type-value) IEs
Andreas.Eversberg [Mon, 27 Sep 2010 18:55:57 +0000 (18:55 +0000)]
[layer23] Fixed debug output in gsm48_rr.c
Andreas.Eversberg [Mon, 27 Sep 2010 18:53:03 +0000 (18:53 +0000)]
[layer23] Alter simulated-delay via VTY on the fly (active channel)
Andreas.Eversberg [Sun, 26 Sep 2010 22:30:15 +0000 (22:30 +0000)]
[layer23] Handle invalidation of TMSI correctly
Andreas.Eversberg [Sun, 26 Sep 2010 22:02:32 +0000 (22:02 +0000)]
[layer23] Cleanup of various 'printf' debugging
Andreas.Eversberg [Sun, 26 Sep 2010 21:08:53 +0000 (21:08 +0000)]
[layer23] VTY command for changing LAI on SIM card
This speed up network selection process, because no manual network search
is required to change a network.
Andreas.Eversberg [Sun, 26 Sep 2010 20:04:54 +0000 (20:04 +0000)]
[layer23] Use correct IE for timing advance
This patch has no effect, only the definition for timing advance IE is
changed to RSL_IE_TIMING_ADVACE.
Sylvain Munaut [Mon, 20 Sep 2010 18:56:06 +0000 (20:56 +0200)]
Remove the various checks for high TS as those should now work
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Mon, 20 Sep 2010 18:55:09 +0000 (20:55 +0200)]
fw/layer1: New TPU window sync method
This is Dieter's sync method adapted to the new TPU stuff.
Not perfect, but should work for TS[0:7] as long as you
leave a free frame between each TS changes ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Mon, 20 Sep 2010 18:53:25 +0000 (20:53 +0200)]
fw/layer1: Fix RX TPU window - no TA dependency
Cut & paste errror ... the TA has nothing to do in RX
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Wed, 22 Sep 2010 20:22:18 +0000 (22:22 +0200)]
target/layer1: Implement host-driven Tx power control
It's up to L23 to change the parameters using the appropriate
L1CTL call.
This is a mix between Harald's version and Dieter's version of
the TX control code.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Thu, 23 Sep 2010 19:01:39 +0000 (21:01 +0200)]
fw/layer1: Display diff in hwtimer value when lost interrupt is detected
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Wed, 22 Sep 2010 18:57:16 +0000 (20:57 +0200)]
layer23/lapdm: Fix typos SAMB -> SABM
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Andreas.Eversberg [Sun, 26 Sep 2010 18:39:01 +0000 (18:39 +0000)]
[layer23] Do not reject mobile terminated calls with no codec given
Send the list of supported codecs instead.
Andreas.Eversberg [Sun, 26 Sep 2010 17:08:10 +0000 (17:08 +0000)]
[layer23] Speech codec selection and negotiation with network
Andreas.Eversberg [Sun, 26 Sep 2010 17:06:06 +0000 (17:06 +0000)]
[layer23] Added support for changing TCH mode via L1CTL messages
Andreas.Eversberg [Sun, 26 Sep 2010 17:02:36 +0000 (17:02 +0000)]
[layer23] Minor fixes in lapdm.c
For single burst messages, the length is set from layer2 header.
Andreas.Eversberg [Sun, 26 Sep 2010 10:35:46 +0000 (10:35 +0000)]
[layer23] Adding application generated measurement report
The cell provides SYSTEM INFORMATION 5* and 6. These are used to create a
list of neighbor cells to monitor. Because there is no neighbor cell
monitoring supported by layer1, the list has no valid results yet.
Currently the average RX level of received frames are used to generate a new
report every second. The report is transmitted to layer1 and used there
whenever a measurement report has to be transmitted.
The timing advance and the current transmit power (as requested by network),
is included with every report.
Andreas.Eversberg [Sun, 26 Sep 2010 10:28:03 +0000 (10:28 +0000)]
[layer23] LAPDm handles UNIT DATA requests correctly
Optionally RSL_IE_ACCESS_DELAY and RSL_IE_MS_POWER can be given with a
message. They will be used to fill the first two bytes of the SACCH uplink
frame. The format equals to the UNIT DATA indication.
Andreas.Eversberg [Mon, 20 Sep 2010 21:49:37 +0000 (21:49 +0000)]
[layer23] VTY now checks dialed number for valid digits
Also international calls can be dialed by adding '+' in front. If not the
number will be dialed using 'unknown' type, prefixes must be added.
Sylvain Munaut [Mon, 20 Sep 2010 19:03:52 +0000 (21:03 +0200)]
host/mobile: Properly set called party dialling plan & type
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Mon, 20 Sep 2010 19:02:28 +0000 (21:02 +0200)]
Sylvain Munaut [Mon, 20 Sep 2010 18:59:23 +0000 (20:59 +0200)]
gsm48: Fix gsm48_encode_called - Set no extension bit
The highest bit must be set as "No extension byte" marker,
so that the next byte is considered to be the BCD number
and not some more control stuff
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Andreas.Eversberg [Sun, 19 Sep 2010 20:48:04 +0000 (20:48 +0000)]
[layer23] Disabled flow control between LAPDm and layer1.
Andreas.Eversberg [Sun, 19 Sep 2010 20:46:36 +0000 (20:46 +0000)]
[layer23] Fixed typo in Call Control
Holger Hans Peter Freyther [Sun, 19 Sep 2010 17:23:15 +0000 (01:23 +0800)]
gsm0808: Fix the TLV definition of CIC and Service Handover
The nat code stumbled over the CIC bug as it was detecting
timeslot 0x1 as a new CIC and we were patching the data outside
the actual packet... The TLV parser needs some better size
checking too.
Sylvain Munaut [Sun, 19 Sep 2010 17:04:03 +0000 (19:04 +0200)]
layer23/mobile/gsm48_rr: Fix typo in IMMEDIATE ASSIGNMENT EXTENDED
This prevented the assigment from working if you wer in the
1st channel description.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Andreas.Eversberg [Sun, 19 Sep 2010 17:20:28 +0000 (17:20 +0000)]
[layer23] Re-setting encryption, if enabled after changing channel.
Andreas.Eversberg [Sun, 19 Sep 2010 13:51:15 +0000 (13:51 +0000)]
[layer23] Fixed and improved subscriber (SIM) dump of VTY
For a detailed SIM infos:
enable
show subscriber
Andreas.Eversberg [Sun, 19 Sep 2010 13:50:44 +0000 (13:50 +0000)]
[layer23] Added Hungary to network list
Andreas.Eversberg [Sun, 19 Sep 2010 12:52:24 +0000 (12:52 +0000)]
[layer23] Added debug about identity (TMSI/IMSI) at LOC.UPD / IMSI DETACH
Andreas.Eversberg [Sun, 19 Sep 2010 11:59:48 +0000 (11:59 +0000)]
[layer23] Fixed "empty UA bug" in LAPDm and cleanups
The tx queue was not flused in case the SABM timer fired, so there were old
frames (SABM) still in the queue after next establish request.
Because the problem was solved, debugging code ist removed.
Andreas.Eversberg [Sun, 19 Sep 2010 10:52:42 +0000 (10:52 +0000)]
[layer23] Fixed and completed SIM's PIN handling
Use VTY to handle PIN:
enable
sim pin 1 xxxx
sim change-pin 1 xxxx yyyy
sim disable-pin 1 xxxx
sim enable-pin 1 xxxx
sim unlock-pin 1 uuuuuuuu yyyy
1 = mobile station "1"
xxxx = current PIN
yyyy = new PIN
uuuuuuuu = unlock key (PuK)
Andreas.Eversberg [Sat, 18 Sep 2010 19:15:15 +0000 (19:15 +0000)]
[layer23] SIM client completion
The SIM client is now complete. Because it usefull for multiple
applications, i moved it to the layer23/src/common directory.
The SIM reader works together with mobile process. Fixes were made.
Thanx to all for testing, finding bugs, and making it work as it is
supposed to do.
The current version uses special L1CTL messages to send and receive APDUs.
This will change in the future, when BTSAP interface is completed.
Please note that this client will not work until the layer1 SIM reader
fixes and extensions are committed.
Andreas.Eversberg [Sat, 11 Sep 2010 10:42:29 +0000 (10:42 +0000)]
[layer23] Added BTSAP socket interface to layer23
Andreas.Eversberg [Sat, 11 Sep 2010 10:42:29 +0000 (10:42 +0000)]
[layer23] Added BTSAP socket interface to layer23
Andreas.Eversberg [Sat, 18 Sep 2010 13:30:28 +0000 (13:30 +0000)]
[layer23] Added missing TMSI REALLOCATION COMPLETE reply
Fix by Dieter.
Sylvain Munaut [Fri, 17 Sep 2010 18:55:20 +0000 (20:55 +0200)]
layer23/mobile: Fix space/tab indenting in subscriber.c
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Thu, 16 Sep 2010 21:00:11 +0000 (23:00 +0200)]
fw/l23_api: Fix cut&paste typo in comment
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Thu, 16 Sep 2010 10:56:42 +0000 (12:56 +0200)]
host/layer23: Enable a5/[1,2] support
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Wed, 15 Sep 2010 07:40:25 +0000 (09:40 +0200)]
fw/layer1: Properly set/reset ciphering parameters when needed
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Wed, 15 Sep 2010 07:39:22 +0000 (09:39 +0200)]
fw/dsp: Add function to load dsp ciphering parameters
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Wed, 15 Sep 2010 07:38:57 +0000 (09:38 +0200)]
fw/layer1: Properly load the tch dsp param (including various fn) in RX
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Wed, 15 Sep 2010 07:37:30 +0000 (09:37 +0200)]
fw: Update dsl_load_tch_params to set the fn_sid, fn_report and fn_a5
Mix between Dieter's version in tch branch and how the TSM30 does it.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Wed, 15 Sep 2010 07:34:43 +0000 (09:34 +0200)]
fw: Move channel type/mode definitions in common header
We'll need them later elsewhere than the tx prim
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Tue, 14 Sep 2010 19:19:38 +0000 (21:19 +0200)]
fw & layer23: Remove limitation about the SDCCH subchannel 4..8
This is now supported :)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Wed, 15 Sep 2010 07:38:09 +0000 (09:38 +0200)]
fw/layer1: Increase tdma_sched bucket size
We can now have a bunch more stuff scheduled !
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Tue, 14 Sep 2010 19:16:58 +0000 (21:16 +0200)]
fw/layer1: Add common TPU win setup/cleanup code
Instead of each primitive doing it independently, if there is a TPU
scenario in one of the item, we do a common setup with the base tn
returned by rfch_get_params.
Then each rx / tx window setup is relative to that 'base tn'. For
TX window, you have to explicitely request an offset of 3. (this
would allow for some test code to TX on ts=0 for eg.)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Tue, 14 Sep 2010 19:12:18 +0000 (21:12 +0200)]
fw/layer1: Convert primitives to use common DSP/TPU scenario ending
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Tue, 14 Sep 2010 19:10:21 +0000 (21:10 +0200)]
fw/layer1: Add some sched items flags to signal DSP & TPU scenarios
If those flags are set in one of the item of the current frame,
we end the tpu & dsp scenario in common code.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut [Tue, 14 Sep 2010 19:08:19 +0000 (21:08 +0200)]
fw/layer1: Add a 'flags' field to sched_items and the infra to use it
This is only preparation
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>