Commit Graph

911 Commits

Author SHA1 Message Date
Andreas.Eversberg 072d7dd4bf target/fw/layer1: Change L1CTL RACH req to properly use all slots
Written-by: Andreas Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-30 17:31: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
Andreas.Eversberg 794c85387c [layer23] Fixed T3 value in RACH confirm message 2010-10-30 08:53:22 +00:00
Steve Markgraf 8f007baced layer23/mobile: Add configuration option for automatically answering calls
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-10-27 20:30:13 +02:00
Steve Markgraf 4dea28252c layer23: typo/cosmetic fixes in cell_log.c and mnccms.c
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-10-27 20:26:05 +02:00
Steve Markgraf 18dba362c0 target/fw/layer1: correctly initialize afc_retries
Otherwise, when it reached AFC_RETRY_COUNT, no new FB0 tasks
were scheduled, and you needed to restart the phone in order to
successfully sync to a cell

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-10-25 20:59:24 +02:00
Sylvain Munaut 8c9b8f446f target/fw/l23_api: Enable/Disable audio path appropriately
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:32 +02:00
Sylvain Munaut 69c84c45e5 target/fw/l23_api: Properly sync tch in DM EST REQ
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:32 +02:00
Sylvain Munaut f1d942b8f4 target/fw/layer1: Add support for the various TCH multi frame tasks
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:32 +02:00
Sylvain Munaut 76bfbc8193 target/fw/layer1: Add initial version of TCH primitives
The initial bringup is mainly Dieter Spaar's work. I took the
logic and rewrote it, adapting to later scheduler changes and
adding support for several other things (tch_mode, initial HR
support, various cleanup, ...).

Initially-Written-by: Dieter Spaar <spaar@mirider.augusta.de>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:32 +02:00
Sylvain Munaut ba1cef1d23 target/fw/calypso: Fix dsp_load_tch_param to set fn_report for TCH/H
The previous code was only valid for TCH/F ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:31 +02:00
Sylvain Munaut aab5419af0 target/fw/layer1: Store the GSM48 constants in l1s.tch_mode instead of DSP cste
At this point in the code, we don't know if we're TCH/H or TCH/F, so
just store the speech mode and we'll figure out what to tell the DSP
in the task code itself.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:31 +02:00
Sylvain Munaut e35089a6c1 target/fw/layer1: Fix msgb leak when prim_rx is half executed
If the task interrupted because of a reset, an allocated msgb
will be present and we need to free it instead of just loosing
the reference to it.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:31 +02:00
Sylvain Munaut 91d0f4a2eb target/fw/include: Fix missing apc helper declaration
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:31 +02:00
Sylvain Munaut f3d1f64e4e target/fw/layer1: Use common DSP API memcpy instead of repeating code
Also get rid of some early debug print that aren't needed now.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:31 +02:00
Sylvain Munaut e972e1c6b7 target/fw/dsp: Add utility function to memcpy to/from the API
Copying to/from the DSP API shared memory must be done using
16 bits word only. Using those method, we avoid the hassle of
repeating the code when we copy buffer back and forth.

API address must be 16 bits aligned but for our purpose, it's
good enough.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:31 +02:00
Sylvain Munaut e6036a111f layer23/vty_interface: Fix typos, AMR is v3 not v1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25 20:58:31 +02:00
Andreas.Eversberg 42f0e39d4e [layer23] Fix of LAPDm when handling "timer recovery state"
Sylvain found out that the state was not cleared when receiving an RR
response with F-bit == 1. The missing handling is now added and tested.

Furthermore there is a minor fix to prevent underflow when resending last
frame in "timer recovery state".
2010-10-25 20:33:39 +00:00
Andreas.Eversberg a5445fe8a3 [layer23] Reverted commit ece1463...
The timer recovery state is cleared already,if  a supervisory frame
response is received with "F bit set to 1".
2010-10-24 22:31:06 +00:00
Andreas.Eversberg a8ac4bb2df Introducing "gsmmap" to convert SYSTEM INFORMATION log into a KML map 2010-10-24 14:12:58 +00:00
Andreas.Eversberg 462015a91e [layer23] Adding application to scan/receive and log SYSTEM INFORMATIONS 2010-10-24 13:39:37 +00:00
Andreas.Eversberg 4d211a27b8 [layer23] Moving sysinfo.c and gps.c (.h) to liblayer23
This makes sense, since multiple applications use it.
2010-10-24 13:30:17 +00:00
Andreas.Eversberg fbbb3ac953 [layer23] Fixed conditions for complete set of SYSTEM INFORMATION 2010-10-24 12:55:31 +00:00
Andreas.Eversberg 5e819e682f [layer23] Old SYSTEM INFORMATION 5 and 6 must be removed when entering DM 2010-10-24 12:34:53 +00:00
Andreas.Eversberg 1ac1852ffc [layer23] Moving decoding of SYSTEM INFORMATION to sysinfo.c
This way the decoding can be re-used by other applications.
2010-10-24 12:30:37 +00:00
Andreas.Eversberg c0500693a6 [layer23] Added debugging for GPS at logging.c 2010-10-24 12:23:05 +00:00
Andreas.Eversberg e7f6f749c4 [layer23] Fix of GPS states 2010-10-24 12:20:08 +00:00
Sylvain Munaut ece1463f6f layer23/lapdm: Properly handle S frame with F=1 when in timer recovery
This is the signal to exit recovery mode !
See GSM 04.06 Section 5.5.7

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-24 12:14:47 +00:00
Sylvain Munaut ff37a753e3 Merge commit 'dc0ebdfbdf3b1a381754c6ef4a59b0354eba7705' 2010-10-24 12:05:12 +02:00
Andreas.Eversberg a481e65bf0 Removed solved issues from gsm48-andreas/issues.txt
The remaining issues have only todo with openBSC and should be fixed,
the issues.txt will be obsolete then.
2010-10-24 11:20:51 +00:00
Andreas.Eversberg dc0ebdfbdf bitvec: Fix decoding of H / L values
it returns if a given bit in the vector is "high" or "low".
the bitval that represents "high" depends on the bit position.
bitval2mask returns that. so we must check if the bit in the vector
equals the returned bitval.
2010-10-24 11:59:33 +02:00
Andreas.Eversberg 18c621e9f7 [layer23] Don't request a channel, if SYSINFO 3 is not available
SI3 is required in order to request a channel the correct way. If not
yet received, the process crashes due to an arithmetic exception.
2010-10-20 18:16:12 +00:00
Andreas.Eversberg 8be9f76bc4 [layer23] Fix of channel request cause "OTHER or SDCCH" 2010-10-20 18:12:44 +00:00
Andreas.Eversberg f181a04121 [layer23] Completed GPS reading process
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-20 18:09:31 +00:00
Holger Hans Peter Freyther acffb60c1a msgb: Add non-inlined helper functions to ease with language bindings
It is easier from languages that dlopen libosmocore to have a function
to access this data than to poke at the bytes of the struct directly. Add
copyright for this method and the reset method I did earlier this year.
2010-10-18 18:22:31 +02:00
Holger Hans Peter Freyther c64970ede5 gsm0480: Add method create own number response 2010-10-18 17:04:49 +02:00
Andreas.Eversberg 50be02f78e [layer23] Fixed header handling of some radio ressource SAP msgs 2010-10-16 08:18:31 +00:00
Andreas.Eversberg f92f777357 [layer23] Support of receiving STATUS at call control 2010-10-15 19:15:59 +00:00
Andreas.Eversberg adf65e29fd [layer23] DTMF support 2010-10-15 18:54:57 +00:00
Andreas.Eversberg 19807191b6 [layer23] If the mobile sticks to a cell, RXLEV_MIN is ignored 2010-10-15 18:50:25 +00:00
Sylvain Munaut 1a4ea5b436 codec: Add bit ordering tables from specs for HR,FR,EFR & AMR
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-15 09:45:04 +02:00
Andreas.Eversberg 1dd14c0b26 [layer23] Adding abbreviated dialing to VTY
It is possible to store phone numbers with abbreviations now. Dialing these
abbreviation makes testing of mobile originated calls much easier too.
2010-10-14 07:37:52 +00:00
Andreas.Eversberg 513972c37d [layer23] If SIM is invalid, display that on the VTY 2010-10-13 18:33:16 +00:00
Andreas.Eversberg 3318b3f622 [layer23] Fix of signal loss handling
The cell must be kept "selected" in case of loosing radio link. It is
required to perform reselection of that cell or of the given neighbor
cells.
2010-10-13 18:30:59 +00:00
Andreas.Eversberg acbe0f858d [layer23] Minor fix of debugging message in call control 2010-10-13 18:28:57 +00:00
Andreas.Eversberg a5a60bcab8 [layer23] Fixed cell monitoring output (RR idle mode) 2010-10-13 18:27:15 +00:00
Andreas.Eversberg 2278ba6e78 [layer23] Minor change in paging debugging 2010-10-13 18:26:04 +00:00
Andreas.Eversberg f2ff800a4d [layer23] Give ARFCN together with "show states <MS_NAME>" 2010-10-13 18:23:20 +00:00
Andreas.Eversberg d95eddadb7 [layer23] Fixed CAUSE information element
Coding standard must be 0x3 = GSM. Otherwise it may generate a protocol error
at the network.
2010-10-12 17:41:49 +00:00
Andreas.Eversberg ba3c45f1f3 [layer23] Fixed ASSIGNMENT / HANDOVER failure handling 2010-10-12 11:26:51 +00:00