summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* layer1: introduce concept of a 'l1 completion'Harald Welte2010-05-174-0/+51
| | | | | | | 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.
* cosmetic/whitespace changeHarald Welte2010-05-171-3/+3
|
* Work on VTY interface:Andreas.Eversberg2010-05-1310-42/+193
| | | | | | - 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.
* Bugfix in IMEI type selection.Andreas Eversberg2010-05-111-1/+1
|
* Fixed broken sysinfo.cAndreas.Eversberg2010-05-111-1/+0Star
|
* Minor fixes and improvements to L3 and VTY.Andreas.Eversberg2010-05-116-14/+87
|
* add MNC of DB Systel to network listSteve Markgraf2010-05-101-0/+1
| | | Signed-off-by: Steve Markgraf <steve@steve-m.de>
* Added "show ba 1" to view BA lists via VTY interface.Andreas.Eversberg2010-05-093-2/+47
|
* Added vty interface (taken from OpenBSC project).Andreas.Eversberg2010-05-0927-175/+7209
| | | | | | | | | | 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.
* Added SI3 rest octets to RR layer. Now a cell can be qualified:Andreas.Eversberg2010-05-094-16/+95
| | | | | | - Low prio - High prio - Barred
* Added some "get"-functions to bitvec of libosmocore.Andreas.Eversberg2010-05-092-0/+59
| | | | | - Getting Low or High value from current postion - Getting unsigned interger from current postion
* Added BCCH timeout timer for detecting loss of radio link (layer23).Andreas.Eversberg2010-05-083-8/+35
|
* Minor condition fix in radio resource.Andreas.Eversberg2010-05-081-1/+1
|
* Fixes for layer 3 processes:Andreas.Eversberg2010-05-076-149/+318
| | | | | - CCCH connection state variable - The complete BAND is now searched prio selecting PLMN
* - Fixes on MM, RR, cell selection, plmn search processes.Andreas.Eversberg2010-05-068-150/+295
| | | | | -> Cell selection now requires only one frequency to be scanned, if BA list of that PLMN is known.
* Work on layer 3 processes:Andreas.Eversberg2010-05-058-50/+138
| | | | | | | - 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.
* Work on layer 3 processes:Andreas.Eversberg2010-05-047-116/+164
| | | | | | | - 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'.
* More fixes on layer3.Andreas.Eversberg2010-05-024-11/+18
| | | | | | | | | | 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.
* Many fixes in layer 3:Andreas.Eversberg2010-05-0216-274/+572
| | | | | | - Sysinfo storage - Cell/Network selection process - Channel request / Paging
* Fixed many issues in MM IDLE mode process.Andreas.Eversberg2010-05-016-177/+605
|
* Fixes, especially frequency list parsing.Andreas.Eversberg2010-04-302-41/+38Star
|
* don't enable TX by default!!!Harald Welte2010-04-291-1/+1
|
* Merge branch 'master' of gitosis@git.osmocom.org:osmocom-bbAndreas Eversberg2010-04-2920-30/+1517
|\
| * layer1/mframe_sched: Make task update saferSylvain Munaut2010-04-282-5/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We try to prevent switching task at a bad time. The algorithm just tries to find the first fn at which it's safe to activate a previously disabled task. tasks -> Running tasks tasks_tgt -> What we aim to run Since tasks_tgt is still only read, it's safe for the l1a to modify it without locking. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * fw/layer1: Encapsulate mframe scheduler function betterSylvain Munaut2010-04-287-15/+65
| | | | | | | | | | | | | | | | | | There was some code meddling with mf_tasks directly. This is fine if it's just setting/clearing a bit but since we're gonna need some 'cleverness' into when to activate what to prevent conflict, it's better to abstract that logic. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * fw/layer1: Change the tdma_schedule_set return value to # frames spannedSylvain Munaut2010-04-281-3/+4
| | | | | | | | | | | | | | Previously, it returned the number of item + number of frames spanned by the set. But that value isn't that useful and wasn't used by anyone. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * Remove some gsm time keeping utils now in libosmocoreSylvain Munaut2010-04-281-7/+0Star
| | | | | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * Update libosmocore to 100224df0b711c7bf6c1150ce18cf595350cf0bdSylvain Munaut2010-04-288-3/+655
| |\ | | | | | | | | | Merge commit '100224df0b711c7bf6c1150ce18cf595350cf0bd' into master
| | * gsm 08.08: Fix some u_int8_t -> uint8_tSylvain Munaut2010-04-281-2/+2
| | | | | | | | | | | | | | | | | | | | | This breaks the ARM build in osmocom-bb. Besides uint??_t seems to be the preferred type in osmocore. (coming from stdint.h vs sys/types.h) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| | * gsm0808: Port asiggnment_complete msg creation to libosmocore.Holger Hans Peter Freyther2010-04-171-0/+48
| | |
| | * gsm0808: Port cipher_complete to be part of libosmocore.Holger Hans Peter Freyther2010-04-171-0/+31
| | |
| | * gsm0808: Add the TLV definition for some of the 0808 IEsHolger Hans Peter Freyther2010-04-171-0/+28
| | |
| | * Add GSM0808 utilities to Osmocore.Holger Hans Peter Freyther2010-04-152-1/+189
| | | | | | | | | | | | The code is coming from the on-waves/bsc-master branch.
| | * select.c: Make the ugly hacker uglier...Holger Hans Peter Freyther2010-04-111-1/+2
| | | | | | | | | | | | | | | | | | | | | Right now I'm seeing crashes when removing a link and deleting it and I need this hack to make it not crash. We will have to understand if llist_for_each_entry_safe has a bug or if we are doing something bad with the list (anchors not properly initialized).
| * | fw/layer1: Fix a printf warning uint32_t is 'long unsigned'Sylvain Munaut2010-04-281-1/+1
| | | | | | | | | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * | target/layer1: Fix typo in l23 message reception debugSylvain Munaut2010-04-281-1/+1
| | | | | | | | | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * | target_dsp/calypso: Add some pointers to get started in IDASylvain Munaut2010-04-283-0/+503
| | | | | | | | | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * | target_dsp/calypso: Add a script to convert dump output into usable COFFSylvain Munaut2010-04-281-0/+261
| | | | | | | | | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | | Fixes and improvements of layer23.Andreas Eversberg2010-04-2921-220/+624
| | |
* | | Added some debugging. / Minor condition fix.Andreas Eversberg2010-04-267-2/+35
|/ /
* | Added new application "mobile" to layer23.Andreas Eversberg2010-04-2524-9/+13290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the current status of the layer 3 protocols. Everything compiles, radio ressource layer is partly complete. Everything is untested, so don't expect that it runs and does something usefull. The next step for me is running and debugging it. Here is the list of files that are added / modified: new file: ../include/osmocom/gsm322.h new file: ../include/osmocom/gsm48_cc.h new file: ../include/osmocom/gsm48_mm.h new file: ../include/osmocom/gsm48_rr.h modified: ../include/osmocom/l23_app.h modified: ../include/osmocom/logging.h new file: ../include/osmocom/mncc.h modified: ../include/osmocom/osmocom_data.h new file: ../include/osmocom/subscriber.h new file: ../include/osmocom/support.h new file: ../include/osmocom/sysinfo.h new file: ../include/osmocom/transaction.h modified: Makefile.am new file: app_mobile.c new file: gsm322.c new file: gsm48_cc.c new file: gsm48_mm.c new file: gsm48_rr.c modified: main.c new file: mnccms.c new file: subscriber.c new file: support.c new file: sysinfo.c new file: transaction.c
* | Removed the code from gsm48-andreas.Andreas Eversberg2010-04-2522-11468/+16Star
| |
* | Changes to layer23:Andreas Eversberg2010-04-252-4/+10
| | | | | | | | | | | | | | | | Added name to osmocom_ms structure. l2_ctx is now named l23_ctx, because it is also used there. A work-handler is usefull for applications that need to check queues.
* | Added new IE definitions to gsm_04_08.h of libosmocore.Andreas Eversberg2010-04-253-20/+554
| | | | | | | | Also added RR and MM TLV tables to gsm48.c
* | Added single octet TV (type + value) to libosmocore.Andreas Eversberg2010-04-252-0/+9
| | | | | | | | | | In case of a single octet, the upper nibble is the type, the lower nibble carries the value.
* | l1ctl_tx_ccch_req() now uses arfcn as parameter.Andreas Eversberg2010-04-256-13/+12Star
| | | | | | | | | | | | | | The arfcn variable is renamed to test_arfcn. I think that arfcn and other frequency parameters should be stored at the process which sets it and using it when calling l1ctl_tx_ccch_req().
* | Wrapper for file access.Andreas Eversberg2010-04-251-0/+33
| | | | | | | | | | | | If file access is used to store network informations and user settings in the /etc/ directory. Later it can be used to store them in the EEPROM of the target.
* | sercomm: implemented a trivial echo dlci.Ingo Albrecht2010-04-242-0/+4
| |
* | osmocom: Fix serial init (CSIZE field)Sylvain Munaut2010-04-211-1/+1
| | | | | | | | | | | | | | Since we clear the whole CSIZE, we need to set CS8 _after_ the clearing or it'll just get erased ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | UART initialisation, serial port errorsChristian Vogel2010-04-121-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additional initialisations for the UART to make the data corruption from the PC to the Phone go away. I've seen a lot of systematic character swaps on the serial port, especially in the vincinity of 0-bytes. As the XON/XOFF registers are the only thing in the UART that look like they would consider the actual data sent, I've added this initialisation to uart.c This makes the problem go away completely on my C123. To check for it I've added CRCs to the HDLC protocol and checked for bad frames, and also compared them in a (patched) osmocon that just sends random garbate in a special DLCI. The bad frames I observed always looked like this (number in parenthesis define number of omitted bytes, for brevity): <------ good bytes ----------> <-recvd|sent-> <----- identical again ------> d0 e0 00 00..(107)..f7 ce 17 c4 < 0c 00|00 0c > db 70 ba cb..(67)..d8 6d 3a 1f 31 e1 00 00..(47)..38 ca 2f e5 < 0c 00|00 0c > f8 a3 77 5f..(127)..5b 72 ff 4a <-- good -> <--- bad -----> <---- good again -------------> dc e1 00 00 < 0c 00|00 0c > 87 cb 24 83..(178)..2f 69 b3 51 ae e2 00 00..(167)..bd 18 6f a1 < 0c 00|00 0c > 2f 53 d2 b2..(7)..da c7 1b 63 dc e3 00 00..(131)..8e 2c b0 a8 < 0c 00|00 0c > 40 62 56 5f..(43)..f0 3a 47 f7 Formerly I was observing about 10 packets for every 2000 sent (with 192 bytes of payload each). Now, with the added initialisation, I see (as the time of writing this email) 12000 packets with 192 bytes each sent, with 0 bytes missing, corrupted, flipped).