summaryrefslogtreecommitdiffstats
path: root/src/host/virt_phy
AgeCommit message (Collapse)AuthorFilesLines
2017-07-12VIRT-PHY: Calculate correct scheduler fn for data- and tch-msgs on ul.Sebastian Stumpf10-36/+385
Proper calculation of the scheduled frame number and appending the jobs with that fn to the scheduler. Thus uplink msgs are scheduled at the (approx.) correct fn and with this fn set in the gsmtap hdr. Change-Id: I0f44d0b5b9208755e671c619d1f851a043aefb54
2017-07-12VIRT-PHY: Fixed error causing send msgs to be received on same sock.Sebastian Stumpf1-1/+9
This could be disabled setting socket option IP_MULTICAST_ALL = 0. Change-Id: Ia2838c4cd39bfac04c014b4c8512466b301d8875
2017-07-12VIRT-PHY: Data and traffic req from l23 now use scheduler.Sebastian Stumpf8-67/+202
Msgs are not put on virt um directly in the handler like before, but are scheduled. FN they are scheduled with not yet properly calculated. Also, code was extracted from lactl_sap.c into own files. Change-Id: Ibe57abebadf294f1407d82cef3fd0b51e7c1b23e
2017-07-12VIRT-PHY: Using IANA-registered port 4729 for GSMTAP for virt um.Sebastian Stumpf1-2/+2
Change-Id: Id8e262c9a9a6260353bfb98e774b9d0b6eecae53
2017-07-12VIRT-PHY: Uplink scheduler implementation.Sebastian Stumpf12-155/+492
Implemented simple scheduler depending on frame number in downlink. It will be executed each time we receive a msg on downlink and send out all scheduled uplink msgs with a sched_fn smaller than the one of this received downlink msg. Further refactored l1ctl_sap by extracting rach and fbsb logic and putting it to own files virt_prim_fbsb.c and virt_prim_rach.c Added simple states to the ms layer 1 model, indicating if the ms is currently searching for bts, syncing to or camping on a bts. Downlink will be handled differently dependent of the state. Change-Id: I8937b1d6568f5d3750bbdc5d77fa283074d5365e
2017-07-12VIRT-PHY: Uplink flag and arfcn check.Sebastian Stumpf1-43/+57
Incoming messages with the uplinks flag set in the arfcn or another arfcn than the cell's we are camping on are ignored. Change-Id: Ibb78ac68172fceaa04acca81271940632e52d857
2017-07-12VIRT-PHY: Added example config for 2 mobile instances.Sebastian Stumpf2-5/+125
Change-Id: Iecfed3933ca88aa7a027e6247a8b71e28ee1883e
2017-07-12VIRT-PHY: Enable multiple phy-instances by configurable l1ctl-sock-path.Sebastian Stumpf4-7/+15
Change-Id: Ief22eedacd1929450ff68f553068b95a778df80f
2017-07-12VIRT-PHY: Cleanup dirs, makefile, dependencies and formatting code.Sebastian Stumpf17-105/+81
Change-Id: Ibd68a03bcc439c262ba513782936c6b62937eaaa
2017-07-12VIRT_PHY: Improved l1ctl-to-l23 interface + gsmtap header parsing.Sebastian Stumpf7-339/+430
Fixed mapping from gsmtap msg type to rsl msg type and vice versa. Proper chan_nr decoding instead of usage of dummy values for timeslot / link_id / subslot. Implemented missing l23 rx handler routines. Change-Id: Ibad741d112643c55091b8ba00164b05d728ae1a1
2017-07-12VIRT-PHY: Implemented RACH on uplink.Sebastian Stumpf7-110/+159
RACH will now be transmitted over GSMTAP virtual UM interface if L1CTL command is received. Minor further changes: - Incoming messages are now only then forwarded if ms is synced to a cell (fbsb cmd from l1ctl received). - SDCCH/4/8 are forwarded to l23 for now as we don't use encoding/ciphering (yet) this should not be a problem. Change-Id: Ic15188c5c0bba96c223d689be733324a9778a2e8
2017-07-12VIRT-PHY: Initial commit of virt-phy to work with osmo-bts virt-phy.Sebastian Stumpf24-0/+2468
This patch implements a virtual physical layer replacing the air interface. The purpose is to get rid of the hardware requirements and be able to start testing and implementing layer 2 communication functionality on one machine. Multicast sockets are used to enable bidirectional communication between the BTS and the MS process. The GSMTAP protocol designed for wireshark capturing is used to encapsulate the payload on the virtual physical layer. The virtual physical layer on the osmocom-bb side implements the L1CTL interface to the layer23 apps like mobile. * Working mcast socket communication and extraction of its functionality. * Basic handlers for file descriptor callbacks from incoming L1CTL messages and extraction of that functionality to a l1ctl socket class. * Multiplexing to different routines depending on incoming L1CTL message type. * Uses virt_um and osmocom_mcast_sock implementation from osmo-bts virt-phy. * Ecapsulation and parsing methods to and from GSMTAP messages. * Basic handlers for file descriptor callbacks from incoming mcast messages on the virtual um. * Multiplexing to different channel routines based on GSMTAP header channel type. * Example configuration for l23 app mobile using virtual test sim. Change-Id: I203c8ec58326e52a09603a37232fce7ae3641415