summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile
AgeCommit message (Collapse)AuthorFilesLines
2013-04-14host/mobile: Remove duplicate A5/1 support indication in vty 'show support'Sylvain Munaut1-1/+0
Patch-by: Martin Hauke <mardnh@gmx.de> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-03-07support.c: fix typo in commentHarald Welte1-1/+1
2013-01-13layer23: Be sure to close mncc socket on exit of mobile instanceAndreas Eversberg1-5/+5
2013-01-10mobile: Fixed CLIR invokation / suppressionAndreas Eversberg1-2/+4
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-08misc: Fix typosDario Lombardo1-1/+1
2013-01-08mobile: Fixed ignoring of MDL-ERROR-INDAndreas Eversberg1-0/+1
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-07mobile: Allow test card to be maked as already attachedAndreas Eversberg3-15/+71
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-07mobile: Improved exit of mobile process, reset phoneAndreas Eversberg3-19/+62
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-02mobile/gsm411: Fix printf format warningSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02mobile/gsm411: Adapt to new libosmocore API for SMC/SMR by adding idSylvain Munaut1-8/+8
Here we just use the transaction ID Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-12-29Fix: Check if cell is barred, before performing location updatingAndreas Eversberg1-0/+9
If not checked, the MM process will crash, due to an endless loop of trying to do location updating to barred cell.
2012-11-22Rename various "rxlev" variable to "rxlev_dbm" and correct their signessAndreas Eversberg5-22/+22
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-22fix previous commit: use dbm2rxlev()Harald Welte1-1/+1
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-20Tell L1CTL_FBSB_REQ the expected received signal levelHarald Welte1-1/+2
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-16Fix wrong print of scan freq when using gsm_print_arfcn twice for the same ↵Pavel Baturko1-4/+12
log message
2012-11-15Fix: Correctly convert ARFCN to index.Joshua Lackey1-1/+4
If you enable PCS, you'll never make it out of power-measurement without this patch.
2012-10-30Fix: Change T200 of LAPDm if SAPI 0 and SAPI 3 share bandwidth on SDCCHAndreas Eversberg2-0/+37
We use 1 second on FACCH and 2 seconds on SACCH when SMS is transfered during a call on TCH. There is no impact on bandwidth, because SAPIs use differen channels. In order to correctly transfer SMS during SDCCH, the T200 must be raised from 1 (SAPI 0) to 2 (SAPI 0 and 3), so T200 will not timeout before receiving acknowledge from BTS. This is because both SAPIs share the same ressource on SDCCH. After release of SAPI 3, T200 is lowered back to 1.
2012-10-30Fixed decoding of hexadecimal LAI componentsAndreas Eversberg3-20/+12
libosmocore has changed its LAI decoding from hex to decimal. This caused wrong decoding of MCC and MNC. In order to provide required hex transcoding, special hex encoding and decoding function are added to mobile/sysinfo.c.
2012-09-17Fix linking with GNU ld 2.22 and libgpsKevin Redon1-2/+2
Error: gcc -Wall -I/home/kevredon/osmocom-bb/src/shared/libosmocore/include -I/home/kevredon/osmocom-bb/src/shared/libosmocore/include -g -O2 -D_HAVE_GPSD -lgps -o cell_log main.o app_cell_log.o cell_log.o geo.o ../common/liblayer23.a /home/kevredon/osmocom-bb/src/shared/libosmocore/build-host/src/.libs/libosmocore.a /home/kevredon/osmocom-bb/src/shared/libosmocore/build-host/src/gsm/.libs/libosmogsm.a /home/kevredon/osmocom-bb/src/shared/libosmocore/build-host/src/codec/.libs/libosmocodec.a -lm ../common/liblayer23.a(gps.o): In function `osmo_gpsd_cb': /home/kevredon/osmocom-bb/src/host/layer23/src/common/gps.c:79: undefined reference to `gps_waiting' Fix: Holger told me to do so (he knows better then me about autoconf) - set CFLAGS and LIBS for LIBGPS in layer23 - add libgps CFLAGS and LIBS in Makefile.am for common, misc, mobile I would have done the following (which also works): -AC_CHECK_LIB(gps, gps_waiting, CFLAGS+=" -D_HAVE_GPSD" LDFLAGS+=" -lgps",,) +AC_CHECK_LIB(gps, gps_waiting, CFLAGS+=" -D_HAVE_GPSD" LDFLAGS+=" -lgps" LIBS+=" -lgps",,)
2012-03-01l23: Add option for mobile-app to bind to other interfaces than localhostTim2-5/+12
Signed-off-by: Tim Ehlers <osmocom@ehlers.info> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-02-14mobile: Add vty option to force rekeying for every new channelTim Ehlers4-3/+38
Written-by: Tim Ehlers <osmocom@ehlers.info> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-02-02Just a quick bug fix to gsm322.c.Kurtis Heimerl1-2/+3
Basically, there were two commands in an "else" block without brackets, causing the "end = 1023+299" command to execute regardless of the state of index. Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
2012-01-02layer23/mobile: Fixed cell re-selection after loosing signalAndreas Eversberg1-3/+4
Test showed that loosing the signal in dedicated mode caused a complete rescann of all cells. By keeping the cell selected, the process can use the neighbour cell informations to do a quick search for the best cell afterwards.
2012-01-02layer23/mobile: Minor fix of debugging outputAndreas Eversberg1-1/+1
2012-01-02layer23/mobile: Enable SIM reader by defaultAndreas Eversberg1-2/+1
If there is no SIM card in the reader, the SIM process would automatically proceed without SIM anyway.
2011-12-11layer23: Call talloc_free unconditionallyHolger Hans Peter Freyther1-5/+2
talloc_free will check for NULL and return -1. _talloc_free(void *pyr) { if (unlikely(ptr == NULL)) { return -1; } ...
2011-11-17mobile/MM: Fixed handling of T3230 (MM connection timeout)Andreas Eversberg1-1/+2
If network will not respond to (additional) service request, the timeout will abort the pending MM connection and return to the state before the MM connection was requested or wait for network command.
2011-11-17mobile/MM: Fixed handling of T3220 (IMSI detach timeout)Andreas Eversberg1-3/+20
If network will not terminate radio connection, the timeout will abort the radio connection.
2011-11-13host/mobile: Indicate unsupported TS 04.14 test messages in logAndreas Eversberg1-0/+5
There is no support for TS 04.14. A logging message will inidcate this, if a tester requests test functions. A STATUS message will be sent as it is for for other usupported protocol types received. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Adding (partly implemented) supplementary service supportAndreas Eversberg7-15/+1332
Use VTY to request your extension number form OpenBSC: en service 1 *100# Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Mobile will use SMS Service Center Address from SIMAndreas Eversberg3-26/+69
In case the SMS Service Center Address is not set in the config, the Address from the SIM card is used. The mobile checks if either one is defined, otherwise it will refuse sending SMS. Since records of SIM are read, this patch includes fixes to talk correctly with the SIM client. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile/sms: Adding SMS support for osmocomBB/mobileAndreas Eversberg8-7/+1041
Both MO and MT SMS are supported. Transmission an reception can be controlled via VTY: en sms 1 <destination> <text> All received SMS are stored in "~/.osmocom/bb/sms.txt". SMS transmission is performed on SAPI 3 datalink, using DCCH or ACCH. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile/sms: Adding SAPI 3 support to MM and RR layersAndreas Eversberg3-124/+584
RR now handles SAPI 3 datalink. MM connections now have and individual sapi, so MM can use right SAPI for communication with other layers, as well as releasing the right MM connections in case of link release. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Whitespace fixes, no functional changesSylvain Munaut6-50/+50
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/layer23: Removed local copy of LAPDm, using libosmocore instadAndreas Eversberg1-1/+0
Since libosmocore already has LAPDm implementation, we don't need the local copy of LAPDm code anymore. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Fixed paging response with correct identity typeAndreas Eversberg1-20/+34
In case we got paged with IMSI, but even if we have a valid TMSI, we need to respond with IMSI, because the network may not know our TMSI anymore. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Prevent the MM layer from making calls when not attachedAndreas Eversberg1-2/+3
If location updating (attachment) fails, the mobile returnes into idle state. Because the SIM may be valid in this location area, the mobile must check if the SIM is already attached. If not it may not change to normal service. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Fix indentation in gsm48_cc, no functional changeAndreas Eversberg1-5/+5
Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Adding memory leak debuggingAndreas Eversberg1-7/+35
When mobile exits, a list of allocated memory chunks are dumped to stderr. This helps to find talloc_free / msgb_free leaks. During process, a SIGUSR1 or SIGUSR2 can be used to dump currently allocated memory chunks. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Adding telnet_exit to free telnet connection ressourcesAndreas Eversberg1-0/+2
Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-06misc: u_intX -> uintX in the host directoryHolger Hans Peter Freyther1-4/+4
Use C99 stdint.h for the inttypes.
2011-09-04[mobile] Adding option to run as daemonAndreas Eversberg1-1/+15
2011-09-04[mobile] Using socket application interface with mobile applicationAndreas Eversberg5-32/+111
Use "-m" with mobile app, to use it in conjunction with LCR or other applications.
2011-09-04[mobile] Adding socket application interface code from OpenBSC.Andreas Eversberg1-0/+347
2011-08-13[mobile] Disable SMS by default, because SMS is not supportedAndreas Eversberg1-1/+1
2011-08-11mobile/vty: Add missing 's' for 'skip-max-per-band' configuration parameterSteve Markgraf1-1/+1
Thanks to Sylvain for pointing this out. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-08-06Fix of wong Classmark 2 when doing CM Service Request.Andreas Eversberg2-6/+11
Same reason as the commit below... (3b2b3b09a) Thanx again to Dieter for pointing this out.
2011-08-04Fix of wong Classmark 1 on Location Updating and IMSI DetachAndreas Eversberg1-3/+7
The reason for the the wrong power capability comes from the fact that "rr->cd_now" is not yet set and so the ARFCN is 0 which causes the GSM900 power capability to be used. It is set to "Class 4" in the configuration file per default, however this value is not defined for GSM1800/1900. Thanx to Dieter Spaar for finding this bug!
2011-07-28layer23: Add mobile support for sending / receiving voice frame through MNCCAndreas.Eversberg5-25/+169
Support GSM FR codec only so far. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-07-28layer23: Adapt to new logging API: fix calls to log_initAndreas.Eversberg1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>