Commit Graph

2143 Commits

Author SHA1 Message Date
Andreas Eversberg 80813208e1 mobile: Fixed compiler warning at gsm322.c
This patch resolves the following issue:

In function 'memset',
    inlined from 'bargraph.constprop.14' at gsm322.c:325:8:
/usr/include/bits/string3.h:81:30: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]
2014-02-26 12:17:20 +01:00
Andreas Eversberg 134c95c817 Bad frame indication at l1ctrl.c: Replaced printf-hack by LOGP 2014-02-26 12:17:18 +01:00
Andreas Eversberg 712952a933 Add ringer support to built-in MNCC application of mobile 2014-02-26 12:17:15 +01:00
Andreas Eversberg 3138c02142 Add ringer support to L1CTL interface and layer1 2014-02-26 12:17:12 +01:00
Andreas Eversberg 447ac935c5 mobile: VTY provides two options to disable neighbor cell measurements
1. "no neighbor-measurement idle": neighbor cell measurement for cell
   re-selection
2. "no neighbor-measurement dedicated": neighbor cell measurement for
   handover
2014-02-26 12:17:09 +01:00
Andreas Eversberg 89c43f4867 mobile: Fixes of frequency redefinition handling 2014-02-26 12:17:05 +01:00
Andreas Eversberg e605dd340a mobile/gsm48_rr.c: Show "cipher 0", if ciphering is disabled 2014-02-26 12:17:02 +01:00
Andreas Eversberg ec97f33bfe mobile: Keep track of cell channel description during dedicated mode
The initial cell channel decription is received via SI1. During a call this
description may change due to handover, assignment, frequency redefinition.
Whenever it changes, the last received cell channel description is used to
handle messages that do not include this information element.

Example of one call with handover inbetween. The assignments do not include
a cell channel description:

IMMEDIATE ASSIGNMENT: Use cell channel description from SI1.
ASSIGNMENT COMMAND: Re-use cell channel description from SI1.
HANDOVER COMMAND: Use new cell channel description from HANDOVER COMMAND.
ASSIGNMENT COMMAND: Re-use cell channel description from HANDOVER COMMAND.
2014-02-26 12:16:59 +01:00
Andreas Eversberg 3ecbc4e59b mobile: Use only sel_si for informations about the current cell
sel_si structure tracks content of SI5* and SI6 messages. The informations
will change after handover, so they do not refer to the origin cell.
The list of scanned cells is not affected. The sel_si structure will be
overwritten with the selected cell after leaving dedicated mode.
2014-02-26 12:16:56 +01:00
Andreas Eversberg 9a30420933 [WIP] HO: VTY test option to fake a better neighbor cell to force handover
The handover is forced by reporting perfect measurement results of a given
neighbor cell. All other neighbor cells and the serving cell is reported as
poor. The falke report will sustain until the connection is released or a
new 'better' cell is specified.
2014-02-26 12:16:53 +01:00
Andreas Eversberg 7f7d5febdf [WIP] HO: Completed handover process at mobile (layer 3).
The implementation supports:
- Non-synchronised handover
- Synchronized handover
- Pre-sychronized handover
- Pseudo-synchronized handover
2014-02-26 12:16:49 +01:00
Andreas Eversberg 277befa334 [WIP] HO: Transmit access bursts on DCCH of TCH channels 2014-01-29 09:49:22 +01:00
Andreas Eversberg 088d1448e8 [WIP] HO: Add RX only mode for handover
When establishing dedicate mode, a flag is used to disable transitter.
When transmitter is disabled, access bursts are allowed.
After sending a L1CTL_PARAM_REQ, the transmitter is enabled with given
parameters.
2014-01-29 09:49:21 +01:00
Andreas Eversberg 0686157991 [WIP] HO: Add new parameters to L1CTL_DM_EST_REQ
* Flag to enter dedicated mode with TX disabled
* Flag to use sync info of neighbor cell
* Flag to use sync info of previous serving cell
* Index of neighbor cell

All these parameters are required to handover to a new channel.
2014-01-29 09:49:21 +01:00
Andreas Eversberg 11b35928ce [WIP] HO: Add SCH read of neighbor cells to TCH channels
The task will try to sync to neighbor cell during search (idle) frame.
2014-01-29 09:49:21 +01:00
Andreas Eversberg 0c0166061f [WIP] HO: Add power measurement of neighbor cells to TCH channels
The task will measure power between TX and RX of successive TCH frames.
2014-01-29 09:36:23 +01:00
Andreas Eversberg e1d25c38ae [WIP] HO: Add BSIC and TOA to L1CTL_NEIGH_PM_IND 2014-01-29 09:36:22 +01:00
Andreas Eversberg 532a797ea1 [WIP] Change TPU offset on TS change or sync change
When TPU offset must be changed (assignment to different timeslot or handover
to a different cell), all tasks will be disabled until new TPU offset has been
applied. Currently scheduled tasks are finished before the new TPU offset is
applied.

On change of TPU offset, the TPU's interrupt may skip one frame when changing
backwards in time. Also it may generate two interrupts when changing
significantly forward in time. This is compensated by changing the GSM time.
2014-01-07 12:46:28 +01:00
Andreas Eversberg 2d0a5acaf3 mobile/SS: Fixed bug in parsing of known supplemenary service codes
Use correct variable to check if supplementary service code is known
or not.
2013-12-24 07:33:58 +01:00
Sylvain Munaut bf83e024a6 Fix wrong msgb_pull usage
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-09-26 18:46:36 +02:00
Andreas Eversberg 8a8796802b osmocon: Improve performance by handling several serial bytes at a time 2013-06-19 15:16:58 +02:00
Bhaskar f2ab5e1496 host/mobile: Add 'extern' qualifier to config_dir in app_mobile.h
This prevents duplication definition with main.c

From: Bhaskar <niceguy108@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23 08:30:15 +02:00
Bhaskar 761127b6b4 host/mobile: Fixup in error checking path of l23_app_init
From: Bhaskar <niceguy108@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23 08:28:18 +02:00
Bhaskar c6cab89f76 host/osmocon: fix some printf format specifier in handle_write_dnload
From: Bhaskar <niceguy108@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23 08:25:18 +02:00
Sylvain Munaut 2529320420 host/mobile: Fix trans_assign_trans_id() users error checking
The returned value of trans_assign_trans_id() must be stored into a
'int' rather than uint8_t to allow proper testing of negative return
values (errors).

Thanks to Bhaskar <niceguy108@gmail.com> for the original
patches.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23 08:22:48 +02:00
Bhaskar fde82f554b gsm48_mm.h: Added get_mm_name() to header 2013-05-23 07:51:09 +02:00
Bhaskar 2542a55c87 gsm48_mm.c: Bugfix: payload_len should be signed int
As we later check if payload_len < 0, it should be signed, not unsigned.
2013-05-23 07:49:50 +02:00
Bhaskar 78bcbd6cdb osmoload: Fix fall-out from msgb_get() / msgb_pull() transition
Bugfix in Osmoload.c: Assigning correct value to data pointer in
LOADER_MEM_READ. Wrong value was introduced in last update when
msgb_get() was replaced by msgb_pull() which returns end of data instead
of start of data.
2013-05-23 07:44:50 +02:00
Sylvain Munaut 7684cdd20c host/mobile: Remove duplicate A5/1 support indication in vty 'show support'
Patch-by: Martin Hauke <mardnh@gmx.de>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-04-14 09:00:51 +02:00
Sylvain Munaut d27561b00f host/mobile: Fix comment typo
Patch-by: Martin Hauke <mardnh@gmx.de>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-04-14 08:59:47 +02:00
Sylvain Munaut 4bec71decd doc: Fix build readme with system-wide libosmocore details
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-04-13 23:23:09 +02:00
Steve Markgraf 62d48c29da fw: remove deprecated chainload app
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-04-07 11:36:00 +02:00
Steve Markgraf 1479b6812b osmocon: embed chainloader
This allows to directly load highram-images on
compal phones with the commandline-switch
-c.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-04-07 11:34:48 +02:00
Harald Welte 1a80966cbd support.c: fix typo in comment 2013-03-07 17:33:58 +00:00
Andreas Eversberg 6fead1c78c layer23: Be sure to close mncc socket on exit of mobile instance 2013-01-13 22:35:01 +01:00
Andreas Eversberg fdf7d2f8a5 layer23: Send SIM APDUs via GSMTAP, if enabled 2013-01-12 08:59:05 +01:00
Andreas Eversberg fed1774b65 mobile: Fixed CLIR invokation / suppression
If "clip" is given at vty, CLIR must be suppressed, which results in
presentation of caller ID digits, even if suppressed by network.

If "clir" is given at vty, CLIR must be invoked, which results in
restriction of caller ID digits, even if not suppressed by network.

Note: This only work for outgoing caller ID. Incomming caller ID
restriction cannot be suppressed.
2013-01-10 19:31:12 +01:00
Dario Lombardo dadafc49fb misc: Fix typos 2013-01-08 22:12:25 +01:00
Andreas Eversberg bff6bb7b54 mobile: Fixed ignoring of MDL-ERROR-IND
Some MDL-ERROR causes must not lead to link failure. The missing
"return 0" causes all errors to be ignored which are not listed inside
switch/case statement.
2013-01-08 13:30:35 +01:00
Andreas Eversberg 43b368b66d fix: Use only single CCCH block to determine path loss
The downlink singalling failure counter DSC is decremented by 4
in case of unsuccessfull decoding of CCCH block and incremented
by 1 in case of successfull decoding of CCCH block. The initial
and maximum value of 90 requires to check the signal only once
per 51 multiframe.

If DRX would be supported, only a subset of 51 multiframes are
received, so the initial / maximum value of 90 must be reduced
accordingly.
2013-01-08 09:12:15 +01:00
Andreas Eversberg f6b52d74dd mobile: Allow test card to be maked as already attached
This way it is possible to use test card without making attachment
to the network, if the LAI matches. It can be used to do faster
testing.
2013-01-07 11:22:08 +01:00
Andreas Eversberg 25c5e8221d mobile: Improved exit of mobile process, reset phone
If mobile phone has started, it is reset after shutdown. This
ensures that the phone is not transmitting anymore, especially
while shutting down in dedicated mode.

Using CTRL+c:
The first signal causes initiating of shutdown with detach
procedure. The second signal causes initiating of shutdown
without detach procedure. The third signal will exit process
immidiately. (in case it hangs)

Using CTRL+z:
The first signal causes initiating of shutdown without detach
procedure. A subsequent CTRL+c would exit process immidiately.
2013-01-07 10:39:59 +01:00
Steve Markgraf ee7fbbda22 fw: pirelli_dpl10: initialize address line 22 for flash access
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05 18:41:18 +01:00
Steve Markgraf 37a0543e26 fw: apps/loader: initialize framebuffer and show something
Since we now initialize the display for all apps, it
otherwise just shows the last content of the display
ram, which is weird.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05 18:41:11 +01:00
Steve Markgraf 0da82b96b7 fw: keypad driver overhaul, support for different keymaps
Now the Pirelli DP-L10 keymap is supported.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05 18:40:39 +01:00
Steve Markgraf 21bc3b8db0 fw: introduce per-board uart mapping
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05 18:38:42 +01:00
Steve Markgraf e340681c5b fw: introduce with_irq parameter for board_init()
So far the loader-app used to do the init on its
own, which brought a lot of problems for board-
specific initialization.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05 18:37:49 +01:00
Steve Markgraf 9fc6377003 osmocon: make romloader output much less verbose
Most of the output was only for debug purposes anyway.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05 18:37:12 +01:00
Sylvain Munaut 1ccc9f8822 target: Add support for IQ swap when required
Operation in GSM850 band requires IQ swap because of the offset PLL
used in the TRF causing spectrum reversal.

Thanks to Dieter Spaar for noticing the issue and the original patch

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:11 +01:00
Sylvain Munaut f853f92e47 fw: Fix link scripts to represent reality more accurately
Previously they were hacks to allow build ...
Not needed now.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:11 +01:00