Send paging message to all cells.

This commit is contained in:
Pedro Alvarez 2020-07-06 14:09:58 +01:00
parent fe8f8be62d
commit 89b6e0f714
3 changed files with 12 additions and 0 deletions

View File

@ -57,6 +57,8 @@
#define TTIMOD_SZ 20
#define TTIMOD(tti) (tti % TTIMOD_SZ)
#define INVALID_TTI 10241
#define PHICH_MAX_SF 6 // Maximum PHICH in a subframe (1 in FDD, > 1 in TDD, see table 9.1.2-1 36.213)
#define ASYNC_DL_SCHED (FDD_HARQ_DELAY_UL_MS <= 4)

View File

@ -149,6 +149,7 @@ private:
void parse_ul_dcch(uint16_t rnti, uint32_t lcid, srslte::unique_byte_buffer_t pdu);
void parse_ul_ccch(uint16_t rnti, srslte::unique_byte_buffer_t pdu);
uint32_t paging_tti = INVALID_TTI;
srslte::byte_buffer_t byte_buf_paging;
typedef struct {

View File

@ -359,6 +359,14 @@ bool rrc::is_paging_opportunity(uint32_t tti, uint32_t* payload_len)
{
constexpr static int sf_pattern[4][4] = {{9, 4, -1, 0}, {-1, 9, -1, 4}, {-1, -1, -1, 5}, {-1, -1, -1, 9}};
if (tti == paging_tti) {
*payload_len = byte_buf_paging.N_bytes;
rrc_log->debug("Sending paging to extra carriers. Payload len=%d, TTI=%d\n", *payload_len, tti);
return true;
} else {
paging_tti = INVALID_TTI;
}
if (pending_paging.empty()) {
return false;
}
@ -432,6 +440,7 @@ bool rrc::is_paging_opportunity(uint32_t tti, uint32_t* payload_len)
N_bits);
log_rrc_message("PCCH-Message", Tx, &byte_buf_paging, pcch_msg, pcch_msg.msg.c1().type().to_string());
paging_tti = tti; // Store paging tti for other carriers
return true;
}