Harald Welte
ac7715a2d5
gsm48-andreas: fix typo utnt -> uint
2010-03-29 21:31:18 +08:00
Andreas Eversberg
a9655f821f
Work on various L3 processes.
2010-03-28 16:29:04 +02:00
Harald Welte
4ef2856473
gsm48-andreas: s/clamp/camp/g
2010-03-28 13:01:39 +08:00
Andreas Eversberg
05b12edee0
Work on Radio Ressource.
2010-03-27 17:23:32 +01:00
Harald Welte
1e4d22cb5f
Implement L23-triggered L1 power measurement scan
...
Now layer23 can ask L1 to scan an entire range of ARFCN's and do power
measurements. This is the first step in the cell (re)selection process.
2010-03-27 18:42:43 +08:00
Andreas Eversberg
413b10e33e
Added process of link control in idle mode.
...
The process is described in GSM 05.08 and will search and select BCCH.
The process is partly complete.
2010-03-27 11:08:47 +01:00
Andreas Eversberg
51f1e4b8a2
Added process of selecting PLMN and serving cell.
...
The process is described in GSM 03.22.
The process is partly complete.
2010-03-27 11:08:47 +01:00
Andreas Eversberg
66bb75afc2
Added subscriber data. It is very uncomplete yet.
2010-03-27 11:08:47 +01:00
Andreas Eversberg
accf13120d
Work on Radio Ressource.
2010-03-27 11:08:47 +01:00
Harald Welte
937e5f64ab
layer23: cosmetic fixes in log output
2010-03-27 12:51:45 +08:00
Harald Welte
a98c0e9c44
layer23: convert main.c to use libosmocore/logging.c
2010-03-27 12:51:30 +08:00
Harald Welte
3393285e91
introduce (unused) code to regularly transmit L1CTL ECHO REQ to phone
...
this helped in debugging the strange NUL byte related data corruption
2010-03-27 12:34:29 +08:00
Harald Welte
ace2b08244
add L1CTL ECHO REQUEST code
2010-03-27 12:32:32 +08:00
Harald Welte
e8a7bbffd2
layer23: convert to libosmocore logging API
2010-03-27 08:56:05 +08:00
Harald Welte
7aac0b828d
remove remaining bits of libosmocom. It's all in libosmocore now
2010-03-27 00:10:03 +08:00
Harald Welte
0841075df2
layer23: remove debug.c and thus last remnants of libosmocom
2010-03-27 00:07:46 +08:00
Harald Welte
e461615654
gsm48-andreas: Use value_string wherever possible
...
The point of this is to not replicate functionality that already exists
in libosmocore (get_value_string()/get_string_value()).
2010-03-25 12:43:07 +08:00
Harald Welte
c1cee898df
misc compiler warning fixes
...
* added missing param in call to gsm48_rx_bcch
* added 'extern' to declarations of rsl_rlm_cause_strs and target_board
* added several 'const' for strings
* removed useless 'bufptr,' from hexdump
(From: itsme <itsme@xs4all.nl>)
2010-03-22 08:26:04 +08:00
Harald Welte
bee63154c4
L1A/L23 interface (L1CTL) cleanup
...
* introduce a new 'l1ctl_hdr' structure common to all messages
on this interface
* use struct l1ctl_hdr in both the firmware and layer23
* add a new L1CTL_PM_REQ request for performing layer23-initiated
power measurements (firmware does not implement them yet)
2010-03-21 12:57:28 +08:00
Erik Ekman
fa59bb481e
Two more small patches
...
Hi
Found a spelling error while testing my C139, and also fixed the
warning discussed in my earlier patch.
/Erik
From 9d8a7454367f3d095e6d4c046e84a22126ff887a Mon Sep 17 00:00:00 2001
From: Erik Ekman <yarrick@kryo.se>
Date: Wed, 17 Mar 2010 22:48:57 +0100
Subject: [PATCH 1/2] Remove operand which has no effect
Signed-off-by: Ingo Albrecht <prom@berlin.ccc.de>
2010-03-19 02:40:19 +01:00
Andreas Eversberg
7f60fda60d
Work on Radio Ressource
2010-03-16 20:18:45 +01:00
Andreas Eversberg
e5a58a58eb
Work on Radio Ressource
...
- SI 5, 5bis, 5ter
2010-03-15 20:15:40 +01:00
Andreas Eversberg
79ed5824fb
Work on Radio Ressource.
...
- Decode of Mobile Allocation for frequency hopping list
2010-03-15 18:57:52 +01:00
Andreas Eversberg
c28cc5c07e
Classmark 3 encoding (Radio Ressource) now uses bit-vector API.
2010-03-14 20:51:55 +01:00
Andreas Eversberg
7fc17a2d6b
Work on Radio Ressource layer.
2010-03-14 19:23:45 +01:00
Andreas Eversberg
cb46d4a071
Work on Radio Ressource layer.
...
- SI 1-4 parsing
- decoding of all frequency list types
2010-03-14 18:08:16 +01:00
Andreas Eversberg
c1267dc6d0
Work on Radio Ressource layer.
...
Added MS support structure for classmark messages.
2010-03-13 15:40:35 +01:00
Harald Welte
07446ab098
layer23: fill in signal level and dBm fields of gsmtap
2010-03-09 23:05:58 +01:00
Andreas Eversberg
98bfa2737e
some work on radio ressource
2010-03-09 19:31:30 +01:00
root
dc7d6268f5
Work on radio ressource: basics of channel assignment procedure
2010-03-08 20:27:31 +01:00
Holger Hans Peter Freyther
5da778184d
layer23: Use the write_queue instead of directly writing data to the socket
2010-03-08 12:23:09 +01:00
Holger Hans Peter Freyther
1461eb0e54
layer23: Remove inacucrate comment as this was addresses in osmocom
2010-03-08 12:23:09 +01:00
Harald Welte
7218de8c0b
use gsm48_ie code which is now in libosmocore
2010-03-08 09:38:59 +01:00
Harald Welte
3b05942b63
import alpha3 code from andreas eversberg as of 2010-03-07
2010-03-07 22:48:52 +01:00
Harald Welte
97c8b6f33b
start to use libosmocore within the firmware
...
* remove linuxlist.h copy and use osmocore
* don't put 'struct gsm_time' into l1ctl packets
* include rx_level and snr for each burst in l1ctl
* properly build libosmocore.a for target
* move gsmtime functions into libosmocore
* move ctype.h to standard location
2010-03-07 20:56:12 +01:00
Ingo Albrecht
1bef8f33da
Handle EAGAIN. Print errors properly.
2010-03-07 12:04:21 +01:00
Ingo Albrecht
a731ef5298
Fixed transmit path of osmocon in various ways.
2010-03-07 12:04:16 +01:00
Ingo Albrecht
7af3c99091
Loader communications support in osmocon. Generalized tool connections.
2010-03-07 12:04:05 +01:00
Ingo Albrecht
6573353f5e
Skeleton of bootloader.
2010-03-07 12:03:55 +01:00
Ingo Albrecht
ae4c1c8d45
Renamed layer2_connection -> tool_connection.
2010-03-07 12:03:38 +01:00
Harald Welte
8dba2a85c8
osmocon: drain the hdlc sercomm queue through select
2010-03-07 02:59:55 +01:00
Harald Welte
ba82248d33
osmocon: we don't want to write to serial FD after download completed
2010-03-07 01:17:11 +01:00
Harald Welte
6d1b6f7f10
layer23: correct byte ordering of IP address
2010-03-05 11:14:33 +01:00
Harald Welte
582aec803c
layer23: GSMTAP update (gsmtap for uplink, DCCH and ACCH)
...
* use GSMTAP for uplink frames (generated by layer23; sent to L1)
* only use GSMTAP if the user specifies the '-i dstip' arguments
* properly encode the GSMTAP channel type
* requires GSMTAP protocol version 0x02 (see next commit for wireshark patch)
2010-03-04 15:43:45 +01:00
Harald Welte
5a1d72cfc6
layer23: rsl_dec_chan_nr is now in libosmocore
2010-03-04 15:07:10 +01:00
Harald Welte
a5cdce1503
update to reflect libosmocore api change
2010-03-04 12:00:29 +01:00
Harald Welte
b82aa8957c
layer23: add some FIXMEs to remind us about missing code
2010-03-03 14:37:31 +01:00
Harald Welte
2ea6a02bf5
add some notes about layer23 architecture
2010-03-03 14:37:21 +01:00
Harald Welte
d4e118a7a0
Rename 'layer2' program to 'layer23' program
2010-03-03 14:25:21 +01:00
Harald Welte
9c64d2869f
layer2: Rename layer2.[ch] to l1ctl.[ch] as they only remote-control L1
2010-03-03 14:22:04 +01:00
Harald Welte
3a4148d7b8
layer2: move dump_bcch() into layer3.c where it belongs
2010-03-03 14:11:46 +01:00
Harald Welte
e10d64a794
layer2/lapdm: various fixes
...
* fix U frame parsing
* pad all frames with 0x2B before sending them off to L1
* make sure msg->l2h is set correctly on tx frames
2010-03-03 14:01:36 +01:00
Harald Welte
63138703b7
layer2: more sanity checks, ensure msg->l1h is set correctly
2010-03-03 14:00:50 +01:00
Harald Welte
994daac979
layer2_main: Don't use LOGP API yet, and print error if msgb->data != msgb->l1h
2010-03-03 13:58:29 +01:00
Harald Welte
4cfa7739a0
make sure msg->l3h is set correctly
2010-03-03 13:57:54 +01:00
Harald Welte
8576565bb7
make sure LAPDM datalink starts in state IDLE not NULL
2010-03-03 13:57:13 +01:00
Harald Welte
177ffa3c5f
add missing layer3.c file
2010-03-02 23:37:12 +01:00
Harald Welte
911e0ff962
layer2: rename files to remove extra osmocom_ prefix
2010-03-02 23:05:49 +01:00
Harald Welte
3b32efb40a
layer2 program: Use new RSL utility routines, split code in more files
2010-03-02 23:02:16 +01:00
Harald Welte
092d57bef9
Inter-Layer intergration work
...
L1 and L2 now pass UI frames like BCCH and CCCH downlink up into
L3, which detects an IMMediate ASSignment command and instructs
the L1 to switch to SDCCH/4.
From this point on, SDCCH/4 and SACCH4/C messages end up in our
L2 LAPDm implementation and are forwarded to L3.
2010-03-02 18:47:01 +01:00
Harald Welte
11c97f5eff
Major update: Start L2/L3 implementation on PC side
...
Using the following changes, it is now possible to receive the PCH and AGCH
messages in the PC-side layer3, as well as trigger RACH sending inside the phone
from the PC:
* merge l1_dedic_mode_data_ind, l1_dedic_mode_data_req and l1_ccch_info_ind into l1_data_ind
* add partial LAPDm implementation (layer2/src/lapdm.c)
* introduce RSLms between LAPDm and L3 (layer2/src/osmocom_rslms.c)
* use new layer1 header field of msgb
* tx_ph_rach_req() and tx_ph_data_req() to send data from PC to target
* implement DEDIC_MODE_DATA_REQ on firmware side
2010-03-01 23:54:32 +01:00
Harald Welte
43dd25c493
Include channel number and link identifier in L1 DL info
...
This enables the layer2 to identify on which channel
(BCCH/CCCH/SDCCH/TCH/...) the respective message was received.
* Encode MFrame Task Number + SACCH info in 'p3' parameter
* Generate channel number and link identifier
* Decode channel number in layer2 program
2010-03-01 23:48:45 +01:00
Erik Ekman
61e34acf89
Fix three more warnings
2010-03-01 22:20:36 +01:00
Erik Ekman
a9d6fb6518
Fix some warnings in osmocon
2010-03-01 22:20:28 +01:00
Holger Hans Peter Freyther
45f7a9aba2
[layer2] Remove symlink... it is now provided by libosmocore
2010-03-01 19:22:13 +01:00
Harald Welte
cd1c9d399c
add osmocon TPU debugger support
...
Receives TPU RAM from target and prints it to console
2010-02-23 01:44:59 +01:00
Harald Welte
95de639664
remove bogus autotools-generated makefile
2010-02-20 23:16:05 +01:00
Harald Welte
50b5545d6e
convert osmocon to autotools
...
this needs to temporarily disable the version magic, as I don't
know how to integrate that into automake...
2010-02-20 23:12:29 +01:00
Harald Welte
2afd5aa843
build of osmocon using libosmocore
2010-02-20 22:16:21 +01:00
Harald Welte
e54eb7c17c
start using libosmocore instead of local osmocom copy
2010-02-20 20:39:52 +01:00
Harald Welte
3e1ebe4190
migrate most osmocom code to new libosmocore
...
libosmocore is a new library that has been created out of OpenBSC,
and it provides almost everything we've tried here with libosmocom.
The only remaining part is the 'debug' part
2010-02-20 18:58:12 +01:00
Harald Welte
6aeab7beb2
add symlink for gsmtap header
2010-02-19 22:50:33 +01:00
Harald Welte
8428d7c531
add UDP PORT definition to gsmtap.h
2010-02-19 22:50:18 +01:00
Harald Welte
4625209bb9
finish GSMTAP output support (and enable it)
...
Layer2 now sends GSMTAP packets to a UDP port on localhost, where
wireshark can pick them up in realtime and display them.
2010-02-19 22:43:51 +01:00
Harald Welte
36c9d36cf6
add (incomplete) gsmtap integration for feeding frames in wireshark
2010-02-19 20:21:04 +01:00
Harald Welte
15594a7c0e
add COPYING files to osmocon, firmware and layer2
2010-02-18 19:23:46 +01:00
Harald Welte
9cad18079c
Fix path names due to rename from hello_world to firmware
2010-02-18 16:52:10 +01:00
Harald Welte
fbe7b94c9c
Initial import of OsmocomBB into git repository
2010-02-18 16:46:36 +01:00