Commit Graph

466 Commits

Author SHA1 Message Date
Harald Welte cde3f7d2c6 mobile: Store N.ba files in same directory as config file
This should remove the last dependency to hard-coded system-wide /etc/osmocom
2011-03-02 11:00:59 +01:00
Harald Welte 4be57b9afd mobile: Use config file in ~/.osmocom/bb/mobile.cfg
We don't need root permission and a system-wide config file in /etc/osmocom

Based on a patch by Pierre Pronchery <khorben@defora.org>
2011-03-02 10:35:39 +01:00
Dario Lombardo b7a4d8d912 Added gpsd support. 2011-02-16 15:15:12 +01:00
Dario Lombardo 26ff2ee880 Renamed gps_* functions to osmo_gps_* functions to avoid overlap with libgps functions. 2011-02-16 15:15:07 +01:00
Andreas.Eversberg 837710c285 [l1ctl] Adding missing msgb_free()
When a corrupt frame cannot be delivered, it is dropped. Also it must be freed.
2011-01-27 16:33:04 +00:00
Dario Lombardo e112a24223 cell_log: Added command line switches to change default gps device and baud rate. 2011-01-26 14:39:00 +01:00
Holger Hans Peter Freyther 66de91f3a8 ccch: Print paging of tyep2 2011-01-23 14:29:44 +01:00
Holger Hans Peter Freyther d1790b9940 ccch: Decode the paging1 type paging requests
Th size checks are a bit messy and I have not seen an optional
MI yet. So this code path is not tested at all.
2011-01-23 14:29:44 +01:00
Holger Hans Peter Freyther 9d90193dee ccch: Print the decoded immediate assignment again, ignore two messages
Decode the immediate assignment and print the messages as a
notice, ignore the Notification for voice group services and
use a magic number for SI 2quater that I could not find in my
version of the spec.
2011-01-23 14:29:44 +01:00
Holger Hans Peter Freyther f9a699e682 ccch: Stop using fprintf for the SI
Stop using fprintf to print the System Information number of the
data we get. For the check use LOGP with LOGL_ERROR. There is
little use in this information.
2011-01-23 14:29:44 +01:00
Holger Hans Peter Freyther 661d9a33e1 logging: Move DRSL, DLAPDM, DL1C to LOGL_NOTICE as default
All these layers are mostly stable, increase the default log
level to LOGL_NOTICE.
2011-01-23 14:29:44 +01:00
Holger Hans Peter Freyther f2ebf09915 misc: Ignore two misc application binaries 2011-01-23 11:36:30 +01:00
Holger Hans Peter Freyther 5c49b44653 ccch: Stop following assignment requests and sending LUs
Make the ccch_scan only look at the immediate assignment
but do not follow it. The old behavior was dangerous as
it could interfere with the real receiver of the channel.
2011-01-23 11:36:30 +01:00
Holger Hans Peter Freyther 84bde8f7fb ccch: Fix the cast of the frequency list 2011-01-23 11:36:30 +01:00
Holger Hans Peter Freyther a31f742a94 ccch: Remove the app_phone.c, move it to the app_ccch_scan file 2011-01-23 11:36:30 +01:00
Holger Hans Peter Freyther d97f0f2681 ccch: Add a copyright header to that file. 2011-01-23 11:36:30 +01:00
Holger Hans Peter Freyther 88eb926637 layer23: Rename layer23 to ccch_scan as discussed on the ml 2011-01-23 11:36:30 +01:00
Steve Markgraf fa86ada92b update .gitignore
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-18 13:24:28 +01:00
Andreas.Eversberg 411c8f35dd [layer23] Enable half rate support in support.c 2010-12-28 12:22:39 +00:00
Andreas.Eversberg 93c64102e1 [layer23] Timer 3126 must be stopped even if starting time is given 2010-12-28 12:21:18 +00:00
Holger Hans Peter Freyther 2281ec1a65 layer2: Make it possible to disable or increase the number of RA bursts 2010-12-27 20:04:09 +01:00
Holger Hans Peter Freyther ace267cfc2 layer23: Enable combining the long options
Combine the long options from the base and the application. Provide
the long option for the cell log application.
2010-12-27 19:01:37 +01:00
Holger Hans Peter Freyther 63c0e6d199 layer23: Make the logfile configurable with cell_log
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-27 19:01:37 +01:00
Holger Hans Peter Freyther 738f9d892a layer23: Not every application supports every option add enum
Allow each application to specify the options it is supporting.
2010-12-27 19:01:37 +01:00
Holger Hans Peter Freyther 2934d0a4f4 layer23: Create an l23_app_info for various information and cb's
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-12-27 19:01:37 +01:00
Andreas.Eversberg 000066110a [cell_log] Use GPS signal, even if it becomes valid during scanning 2010-12-27 17:11:28 +00:00
Harald Welte deee3d3f69 update list of networks with information from ITU
http://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-E.212B-2010-PDF-E.pdf
2010-12-19 00:25:46 +01:00
Harald Welte b6156d3e3d add perl scripts to compute MTK RF Transceiver PLL settings 2010-12-11 05:23:58 +01:00
David Wilson 80600c5a08 layer23: use correct sizeof(sockaddr) for connecting to L1CTL socket
connect's addrlen should be sizeof(local), not the contained path's length.

With the previous code, on OS X connect() will fail with ENOENT.

This permits layer23 to work on OS X using the pl2303 driver,
/dev/tty.usbserial , MacPorts arm-elf-gcc and RANLIB=arm-elf-ranlib

Signed-off-by: Harald Welte <laforge@gnumonks.org>
2010-12-11 11:31:57 +08:00
Alex Badea 689c0e5f8d host layer23: add a small cbch_sniff application
Tune to the ARFCN specified on the commandline (-a).  Then, if
a CBCH Channel Description IE is found in System Information Type 4,
switch to dedicated mode on that particular channel to receive
the CBCH.
2010-11-21 23:33:27 +01:00
Alex Badea 30f17f5dd7 layer23 sysinfo: fix parsing of CBCH Mobile Allocation
When calling gsm48_decode_mobile_alloc(), read the length
byte from payload data[], rather than from si->data[].
2010-11-21 23:33:27 +01:00
Alex Badea ec7349f28b layer23 sysinfo: store chan_nr when decoding CBCH Channel Description 2010-11-21 23:33:27 +01:00
Harald Welte 2303067ea1 rita_pll: Compute values for T-GSM 810 2010-11-21 18:10:46 +01:00
Andreas.Eversberg 7e29ca7006 [layer23] VTY uses CAPITAL letters for all optional parameter names
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 08:58:44 +00:00
Andreas.Eversberg 8dbf60f581 [layer23] VTY supports "show this" to show current MS node only 2010-11-20 08:34:31 +00:00
Andreas.Eversberg f72baf40d5 [layer23] Adding LAC and TMSI (both optional) to test card (rplmn) 2010-11-20 08:32:32 +00:00
Andreas.Eversberg 633b611dc1 [layer23] Adding LAI to debug output of LOCATION UPDATING REQEST 2010-11-20 08:30:45 +00:00
Andreas.Eversberg ee4fe18cda [layer23] Bugfix: Exit, if init function fails 2010-11-20 08:19:38 +00:00
Alex Badea a69d67ec73 osmocon: make beacon interval configurable via cmdline
Beacons with the default 50 mS interval are too far apart to
be picked up by the OpenMoko gta0x Calypso chip.  Make them
configurable via a -i commandline argument.

As recommended in the OpenMoko wiki[1], an interval of 13 mS works.

[1] http://wiki.openmoko.org/wiki/GSM/Flashing (-od fluid argument)

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-17 23:39:45 +01:00
Andreas.Eversberg 3a8e47430e [layer23/mobile] Better overview of "show ms" VTY command
Combined "sh ms" and "sh states" to a more detailed "sh ms". The
look-and-feel is more router like now.
2010-11-14 15:15:38 +00:00
Andreas.Eversberg f8903f06d1 [layer23] Cleanup of mobile application
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-14 11:52:57 +00:00
Andreas.Eversberg 2d8b427ef8 [layer23] Prevent layer23 apps from abort, if socket to layer1 fails 2010-11-14 11:50:14 +00:00
Andreas.Eversberg 6f2b172780 [layer23] Added support for multiple MS instances
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-11-13 18:45:09 +00:00
Andreas.Eversberg 4df881932c [layer23] msgb_free() must in l1ctl.c must called after reading its header 2010-11-13 18:23:57 +00:00
Sylvain Munaut da738824a0 layer23/mobile: Enable half_v1 support
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07 10:34:10 +01:00
Andreas.Eversberg 2ac17ed9fa [layer23] Call application sends CC Capability on incoming call
It is required to make DTMF work on incoming calls also.
2010-11-07 10:48:12 +00:00
Steve Markgraf fea95d89e7 layer23/misc: Update .gitignore for ./cell_log
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-11-06 14:52:12 +01:00
Steve Markgraf bd0266d0d8 layer23/mobile: Fix 'implicit declaration' warning for mncc_answer()
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-11-06 14:45:39 +01:00
Andreas.Eversberg a0246e07ff layer23: Use the new rach_req format in l1ctl and update l23 apps to use it
This removes an old hack

Written-by: Andreas Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-30 17:32:09 +02:00
Andreas.Eversberg 33ad399e21 [layer23] cell_log's scanning depth now depends on movement speed 2010-10-30 12:30:00 +00:00