summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom
AgeCommit message (Collapse)AuthorFilesLines
2011-01-30[mobile] introduce and use gsm48_mmevevent_input()laforge/mobile_eventHarald Welte1-2/+2
... instead of using sequences of gsm48_mmevent_msgb_alloc() followed by gsm48_mmevent_msg()
2011-01-30[mobile] replace 3 different gsm322_makesend_* functions with oneHarald Welte1-3/+9
The new function is gsm322_event_input() and uses the event type as a function argument.
2011-01-30[mobile] simplify code to send events into GSM 3.22 codeHarald Welte1-4/+3
instead of gsm322_msgb_alloc() followed by a sendmsg with intermittent error checks we now have only a single function call.
2010-12-27layer23: Enable combining the long optionsHolger Hans Peter Freyther1-0/+3
Combine the long options from the base and the application. Provide the long option for the cell log application.
2010-12-27layer23: Make the logfile configurable with cell_logHolger Hans Peter Freyther1-0/+3
Be able to add extra (short) options from the 'applet' to the main application. Use this to print the help mentioning app specific options, pass the getopt string and handle the command line parsing for it. Change cell_log to keep the logname in the app_cell_log.c and then access it from the cell_log.c implementation.
2010-12-27layer23: Not every application supports every option add enumHolger Hans Peter Freyther1-0/+11
Allow each application to specify the options it is supporting.
2010-12-27layer23: Create an l23_app_info for various information and cb'sHolger Hans Peter Freyther1-0/+8
Make it possible that each l23 app can inject the copyright string, also prepare to have callbacks for the config handling and other places. This will be useful to add app specific config options.
2010-11-20[layer23] Adding LAC and TMSI (both optional) to test card (rplmn)Andreas.Eversberg2-1/+4
2010-11-14[layer23] Cleanup of mobile applicationAndreas.Eversberg3-1/+19
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.Eversberg4-2/+12
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-30layer23: Use the new rach_req format in l1ctl and update l23 apps to use itAndreas.Eversberg1-2/+2
This removes an old hack Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-27layer23/mobile: Add configuration option for automatically answering callsSteve Markgraf1-0/+1
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-10-24[layer23] Adding application to scan/receive and log SYSTEM INFORMATIONSAndreas.Eversberg1-0/+25
2010-10-24[layer23] Moving sysinfo.c and gps.c (.h) to liblayer23Andreas.Eversberg5-4/+4
This makes sense, since multiple applications use it.
2010-10-24[layer23] Moving decoding of SYSTEM INFORMATION to sysinfo.cAndreas.Eversberg1-0/+29
This way the decoding can be re-used by other applications.
2010-10-24[layer23] Fix of GPS statesAndreas.Eversberg1-0/+1
2010-10-20[layer23] Completed GPS reading processAndreas.Eversberg2-3/+10
This includes "double" values of logitude and latitude, as well as time stamp, and if the values are valid or not (GPS fix).
2010-10-15[layer23] DTMF supportAndreas.Eversberg2-6/+18
2010-10-14[layer23] Adding abbreviated dialing to VTYAndreas.Eversberg1-0/+11
It is possible to store phone numbers with abbreviations now. Dialing these abbreviation makes testing of mobile originated calls much easier too.
2010-10-12[layer23] Implementation of signal loss criteria as defined in TS 05.08Andreas.Eversberg3-0/+9
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] Rework of "support"-features, features can be disabled nowAndreas.Eversberg3-9/+28
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-01[layer23] Minimum RX-level is now a configuratio optionAndreas.Eversberg1-0/+1
The default (if config not yet created/updated), is still taken from settings.c.
2010-10-01[layer23] Remove obsolete function from header fileAndreas.Eversberg1-1/+0
2010-09-28l1ctl: Add initial tch_mode value in DM_EST_REQSylvain Munaut1-2/+3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-27[layer23] Alter simulated-delay via VTY on the fly (active channel)Andreas.Eversberg1-0/+1
2010-09-26[layer23] Speech codec selection and negotiation with networkAndreas.Eversberg2-0/+8
2010-09-26[layer23] Added support for changing TCH mode via L1CTL messagesAndreas.Eversberg2-0/+9
2010-09-26[layer23] Adding application generated measurement reportAndreas.Eversberg3-22/+28
The cell provides SYSTEM INFORMATION 5* and 6. These are used to create a list of neighbor cells to monitor. Because there is no neighbor cell monitoring supported by layer1, the list has no valid results yet. Currently the average RX level of received frames are used to generate a new report every second. The report is transmitted to layer1 and used there whenever a measurement report has to be transmitted. The timing advance and the current transmit power (as requested by network), is included with every report.
2010-09-19[layer23] Fixed and completed SIM's PIN handlingAndreas.Eversberg2-7/+8
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-18[layer23] SIM client completionAndreas.Eversberg3-2/+5
The SIM client is now complete. Because it usefull for multiple applications, i moved it to the layer23/src/common directory. The SIM reader works together with mobile process. Fixes were made. Thanx to all for testing, finding bugs, and making it work as it is supposed to do. The current version uses special L1CTL messages to send and receive APDUs. This will change in the future, when BTSAP interface is completed. Please note that this client will not work until the layer1 SIM reader fixes and extensions are committed.
2010-09-18[layer23] Added BTSAP socket interface to layer23Andreas.Eversberg2-0/+12
2010-09-18[layer23] Added BTSAP socket interface to layer23Andreas.Eversberg1-1/+7
2010-09-17[layer23] Added XOR and COMP128 encryption to test SIMAndreas.Eversberg2-5/+8
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-09-17[layer23] CM service is now accepted when ciphering has startedAndreas.Eversberg1-0/+2
Sylvain pointed out that CM SERVICE ACCEPT message is not requred, if ciphering has been completed. In this case, an RR_SYNC_IND is sent to mobility management, and treated there as CM SERVICE ACCEPT.
2010-09-14layer23: Move app logic in layer3.c with state struct.Sylvain Munaut1-0/+3
It's far from perfect but at least it's not split in two file and makes it easier to expand the logic. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-11[layer23 / layer1] Added interface for changing crypto mode of DSPAndreas.Eversberg2-1/+4
The layer23 will now set crypto mode and key when CIPHERING MODE COMMAND is received. After crypto mode has been set, CIPHERING MODE COMPLETE is sent. NOTE: Layer1 implements only the interface, there is no functionality to it yet.
2010-08-30[layer23] SIM client accepts status code 61xx as a positive resultAndreas.Eversberg1-0/+1
2010-08-29[layer23] "show cell 1 <arfcn>" gives better overview of cell allocationAndreas.Eversberg1-1/+0
2010-08-29[layer23] Fixed security issueAndreas.Eversberg2-1/+2
Authentication must not be performed using SIM client, if different IMSI is used, to protect identity of caller.
2010-08-28[layer23] Layer 3 now uses SIM client to request and update SIM dataAndreas.Eversberg3-12/+33
The SIM reader can be selected via VTY, but because it is not yet implemented in layer1, nothing happens when selecting it.
2010-08-28[layer23] Adding SIM clientAndreas.Eversberg3-5/+275
The SIM client is not the SIM reader. It is used to process higher layer requests. One request may be: "read the IMSI file" or "unlock SIM card, here is the key". It then selects the right file of SIM card and processes the request by exchanging APDUs with the SIM reader. NOTE: Because the reader inside layer 1 is not yet finished, the SIM client will not work and cannot be tested yet.
2010-08-21[layer23] Radio ressource protocol completed except for handover, meas.Andreas.Eversberg1-4/+13
Assignment command is now complete as well as frequency redifinition. The handover process is partly complete. Further functionality depends on layer1 capabilites. The measurement report is also incomplete.
2010-08-21[layer23] Header file for last commitAndreas.Eversberg1-0/+6
2010-08-14[layer23] Added (incomplete) ASSIGNMENT COMMAND handlingAndreas.Eversberg2-5/+14
This commit features handling of ASSIGNMENT COMMAND. Currently only channel descriptions "after time" are processed, which is mostly the case. The ASSIGNMENT COMMAND is essential, because public networks assign an SDCCH4/8 before actually assigning a TCH.
2010-08-11[layer23] Paging response depends on the supported channels: SDCCH, TCH/F, ↵Andreas.Eversberg1-0/+5
and TCH/H
2010-08-10Added support for NMEA GPS receiverAndreas.Eversberg1-0/+33
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-08-10Added sequence number to L3 messages (see GSM 04.08 Clause 3.1.4.3)Andreas.Eversberg1-0/+3
This is required to detect duplicated messages during assignment or handover. Each PDISC uses its own sequence number, but MM+CC+SS share the same. The sequence number is only required in uplink direction. Dieter: Please check, if your tester eats it now. Also try to trace if the sequence number is set correctly.
2010-08-04[layer23] use gsm48_decode_freq_list() which has been moved into libosmocoreHarald Welte1-6/+2
2010-08-01[layer23] Correctly release a call, if not yet acknowledged by the networkAndreas.Eversberg1-0/+1
2010-07-30layer23: Fix Makefile.am noinst_HEADERS for vty.hSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>