summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include
AgeCommit message (Collapse)AuthorFilesLines
2016-09-25[HACK] Display text from UI using framebufferAndreas Eversberg1-1/+3
2016-09-25[HACK] Use display and keypad via L1CTLAndreas Eversberg3-1/+10
This hack is just for demonstration.
2016-09-25layer23/mobile: Adding user interface to mobile applicationAndreas Eversberg5-2/+60
Enable it in the VTY: en conf t ms 1 user-interface telnet-port 4248 write It will show a status screen. Different items to display in the status screen can be enabled/disabled via configuration. Dialing and handling of one or multiple calls are possible. This interface is not complete.
2016-09-25layer23/mobile: Added generic user interfaceAndreas Eversberg4-1/+116
The user interface instance is currently accessed via telnet. It supports different views to display or enter something. It is still not complete.
2016-09-25layer23/mobile Fixes and improvements of built in call control (mnccms)Andreas Eversberg4-31/+61
The list of calls are now per MS instance, as they should be. Added init and exit function. Pending call instances are removed on exit. Added call state to call instances for easier state handling. Call functions now have optional indexes to handle explicitly given calls. gsm_call structure and function prototypes are now moved to a new header file (mnccms.h).
2016-09-25layer23/mobile Store current PLMN with the network nameAndreas Eversberg1-0/+1
This is essential, so we know if the least given name is still valid in the network we are currently on.
2016-09-25layer23/mobile: Adding current rxlev/snr/berr to RR layer structureAndreas Eversberg1-0/+1
2016-09-25layer23/mobile: Adding summary of up to 6 strongest neighbour cellsAndreas Eversberg1-0/+8
2016-09-25Add ringer support to built-in MNCC application of mobileAndreas Eversberg2-0/+9
2016-09-25Add ringer support to L1CTL interface and layer1Andreas Eversberg1-0/+3
2016-09-25mobile: VTY provides two options to disable neighbor cell measurementsAndreas Eversberg1-1/+2
1. "no neighbor-measurement idle": neighbor cell measurement for cell re-selection 2. "no neighbor-measurement dedicated": neighbor cell measurement for handover
2016-09-25mobile: Keep track of cell channel description during dedicated modeAndreas Eversberg1-0/+1
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.
2016-09-25[WIP] HO: VTY test option to fake a better neighbor cell to force handoverAndreas Eversberg1-0/+3
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.
2016-09-25[WIP] HO: Completed handover process at mobile (layer 3).Andreas Eversberg1-2/+22
The implementation supports: - Non-synchronised handover - Synchronized handover (tbd) - Pre-sychronized handover
2016-09-25[WIP] HO: Add new parameters to L1CTL_DM_EST_REQAndreas Eversberg1-2/+3
* 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.
2016-09-25[WIP] HO: Add BSIC to L1CTL_NEIGH_PM_INDAndreas Eversberg1-0/+1
2016-01-18host/mobile: Improved SAP interface integrationЯницкий Ва дим2-1/+5
1) Now the SAP interface is selectable as SIM source using the 'sim sap' command in VTY. 2) SAP connection starts only if it is configured as SIM source. 3) Fixed sap_socket_path configuration r/w errors. Written-by: Яницкий Ва дим <axilirator@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-04-28host/mobile: Finish working support for the SAP interfaceSylvain Munaut2-1/+66
Patch mostly written by Nico Golde and some cleanup/testing by Domonkos Tomcsanyi Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-06-15mobile: Use osmocom auth API instead of direct callsMax1-6/+0
Submitted-by: Max <max.suraev@fairwaves.co> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23host/mobile: Add 'extern' qualifier to config_dir in app_mobile.hBhaskar1-1/+1
This prevents duplication definition with main.c From: Bhaskar <niceguy108@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23gsm48_mm.h: Added get_mm_name() to headerBhaskar1-0/+1
2013-04-14host/mobile: Fix comment typoSylvain Munaut1-1/+1
Patch-by: Martin Hauke <mardnh@gmx.de> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-08misc: Fix typosDario Lombardo1-1/+1
2013-01-07mobile: Allow test card to be maked as already attachedAndreas Eversberg2-1/+2
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.
2012-11-22Rename various "rxlev" variable to "rxlev_dbm" and correct their signessAndreas Eversberg4-7/+7
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-20Tell L1CTL_FBSB_REQ the expected received signal levelHarald Welte1-1/+1
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-10-30Fix: Change T200 of LAPDm if SAPI 0 and SAPI 3 share bandwidth on SDCCHAndreas Eversberg1-0/+5
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 Eversberg2-4/+4
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-03-01l23: Add option for mobile-app to bind to other interfaces than localhostTim2-1/+2
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 Ehlers2-0/+2
Written-by: Tim Ehlers <osmocom@ehlers.info> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-01-02layer23/mobile: Fixed variable type, so home network is detected correctlyAndreas Eversberg1-1/+1
2011-11-13host/mobile: Adding (partly implemented) supplementary service supportAndreas Eversberg4-3/+20
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 Eversberg4-3/+16
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 Eversberg4-9/+44
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 Eversberg2-2/+17
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/layer23: Removed local copy of LAPDm, using libosmocore instadAndreas Eversberg4-189/+2
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: Bring mncc.h in sync with OpenBSC and LCRAndreas Eversberg1-0/+1
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-0/+1
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-06misc: u_intX -> uintX in the host directoryHolger Hans Peter Freyther1-5/+5
Use C99 stdint.h for the inttypes.
2011-09-04[mobile] Using socket application interface with mobile applicationAndreas Eversberg4-5/+5
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/+16
2011-08-06Fix of wong Classmark 2 when doing CM Service Request.Andreas Eversberg1-1/+2
Same reason as the commit below... (3b2b3b09a) Thanx again to Dieter for pointing this out.
2011-07-28layer23: Add mobile support for sending / receiving voice frame through MNCCAndreas.Eversberg5-4/+33
Support GSM FR codec only so far. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-07-17[layer23] Added special return value for invalid MCC/MNC inputAndreas Eversberg1-0/+2
This way an MNC of 000 can be entered.
2011-07-17[layer23] Fixes and improvements of system information decodingAndreas Eversberg1-2/+3
2011-07-17[layer23/mobile] Improvement and fixes of idle mode processAndreas Eversberg5-20/+73
This patch introduces cell re-relection. When camping on a cell, it scanns neighbour cells. If a 'better' cell is found, the cell is selected. If the cell is in a different location area, a location upating is performed under certain conditions. The 'better' cell depends on various informations that are broadcasted on the BCCH of a neihbour cell and of course the RX level. Most operators don't set these informations, so the 'better' cell depend on a better RX level for the same location area, or a much better RX level (6 dBm) at a different location area. There were many issues at the idle mode process that has been fixed. Expecially when moving, the state machines got stuck, so no more cell search was possible, or no further calls / location updating was possible. In order to see the process of cell selection, enter the VTY interface and enable the network monitor: enable monitor network 1 (where '1' is the instance of the MS) In order to see the current state of the processes, enter: show ms
2011-07-17[layer23] Adding "neighbour cell" logging category: DNBAndreas Eversberg1-0/+1
2011-07-17[layer23] Adding neighbour cell measurement to L1CTL interface.Andreas Eversberg2-0/+10
2011-07-17[layer23] Fixed handling of channel 0 in certain loopsAndreas Eversberg1-1/+1
The ARFC counts from 1 to 1023, and then to 0. The index of these loops count from 1 to 1024. The index 1024 stands for ARFCN 0. This also reverses commit eb77945e162ae1968242009372e448b7af51ea50.
2011-07-16settings.h: IMSI is 15 bytes +1 \0 maximumHarald Welte1-2/+2
If we use a larger field to store the IMSI, we can create overflows when copying the imsi to other structures that are only 16 bytes in size. Detected by Smatch: src/host/layer23/src/mobile/subscriber.c +195 gsm_subscr_testcard(39) error: strcpy() 'set->test_imsi' too large for 'subscr->imsi' (20 vs 16)