Commit Graph

1611 Commits

Author SHA1 Message Date
Andreas Eversberg 7cc4a4b324 Improvement of neighbour cell power measurement task.
5 measurements are now performed during a 51 multiframe. They are performed
at one of the 5 FCCH.

Additionally a timeslot offset can be given for each measurement. This way
it is possible to measure each timeslot seperately. The given ARFCN must be in
sync with the serving cell.
2012-02-04 00:04:58 +01:00
Harald Welte b7c4b9b6f5 rename 'monitor' to 'rssi'
Sooner or later we might have a much more comprehensive monitor, so it's
good to name the current implementation just RSSI as that's all it does.
2012-02-04 00:04:58 +01:00
Andreas Eversberg 97d731de34 layer1/monitor: Adding spectrum analyzer to monitor app
By pressing '*', the analyzer is turned on or off.
Each beep indicated a new measurement result.
Right and left button can be used to scroll. By holding the button, the input
is repeated.
2012-02-04 00:04:58 +01:00
Andreas Eversberg c338fc3343 Adding "monitor" application to firmware
This app is used to measure receive level of given channels.

By pressing digits, the channel can be selected.
By pressing left or right button, the frequency is increased/decreased.
By pressing the menu button, the maximum received level is shown until
pressing menu button again. (usefull for hopping)
By pressing up or down button, the volume of a tone is changed, that
indicates rx level.
The left soft button is used to toggle PCS/DCS on shared channel numbers.
The right soft button is used to toggle uplink and downlink.
2012-02-04 00:04:58 +01:00
Harald Welte e27c6925b0 Merge branch 'framebuffer' 2012-02-04 00:01:49 +01:00
Steve Markgraf 99a4af4260 firmware/apps: remove l1test-application
This application had already been removed a while ago, but
was added again with one of the initial framebuffer commits.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-02-03 23:59:36 +01:00
Steve Markgraf 7ff649a6a7 firmware/apps: print application name on the display
Now we're printing the application name on all apps
that initialize the display (again).

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-02-03 23:59:36 +01:00
Steve Markgraf d37d04dfdc firmware: remove deprecated display drivers and fonts
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-02-03 23:59:36 +01:00
Steve Markgraf 0f95771e62 firmware: remove deprecated function calls of old display API, cosmetic changes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-02-03 23:59:36 +01:00
Steve Markgraf 533d5e6dc4 firmware/fb: add framebuffer driver for J100i display
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-02-03 23:59:36 +01:00
Steve Markgraf 4284a90a2a firmware/fb: add framebuffer driver for TD014 display (C139/C140)
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-02-03 23:59:36 +01:00
Christian Vogel 12d7ca237f Calypso FB: RGB332 to RGB565 conversion function. 2012-02-03 23:59:35 +01:00
Andreas Eversberg cf5ba98c10 firmware/fb: Fixed color component shift 2012-02-03 23:59:35 +01:00
Andreas Eversberg fc49eccb0c firmware/fb: Adding transparent background color for fonts 2012-02-03 23:59:35 +01:00
Steve Markgraf 4a5e3404f9 [PATCH] fw/fb/ssd1783: fix the RGB332 color palette
We revert the initialization of the palette to the behaviour of the
old non-fb driver.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
2012-02-03 23:59:35 +01:00
Andreas Eversberg 593d905f0f firmare/framebuffer: Option to center text
This is usefull, because actual width of proportional font text and display
width may not be known to application.
2012-02-03 23:59:35 +01:00
Andreas Eversberg 30dd87115c firmware/framebuffer: Adding fixed with font with 8x8 pixles 2012-02-03 23:59:35 +01:00
Christian Vogel de8bb97ed5 Calypso FB: Makefile, "dummy" driver, Hello World 2012-02-03 23:59:35 +01:00
Christian Vogel df4218c8fd Calypso FB: C155 / SSD1783 Color Support 2012-02-03 23:59:35 +01:00
Christian Vogel 080124619d Calypso FB: C123 / ST7558 Black and White Support 2012-02-03 23:59:35 +01:00
Christian Vogel ec097f532e Calypso FB: Main framebuffer header file. 2012-02-03 23:59:35 +01:00
Christian Vogel 45d88fa052 Calypso FB: 8 Fonts, header file and utility functions.
I only activate two fonts, Helvetica Regular 8pt and bold
14pt because the others bloat the binary too much.
2012-02-03 23:59:35 +01:00
Christian Vogel 41eed0ee31 Removing all traces of the old display drivers. 2012-02-03 23:59:34 +01:00
Kurtis Heimerl 987787f0cb Just a quick bug fix to gsm322.c.
Basically, there were two commands in an "else" block without brackets,
causing the

"end = 1023+299"

command to execute regardless of the state of index.

Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
2012-02-02 08:39:56 +01:00
Harald Welte 0eecdf24f3 timers: comply with timer rename in libosmocore
libosmocore has prefixed the timer functions with omso_* already
in May 2011 (0b21c1c885), and we follow
suit here for API consistency reasons.
2012-01-29 09:41:45 +01:00
Andreas Eversberg 40fc521088 layer1: Fixed power measurement, adding ARFCN wrapping
Power measurement returned the first measurement result twice, now it is
returned only once.

Wrapping of ARFCN allows to measure the E-band en block. After measuring the
ARFCN 1023, the ARFCN wraps to 0. Special flags like ARFCN_UPLINK or
ARFCN_PCS are preserved while wrapping.
2012-01-28 13:16:14 +01:00
Andreas Eversberg a6c98a79b2 Hold function for power button to turn off the phone
In order to allow applications to use the power button, the keypad handler
will wait half a second if the key is pressed and hold, until the power
is turned off. This way the application does not need to handle it.

The power off function will then wait until the button is released, so the
phone will not start again while the button is still pressed.
2012-01-28 13:15:48 +01:00
Andreas Eversberg be142a0c2a Packing frequency stucture, so arrays of it require less memory 2012-01-28 13:15:30 +01:00
Sylvain Munaut f04f53d3b7 target/rf: Make the trf6151_set_arfcn use ARFCN_UPLINK flag to select UL/DL
This way we can independentely control what frequency we want and
wheter we want to TX or RX. This allow TX on DL band and RX on UL band.

This also means all call to tx_window setup now need to properly set the
ARFCN_UPLINK flag !

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-01-28 13:15:18 +01:00
Andreas Eversberg 6ab18bedb1 firmware/layer1: Using queue to process received l23 frames in main loop
Instead of processing the frames out of the interrupt context, they are
queued until serial interrupt returns and main loop is processed.
2012-01-28 13:14:45 +01:00
Andreas Eversberg c4701d4204 Added callback function to forward L1CTL packets to rather than SERCOM
This is experimental, maybe there should be a better way to do that.
2012-01-28 13:13:38 +01:00
Paul Wise 9dd1f00e83 host: Add support for the new gpsd API
Written-by: Paul Wise <pabs3@bonedaddy.net>
Acked-by: Peter Stuge <peter@stuge.se>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-01-17 08:11:07 +01:00
Sylvain Munaut 217d4f2988 Merge commit '301f01e938e72423079afe1a1836937053481fd6' 2012-01-10 13:03:09 +01:00
Andreas.Eversberg 301f01e938 libosmocore/lapd: Fixed handling of sequence errors at lapd_core.c
If a sequence error is received, the N(R) variable must still be used to
acknowledge previously transmitted frames.

If there are two subsequent sequence errors received, ignore it. (Ignore
every second subsequent error.) This happens if our reply with the REJ is
too slow, so the remote gets a T200 timeout and sends another frame with
a sequence error. Test showed that replying with two subsequent REJ
messages could the remote L2 process to abort. Replying too slow shouldn't
happen, but may happen over serial link between BB and LAPD.

Written-by: Andreas.Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-01-10 13:02:01 +01:00
Sylvain Munaut 4dbbab5e50 Revert "libosmocore/lapd: Fixed handling of sequence errors at lapd_core.c"
This reverts commit 506a3443ba.
2012-01-10 13:00:04 +01:00
Andreas Eversberg 506a3443ba libosmocore/lapd: Fixed handling of sequence errors at lapd_core.c
If a sequence error is received, the N(R) variable must still be used to
acknowledge previously transmitted frames.

If there are two subsequent sequence errors received, ignore it. (Ignore
every second subsequent error.) This happens if our reply with the REJ is
too slow, so the remote gets a T200 timeout and sends another frame with
a sequence error. Test showed that replying with two subsequent REJ
messages could the remote L2 process to abort. Replying too slow shouldn't
happen, but may happen over serial link between BB and LAPD.
2012-01-02 02:22:30 +01:00
Andreas Eversberg c2b823faf0 layer23/mobile: Fixed cell re-selection after loosing signal
Test showed that loosing the signal in dedicated mode caused a complete
rescann of all cells. By keeping the cell selected, the process can use
the neighbour cell informations to do a quick search for the best cell
afterwards.
2012-01-02 02:21:19 +01:00
Andreas Eversberg 5e1765c332 layer23/mobile: Minor fix of debugging output 2012-01-02 02:15:26 +01:00
Andreas Eversberg 42004880e6 layer23/mobile: Fixed variable type, so home network is detected correctly 2012-01-02 02:10:54 +01:00
Andreas Eversberg 925322c634 layer23/mobile: Enable SIM reader by default
If there is no SIM card in the reader, the SIM process would
automatically proceed without SIM anyway.
2012-01-02 02:08:08 +01:00
Gus Bourg 4b6bc3b4b5 Fix generation of GPRS Routing Area in case of 3-digit MNC
This fixes a simple typo that causes erroneous GPRS Routing Area
encoding if you use 3-digit MNCs.
2011-12-14 23:20:21 +01:00
Alexander Huemer 9bfb7d42b3 host/osmocon: correct parsing of -m
Written-by: Alexander Huemer <alexander.huemer@xx.vu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-14 20:32:17 +01:00
Holger Hans Peter Freyther 4a075f82f0 lapd: Disable one part of the test as it fails on FreeBSD
I thought this number would be wrong in the same way but it depends
on OS/ARCH. Disable this part of the test for now.
2011-12-12 00:41:25 +01:00
Holger Hans Peter Freyther 15f740caa3 lapd_test: Look at the content of LAPD messages and compare them
Verify the output, accept two known errors in the generation of it.
2011-12-12 00:34:06 +01:00
Holger Hans Peter Freyther 72bd4eb3b9 lapdm: Create a simple test case to transmit data between both ends
This is testing the establishment of two ends (BTS, MS) one is in
the polling mode as used by osmo-bts. Transfer data between the two
ends. The sent data is not verified though. This should be followed
up soon.
2011-12-11 21:35:06 +01:00
Holger Hans Peter Freyther 950f7d15e8 layer23: Call talloc_free unconditionally
talloc_free will check for NULL and return -1.

_talloc_free(void *pyr)
{
        if (unlikely(ptr == NULL)) {
                return -1;
        }
...
2011-12-11 15:47:30 +01:00
Harald Welte d318e61607 auth_core: add missing string.h include to reduce warnings 2011-12-07 12:16:27 +01:00
Harald Welte aae2362455 auth_core: don't use anonymous unions to make certain gcc versions happy 2011-12-07 11:35:02 +01:00
Harald Welte 57143a4361 milenage_test: make sure test output is what .ok file expects 2011-12-07 03:12:44 +01:00
Harald Welte 1726ec5e17 auth_milenage: we now copy RAND in auth_core, no need to do it twice 2011-12-07 02:56:28 +01:00