summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/misc
AgeCommit message (Collapse)AuthorFilesLines
2019-05-23[WIP] HO: Add new parameters to L1CTL_DM_EST_REQAndreas Eversberg1-2/+2
* 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. Change-Id: Iadbc47f006d1f8a019822aedee180814de13cb2d
2019-05-23layer23: fix tons of compiler warnings, mostly OSMO_DEPRECATED relatedHarald Welte1-1/+9
Change-Id: I03918bd864c711b377a795186123c85bb6f4dc4a
2019-05-23layer23: Fix 'make distcheck'Harald Welte3-3/+61
Change-Id: Ic48e240ee1484aaa793af23c62a24d2949900b86
2019-05-23bcch_scan: Fix compiler warning about undefined functionsHarald Welte3-1/+10
Change-Id: I435ef2032b9cefe844c37f395d9087be6af8934a
2018-10-02layer23/app_ccch_scan.c: omit dummy (fill) framesVadim Yanitskiy1-0/+32
In some conditions it's required to maintain continuous burst transmission (e.g. on C0). If there is nothing to transmit at a given moment, either a LAPDm func=UI fill frame, or a "dummy" Paging Request is used. In case of 'ccch_scan' application, they are useless. Let's detect and omit them. Change-Id: I6ccecb1a78bdac3e467bdc14b7a01afbe17aa53c
2018-10-02layer23/app_ccch_scan.c: hexdump unhandled PCH/AGCH messagesVadim Yanitskiy1-2/+3
Change-Id: I81d6558525e7f68c4fcd6c6272224d58532e2efb
2018-10-02layer23/app_ccch_scan.c: print pdisc in error messageVadim Yanitskiy1-1/+2
Change-Id: Ic88f5d4b263610a376bbb9729e882097393ef2be
2018-10-02layer23/app_ccch_scan.c: clean up System Information handlingVadim Yanitskiy1-59/+64
Change-Id: I8c2594920fcad8a3e346b938bd0c20409f4d01c9
2018-10-02layer23/app_ccch_scan.c: print 'new-line' char locallyVadim Yanitskiy1-3/+2
Change-Id: I03da1329501ce9b3c5cca49a1654ba68e9bb6a98
2018-10-02layer23/app_ccch_scan.c: clean up copy-pasted codeVadim Yanitskiy1-47/+1
By definition, 'ccch_scan' application is intended to be used for monitoring of CCCH channels on C0/TS0. There is no need to send RACH requests, therefore there is no need to care about the mobile allocation from SI1 message. Most likely, this "dead" code was copy-pasted from mobile application. Let's clean it up! Change-Id: I7c2f47cbc825a5e5a50863d842729d3d8408b9dd
2018-02-08layer23/cell_log: set default logfile to /dev/nullVadim Yanitskiy1-1/+1
When '/var/log/osmocom.log' does not exist the cell_log app cannot start normally, because it has no permissions to create a new file. Furthermore, logfile is optional now. Change-Id: I2a9982f221871c78c5c9a73b7b7a1787ff07a86c
2015-12-31autoconf: Migrate from INCLUDES to AM_CPPFLAGSHarald Welte1-1/+1
2013-01-02host/cell_log: Prevent buffer overflow when displaying arfcn rangeSylvain Munaut1-5/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02host/l23: Added custom frequecy range to cell_log.Dario Lombardo2-5/+59
Written-by: Dario Lombardo <lomato@libero.it> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-11-22Rename various "rxlev" variable to "rxlev_dbm" and correct their signessAndreas Eversberg1-18/+18
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 Welte4-4/+6
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-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",,)
2011-11-22layer23/ccch_scan: Replace fprintf() with LOGP() and print SI-idSteve Markgraf1-1/+2
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-11-22layer23/ccch_scan: Print Paging Requests of type 3Steve Markgraf1-1/+27
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-11-22layer23/ccch_scan: Print channel type of correct TMSI for Paging Request Type 2Steve Markgraf1-1/+1
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-11-21layer23/bcch_scan: bscan_sig_cb() should return something in all casesSteve Markgraf1-1/+1
Found with clang: bcch_scan.c:277:5: error: non-void function 'bscan_sig_cb' should return a value Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-11-13host/layer23: Removed local copy of LAPDm, using libosmocore instadAndreas Eversberg7-7/+1
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-07-28layer23: Add mobile support for sending / receiving voice frame through MNCCAndreas.Eversberg2-3/+3
Support GSM FR codec only so far. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-06-24fix some spillage from recent conversionHarald Welte2-2/+3
2011-06-23lapdm: remove get_rsl_name() and use libosmogsm:gsm_rsl_name() insteadHarald Welte1-1/+1
2011-06-23further decouple lapdm code from osmocom_ms and l1ctlHarald Welte3-5/+7
we introduce a new primitive layer betwen PH and DL, enabling the use of the LAPDm code in applications that are not based on L1CTL
2011-06-22add l1ctl_proto.h #includes to lots of filesHarald Welte4-0/+8
this is apparently a result of no longer including it indirectly via lapdm.h
2011-06-21layer23: make LAPDm code mostly independent of 'struct osmocom_ms'Harald Welte3-5/+7
This is one step in the direction of re-using the lapdm code in osmo-bts.
2011-05-15src: use namespace prefix osmo_* for utilsPablo Neira Ayuso1-1/+1
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 Ayuso5-6/+6
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-05-15src: use namespace prefix osmo_timer*Pablo Neira Ayuso3-9/+9
Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
2011-04-26src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso9-44/+44
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 Lombardo2-46/+58
2011-02-16Added gpsd support.Dario Lombardo1-2/+30
2011-02-16Renamed gps_* functions to osmo_gps_* functions to avoid overlap with libgps ↵Dario Lombardo1-3/+3
functions.
2011-01-26cell_log: Added command line switches to change default gps device and baud ↵Dario Lombardo1-1/+16
rate.
2011-01-23ccch: Print paging of tyep2Holger Hans Peter Freyther1-1/+46
2011-01-23ccch: Decode the paging1 type paging requestsHolger Hans Peter Freyther1-1/+112
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-23ccch: Print the decoded immediate assignment again, ignore two messagesHolger Hans Peter Freyther1-5/+11
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-23ccch: Stop using fprintf for the SIHolger Hans Peter Freyther1-30/+13
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-23ccch: Stop following assignment requests and sending LUsHolger Hans Peter Freyther1-41/+8
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-23ccch: Fix the cast of the frequency listHolger Hans Peter Freyther1-1/+1
2011-01-23ccch: Remove the app_phone.c, move it to the app_ccch_scan fileHolger Hans Peter Freyther3-73/+41
2011-01-23ccch: Add a copyright header to that file.Holger Hans Peter Freyther1-0/+22
2011-01-23layer23: Rename layer23 to ccch_scan as discussed on the mlHolger Hans Peter Freyther2-4/+3
2010-12-27layer2: Make it possible to disable or increase the number of RA burstsHolger Hans Peter Freyther2-2/+14
2010-12-27layer23: Enable combining the long optionsHolger Hans Peter Freyther1-0/+13
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 Freyther2-1/+27
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/+6
Allow each application to specify the options it is supporting.