Commit Graph
711 Commits
Author SHA1 Message Date
Robert Schmidt ea65ddad2c fill PHY_vars_eNB_g in own function 2017-12-14 13:06:05 +01:00
Robert Schmidt c62be7a101 Uniform messages of exiting threads 2017-12-14 13:06:04 +01:00
Navid Nikaein 612ab055d7 Add control logic to reconfigure and start eNB 2017-12-14 13:05:34 +01:00
Cedric Roux 2fbb26789f remove gcc warning when compiling oaisim 2017-08-03 11:51:43 +02:00
Cedric Roux 030a345258 bugfix: fix sync for oaisim
With the current implementation of oaisim
(rxdata and channel simulation), we cannot
call trx_read_func on a dummy buffer. The
code will actually modify the rxdata buffers
of the UE.

This is has to be rewritten properly. In the
meantime, let's introduce a simple hack. The
idea of the read at this point is to wait for
the synch to finish and not lose samples from
the hardware in the real UE. In the simulator,
as it is today, we can simply sleep until the
synch code has finished its work.
2017-07-31 16:32:07 +02:00
gabrielC f5be2be550 Correct DCIFormat and AgregationLevel to put them in pdcch structure 2017-07-28 16:39:25 +02:00
tct-labo4 a738eeade4 ue using new thread index instead of modulo 2017-07-26 16:09:03 +02:00
hbilel 767606f9f2 - fix init prach struct + fix TO compensation for 20MHz case 2017-07-20 10:09:43 +02:00
gabrielC aae302f15e Merge branch 'pdcch_optim' into develop_integration_w30
Conflicts:
	targets/RT/USER/lte-softmodem.c
2017-07-17 16:20:00 +02:00
tct-labo4 ed145f5799 [OAI-UE] slot0/1 parallelization part2 2017-07-17 15:11:40 +02:00
gabrielC a2cf0a2295 PDCCH optimisation : Stop reading DCI0 when found 2017-07-17 10:40:38 +02:00
gabrielC bcdb62e140 Optimisation of rx_pdcch : save some time by reading one symbol pdcch first and read symbol 2 and 3 if needed
Optimisation of nb of candidate when searching DCI
2017-07-06 10:03:27 +02:00
gabrielC 33e242de6a PDCCH optimisation to read only the DCI / agregation we have preconfigured 2017-06-29 10:54:50 +02:00
fnabet cb637c033c rebase from 2017.w25 2017-06-27 15:01:28 +02:00
hbilel fdae0065ac Make RX thread number configurable 2017-06-21 16:17:22 +02:00
fnabet d951795ae4 build fixes 2017-06-21 15:58:12 +02:00
Florian Kaltenberger f152ddaa5e Merge remote-tracking branch 'origin/develop' into bugfix-243-dlsim 2017-06-13 15:23:43 +02:00
hbilel 4aed32e786 [OAI-UE] slot0 / slot1 parallelization 2017-06-13 09:49:17 +02:00
Florian Kaltenberger 9ddaf93eab re-adding the possibility in dlsim to bypass the DCI/PDCCH generation. This is necessary for accuracy of the dlsim-tests, which are working again now. 2017-06-06 10:39:03 +02:00
Cedric Roux 60c4b5ecd7 integration fixes
- rename UE_NO_LOG to DISABLE_LOG_X
  because the name is misleading. The full software
  is impacted, not only the UE part
- same for compilation option ---ue-no-log
  that becomes --disable-log
- keep LOG_X for the standard case, that is the
  case without DISABLE_LOG_X where printf has been
  put. Two reasons:
  * printf is not realtime friendly
  * keep behavior similar for other users who may
    be troubled by different logs that don't add
    any benefit to previous logs
2017-06-02 11:24:22 +02:00
gabrielC 8758d3d4cf --ue-no-log, add printf to verify attach is ok 2017-05-22 17:26:03 +02:00
gabrielC 16acea57cc Merge tag '2017.w20' into UE_logging 2017-05-22 11:31:18 +02:00
gabrielC fe350d5b6f UE logging change :
--ue-trace : Enabling UE trace for debug
--ue-timing : Enabling UE timing trace
--ue-no-log : Disabling all LOG_X traces
2017-05-19 14:28:34 +02:00
Cedric Roux 9d65f4dd09 warnings removal in LOG_X
those popped up thanks to previous commit
2017-05-18 14:16:24 +02:00
Cedric Roux 10113a3517 integration fix: change the way to print the version
Using "system" to call "git log" is too error-prone.
In the test setup, lte-softmodem was blocked because
"git log" uses a pager ("less") and the pager was
waiting for the user to press enter.

We could pass "--no-pager" to "git log" but then
what if someone runs the softmodem out of the source
tree?

cmake defines PACKAGE_VERSION, we can use that instead,
as is done in openair-cn.
2017-04-10 10:29:09 +02:00
gabrielC 666ae5d0e1 commit id added to the log 2017-04-03 14:06:41 +02:00
Cedric Roux 0a33a1d3e7 Merge remote-tracking branch 'origin/bugfix-223' into develop_integration_w13 2017-03-28 16:21:20 +02:00
Wilson Thong 40f9b9f4e0 #223 fixed USRP initialization when disabling --ue-carrier-scan option 2017-03-28 10:48:38 +08:00
Wilson Thong 924c421beb #220 add help printout for run options 2017-03-28 10:17:51 +08:00
Wilson W.K. Thong 4a2f9d2571 #220 enhance logging to show also thread name 2017-03-28 10:17:51 +08:00
Cedric Roux 75aff99bf6 Merge remote-tracking branch 'origin/bugfix-227-ue-ip-setting' into develop_integration_w12 2017-03-24 17:08:08 +01:00
Cedric Roux fec6832122 Merge remote-tracking branch 'origin/if5-fixes-w11' into develop_integration_w12 2017-03-24 17:07:51 +01:00
Cedric Roux dfcbeff0d4 bugfix/warning removal
not sure of this one, to be checked
2017-03-24 14:26:16 +01:00
Cedric Roux 181eb532e1 bugfix 2017-03-24 14:23:11 +01:00
Cedric Roux bc10722013 warnings removal 2017-03-24 14:20:06 +01:00
Cedric Roux 60efa62dc8 compilation warning removal 2017-03-24 13:09:35 +01:00
Cedric Roux 7c7022a198 compilation warning removal 2017-03-24 13:08:45 +01:00
Cedric Roux 89c60dacfd compilation warning removal 2017-03-24 13:07:21 +01:00
Cedric Roux 34c303efb5 compilation warning removal 2017-03-24 13:05:08 +01:00
Cedric Roux e9d88a101d bugfix: array too short for data
6 numbers (2 hexa digits each) separated by ':'
plus ending 0 makes 18 bytes, not 6, let's put 20
2017-03-24 13:02:52 +01:00
Cedric Roux cff9149920 fix issue 227 - UE IP settings disrupts realtime
see https://gitlab.eurecom.fr/oai/openairinterface5g/issues/227

When the UE connects to the eNodeB and receives its IP address from the
network, it calls system() to set it in the linux kernel world. This call
is not done in a realtime thread, but in the NAS, which uses its own thread,
independent of the realtime processing.

In some situations this totally disrupts realtime processing.

It is difficult to know precisely why that happens, but it seems that calling
fork(), as system() does, in a multi-threaded program is not a good idea. (So
say several people on the internet.) It is not clear why the softmodem is
impacted, but it seems that fork() is really what triggers the disruption.
Several tests lead to that conclusion.

To fix the problem, we create a child background process very early in main()
(before anything else basically). Then instead of calling system(), the main
process sends the string to the background process. The background process
gets the string, passes it to system() and reports the success/failure back
to the main process.

This solution involves a lot of system calls, but calling system() in the
first place is not cheap either. As long as no realtime thread uses this
mechanism, things should be fine. Time will tell.
2017-03-23 12:34:24 +01:00
Cedric Roux 89f747a218 minor fixes 2017-03-23 10:40:47 +01:00
Cedric Roux 238b22e5b5 fixes for IF5
This work was done by Bruno Mongazon.
2017-03-23 09:23:07 +01:00
Cedric Roux b2bda9498c Merge remote-tracking branch 'origin/calib-LimeSDR' into develop_integration_w11 2017-03-16 17:57:48 +01:00
Florian Kaltenberger b4f8219170 calibrations for 5/10/20 MHz LimeSDR 2017-03-15 16:04:42 +01:00
hbilel bd4898222f pdcch dual buffer 2017-03-13 15:50:10 +01:00
Cedric Roux a194009e00 integration fix: put dlsch_demod_shift into dlsch_demodulation 2017-03-13 10:06:26 +01:00
Florian Kaltenberger 340d05eebf Merge branch 'calib-LimeSDR' of https://gitlab.eurecom.fr/oai/openairinterface5g into calib-LimeSDR
Conflicts:
	targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
2017-03-10 15:26:46 +01:00
hbilel 305ebf5c4b rebase branch to develop 2017.w09 2017-03-08 14:57:30 +01:00
hbilel 9dd65f2801 [OAI-UE] remove unused debug-printf 2017-03-08 14:21:14 +01:00