Commit Graph

947 Commits

Author SHA1 Message Date
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