Commit Graph

579 Commits

Author SHA1 Message Date
Ismael Gomez ab7a0842ba Send PRACH from worker thread with zero time advance 2018-04-24 10:43:17 +02:00
Ismael Gomez e446c14214 Restored in/out-sync debug 2018-04-24 10:24:06 +02:00
Ismael Gomez 9c7b3339be Get CRS-based RSRP estimate for in/out-sync measurement. New SNR estimation gives 0 SNR when cell signal is lost preventing from detecting out-of-sync 2018-04-24 10:18:13 +02:00
Ismael Gomez 5d9433b340 Removed log info 2018-04-13 11:34:04 +02:00
Ismael Gomez ffb8337be7 Merge branch 'next' into sync_states 2018-04-12 18:30:19 +02:00
Ismael Gomez 99253cb703 Cherry picked fixes from PR #160 2018-04-12 18:17:40 +02:00
Ismael Gomez d3e5aa072e Mutex overflow logic with rrc API in phch_recv 2018-04-11 18:02:13 +02:00
Ismael Gomez 97546d92a5 Continue if SIB>2 is not received 2018-04-11 16:26:03 +02:00
Ismael Gomez ff1269add3 HO working 2018-04-11 15:37:27 +02:00
Xavier Arteaga 15173c5c30 Added gaussian filter configuration options in srsue.conf 2018-04-10 13:25:26 +02:00
Ismael Gomez edd9cbf4dc Merge branch 'next' into sync_states 2018-04-10 09:35:21 +02:00
Andre Puschmann 319f473363 fix remaining printf warnings 2018-04-04 12:15:10 +02:00
David Rupprecht 06d4559294 Change include path absolut to project dir 2018-04-01 18:08:24 +02:00
David Rupprecht 9d71bec7b6 Unified include guards 2018-03-31 19:04:04 +02:00
Andre Puschmann ff85e8b77f fixing remaining printf formating issues 2018-03-29 17:23:55 +02:00
Joseph Giovatto 49da57c8a1 Changed log methods to take string literal vs string object
to allow for format checking and save on object copy.
Fixed log format specifier warnings.
2018-03-29 16:59:19 +02:00
Andre Puschmann 3db9ddcd36 remove various debug prints 2018-03-29 13:44:42 +02:00
Andre Puschmann b50672b0ef fix non-returning function warning 2018-03-28 16:41:10 +02:00
Andre Puschmann 0435e996f3 print PUSCH payload as hex 2018-03-26 13:09:48 +02:00
Ismael Gomez 0d099a132b Reconnection from paging and IDLE working. Reselecting cell when turning off working 2018-03-22 11:47:30 +01:00
Ismael Gomez cc28aebced Fixed SIB procedure 2018-03-21 19:22:37 +01:00
Ismael Gomez f4243656c9 Check integrity_generate msg_size parameter 2018-03-21 11:47:30 +01:00
Ismael Gomez b3be54b274 Attach and paging ok. Reselection on IDLE not working 2018-03-21 10:46:24 +01:00
Ismael Gomez 2c3386a486 Updated missing changes 2018-03-20 15:09:32 +01:00
Ismael Gomez 28e12dbf7d Merge branch 'next' into sync_states 2018-03-20 14:36:31 +01:00
Ismael Gomez f88f465c97 Refactored NAS/RRC/PHY cell_search/selection procedures 2018-03-19 14:14:51 +01:00
Andre Puschmann 8b04d7c308 fix compile warning 2018-03-19 13:25:33 +01:00
Ismael Gomez 2047f9b9fc Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2018-03-16 11:23:46 +01:00
Ismael Gomez 548a4ae29d RRC is_connected return and srsgui crashing if ports=0 when init 2018-03-16 11:23:37 +01:00
Ismael Gomez 24b1096209 Fixed bug in compute_ri() when passed NULL parameter causing segfault in MIMO 2018-03-15 18:35:40 +01:00
Ismael Gomez 86d4ce52e0 Make intra-frequency measurement period/length a parameter 2018-03-15 12:27:55 +01:00
Ismael Gomez e845339d54 rrc.connected() return true during HO 2018-03-15 11:41:49 +01:00
Ismael Gomez df0dcb27e7 Revert "PHCH Receive is reset, the current EARFCN becomes the first one in the list."
This reverts commit f3c04949b7.
2018-03-15 11:31:39 +01:00
Ismael Gomez 5772f61aaf Revert "fix issue when cell search doesn't set rx frequency because phy init takes too long"
This reverts commit 25ccd29646.
2018-03-15 11:31:37 +01:00
Ismael Gomez 5342bb430e previous commit not compiling 2018-03-15 11:15:33 +01:00
Ismael Gomez d873eaca5c Assign same timer id after release (was not really a bug) 2018-03-15 11:14:22 +01:00
Andre Puschmann 25ccd29646 fix issue when cell search doesn't set rx frequency because phy init takes too long
See commit f3c04949b7 for reference and a more
detailed description.
2018-03-15 09:59:39 +01:00
Ismael Gomez 209293104f Fix bug introduced in 33ebde5387 causing the UE to disconnect when reselecting cell 2018-03-14 18:00:26 +01:00
Ismael Gomez 155ac12193 Remove measObject properly when release (fixes not enough unique timers bug) 2018-03-14 17:35:11 +01:00
Ismael Gomez f9d770e50e Added option for Doppler frequency correction 2018-03-14 17:30:55 +01:00
Ismael Gomez c0aea5ae13 Neighbour cell RSRP measurement always and only with correlation method 2018-03-14 10:23:41 +01:00
Ismael Gomez c815051238 Increased str buffer for DCI printing 2018-03-14 10:23:36 +01:00
Ismael Gomez 33ebde5387 Fixed bug SIB3 loop and window_start 10s wait in disconnect 2018-03-14 09:53:48 +01:00
Ismael Gomez 0fbeee72a1 Fixed offset int in previous commit 2018-03-13 20:47:31 +01:00
Ismael Gomez b77e3b0be5 Avoid negative offset in neighbour cell search 2018-03-13 20:04:07 +01:00
Ismael Gomez dc21580695 Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2018-03-13 19:07:21 +01:00
Ismael Gomez 809c550ca2 Use RS power estimation for serving cell RSRP/SNR measurements. Use correlation of RS sequences for neighbour cell verification of Cell ID 2018-03-13 19:07:15 +01:00
Ismael Gomez c2098ad626 Removed unused sample offset correction 2018-03-13 18:52:21 +01:00
Xavier Arteaga 8bda956330 Solved logging error trace 2018-03-13 01:01:53 +01:00
Ismael Gomez 6ca6919694 Handle T300 expiry to avoid blocking on RLC TM UL CCCH when ConnectionRequest fails 2018-03-11 21:47:15 -04:00
Andre Puschmann 3afb93fcb9 exit the UE with q in console 2018-03-09 17:05:46 +01:00
Ismael Gomez b85a220145 Fix HO not setting serving cell 2018-03-08 16:35:37 -05:00
Andre Puschmann cbda94f0a6 fix mem leak in phch_recv 2018-03-08 22:04:58 +01:00
Andre Puschmann 9553784e2f change phy_log in UE to log_filter 2018-03-08 22:04:58 +01:00
Xavier Arteaga f3c04949b7 PHCH Receive is reset, the current EARFCN becomes the first one in the list. 2018-03-08 16:56:51 +01:00
Andre Puschmann 938e56fa2c streamline log output in RLC AM/UM 2018-03-08 11:41:21 +01:00
Andre Puschmann 57e0c01fc4 check max buffer length in hex print 2018-03-07 21:23:57 +01:00
Andre Puschmann 04f6634b49 fix condition check in cell HO 2018-03-07 15:02:07 +01:00
Ismael Gomez 99e088ee5b Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2018-03-07 14:51:31 +01:00
Ismael Gomez ac95976a6b Check Cell is valid before HO. Do cell search if going back to source fails 2018-03-07 14:50:56 +01:00
Ismael Gomez 3adc6b5cbc
Merge pull request #158 from softwareradiosystems/csi
Csi
2018-03-07 14:40:57 +01:00
Ismael Gomez bdf379ee1c Fixed roaming PLMN attach. Add out-of-sync debugging 2018-03-07 10:57:34 +01:00
Ismael Gomez c6c170e737 Do HO after correct synchronization 2018-03-07 00:40:26 +01:00
Ismael Gomez a85368cac0 Discard duplicated TB after timeout 2018-03-07 00:40:19 +01:00
Ismael Gomez be7dc37e7c Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2018-03-06 22:20:46 +01:00
Ismael Gomez 13efa740e8 Changed logic in RRC/NAS/PHY for cell/plmn search to avoid stucking in IDLE 2018-03-06 22:20:38 +01:00
Andre Puschmann b5421301af fix mem leak in NAS test 2018-03-06 18:45:31 +01:00
Andre Puschmann f5e3049f63 add check for possible buffer pool misallocation in RRC/NAS/GW 2018-03-06 14:46:50 +01:00
Ismael Gomez 5a8454f5a8 Fix for staying on PLMN search after disconnect 2018-03-06 13:44:19 +01:00
Ismael Gomez 69a2542e0f Fixed deallocating PDU in NAS too early 2018-03-06 13:30:52 +01:00
Ismael Gomez b5166e10cd Do not restart insync/outsync counters after multiple events 2018-03-06 13:18:25 +01:00
Paul Sutton 57505725e0
Merge pull request #157 from softwareradiosystems/issue_154fix
Issue 154fix
2018-03-06 12:51:02 +01:00
Ismael Gomez be959d0575 Fix several pool leaks in RRC/NAS 2018-03-06 12:46:02 +01:00
Ismael Gomez acd78dbb85 Change in-sync snr threshold and pass PCCH only if ack=true 2018-03-06 12:40:55 +01:00
Ismael Gomez 0ce4e30905 Minor looging edits 2018-03-06 12:40:34 +01:00
Ismael Gomez 8f028e34f3 Do not deallocate BCCH buffer in dl_harq 2018-03-06 12:39:29 +01:00
Ismael Gomez dc65061dbb Print buffer pool status every 10s (Debugging commit) 2018-03-06 12:37:45 +01:00
Ismael Gomez dcdb2d6449 Make sure request connection when NAS attaching 2018-03-05 16:26:51 +01:00
Ismael Gomez defe167672 Do not lock on set_crnti worker 2018-03-05 16:20:45 +01:00
Ismael Gomez 8b1ba55eaf Check payload length before demux 2018-03-05 16:20:06 +01:00
Ismael Gomez 76ed6fd8d8 Check cell state before infra_freq.meas 2018-03-05 16:19:26 +01:00
Ismael Gomez b8b39d6d1b NULL payload buffer in dl_harq in the constructor 2018-03-05 15:16:21 +01:00
Ismael Gomez 23f3086669 Deallocate properly on dl_harq 2018-03-05 15:13:24 +01:00
Ismael Gomez f53cb11e82 Remove mutex from ul_harq 2018-03-05 14:54:01 +01:00
Ismael Gomez 8591049e92 Added mutex to ul/dl harq reset 2018-03-05 14:33:51 +01:00
Ismael Gomez 73602a8558 Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2018-03-05 13:07:34 +01:00
Ismael Gomez 90553e830d Fixed cell search for non-home PLMN 2018-03-05 13:07:24 +01:00
Andre Puschmann c198547728 add new RF RX error type and make the UHD driver issue that if anything unexpected happens 2018-03-04 21:53:06 +01:00
Andre Puschmann 8fcf25360e fix missing newline 2018-03-04 21:53:06 +01:00
Andre Puschmann f6ee0e1c8a move byte_buffer to UE base class 2018-03-04 21:53:06 +01:00
Andre Puschmann 3dddae0566 rrc: check pool buffer allocation and handle error 2018-03-04 21:53:06 +01:00
Ismael Gomez b257ab96bf Locking on worker::reset() causes dead-lock 2018-03-04 21:51:32 +01:00
Ismael Gomez ed52604d30 Restart rx_stream on radio error 2018-03-04 21:51:14 +01:00
Ismael Gomez 91664ef2be Do sell reselection on IDLE by phch_recv thread instead of worker 2018-03-04 11:55:58 +01:00
Ismael Gomez 650f433532 Add mutex to worker_imp/set_cell worker 2018-03-04 11:55:31 +01:00
Ismael Gomez df1a0c68e2 Disable ul_reset 2018-03-02 22:46:24 +01:00
Ismael Gomez e64f3240cb Disable tx_end before PRACH (not needed now?) 2018-03-02 21:33:28 +01:00
Ismael Gomez fd0c8168f0 Set to Continuous RX and TX 2018-03-02 20:59:17 +01:00
Ismael Gomez 5fe066df69 Merge branch 'raa' into next 2018-03-02 18:08:53 +01:00
Ismael Gomez de747f4e1c MUX retx Msg3 correctly 2018-03-02 16:58:52 +01:00
Ismael Gomez 0fcb065ae8 Disabled TX continuous and sleep on cell search 2018-03-02 14:08:29 +01:00
Ismael Gomez fb53a515da Disable tx_end during HO 2018-03-01 12:48:14 +01:00
Ismael Gomez a92a5d65f8 Try to fix tx_end issue during HO 2018-03-01 12:30:47 +01:00
Xavier Arteaga 8cabfa82cf Added CSI report enable option in SRS UE 2018-02-28 12:30:34 +01:00
Ismael Gomez beccfd2919 Average RSRP in linear domain to get better resolution 2018-02-25 23:36:08 +01:00
Ismael Gomez cfaa5e9b28 Fix previous commit could not HO more than once due to not refreshing serving cell after 1st HO 2018-02-25 19:13:12 +01:00
Ismael Gomez df67735a99 Reset UL after IDLEling PHY 2018-02-25 13:08:36 +01:00
Ismael Gomez 42ece73453 Changed cell selection/reselection to avoid stopping/restarting radio. Fixed SIB message search 2018-02-24 21:33:13 +01:00
Ismael Gomez 56455b31ef Use dedicated thread for MAC timers 2018-02-24 21:29:57 +01:00
Ismael Gomez aced809146 Set rx_gain_offset for B210 2018-02-24 21:28:05 +01:00
Ismael Gomez 8474c6e3aa Fixed HO to unkown cell issue 2018-02-23 13:05:02 +01:00
Ismael Gomez 7e091b8e60 Fix Underflow when PHY Reset 2018-02-23 10:12:44 +01:00
Ismael Gomez 7c276318b2 Merge branch 'next' into raa 2018-02-21 14:53:54 +01:00
Xavier Arteaga 4df6227f5b UE stores last PMI and last RI in common phy 2018-02-21 14:51:09 +01:00
Ismael Gomez 09c5ddb730 Merge branch 'next' into raa 2018-02-21 11:53:36 +01:00
Ismael Gomez 56df710d1f Add rx_gain_offset interface for RSRP calibration 2018-02-21 11:51:55 +01:00
Ismael Gomez d250dd51ad Reduce LO leakage by not transmit signal on idle 2018-02-21 11:51:08 +01:00
Ismael Gomez f6a17d1182 Logs to test snr drop issue 2018-02-21 11:04:35 +01:00
Ismael Gomez e59822f9a9 Fixed bug in previous commit 2018-02-16 18:41:38 +01:00
Ismael Gomez bf691e8c65 Do not stop RX during HO 2018-02-16 18:14:00 +01:00
Ismael Gomez 42c4b97f7e Stop PDCCH RX before HO 2018-02-16 17:59:48 +01:00
Ismael Gomez 62116bf1ae Revert "Logs to test snr drop issue"
This reverts commit 097005684a.
2018-02-16 17:16:03 +01:00
Ismael Gomez e6dcb81d99 Ignore TA cmd 2018-02-16 16:37:36 +01:00
Ismael Gomez 056e379347 Set TA to time_adv instead of nsamples 2018-02-16 16:09:07 +01:00
Ismael Gomez 65023f576e Merge branch 'test_snr' into raa 2018-02-16 15:33:27 +01:00
Ismael Gomez 79e59f1bf8 Missed headers in previous commit 2018-02-16 15:25:53 +01:00
Ismael Gomez 097005684a Logs to test snr drop issue 2018-02-16 12:05:45 +01:00
Ismael Gomez 9a8257048d Casted phy_log vector to srslte::log 2018-02-16 12:04:10 +01:00
Ismael Gomez 90fe4a218b Fix RNTI in Msg3 after non-contention HO in PCAP 2018-02-16 11:37:57 +01:00
Andre Puschmann b2ce6ec9a9
Merge pull request #139 from mrlnc/apn_cfg
Add APN to config and PDN connectivity request
2018-02-16 09:43:20 +01:00
Ismael Gomez 9322804ef9 Merge branch 'raa' into next 2018-02-14 21:52:19 +01:00
Ismael Gomez 90de622f6c Fixed SIB searching 2018-02-14 21:52:14 +01:00
Ismael Gomez 23e722f97a Fixed issue rsrp=0 in neighbour cell measurements 2018-02-14 19:38:53 +01:00
Ismael Gomez b54efc6d9f Added testing log info 2018-02-14 17:15:30 +01:00
Ismael Gomez 9acefc53f8 Set C-RNTI when grant from RAR but no Msg3 2018-02-14 00:00:31 +01:00
Ismael Gomez d52c2402ff Revert "Set PHY crnti before RA done no contention"
This reverts commit 1db4644c7b.
2018-02-13 23:53:08 +01:00
Ismael Gomez 1db4644c7b Set PHY crnti before RA done no contention 2018-02-13 23:46:12 +01:00
Ismael Gomez 13a16e200c Transmit Msg3 only if available (2) 2018-02-13 23:31:52 +01:00
Ismael Gomez ca4a22aeaf Transmit Msg3 only if available 2018-02-13 23:20:35 +01:00
Ismael Gomez e6274801ce Restored pathloss metric 2018-02-13 22:33:28 +01:00
Ismael Gomez 70dfa3b2a9 Fixes #6 AGC 2018-02-13 18:15:13 +01:00
Ismael Gomez fd1e22a710 Fixed Measure neighbour exiting too early 2018-02-13 18:15:07 +01:00
Ismael Gomez 230364a604 Defaut in-sync for neighbour cell to true 2018-02-13 18:14:53 +01:00
Ismael Gomez bf0ff783e9 Fixed Msg3 HARQ retx when HO 2018-02-12 18:24:31 +01:00
Ismael Gomez 913be7b290 Fix sensor calibration on sync measure 2018-02-12 17:28:46 +01:00
Andre Puschmann ccfb9314bc fix various coverity bugs 2018-02-11 10:59:56 +01:00
Ismael Gomez ee12051b33 Removed unused options in ue.conf. Fixes #143 2018-02-09 17:56:50 +01:00
Ismael Gomez b5bda138f3 Merge branch 'next' 2018-02-09 15:37:34 +01:00
Xavier Arteaga 42c561e77e UE channel estimator averages in sf by default 2018-02-09 12:27:22 +01:00
Xavier Arteaga 0c2f0ac038 Fixed srsue freq_offset compensation for UL 2018-02-07 18:36:06 +01:00