Xavier Arteaga
3a011155db
SRSUE: Make sure PHY reset is done when SYNC is IDLE
2021-06-08 10:21:38 +02:00
Andre Puschmann
aaffdeb326
rrc,rlc: add method to signal protocol failure to RRC
...
general-purpose method for lower layers to signal protocol
failures to higher layers, i.e. RRC.
In the current case, implement a direct release of the UE (enb) or
a reestablishment (UE).
2021-06-03 21:11:47 +02:00
Francisco
486823e5de
sched,bugfix: The PHR handling scheme now considers the number of PRBs of the UL grant that carried the PHR. Before, it was assuming the most conservative scenario of Nprb=1
2021-06-03 15:33:38 +01:00
Xavier Arteaga
d74f70289e
SRSUE: fix last reported RI state
2021-06-02 18:12:36 +02:00
Andre Puschmann
b0a2f31478
prach: protect configuration and state getters with mutex
...
purely TSAN with unit-test based approach that protects
the state getters and configuration routines with a mutex
2021-06-02 09:36:44 +02:00
Andre Puschmann
d2ec3ca5e1
intra_measure_base: fix race detected with TSAN
...
use mutex to protect state getters
2021-06-02 09:36:44 +02:00
Andre Puschmann
98a91a2057
sync: protect sync_state, access ue_sync object only from one thread
...
races detected with TSAN, primarily the ue_sync object which isn't
thread-safe is accessed by all workers to set the CFO and by the
sync thread to receive samples (which read the CFO).
The patch introduces shadow variables that are updates from the
main thread before/after the sync is executed. The atomic shadow
variables can then be read from otherthreads without holding a
mutex, i.e. blocking the sync.
2021-06-02 09:36:44 +02:00
Andre Puschmann
2c975732dc
metrics_stdout: fix race detected by TSAN
2021-06-01 22:44:12 +02:00
Andre Puschmann
018c734b09
dl_harq: fix unlocking of unlocked mutex bug detected by TSAN
...
in the mac_test the tb_decoded() method was called twice for
the 2nd codeword, causig TSAN to complain about an unlocked mutex
being unlocked.
The patch resolves the potential issue only calling tb_decoded
for a grant/tb thas has a non-zero MCS.
The patch also adjusts the reset function to have a safe and "unsafe"
version to be called from inside the class, similar to other
classes where we do the same.
2021-05-31 10:54:14 +02:00
Xavier Arteaga
5c55ff24ec
Minor UE aesthetical changes
2021-05-31 10:48:17 +02:00
Xavier Arteaga
44b6a2b55f
Fix SYNC wait for IDLE if the state is reached
2021-05-31 10:48:17 +02:00
Xavier Arteaga
807b60988d
Wait for PHY workers to transmit before considering SYNC in IDLE
2021-05-31 10:48:17 +02:00
Xavier Arteaga
7185ec6beb
PHY CC configuration is stashed and applied in the next TTI
2021-05-31 10:48:17 +02:00
Xavier Arteaga
235a664120
SRSUE: Removed PUSCH-DMRS/SRS pregeneration methods
2021-05-31 10:48:17 +02:00
Xavier Arteaga
cc2a6dc269
Review cell selection and SCell configuration during HO
2021-05-31 10:48:17 +02:00
Xavier Arteaga
65d51f5855
Fix unitialised value
2021-05-31 10:48:17 +02:00
Andre Puschmann
b40867ffec
ue,rrc: add simple connection setup procedure
...
this is an attempt to fix #2850 by defering the transmission of
the connection setup complete until the PHY has applied
the dedicated config in the connection setup.
2021-05-26 14:43:52 +02:00
yagoda
9501283c1c
fixing support for extended Cyclic Prefix
...
small cosmetic fixes of CP code
2021-05-20 18:16:15 +02:00
Xavier Arteaga
5eadc06dd4
Intra-frequency miscellanous changes
2021-05-18 18:41:03 +02:00
Xavier Arteaga
170fbefbf5
Avoid SCell receiver to copy
2021-05-18 18:41:03 +02:00
Xavier Arteaga
d39402ed54
Added TTI trigger condition to intra-frequency measurement base
2021-05-18 18:41:03 +02:00
Xavier Arteaga
ac9dc6f31d
Compute Performance
2021-05-18 18:41:03 +02:00
Xavier Arteaga
fb7623f5b6
Initial intra frequency NR cell search and test
2021-05-18 18:41:03 +02:00
Xavier Arteaga
60015e7ceb
Made intra frequency cell search and measurment generic
2021-05-18 18:41:03 +02:00
faluco
1670124926
Implement UE metrics in JSON format.
...
Added config options to control this feature.
2021-05-13 09:27:11 +02:00
Xavier Arteaga
a57336d64f
Integrate periodic SSB measurement in SRSUE and fix related defects
2021-05-13 07:55:46 +02:00
Xavier Arteaga
1396c2a1e2
Mulpiple CSI measurement fixes. Channel and sync metrics from CSI measurements
2021-05-07 09:43:11 +02:00
Xavier Arteaga
653177ca7c
SRSUE: Refactored work_dl for NR. Added NZP-CSI-RS measurement
2021-05-07 09:43:11 +02:00
David Rupprecht
8c194b887b
Allow NAS init function to fail
2021-05-04 19:18:22 +02:00
David Rupprecht
617fb2ba7e
Added default destructor for args
2021-05-04 19:17:34 +02:00
faluco
90e23d9de6
Print in the ue stdout metrics the CC number for LTE and the RAT for NR.
2021-04-29 22:48:03 +02:00
faluco
b9be7c7594
Small cleanup in the stdout UE metrics.
...
- Switch to use fmt for formatting the output.
- Change the CC column to be rat now.
- Reworked and re-styled the column alignment.
2021-04-29 22:48:03 +02:00
Andre Puschmann
598594c51a
all: bunch of pass by const& changes suggested by LGTM
2021-04-29 10:00:09 +02:00
AlaiaL
82788ca094
Fixed issues from coverity:
...
- 370233
- 370234
- 370239
- 370240
- 370241
- 370242
- 370243
- 370295
2021-04-23 21:22:06 +02:00
Matan Perelman
7ee52dc676
srsUE: Add option to filter N_id_2 / PSS to configuration
2021-04-23 20:31:36 +02:00
David Rupprecht
102a943171
Fixed naming srsLTE to srsRAN
2021-04-23 14:25:02 +02:00
David Rupprecht
fd451e8be3
Configure Short PDCP NR SN support
2021-04-23 12:49:53 +02:00
Xavier Arteaga
ab6a5ef17a
Added NR DCI conversion to string for formats 1_0 and 1_1
2021-04-22 14:16:46 +02:00
Andre Puschmann
e3b77fd82a
rrc_nr: set timeout for NR cell measurement to 250ms
...
the low timout of 10ms was:
1) causing too frequent measurement reports
2) causes a MO ping test to fail where the ICMP request
was sent on the LTE carrier but never got a reply because
the MCG addition was inbetween
2021-04-21 12:50:43 +02:00
Xavier Arteaga
407903e0d6
SRSUE: refactor carrier setting for accepting a dynamic carrier configuration
2021-04-20 21:50:10 +02:00
David Rupprecht
d2aa25d451
Added option for simulated measurement
2021-04-20 21:47:37 +02:00
Xavier Arteaga
715f8900a8
Selected NR RA procedure PRACH send timeout according to system frame number period from PRACH PHY tables
2021-04-20 15:07:18 +02:00
Andre Puschmann
4b3538aaa8
{dl,ul}_harq: fix metrics calculation
...
rewrite metrics calculation for NR HARQ and remove
unneeded operations.
2021-04-20 15:05:20 +02:00
Andre Puschmann
b6f2c80f66
mac_common: add helper method to get total buffer state
2021-04-20 15:05:20 +02:00
David Rupprecht
a064e85c54
rename common lte header
2021-04-19 22:23:59 +02:00
David Rupprecht
81ad72b0ff
Refactor srb and drb handling
2021-04-19 22:23:59 +02:00
David Rupprecht
91ff8a2e6d
Add rrc_nr to rlc init function
2021-04-19 22:23:59 +02:00
Andre Puschmann
c8d3e133dc
ue: bump default RRC release announced to 15
2021-04-19 22:08:03 +02:00
David Rupprecht
75cd5e65e5
Removed arfcn and freq, and nof_prbs from config file
2021-04-19 15:18:35 +02:00
David Rupprecht
f42d4dbc28
Refactored carrier config
2021-04-19 12:13:37 +02:00
Andre Puschmann
edd150b29f
fix PID not being set when reading pending UL grant
...
this should fix #2679
2021-04-18 15:12:22 +02:00
Xavier Arteaga
01ce0718be
NR-PUSCH RE mapping correction and NR-SCH detailed grant information
2021-04-17 15:51:11 +02:00
David Rupprecht
bfe2ad98ef
Added parsing for NR DL HARQ cfg
2021-04-17 12:33:21 +02:00
Andre Puschmann
b9ae064338
mac_nr: add DL HARQ
...
this commit adds a complete DL HARQ entity to the MAC of the UE.
It also refactors demux into an own class and adapts the PHY-MAC
interface to use the new MAC capabilities.
2021-04-16 15:32:09 +02:00
David Rupprecht
fe8727050b
Added new rrc_nr to phy flattening functions and fixes
2021-04-16 09:02:29 +02:00
David Rupprecht
4c68c17bd3
Fixed log level of nr loggers to lte level and hex size
2021-04-15 12:12:20 +02:00
Andre Puschmann
44baea6666
mac_nr: add UL HARQ
...
this patch adds a basic UL HARQ entity for NR.
The patch also updates some interfaces between MAC/RA/HARQ,
i.e. get_temp_crnti().
It also adds a Msg3 unit test.
2021-04-14 13:40:31 +02:00
Xavier Arteaga
b5e879db47
SRSUE: review metrics interfaces
2021-04-13 16:02:53 +02:00
Xavier Arteaga
044da18db9
SRSUE: Reviewed PHY metrics getter
2021-04-13 16:02:53 +02:00
Xavier Arteaga
2f453b43ba
Initial NR PHY interface
2021-04-13 16:02:53 +02:00
David Rupprecht
eeddbe69ce
Fixes repeating proc RA due to SR trigger
2021-04-12 20:51:07 +02:00
David Rupprecht
5a3a2a6d6f
Added functions for adding phr and tag config
2021-04-12 20:50:30 +02:00
Francisco
f7a8b8bf94
separate drb srb ids into separate enum types
2021-04-12 13:21:43 +01:00
Francisco
21718af3b6
avoid allocating std::string to get lcid radio bearer name. Refactored the lte radio bearer enum type
2021-04-12 13:21:43 +01:00
Andre Puschmann
cf696138d3
mac_nr: fix packing order of SDU and CEs
...
SDUs need to go first in the MAC PDU, followed by CEs
2021-04-10 14:01:43 +02:00
Andre Puschmann
7f415189f3
ue,mac: enable basic MAC metrics
...
this adds basic MAC metrics calculation for the DL NR MAC
2021-04-10 14:01:43 +02:00
Andre Puschmann
db496df1e6
mac_nr: add support for periodic BSR reporting
...
building on the previous refactor this patch now adds support
for peridoic BSR reporting (using short BSR). It furthermore does
the following changes:
* add BSR packing
* add proc_bsr_nr unit test
* move mac_nr test code into test folder under src (needs to be done with other test code too)
2021-04-09 12:28:05 +02:00
David Rupprecht
56e947bf27
Added functionality for releasing a NR bearer
2021-04-08 17:37:36 +02:00
David Rupprecht
cc6d8128ad
Added gw interface if it is running
2021-04-08 17:37:36 +02:00
David Rupprecht
7a481c40ab
Added mac prach nr proc error handling
2021-04-08 17:37:36 +02:00
David Rupprecht
f9ea02b6bf
Added functions for rrc reestablishing procedure if nr reconfig failes
2021-04-08 17:37:36 +02:00
David Rupprecht
43ec714ce1
Added functionality for printing nr metrics
2021-04-08 15:55:28 +02:00
Xavier Arteaga
db1a1c059c
NR PHY workers TTI synchronization between DL and UL work
2021-04-08 11:39:55 +02:00
Xavier Arteaga
991c6e7016
Refactored NR HARQ-ACK feedback enqueue
2021-04-08 11:39:55 +02:00
Xavier Arteaga
49731ab5a1
Initial NR-DCI refactor
...
Added NR DCI 1_1 size
Several DCI NR fixes
2021-04-07 16:57:12 +02:00
Xavier Arteaga
dee2ec30cd
SRSUE: use new MAC interface for NR SR procedure
2021-04-07 14:16:46 +02:00
Xavier Arteaga
01990c2e1d
SRSUE: Add PHY-MAC SR related interfaces
2021-04-07 14:16:46 +02:00
David Rupprecht
506adca930
Set eutra nr band info based config value
2021-04-07 13:24:26 +02:00
Andre Puschmann
d135ae4d29
proc_bsr: initial BSR procedure for NR
...
* refactor some common methods to mac_common.cc
* add common mux_base class
* move UL PDU generation to mux class
* add logical channel registration to MAC, MUX, BSR
* add initial proc BSR
* add basic MAC NR test
* rework MAC interfaces
2021-03-30 13:46:12 +02:00
Francisco
d04a19f8bc
refactor - increase code reuse in adt files
2021-03-29 22:11:25 +01:00
Andre Puschmann
bde7b49ca3
ue,mac_nr: add basic SR procedure
...
the current implementation support only one SR config
and doesn't support the prohibit timer
2021-03-26 09:53:03 +01:00
David Rupprecht
8c86d2084d
Adding NR phy config RRC parsing
...
Added error handling
Reworked flattening error handling
2021-03-25 11:34:53 +01:00
Xavier Arteaga
5bdf2c93b3
Initial NR PDSCH CSI-RS RE skip and other changes
2021-03-24 09:06:26 +01:00
Xavier Arteaga
7704c09ce2
Fix typos
2021-03-23 15:11:46 +01:00
Andre Puschmann
1a0891df51
all: check return value of make_byte_buffer() and handle them safely
2021-03-23 14:31:15 +01:00
Codebot
4523ee6087
rename srsLTE to srsRAN
2021-03-21 21:47:01 +01:00
Xavier Arteaga
8c4ed489e8
SRSUE: Disable neighbour cell display by default
2021-03-19 11:47:09 +01:00
Xavier Arteaga
4ae194581f
SRSUE: Adjustments in distance and speed estimations
2021-03-19 11:47:09 +01:00
Xavier Arteaga
49a535b81a
SRSUE: force printing neighbour cells by default in console trace
2021-03-19 11:47:09 +01:00
Xavier Arteaga
2782d96170
SRSUE: compute speed from TA commands
2021-03-19 11:47:09 +01:00
Francisco
3e9f93eb8a
refactor - remove old log_filter and logmap libraries from the codebase
2021-03-11 20:10:54 +00:00
faluco
173dcdd421
- Import latest srslog version.
...
- Remove string allocs in some log lines in radio.cc.
Add new tracing buffer capcity options into srsenb and srsue.
Add missing file.
2021-03-10 16:27:33 +01:00
faluco
c7542daf43
Remove rlc traces and add new ones into tti run functions both in the enb and ue.
2021-03-10 11:59:09 +01:00
Xavier Arteaga
9dffad87f2
Initial UCI bits multiplexing in PUSCH
2021-03-09 17:05:08 +01:00
David Rupprecht
bb3e87302d
Added new pcap enable option and mac nr
2021-03-03 09:50:15 +01:00
AlaiaL
3a86c210f9
[metrics] Added the system metrics to the ue stdout
2021-03-02 22:17:13 +01:00
Xavier Arteaga
784f4be72e
SRSUE: NR CSI report fixes
2021-03-02 15:40:40 +01:00
Xavier Arteaga
4679e9f871
Initial NR CSI reports
2021-03-02 15:40:40 +01:00
Xavier Arteaga
1e55d68b55
Removed set RNTI from API
2021-03-01 15:30:33 +01:00
Francisco
766018f2b4
fix gcc compilation issue
2021-02-26 16:44:57 +01:00
Francisco
b329e25bbb
move ue phy interfaces to separate interfaces header file
2021-02-26 16:44:57 +01:00
Francisco
13d805ef56
move ue rrc interfaces to separate interfaces header file
2021-02-26 16:44:57 +01:00
Francisco
b1706b9197
move ue nas interfaces to separate interfaces header file
2021-02-26 16:44:57 +01:00
Francisco
b8bd869d0f
move ue rlc interfaces to separate interfaces header file
2021-02-26 16:44:57 +01:00
Francisco
a988351f46
move ue pdcp interfaces to separate interfaces header file
2021-02-26 16:44:57 +01:00
Francisco
ea04104e8e
move ue gw interfaces to separate interfaces header file
2021-02-26 16:44:57 +01:00
Francisco
186285ffd3
move ue usim interfaces to separate interfaces header file
2021-02-26 16:44:57 +01:00
faluco
2328011732
- Remove old loggers in ttcn3 and in NR.
2021-02-26 13:59:39 +01:00
faluco
eaf20fa4f3
- Removed some logger injections in the ue app.
...
- Removed old logger setup code not needed anymore.
2021-02-26 13:59:39 +01:00
faluco
3ce7454105
- Remove old loggers from ue_stack_lte, ue gw.
...
- Remove old loggers setting up for these classes.
2021-02-26 13:59:39 +01:00
Xavier Arteaga
126fc09b7d
SRSUE: Added initial SR procedure for NR
2021-02-25 09:04:04 +01:00
Andre Puschmann
9c4146442a
mac,phy: refactor NR MAC/PHY UL data passing interface
...
inspired by accepted (but not yet merged) PR to include the
(unique_)byte_buffer_t for MAC/PHY interfacing, this patch adds
a few more useful bits to that. Buffer management for UL data is now
done in MAC and only a pointer to the data is passed in the UL action.
* Move Tx softbuffer to MAC (until UL HARQ class is ready)
* Remove temparal data member in cc_worker
* Remove memcpy after packing MAC PDU
2021-02-24 20:28:43 +01:00
David Rupprecht
f6f6ee406b
SRSUE NR: use correct rnti in rar and make NR proc ra
2021-02-23 17:02:23 +01:00
David Rupprecht
1fcd006a7c
fixed segfaulting
2021-02-23 17:02:23 +01:00
Xavier Arteaga
b768002a93
SRSUE Added RAR unpacking and other fixes
2021-02-23 17:02:23 +01:00
David Rupprecht
82a8dcc77a
Change interface to unique_byte_buffer
...
logging message for msg3 preparing
2021-02-23 17:02:23 +01:00
David Rupprecht
3af0342418
Added mux class and packing of msg3
2021-02-23 17:02:23 +01:00
Xavier Arteaga
760ad3a746
SRSUE: Interface stack and PHY for NR-RA procedure
2021-02-23 17:02:23 +01:00
David Rupprecht
0f1586dd2d
Deleted all HAVE_5GNR in CC and h files
...
CMakeList and travis yaml
2021-02-22 21:16:04 +01:00
David Rupprecht
1987ddd923
Added phy_nr to ue_stack_lte
2021-02-22 14:26:20 +01:00
Xavier Arteaga
fe452fae2b
Aesthetical changes scell synchronization class
2021-02-19 17:28:05 +01:00
Xavier Arteaga
326c5bc25e
Set secondary Serving cell synchronism bandwidth at cell selection and skip at configuration set-up
2021-02-19 17:28:05 +01:00
Xavier Arteaga
283fc78782
Fix override VNF
2021-02-17 16:34:00 +01:00
Xavier Arteaga
81748c7b1c
SRSUE: PHY does not compile NR interface
...
Fix
2021-02-17 16:34:00 +01:00
Xavier Arteaga
bdef411855
SRSUE: Aesthetic changes
2021-02-17 16:34:00 +01:00
Xavier Arteaga
784a33583b
SRSUE: Initial NR MAC-PHY interfaces
...
SRSUE Fix compilation
SRSUE: temporary fixes LTE/NR PHY/Stack interface problem
fix
fix
2021-02-17 16:34:00 +01:00
David Rupprecht
24123313bf
Added MAC NR RA procedure with a minimal test case
2021-02-16 09:42:09 +01:00
Xavier Arteaga
d807ccc3dd
SRSUE: Initial NR-PUCCH HARQ feedback
2021-02-15 12:54:17 +01:00
Xavier Arteaga
818f3ea7c7
Initial NR-PDSCH HARQ-ACK/NACK procedure
2021-02-15 12:54:17 +01:00
Andre Puschmann
6eed6f622f
mac_nr: update RA related function in MAC/PHY interface
...
* expose interface to trigger PRACH from MAC
* indicate PRACH tx from PHY
* add temporary RAR PDU handling with Msg3 grant indication to PHY
2021-02-08 22:15:09 +01:00
Francisco
3265d940ec
remove byte buffer pool cached member variables as they are unnecessary now.
2021-02-07 18:48:21 +00:00
Francisco
0c7c317be5
refactor byte_buffer class and move it to separate file
2021-02-07 18:48:21 +00:00
Pedro Alvarez
bb0e31feda
Reduce log level of SDUs dropped in the stack to info. Added ul_dropped_sdus to stack metrics.
2021-02-05 16:48:04 +00:00
Xavier Arteaga
a19671802e
Added SRSUE NR-PUSCH initial procedures
2021-02-05 15:55:03 +01:00
David Rupprecht
3dab82c42f
Added interface that allows to update the lcid in case of a nr reconfiguration
...
nr rrc updates gw lcid if reconf was received
2021-02-05 11:08:08 +01:00
faluco
821925a273
- Upgrade to srslog the loggers in lib/mac.
...
- Adapted users of these classes and tests.
2021-02-04 18:37:00 +01:00
Xavier Arteaga
a2d9b436d9
SRSUE: add NR stack to PHY and initial decoded PDU push
2021-02-04 10:51:47 +01:00
Xavier Arteaga
e65c145704
SRSUE: Added hard-coded NR-PUSCH resources
2021-02-04 10:51:47 +01:00
Xavier Arteaga
77f0a53abd
Added DCI Format 0_0 unpacking and more NR-PUSCH procedures
2021-02-04 10:51:47 +01:00
Xavier Arteaga
b150e45129
Renamed NR-PHY state and fix license headers
2021-02-04 10:51:47 +01:00
Andre Puschmann
8e13f04684
mac_pcap: refactor MAC PCAP and include NR RAT into same object
...
after adding the thread-safe PCAP writer functionality to the EUTRA
MAC object it became clear that we don't wont to replicate the
same for the NR object.
This patch therefore refactors the class that now supports both EUTRA and
NR rats. The old mac_nr_pcap.[h/cc] has been deleted. All test-cases
and usages now use the new object that needs to pass the RAT type in
the ctor.
this patch addresses the last open point of #2160
2021-02-03 17:21:57 +01:00
faluco
a7bb3ce7d0
Remove unused variable in vnf_phy_nr.
2021-02-03 14:15:27 +01:00
faluco
d37a07a47f
Replaced loggers in buffer_pool.h
2021-02-03 14:15:27 +01:00
Andre Puschmann
ecf7eaec5c
ue_stack_lte: expose MAC NR interface for NSA configs
2021-02-03 10:23:18 +01:00
Xavier Arteaga
aaa789f530
Removed unused logger
2021-02-02 15:23:14 +01:00
Xavier Arteaga
92c4a38fc2
Fix logger for NR PHY
2021-02-02 15:23:14 +01:00
Xavier Arteaga
2421f2cd99
Multiple PHY fixes and NR-PHY configuration refactor
2021-02-02 15:23:14 +01:00
Xavier Arteaga
b652cd68a5
Refactored NR PHY configuration to accept multiple CORESETs/SearchSpaces
2021-02-02 15:23:14 +01:00
Xavier Arteaga
10a7b63c6a
NR-UE PHY transmits PRACH in all oportunities
2021-02-02 15:23:14 +01:00
Andre Puschmann
f5c945dc2f
mac_nr: add interface to set C-RNTI and contention ID from RRC
...
used during contention-based/free RA
2021-02-02 14:13:25 +01:00
Andre Puschmann
1aadc5c53e
mac_nr: tiny cleanups of MAC class, use of new logger
2021-02-01 09:58:43 +01:00
Andre Puschmann
73cb0dabf2
mac_nr: move UE MAC class into own subfolder
...
this should simplify further MAC NR extensions and lead
to a more organized folder structure
2021-02-01 09:58:43 +01:00
Andre Puschmann
da9e3363f1
mac_pdu_nr: rename MAC PDU class for NR to adhere naming conventions
...
* mainly to have _nr as trailing name for filename and class
* also add "sch" to class and filename (RAR PDU will have extra class)
2021-01-30 11:58:25 +01:00
faluco
5981469f9f
Upgrade loggers in srsue ( #2163 )
...
* Replaced UE logger in the ue class.
* Replaced loggers in the main phy class and prach.
* Replaced loggers in phy common and ta_control.
* Replace loggers in cc and sf workers.
* Replaced loggers in intra_measure, scell_recv, search, sfn_sync, sync.
* Remove last uses of the old loggers in the main phy class.
* Remove stray newline in logs.
* Replaced loggers in ue gw.
* - Started to replace loggers in the ue stack.
- Replaced loggers in usim and pcsc.
- Adapted nas and usim tests.
* Replace loggers in nas.
* Added missing log init calls in two previously modified tests.
* Replaced logger in nas idle procs.
* Replaced loggers in nas emm state.
* Replaced loggers in tft packet filter and adapted tft test.
* Replaced loggers in main RRC class.
* Replaced loggers in RRC cell.
* Replaced loggers in RRC meas.
* Replaced loggers in rrc procedures.
* Started logger replacement in MAC layer, more precisely in demux and dl_harq classes.
Been unable to inject loggers in construction for dl_tb_process due to very weird static assertions in the std::vector code being the type not constructible which is not true, so instead use the main MAC logger directly.
* Replaced loggers in mac mux class.
* Replaced loggers in mac pro_bsr.
* Replaced loggers in mac proc phr.
* Replaced loggers in mac proc SR and RA.
* Replace loggers in mac UL HARQ.
* Replaced loggers in main ue stack class.
* Fixed nas test crashing due to a null string.
* Ported mac_test to use the new loggers.
* Removed TTI reporting for the PHY log as the old logger did.
* Replaced loggers in UE phy tests.
* Configure loggers in nas_test.
* Replaced loggers in rrc_meas_test.
* Replaced loggers in rrc_reconfig_test.
* Added missing newline in tft_test.
* Fix compilation errors in TTCN3 tests.
* Fix linker error detected in CI and warning.
* Replaced loggers in TTCN3 tests.
* Fix a text replace error in some log messages.
* Remove trailing newlines from log entries.
* Remove old logger from rrc.
* Flush backend before printing the test status.
* - Fix compilation error from previous rebase.
- Remove trailing newlines from some missing log entries.
2021-01-28 17:17:43 +01:00
Andre Puschmann
4709bacefd
srsue: add DL NR-ARFCN param
...
* add PHY param to set DL NR-ARFCN
* use new band_helper class to convert ARFCNs to supported bands
* signal supported NR bands in UE capabilities
2021-01-28 12:06:02 +01:00
David Rupprecht
9ccc36d4fa
Make fake measurement frequency depend on measurement config
2021-01-27 10:37:09 +01:00
David Rupprecht
1b19ee40e7
Added usim features for key derivation
2021-01-27 10:37:09 +01:00
David Rupprecht
ceda458bb3
Added MAC NR to EUTRA and NR with stack interfaces including MAC config build
...
Moved MAC logical channel config to MAC interface types
2021-01-27 10:37:09 +01:00
David Rupprecht
e0420049e3
Build infrastucture for reconfig
2021-01-27 10:37:09 +01:00
David Rupprecht
64299960bd
Added procedure for NR reconfiguration and RRC with NR complete
2021-01-27 10:37:09 +01:00
Xavier Arteaga
2baccc8b13
Set NR-PDSCH default table to 256QAM
2021-01-25 22:04:55 +01:00
Xavier Arteaga
3ee667c4a5
SRSUE: added NR-PDSCH constellation in GUI
2021-01-25 22:04:55 +01:00
Xavier Arteaga
59114206ae
SRSUE: Unify PRACH reconfiguration conditions
2021-01-21 21:11:15 +01:00
Andre Puschmann
a09fb95c25
proc_ra: protect RA procedure from concurrent thread access
...
that patch addreses issue #2199 by defering RA-related calls that
are executed from within PHY workers.
The time-critical bits of more complex functions such as tb_decoded()
are still executed in the PHY worker thread but the state machine
manipulation is defered.
2021-01-20 17:12:10 +01:00
Ismael Gomez
a6423442c2
Refactor NR RA files and fix header includes all over library ( #2162 )
...
* Refactor NR resource allocation classes. Use DCI instead of grant for dummy PDSCH UE/eNB test
* Minor refactors in NR workers and ue_dl
* Fix include issues
* fix compilation issues
2021-01-20 15:46:46 +01:00
David Rupprecht
1a10c783b5
Faking measurements
2021-01-08 17:20:08 +01:00
David Rupprecht
f7d313147a
Added infrastrukture for measurements
...
Init rrc_nr as part of the LTE stack
2021-01-08 17:20:08 +01:00
David Rupprecht
4305929ec7
Hardcoded NR/MRDC-Capabilities
2021-01-08 17:20:08 +01:00
David Rupprecht
b79eef0860
Introducing nr_rrc <-> rrc interface for eutra and nr cap query
2021-01-08 17:20:08 +01:00
David Rupprecht
9eb0b72cb4
Added rrc function has_nr_dc
2021-01-08 17:20:08 +01:00
Andre Puschmann
37fc1c59e3
fix DRB release logging
...
this caused wrong logs because the LCID was printed based on the assumption
that the DRB LCID is alwasy 2 + drb ID
Use drb_id as drb_cfg key
2021-01-08 17:20:08 +01:00
Xavier Arteaga
b3200d9ef5
Renaming common UL/DL DMRS related types and initial NR PUSCH implementation
2020-12-30 13:39:08 +01:00
Xavier Arteaga
909e5de34f
Fix NR workers
2020-12-28 10:11:08 +01:00
Andre Puschmann
c8801578df
gw: use std::chrono for metrics and fix nan display
...
* replace gettimeofday with std::chrono
* fix nan printing when nof_tti is zero (at startup)
2020-12-16 20:39:21 +01:00
David Rupprecht
81609d48dd
Added measurment report for interrat nr15
...
Added function for removing interrat triggers
2020-12-16 14:12:38 +01:00
David Rupprecht
5df2fb1fa1
Added rrc has nr neighbour cells
2020-12-16 14:12:38 +01:00
David Rupprecht
0e4d77da76
Refactor eutra reporting code and add report triggers for inter rat measurements
2020-12-16 14:12:38 +01:00
David Rupprecht
e4e67eebce
Added infrastucture to process measurments and evaluate interrat triggers
2020-12-16 14:12:38 +01:00
David Rupprecht
25e5b88704
Added NR range_to_value function and debug logging for measurements
2020-12-16 14:12:38 +01:00
David Rupprecht
ce4526a935
Extended measurements interrat nr r15 testcase with measurements
2020-12-16 14:12:38 +01:00
David Rupprecht
826dd32c89
Rename meas_cell to meas_cell_eutra
...
Added meas_cell_nr class
Make meas_cell list as template class
Inheritance rrc_cell to meas_cell_nr
Added process_new_cell_meas_nr function
2020-12-16 14:12:38 +01:00
David Rupprecht
62b558fccf
Move rat type to common header
...
Removed phy measurement from rrc interface phy
Updated rrc interface for handling measurements
2020-12-16 14:12:38 +01:00
David Rupprecht
848496bb0f
Moved get_earfcn to srslte get_carrier_freq func
2020-12-12 15:59:27 +01:00
David Rupprecht
d4fb2dfb16
Added handling of inter rat measurement config function
...
Make report config more agonistic
2020-12-12 15:59:27 +01:00
David Rupprecht
f4b0042c10
Added minimal interrat and nr measurement testcase
...
Added the handling of nr_r15 meas config
Added seperate handling of reportConfig for eutra
2020-12-12 15:59:27 +01:00
Andre Puschmann
ab598dae3b
gw: calculate GW throughput based on TTI timing
...
similiar like the RLC patch, MAC TTIs are passed to GW so the
rx/tx rate can be calculated based on the LTE timing
2020-12-12 15:59:27 +01:00
Xavier Arteaga
d5d3594f49
Removed unused attribute
2020-12-12 15:59:26 +01:00
Xavier Arteaga
f9643843a0
SRSENB/UE Fixed NR workers
2020-12-12 15:59:26 +01:00
Xavier Arteaga
ac930003be
SRSUE: Integrated NR workers
2020-12-12 15:59:26 +01:00
Xavier Arteaga
a908fb6c5b
Fix NR srsue/srsenb. Initial PHY NR in SRSENB.
2020-12-12 15:59:26 +01:00
Xavier Arteaga
2b2db90933
SRSUE: initial NR workers
2020-12-12 15:59:26 +01:00
Xavier Arteaga
eed9405e40
Moved NR MAX MIMO layers to carrier
2020-12-12 15:59:26 +01:00
Xavier Arteaga
c6798653be
SRSUE: created initial PHY LTE worker pool
2020-12-12 15:59:26 +01:00
Andre Puschmann
07d2bc4fe8
change license header to agnostic version with hint to root LICENSE file
2020-12-12 15:59:25 +01:00
Xavier Arteaga
53d8319d2b
SRSUE: protect secondary serving cell synch from concurrent access
2020-12-12 15:59:25 +01:00
Xavier Arteaga
287e651ef1
SRSUE: Protect nullptr buffer in secondary serving cell synch
2020-12-12 15:59:25 +01:00
Xavier Arteaga
959f37ae81
SRSUE: Renamed PHY scell_state to cell_state
2020-12-12 15:58:33 +01:00
Xavier Arteaga
4b8cd7ce92
SRSUE: protect scell state
2020-12-12 15:58:33 +01:00
Xavier Arteaga
c5cb4d9984
SRSUE: Added time accurate SCell activation
2020-12-12 15:58:33 +01:00
Xavier Arteaga
f64c268a69
SRSUE: Refactored MAC/RRC SCell Activation/Deactivation
2020-12-12 15:58:33 +01:00