summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/vty_interface.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-18mobile: Fix for "Added runtime selection of gps device"Яницкий Ва дим1-5/+4
The 'gps host HOST:PORT' line in the config file now is generated correctly. So that it is parsed correctly when loading the config on next startup. Also the gpsd port now is parsed as it should without a colon. Written-by: Яницкий Ва дим <axilirator@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-06-15mobile: Use osmocom auth API instead of direct callsMax1-4/+5
Submitted-by: Max <max.suraev@fairwaves.co> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-07mobile: Allow test card to be maked as already attachedAndreas Eversberg1-12/+62
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 Eversberg1-2/+2
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.
2012-11-22Rename various "rxlev" variable to "rxlev_dbm" and correct their signessAndreas Eversberg1-3/+3
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-02-14mobile: Add vty option to force rekeying for every new channelTim Ehlers1-0/+27
Written-by: Tim Ehlers <osmocom@ehlers.info> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13host/mobile: Adding (partly implemented) supplementary service supportAndreas Eversberg1-0/+31
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 Eversberg1-5/+10
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 Eversberg1-0/+85
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-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-07-17[layer23] Added special return value for invalid MCC/MNC inputAndreas Eversberg1-12/+12
This way an MNC of 000 can be entered.
2011-07-17[layer23] Correctly report to restart mobile instance after band changeAndreas Eversberg1-11/+11
Mobile instance must be restarted (shutdown / no shutdown) in order to apply changes to the available ARFCNs.
2011-07-17[layer23/mobile] Improvement and fixes of idle mode processAndreas Eversberg1-51/+218
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[mobile] Corrected output value of PCS power classAndreas Eversberg1-1/+1
2011-07-17[mobile] Adding option to hide most default values in configAndreas Eversberg1-46/+105
In order to shrink config output, a new config option "[no] hide-default" is added. The config is now easier to read, but does not show all available options, if they are set to default. Newcommers may want to see all available options in config. Therefore all options are show by default. To hide default options, enter: configure terminal hide-default end
2011-05-29[layer23] Adding Quadband support and GSM 4x0 supportAndreas.Eversberg1-20/+135
This makes it possible to use GSM 850 and PCS 1900 bands, as used in the US. The support relies on the phone hardware. Each band (900, DCS, 850, PCS, 480 and 450) can be enabled and disabled individually for each setting.
2011-05-15src: use namespace prefix osmo_* for utilsPablo Neira Ayuso1-2/+2
Summary of changes: s/bcd2char/osmo_bcd2char/g s/char2bcd/osmo_char2bcd/g s/hexparse/osmo_hexparse/g s/hexdump/osmo_hexdump/g s/hexdump_nospc/osmo_hexdump_nospc/g s/ubit_dump/osmo_ubit_dump/g s/static_assert/osmo_static_assert/g
2011-05-15src: use namespace prefix osmo_signal*Pablo Neira Ayuso1-1/+1
Summary of changes: s/signal_cbfn/osmo_signal_cbfn/g s/register_signal_handler/osmo_signal_register_handler/g s/unregister_signal_handler/osmo_signal_unregister_handler/g s/dispatch_signal/osmo_signal_dispatch/g
2011-04-26src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso1-4/+4
This patch changes include paths to get osmocom-bb working with the current libosmocore tree. Among all these renames, you can notice several tweaks that I added on purpose, and that require some explanation, they are: * hexdump() in osmocon.c and osmoload.c has been renamed to avoid clashing with hexdump() defined in libosmocore. * gsmmap now depends on libosmogsm. Actually I had to cleanup Makefile.am because I was experiencing weird linking problems, probably due to a bug in the autotools. With the change included in this patch, I got it compiled and linked here correctly. This patch has been tested with the phone Motorola C123 and the following images files: * firmware/board/compal_e88/hello_world.compalram.bin * firmware/board/compal_e88/layer1.compalram.bin Using the osmocon, bcch_scan and mobile tools. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-03-09[PATCH] Added runtime selection of gps device.Dario Lombardo1-37/+35
2011-02-16Added gpsd support.Dario Lombardo1-0/+41
2011-02-16Renamed gps_* functions to osmo_gps_* functions to avoid overlap with libgps ↵Dario Lombardo1-6/+6
functions.
2010-11-20[layer23] VTY uses CAPITAL letters for all optional parameter namesAndreas.Eversberg1-9/+9
This makes it easier to understand the VTY help. Every parameter name is shown in capital letters, every keyword is shown in lower case.
2010-11-20[layer23] VTY supports "show this" to show current MS node onlyAndreas.Eversberg1-4/+15
2010-11-20[layer23] Adding LAC and TMSI (both optional) to test card (rplmn)Andreas.Eversberg1-11/+35
2010-11-14[layer23/mobile] Better overview of "show ms" VTY commandAndreas.Eversberg1-61/+84
Combined "sh ms" and "sh states" to a more detailed "sh ms". The look-and-feel is more router like now.
2010-11-14[layer23] Cleanup of mobile applicationAndreas.Eversberg1-7/+4
All functions for handling mobile instances and mobile relevant parts are moved to mobile/app_mobile.c, the mobile/main.c and mobile/mncc.c become a simple out-of-the-box mobile application. (making calls) The mobile/main.c can be replaced easily by a different application now. this application may have it's own call control implementation (layer 4). Full configurations via VTY is still possible and required in this case.
2010-11-13[layer23] Added support for multiple MS instancesAndreas.Eversberg1-22/+249
To create another instance: 'ms <name> create' To remove an instance: 'no ms <name>' If no instance exists, 'ms 1' is created automatically on startup. Each instance can be enabled / disabled by using 'shutdown' or 'no shutdown'. Multiple instances may share the same layer2 socket (same phone hardware), but in this case only one instance can be enabled at the same time. This makes it much easier to select different settings without modifying them. A 'shutdown' initiates the IMSI detach procedure before shutdown is completed. A 'shutdown force' will immidiately shutdown. There is no need to restart the software anymore, if fundamental settings are changed. In this case, a 'shutdown' followed by a 'no shutdown' will do the job. If you already have an old osmocom.cfg, you need to "no shutdown" it. Everything else behaves as before.
2010-10-27layer23/mobile: Add configuration option for automatically answering callsSteve Markgraf1-0/+26
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-10-25layer23/vty_interface: Fix typos, AMR is v3 not v1Sylvain Munaut1-2/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-24[layer23] Moving sysinfo.c and gps.c (.h) to liblayer23Andreas.Eversberg1-1/+1
This makes sense, since multiple applications use it.
2010-10-15[layer23] DTMF supportAndreas.Eversberg1-0/+51
2010-10-14[layer23] Adding abbreviated dialing to VTYAndreas.Eversberg1-24/+132
It is possible to store phone numbers with abbreviations now. Dialing these abbreviation makes testing of mobile originated calls much easier too.
2010-10-13[layer23] Give ARFCN together with "show states <MS_NAME>"Andreas.Eversberg1-2/+5
2010-10-12[layer23] Call control is disabled when mobile is set to SDCCH onlyAndreas.Eversberg1-0/+12
On SDCCH only mobiles, incomming calls must be rejected by a minimal call control implementation, even if basic calls are not supported.
2010-10-12[layer23] Implementation of signal loss criteria as defined in TS 05.08Andreas.Eversberg1-0/+16
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.
2010-10-03[layer23] Fixed emergency call setupAndreas.Eversberg1-1/+3
2010-10-03[layer23] Rework of "support"-features, features can be disabled nowAndreas.Eversberg1-108/+397
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.
2010-10-02[layer23] Notify user when config change requires restart to take effectAndreas.Eversberg1-0/+16
2010-10-01[layer23] Minimum RX-level is now a configuratio optionAndreas.Eversberg1-0/+13
The default (if config not yet created/updated), is still taken from settings.c.
2010-09-27[layer23] Alter simulated-delay via VTY on the fly (active channel)Andreas.Eversberg1-0/+2
2010-09-26[layer23] Handle invalidation of TMSI correctlyAndreas.Eversberg1-1/+3
2010-09-26[layer23] VTY command for changing LAI on SIM cardAndreas.Eversberg1-0/+32
This speed up network selection process, because no manual network search is required to change a network.
2010-09-26[layer23] Speech codec selection and negotiation with networkAndreas.Eversberg1-1/+102
2010-09-20[layer23] VTY now checks dialed number for valid digitsAndreas.Eversberg1-1/+16
Also international calls can be dialed by adding '+' in front. If not the number will be dialed using 'unknown' type, prefixes must be added.
2010-09-19[layer23] Fixed and completed SIM's PIN handlingAndreas.Eversberg1-1/+98
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)
2010-09-17[layer23] Added XOR and COMP128 encryption to test SIMAndreas.Eversberg1-0/+71
To define/change a key for the test SIM, use the following sequence: conf t ms 1 test-sim ki comp128 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx end write or use: ki xor xx xx xx xx xx xx xx xx xx xx xx xx
2010-08-28[layer23] Layer 3 now uses SIM client to request and update SIM dataAndreas.Eversberg1-11/+56
The SIM reader can be selected via VTY, but because it is not yet implemented in layer1, nothing happens when selecting it.
2010-08-10Added support for NMEA GPS receiverAndreas.Eversberg1-0/+76
This early support does not use the received postion, it just dumps it. Later it can be used to set clock of the phone. Also it can be used to calculate the location of a BTS.
2010-07-27layer23: Split [2/2] -> The header filesSylvain Munaut1-7/+7
This split the headers and adapt the source. We use osmocom/bb as a prefix because libosomore also uses osmocom and generic names such as misc & common could conflict in the future. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>