Commit Graph

2126 Commits

Author SHA1 Message Date
Luca Melette d88025e6d9 Initial release of libosmosim, firmware and host code to support gsmmap.org tools 2013-12-25 17:28:18 +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
Sylvain Munaut adfc622cc1 fw/build: Allow applications to filter environments
We use an external python script to solve which env to build, to
mix board and app env list

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:11 +01:00
Sylvain Munaut 3ee1beb8bf fw/build: Add ENV_ APP_ BOARD_ prefix to variables to cleanup namespace
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:11 +01:00
Sylvain Munaut d9f6921c02 fw/build: Group env / boards / applications
No functional changes, just moving things around

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:11 +01:00
Sylvain Munaut 09447f3bff fw/build: The app/board/env combo macro need to be last
The app template will create the list of app specific objs so that
needs to be before

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:10 +01:00
Sylvain Munaut 4aab780f20 fw/build: Include app / board / env specific objs during build
Just put the env with the rest and not manifest and also allow
app additional files

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:10 +01:00
Sylvain Munaut 0bfedc439f fw/build: Add a silent rule for the 'size' call as well
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:10 +01:00
Sylvain Munaut 4df6653d8d mobile/gsm411: Fix printf format warning
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:10 +01:00
Sylvain Munaut 9c1d7b10b8 mobile/gsm411: Adapt to new libosmocore API for SMC/SMR by adding id
Here we just use the transaction ID

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:10 +01:00
Sylvain Munaut 439738df43 build: Use the system wide libosmocore for host applications
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:10 +01:00
Sylvain Munaut 1e2117e70c host/cell_log: Prevent buffer overflow when displaying arfcn range
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:43:49 +01:00
Dario Lombardo 1776eaabe9 host/l23: Added custom frequecy range to cell_log.
Written-by: Dario Lombardo <lomato@libero.it>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:27:47 +01:00
Alex Badea dccf41703a l23 sysinfo: defer SI4 CBCH mobile allocation until SI1 is received
When parsing SI4, there's a check and a log message saying that CBCH
MA is ignored until SI1 is received.  Then the MA is decoded anyway --
incorrectly -- such that it remains incorrect even after receiving
the next SI1.

Fix that with an "else".

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
2013-01-02 18:31:30 +01:00
Andreas Eversberg 97eb0c701d Fix: Check if cell is barred, before performing location updating
If not checked, the MM process will crash, due to an endless loop
of trying to do location updating to barred cell.
2012-12-29 15:37:31 +01:00
Andreas Eversberg d72cb4401e Rename various "rxlev" variable to "rxlev_dbm" and correct their signess
All levels in range of 0..63 are now uint8_t and use "rxlev" as
variable name. All levels in range of -110..-47 are now int8_t and use
"rxlev_dbm" as variable name.
2012-11-22 16:00:33 +01:00
Harald Welte 85f4e1b3b8 fix previous commit: use dbm2rxlev()
As andreas points out, there are structure members that are called
'rxlev' but which don't use the scaling (0..63) of the GSM specs, but
which are already a signed type and in dBm.  So they need to be
converted.

TODO: Rename those structure members to rxlev_dbm or something that
explicitly states it is _not_ an 'RXLEV' value in terms of GSM.
2012-11-22 10:15:10 +01:00
Harald Welte 73a809e57b Tell L1CTL_FBSB_REQ the expected received signal level
As Dieter points out, this drastically improves the resiliance to high
receive levels on the C155.  We cannot blindly assume a received signal
level of -85 dBm if the BTS is 2m away and we actually receive -40 dBm.

This patch extends the L1CTL_FBSB_REQ data structure in layer 1 with the
respective field, as well as the l1ctl_tx_fbsb_req() API function called
from the various layer23 apps.

"mobile" and "bcch_scan" already did a PM request and thus know the
expected signal power.  "ccch_scan" and "cbch_sniff" apparently don't
do, so the -85 dBm constant is now hardcoded into the host-side source
code there, and should probably be fixed in a follow-up patch.
2012-11-20 10:13:44 +01:00
Pavel Baturko 2879e77bd3 Fix wrong print of scan freq when using gsm_print_arfcn twice for the same log message 2012-11-16 14:47:54 +01:00