Commit Graph

446 Commits

Author SHA1 Message Date
Andreas.Eversberg ba59a8cb51 Added more commands to VTY, especially selecting test SIM and configure it.
The test card can now be configured, as if it is already registered to a
network. So it will directly select the strongest cell of last scan.
2010-05-23 20:53:32 +00:00
root bfc0285c7c Fixes of layer23 processes during tests of MNCC interface.
-> Emergency calls will now trigger channel request.
-> Normal calls will be rejected due to limited/no service.
2010-05-24 02:21:24 +02:00
Andreas.Eversberg 9359a91504 Moved layer 1 <-> layer 2 interface from main.c to a seperate file of
liblayer23. Other applications using liblayer23 don't need to re-implement it.

Messages from layer 1 are not freed in layer2_read() anymore. They will be
freed by the upper layers. The layers may also decide to queue or to forward
the messages. In general: A message is always discarded by the message handler
and not after calling the message handler.
2010-05-22 10:46:20 +00:00
Andreas.Eversberg 6ca03ff7e6 Fixing cell selection, so it works with the current layer 1 API. 2010-05-22 09:27:33 +00:00
Andreas.Eversberg 0d53134db5 Fixed list of maximum frequencies to scan for a range. 2010-05-22 08:37:42 +00:00
Andreas.Eversberg c970d4f791 Network selection results can now be shown explicitly by "network show" VTY command. When selecting the network, the selection is checked, if in list. 2010-05-21 15:54:42 +00:00
Andreas.Eversberg 0d1f453943 Summary list of scanned cells now contains LAC and cell ID, rather than (uninteresting) access classes. 2010-05-21 15:52:11 +00:00
Harald Welte 89c6b9510e correct endian conversion of arfcn in tx_ph_dm_ext_req() 2010-05-20 23:48:19 +02:00
Harald Welte cb71b972bd Make new L1CTL_FBSB_REQ work reliably
* port 'mobile' application to new l1ctl_tx_fbsb_req()
* make sure we have a proper downlinke header in front of l1ctl_fbsb_resp
* remove duplicate band_arfcn member of struct l1ctl_fbsb_resp
* reset the AFC to its default value when starting new FBSB task
* remove bogus l1s.sb.{synced.count} variables
* allocate msg and send l1ctl_fbsb_resp() only from process context, not FIQ
* properly report SNR and BSIC in fbsb_resp
* introduce arbitrary SNR thresholds for FB0->FB1 and FB1->SB switching
2010-05-20 23:26:42 +02:00
Harald Welte 1837a24437 L1: don't hexdump every packet we receive from L1CTL to console 2010-05-20 23:08:29 +02:00
Harald Welte 5ad35f4a37 L1 PM: move printf to printd to disable PM task debug output 2010-05-20 23:07:33 +02:00
Harald Welte 78d73e5c92 AFC: Add afc_reset() function to re-set AFCDAC to default value 2010-05-20 23:06:53 +02:00
Harald Welte 8978ec571e layer1/l1ctl: Split L1CTL_NEW_CCCH_REQ in FBSB_REQ nad SYNC_REQ
We really want to have those two as distinct operations - and we
want proper state machines in L1 to quickly return if they've
managed to acquire a FB or SB or not.  Otherwise scanning will
take ages...

This code now introduces a new l1ctl_fbsb_req that is sent via
L1CTL to ask for a bitmask of FB0/FB1/SB operations.  The actual
FB0/FB1 detection now no longer runs for 500 TDMA interrupts
but completes as soon as we either know there is no FCCH,
or that our frequency error is smaller than a caller-specified
threshold.

FB0/FB1 are already working, SB is not yet, sorry.
2010-05-19 21:41:24 +02:00
Jan Luebbe bcf3badc5b osmocon: extend hexdump to show all printable characters 2010-05-19 20:29:55 +02:00
Steve Markgraf edcd880263 osmocon: change mtk load address for MT6223 romloader
The romloader of the MT6223 uses more of the internal SRAM
than the loader of the MT6227, thus we need to change the load
address.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-19 18:02:44 +02:00
Steve Markgraf 716c262e3f ssd1783: make driver work on Motorola V171
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-18 18:04:55 +02:00
Steve Markgraf dd95bcec33 osmocon: Add experimental support for the MTK romloader
Currently the switch to a higher baudrate is missing, which has
to be done by a direct UART autobaud register write, plus sending
an autobaud sample.
As a result, the maximum download speed is currently 19.200 Baud.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-17 19:51:28 +02:00
Steve Markgraf 6fd7f96172 osmocon: use a global load address
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-17 18:54:59 +02:00
Steve Markgraf 2e0c90cad2 osmocon: cosmetic cleanup
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-17 18:41:00 +02:00
Steve Markgraf a802b36894 osmocon: use osmocore timers, minor fixes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-17 18:26:37 +02:00
Steve Markgraf db0f6401d2 gta02x: fix compile error due to wrong definition
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-17 17:27:52 +02:00
Daniel Willmann 2da7327a28 Add new board gta0x (for Openmoko Freerunner devices) and build it
For now just copied over the compal_e88 init.c and adapted the RF
frontend functions. For osmocon to work with the GSM download cable
SERCOMM_UART_NR and CONS_UART_NR need to be switched.
2010-05-17 09:24:01 +02:00
Daniel Willmann 9030db46cc osmocon.c: Fix serial_set_baudrate function
We have to call tcgetattr prior to changing the baudrate and writing the
struct again.
2010-05-17 09:24:01 +02:00
Harald Welte dbfa321c42 layer1: Disable FIQ as well as IRQ for locking between L1S and L1A 2010-05-17 09:23:35 +02:00
Harald Welte 5da81b609e layer1: add missing header includes for local_irq_save() 2010-05-17 09:23:35 +02:00
Harald Welte 526a99a7ba layer1: Use measured VCTCXO AFC DAC slope as AFC_SLOPE 2010-05-17 09:23:35 +02:00
Harald Welte 2c852e9bcc layer1: remove 'l1s_cb' and l1_signal mechanism
the l1s signal was an old mechanism between l1test and the layer1
before we introduced the L1CTL protocol.  This commit removes all
leftover references to it.

It also disables the l1test app, as it would no longer work without
major modifications (using l1ctl from within the phone).
2010-05-17 09:23:35 +02:00
Harald Welte ea3b3826f2 layer1: introduce concept of a 'l1 completion'
The idea is that the L1S part can schedule a completion handler which
will then execute in the asynchronous L1A part.  This should keep the
FIQ priority L1S extremely short, deferring most of the work into
the L1A part that runs in regular process context.
2010-05-17 09:23:35 +02:00
Harald Welte 452bc18470 cosmetic/whitespace change 2010-05-17 09:23:35 +02:00
Andreas.Eversberg 21cc7eecc5 Work on VTY interface:
- Load and save of config now works.
- Network search is displayed on VTY and the result can be selected there.
- Manual/auto mode can be selected via VTY and saved.
2010-05-13 12:51:22 +00:00
Andreas Eversberg 9e7a9bc7fa Bugfix in IMEI type selection. 2010-05-11 11:38:07 +02:00
Andreas.Eversberg 5128052dd1 Fixed broken sysinfo.c 2010-05-10 22:11:48 +00:00
Andreas.Eversberg bb08bbd1d7 Minor fixes and improvements to L3 and VTY. 2010-05-10 22:06:37 +00:00
Steve Markgraf ebe72af12b add MNC of DB Systel to network list
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-10 14:06:32 +02:00
Andreas.Eversberg b763a07c47 Added "show ba 1" to view BA lists via VTY interface. 2010-05-09 17:31:49 +00:00
Andreas.Eversberg 3928d757f0 Added vty interface (taken from OpenBSC project).
It is now possible to show informations about:
- mobile
- subscriber
- received cell informations

Later it can be used to do configurations (phone's menu)
and trigger events, like dialing a phone number.
2010-05-09 16:01:49 +00:00
Andreas.Eversberg acd570fff8 Added SI3 rest octets to RR layer. Now a cell can be qualified:
- Low prio
- High prio
- Barred
2010-05-09 09:40:41 +00:00
Andreas.Eversberg 619b13310c Added some "get"-functions to bitvec of libosmocore.
- Getting Low or High value from current postion
- Getting unsigned interger from current postion
2010-05-09 09:36:54 +00:00
Andreas.Eversberg f76e2064a4 Added BCCH timeout timer for detecting loss of radio link (layer23). 2010-05-08 14:31:27 +00:00
Andreas.Eversberg 729abf56ea Minor condition fix in radio resource. 2010-05-07 23:07:30 +00:00
Andreas.Eversberg 2b5c2337ed Fixes for layer 3 processes:
- CCCH connection state variable
- The complete BAND is now searched prio selecting PLMN
2010-05-07 21:41:54 +00:00
Andreas.Eversberg 2b7d2ed446 - Fixes on MM, RR, cell selection, plmn search processes.
-> Cell selection now requires only one frequency to be scanned, if BA list
   of that PLMN is known.
2010-05-06 08:48:24 +00:00
Andreas.Eversberg 7c5b9ea288 Work on layer 3 processes:
- Fixes on PLMN search and cell selection process.
- Fixes on radio ressource.
- ^C will cause IMSI detach when pressed the first time.
  Pressing ^C again will cause termination of process at any time.
2010-05-05 08:40:10 +00:00
Andreas.Eversberg 7f009e41f9 Work on layer 3 processes:
- Fixed reference to system informations. (did crash when re-selecting).
- Fix in cell selection state machine. (any re-selection).
- MCC, MNC, LAC change of cell now triggers re-selection.
- Fixed some paging issues. Empty pagings are not displayed anymore. Also paging is now possible when 'camping on any cell'.
2010-05-04 09:48:51 +00:00
Andreas.Eversberg fe1dc19c6e More fixes on layer3.
The current code will scan frequencies, select a cell and camps on it.
No SIM is inserted. Paging requests and Immediate assginments can be seen.

When inserting a SIM card (uncomment it in app_mobile.c), location update
is triggered after selecting a cell. The RACH request is sent, an
Immediate assignment is received, the dedicated mode is requested.
Nothing happens then, because no confirm / abort of layer 2 is received.
2010-05-02 17:40:52 +00:00
Andreas.Eversberg 14974d3dba Many fixes in layer 3:
- Sysinfo storage
- Cell/Network selection process
- Channel request / Paging
2010-05-02 17:13:47 +00:00
Andreas.Eversberg 8e5f33b4d3 Fixed many issues in MM IDLE mode process. 2010-05-01 18:21:03 +00:00
Andreas.Eversberg 30b48d6212 Fixes, especially frequency list parsing. 2010-04-30 18:51:41 +00:00
Harald Welte cb6c26d54e don't enable TX by default!!! 2010-04-29 22:06:54 +02:00
Andreas Eversberg 4dd620d736 Merge branch 'master' of gitosis@git.osmocom.org:osmocom-bb 2010-04-29 20:47:28 +02:00