aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/main.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-30WIP: delay l1if_reset() until OML link is establishedlaforge/late_l1ifresetHarald Welte1-2/+9
2013-06-30migrate away from our own abis.c code to libosmoabisHarald Welte1-23/+4
libosmoabis has a BTS-side implementation of the IPA protocol for years, and osmo-bts should have used that all the time. Unfortunately it had its own local hack, this patch is migrating to the libosmocore implementation.
2013-05-11sysmobts: Allow to enable realtime priority for the BTS processHolger Hans Peter Freyther1-1/+21
The latency to respond to a PH-READY_TO_SEND.ind may not be higher than 18ms. Currently we are using nice to increase our priority but for a heavily loaded cell this is not enough. Add an option to enable realtime scheduling and use it in the screenrc. Linux offers two realtime scheduling classes these are SCHED_FIFO and SCHED_RR. For SCHED_FIFO the process is running as long as possible (potentially taking all the CPU and never yielding it), for SCHED_RR the process can still be pre-empted at the end of the timeslice. Using SCHED_RR appears to be the more safe option as a run-a-way sysmobts process will not be able to take all the CPU time. For a very loaded cell we also require to use readv/writev to allow writing multiple primitives in one syscall.
2012-12-26ciphering: Handle ciphering support for A5/3 correctlyHolger Hans Peter Freyther1-1/+1
This was found and debugged by Sylvain. The BTS will always support A5/0 so we do not keep track of that, the first bit of the flags is used for A5/1, second for A5/2... but for RSL there is an offset to go from RSL to A5(x). Add a testcase and change the code.
2012-07-26PCU: Removed -P option, so GPRS support is always enabledAndreas Eversberg1-11/+7
2012-07-21Enable direct access to PDTCH queue of DSP by PCUAndreas Eversberg1-2/+8
Use "-P -M" to enable PCU and direct access.
2012-07-08PCU: Add PCU socket interface to BTS.Andreas Eversberg1-1/+12
A special command line option "-P" is used to enable socket interface and signal available GPRS MO object to BSC.
2012-06-03Use git-generated PACKAGE_VERSION in IPA IDTAG_SWVERSIONHarald Welte1-2/+0
We previously used to send the bogus string "0815" which was a hack from early development time, but is obviously not a generally useful idea.
2012-05-31add /var/lock/bts_rf_lock and /var/run/osmo-bts.pid for rf controlHarald Welte1-1/+31
an external application can create /var/lock/bts_rf_lock and then kill the pid in /var/run/osmo-bts.pid in order to shut down the BTS. Any re-spawning scripts will trigger, but osmo-bts will refuse to start up until /var/lock/bts_rf_lock is removed again.
2012-04-28sysmo-bts: Use HW_SYSMOBTS_V1 to select the development hardwareHolger Hans Peter Freyther1-1/+1
2012-04-19sysmobts: Add an option to query the hardware version.Holger Hans Peter Freyther1-1/+16
2012-04-19common: Add the copyright text to the vty_app_infoHolger Hans Peter Freyther1-1/+0
This will make app -V print the copyright information like the other applications of our universe. An BTS integration that want to list additionaly copyright holders needs to access the vty_app_info and create a new copyright string.
2012-04-14sysmobts: Handle options before allocating the btsHolger Hans Peter Freyther1-2/+3
This way -h/--version will always work, even when the underlying hardware is not available.
2012-03-18set the default log mask for the L1 a bit more reasonableHarald Welte1-1/+1
2011-11-24RSL: Actually check if BSC-requested cipher is supportedHarald Welte1-0/+1
2011-10-12add VTY based way to set clock calibration of sysmobts L1Harald Welte1-1/+1
2011-09-19fix various compiler warnings across the codeHarald Welte1-1/+2
this deals with unused cocde, unused variables and undeclared symbols in various places.
2011-09-04add minimal configuration file supportHarald Welte1-21/+20
this config file allows configuration of unit id, oml ip, and local rtp bind IP.
2011-09-03Add new ORTP based libosmo-trau based voice supportHarald Welte1-0/+1
Using osmo-bts-sysmo and this code, it is now possible to do FR and AMR based voice calls on TCH/F. A lot of CPU is wasted in the conversion between the RTP formats and the L1 specific formats for the codec frames. All data needs to be shifted by four bits, and the order of bits needs to be reversed in every byte.
2011-07-21Use libosmotrau for RTP supportHarald Welte1-1/+1
This only implements creating, binding, connecting and free'ing RTP sockets, not yet anything regarding receiving or transmitting codec frames on them. You will need the rtp branch of libosmocore for libosmotrau
2011-07-05add some missing #include directivesHarald Welte1-0/+2
2011-07-05add command line option '-p' to specify DSP trace flags as hex maskHarald Welte1-1/+7
2011-07-05add VTY commands for setting and showing DSP trace flagsHarald Welte1-0/+2
2011-07-01fix BTS initialization orderHarald Welte1-1/+1
The sequence is as follows: 0) start osmo-bts 1) start connection attempts to BTS 2) issue L1-RESET.req 3) receive L1-RESET.conf 4) issue RF-ACTIVATE.req 5) receive RF-ACTIVATE.conf 6) receive attributes for TRX 7) receive opstart for TRX 8) issue MPH-INIT.req [...] The important point here is: We don't want the BSC to set TRX attributes or do TRX opstart before our RF related hardware is initialized.
2011-07-01sysmo-bts: properly initialize the nominal power, print it at startupHarald Welte1-0/+1
2011-06-29deactivate RF + exit when the Abis link is goneHarald Welte1-3/+3
The idea is that the BTS process is re-spawned from init/upstart/systemd
2011-06-29add logging related vty commandsHarald Welte1-0/+1
2011-06-29set talloc ctx for msgb's to make sure we see them in talloc reportHarald Welte1-0/+3
2011-06-27re-work original osmo-bts with support for sysmocom femtobtsHarald Welte1-0/+243
This code re-works osmo-bts to add support for the upcoming sysmocom BTS. It also tries to add some level of abstraction between the generic part of a BTS (A-bis, RSL, OML, data structures, paging scheduling, BCCH/AGCH scheduling, etc.) and the actual hardware-specific bits. The hardware-specific bits are currently only implemented for the sysmocom femtobts, but should be (re-)added for osmocom-bb, as well as a virtual BTS for simulation purpose later. The sysmocom bts specific parts require hardware-specific header files which are (at least currently) not publicly distributed.