|
|
@ -2455,7 +2455,7 @@ int header_reconstruction_test(srslte::log_sink_message_spy& spy)
|
|
|
|
/// 13:35:16.337011 [RLC_1] [I] DRB1 Tx PDU SN=277 (20 B)
|
|
|
|
/// 13:35:16.337011 [RLC_1] [I] DRB1 Tx PDU SN=277 (20 B)
|
|
|
|
/// 0000: 9d 15 80 20 0a 23 23 24 24 24 24 24 24 24 24 24
|
|
|
|
/// 0000: 9d 15 80 20 0a 23 23 24 24 24 24 24 24 24 24 24
|
|
|
|
/// 0010: 24 25 25 25
|
|
|
|
/// 0010: 24 25 25 25
|
|
|
|
/// 13:35:16.337016 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=277, LSF=0, SO=0, N_li=2 (2, 10, )]
|
|
|
|
/// 13:35:16.337016 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=277, LSF=0, SO=0, N_li=2 (2, 10)]
|
|
|
|
|
|
|
|
|
|
|
|
// 2nd retransmission with SO=9
|
|
|
|
// 2nd retransmission with SO=9
|
|
|
|
std::array<uint8_t, 12> tv2 = {0xdd, 0x15, 0x80, 0x09, 0x00, 0x30, 0x24, 0x24, 0x24, 0x25, 0x25, 0x25};
|
|
|
|
std::array<uint8_t, 12> tv2 = {0xdd, 0x15, 0x80, 0x09, 0x00, 0x30, 0x24, 0x24, 0x24, 0x25, 0x25, 0x25};
|
|
|
@ -2496,7 +2496,7 @@ int header_reconstruction_test(srslte::log_sink_message_spy& spy)
|
|
|
|
rlc1.write_pdu(pdu_tv3.msg, pdu_tv3.N_bytes);
|
|
|
|
rlc1.write_pdu(pdu_tv3.msg, pdu_tv3.N_bytes);
|
|
|
|
|
|
|
|
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=277, LSF=0, SO=0, N_li=2 (2, 10, )]"));
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=277, LSF=0, SO=0, N_li=2 (2, 10)]"));
|
|
|
|
|
|
|
|
|
|
|
|
#if HAVE_PCAP
|
|
|
|
#if HAVE_PCAP
|
|
|
|
pcap.close();
|
|
|
|
pcap.close();
|
|
|
@ -2560,7 +2560,7 @@ int header_reconstruction_test2(srslte::log_sink_message_spy& spy)
|
|
|
|
rlc1.write_pdu(pdu_tv3.msg, pdu_tv3.N_bytes);
|
|
|
|
rlc1.write_pdu(pdu_tv3.msg, pdu_tv3.N_bytes);
|
|
|
|
|
|
|
|
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=199, LSF=0, SO=0, N_li=2 (3, 10, )]"));
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=199, LSF=0, SO=0, N_li=2 (3, 10)]"));
|
|
|
|
|
|
|
|
|
|
|
|
#if HAVE_PCAP
|
|
|
|
#if HAVE_PCAP
|
|
|
|
pcap.close();
|
|
|
|
pcap.close();
|
|
|
@ -2576,7 +2576,7 @@ int header_reconstruction_test3(srslte::log_sink_message_spy& spy)
|
|
|
|
// 11:13:25.994566 [RLC_1] [I] DRB1 Tx PDU SN=206 (18 B)
|
|
|
|
// 11:13:25.994566 [RLC_1] [I] DRB1 Tx PDU SN=206 (18 B)
|
|
|
|
// 0000: 8c ce 00 a0 db db db db db db db db db db dc dc
|
|
|
|
// 0000: 8c ce 00 a0 db db db db db db db db db db dc dc
|
|
|
|
// 0010: dc dc
|
|
|
|
// 0010: dc dc
|
|
|
|
// 11:13:25.994571 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=206, LSF=0, SO=0, N_li=1 (10, )]
|
|
|
|
// 11:13:25.994571 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=206, LSF=0, SO=0, N_li=1 (10)]
|
|
|
|
|
|
|
|
|
|
|
|
// 11:13:25.995744 [RLC_1] [I] DRB1 Retx PDU segment SN=206 [so=8] (12 B) (attempt 2/16)
|
|
|
|
// 11:13:25.995744 [RLC_1] [I] DRB1 Retx PDU segment SN=206 [so=8] (12 B) (attempt 2/16)
|
|
|
|
// 0000: dc ce 80 08 00 20 db db dc dc dc dc
|
|
|
|
// 0000: dc ce 80 08 00 20 db db dc dc dc dc
|
|
|
@ -2622,7 +2622,7 @@ int header_reconstruction_test3(srslte::log_sink_message_spy& spy)
|
|
|
|
rlc1.write_pdu(pdu_tv1.msg, pdu_tv1.N_bytes);
|
|
|
|
rlc1.write_pdu(pdu_tv1.msg, pdu_tv1.N_bytes);
|
|
|
|
|
|
|
|
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=206, LSF=0, SO=0, N_li=1 (10, )]"));
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=206, LSF=0, SO=0, N_li=1 (10)]"));
|
|
|
|
|
|
|
|
|
|
|
|
#if HAVE_PCAP
|
|
|
|
#if HAVE_PCAP
|
|
|
|
pcap.close();
|
|
|
|
pcap.close();
|
|
|
@ -2637,20 +2637,20 @@ int header_reconstruction_test4(srslte::log_sink_message_spy& spy)
|
|
|
|
// 15:32:20.667043 [RLC_1] [I] DRB1 Tx PDU SN=172 (22 B)
|
|
|
|
// 15:32:20.667043 [RLC_1] [I] DRB1 Tx PDU SN=172 (22 B)
|
|
|
|
// 0000: 9c ac 80 10 0a af b0 b0 b0 b0 b0 b0 b0 b0 b0 b0
|
|
|
|
// 0000: 9c ac 80 10 0a af b0 b0 b0 b0 b0 b0 b0 b0 b0 b0
|
|
|
|
// 0010: b1 b1 b1 b1 b1 b1
|
|
|
|
// 0010: b1 b1 b1 b1 b1 b1
|
|
|
|
// 15:32:20.667048 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=172, LSF=0, SO=0, N_li=2 (1, 10, )]
|
|
|
|
// 15:32:20.667048 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=172, LSF=0, SO=0, N_li=2 (1, 10)]
|
|
|
|
|
|
|
|
|
|
|
|
// 15:32:20.668094 [RLC_1] [I] DRB1 Retx PDU segment SN=172 [so=0] (14 B) (attempt 2/16)
|
|
|
|
// 15:32:20.668094 [RLC_1] [I] DRB1 Retx PDU segment SN=172 [so=0] (14 B) (attempt 2/16)
|
|
|
|
// 0000: dc ac 00 00 00 10 af b0 b0 b0 b0 b0 b0 b0
|
|
|
|
// 0000: dc ac 00 00 00 10 af b0 b0 b0 b0 b0 b0 b0
|
|
|
|
// 15:32:20.668100 [RLC_2] [I] DRB1 Rx data PDU segment of SN=172 (8 B), SO=0, N_li=1
|
|
|
|
// 15:32:20.668100 [RLC_2] [I] DRB1 Rx data PDU segment of SN=172 (8 B), SO=0, N_li=1
|
|
|
|
// 0000: af b0 b0 b0 b0 b0 b0 b0
|
|
|
|
// 0000: af b0 b0 b0 b0 b0 b0 b0
|
|
|
|
// 15:32:20.668105 [RLC_2] [D] [Data PDU, RF=1, P=0, FI=1, SN=172, LSF=0, SO=0, N_li=1 (1, )]
|
|
|
|
// 15:32:20.668105 [RLC_2] [D] [Data PDU, RF=1, P=0, FI=1, SN=172, LSF=0, SO=0, N_li=1 (1)]
|
|
|
|
std::array<uint8_t, 14> tv1 = {0xdc, 0xac, 0x00, 0x00, 0x00, 0x10, 0xaf, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0};
|
|
|
|
std::array<uint8_t, 14> tv1 = {0xdc, 0xac, 0x00, 0x00, 0x00, 0x10, 0xaf, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0};
|
|
|
|
|
|
|
|
|
|
|
|
// 15:32:20.668497 [RLC_1] [I] DRB1 Retx PDU segment SN=172 [so=0] (12 B) (attempt 3/16)
|
|
|
|
// 15:32:20.668497 [RLC_1] [I] DRB1 Retx PDU segment SN=172 [so=0] (12 B) (attempt 3/16)
|
|
|
|
// 0000: fc ac 00 00 00 10 af b0 b0 b0 b0 b0
|
|
|
|
// 0000: fc ac 00 00 00 10 af b0 b0 b0 b0 b0
|
|
|
|
// 15:32:20.668502 [RLC_2] [I] DRB1 Rx data PDU segment of SN=172 (6 B), SO=0, N_li=1
|
|
|
|
// 15:32:20.668502 [RLC_2] [I] DRB1 Rx data PDU segment of SN=172 (6 B), SO=0, N_li=1
|
|
|
|
// 0000: af b0 b0 b0 b0 b0
|
|
|
|
// 0000: af b0 b0 b0 b0 b0
|
|
|
|
// 15:32:20.668507 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=172, LSF=0, SO=0, N_li=1 (1, )]
|
|
|
|
// 15:32:20.668507 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=172, LSF=0, SO=0, N_li=1 (1)]
|
|
|
|
std::array<uint8_t, 12> tv2 = {0xfc, 0xac, 0x00, 0x00, 0x00, 0x10, 0xaf, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0};
|
|
|
|
std::array<uint8_t, 12> tv2 = {0xfc, 0xac, 0x00, 0x00, 0x00, 0x10, 0xaf, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0};
|
|
|
|
|
|
|
|
|
|
|
|
// 15:32:20.668575 [RLC_1] [I] DRB1 Retx PDU segment SN=172 [so=6] (7 B) (attempt 3/16)
|
|
|
|
// 15:32:20.668575 [RLC_1] [I] DRB1 Retx PDU segment SN=172 [so=6] (7 B) (attempt 3/16)
|
|
|
@ -2665,7 +2665,7 @@ int header_reconstruction_test4(srslte::log_sink_message_spy& spy)
|
|
|
|
// 0000: dc ac 80 09 00 20 b0 b0 b1 b1 b1 b1 b1 b1
|
|
|
|
// 0000: dc ac 80 09 00 20 b0 b0 b1 b1 b1 b1 b1 b1
|
|
|
|
// 15:32:20.668671 [RLC_2] [I] DRB1 Rx data PDU segment of SN=172 (8 B), SO=9, N_li=1
|
|
|
|
// 15:32:20.668671 [RLC_2] [I] DRB1 Rx data PDU segment of SN=172 (8 B), SO=9, N_li=1
|
|
|
|
// 0000: b0 b0 b1 b1 b1 b1 b1 b1
|
|
|
|
// 0000: b0 b0 b1 b1 b1 b1 b1 b1
|
|
|
|
// 15:32:20.668675 [RLC_2] [D] [Data PDU, RF=1, P=0, FI=1, SN=172, LSF=1, SO=9, N_li=1 (2, )]
|
|
|
|
// 15:32:20.668675 [RLC_2] [D] [Data PDU, RF=1, P=0, FI=1, SN=172, LSF=1, SO=9, N_li=1 (2)]
|
|
|
|
std::array<uint8_t, 14> tv4 = {0xdc, 0xac, 0x80, 0x09, 0x00, 0x20, 0xb0, 0xb0, 0xb1, 0xb1, 0xb1, 0xb1, 0xb1, 0xb1};
|
|
|
|
std::array<uint8_t, 14> tv4 = {0xdc, 0xac, 0x80, 0x09, 0x00, 0x20, 0xb0, 0xb0, 0xb1, 0xb1, 0xb1, 0xb1, 0xb1, 0xb1};
|
|
|
|
|
|
|
|
|
|
|
|
byte_buffer_t pdu_tv1;
|
|
|
|
byte_buffer_t pdu_tv1;
|
|
|
@ -2712,7 +2712,7 @@ int header_reconstruction_test4(srslte::log_sink_message_spy& spy)
|
|
|
|
rlc1.write_pdu(pdu_tv4.msg, pdu_tv4.N_bytes);
|
|
|
|
rlc1.write_pdu(pdu_tv4.msg, pdu_tv4.N_bytes);
|
|
|
|
|
|
|
|
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=172, LSF=0, SO=0, N_li=2 (1, 10, )]"));
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=172, LSF=0, SO=0, N_li=2 (1, 10)]"));
|
|
|
|
|
|
|
|
|
|
|
|
#if HAVE_PCAP
|
|
|
|
#if HAVE_PCAP
|
|
|
|
pcap.close();
|
|
|
|
pcap.close();
|
|
|
@ -2727,7 +2727,7 @@ int header_reconstruction_test5(srslte::log_sink_message_spy& spy)
|
|
|
|
// 18:46:22.372858 [RLC_1] [I] DRB1 Tx PDU SN=222 (22 B)
|
|
|
|
// 18:46:22.372858 [RLC_1] [I] DRB1 Tx PDU SN=222 (22 B)
|
|
|
|
// 0000: bc de 80 30 0a ee ee ee ef ef ef ef ef ef ef ef
|
|
|
|
// 0000: bc de 80 30 0a ee ee ee ef ef ef ef ef ef ef ef
|
|
|
|
// 0010: ef ef f0 f0 f0 f0
|
|
|
|
// 0010: ef ef f0 f0 f0 f0
|
|
|
|
// 18:46:22.372863 [RLC_1] [D] [Data PDU, RF=0, P=1, FI=1, SN=222, LSF=0, SO=0, N_li=2 (3, 10, )]
|
|
|
|
// 18:46:22.372863 [RLC_1] [D] [Data PDU, RF=0, P=1, FI=1, SN=222, LSF=0, SO=0, N_li=2 (3, 10)]
|
|
|
|
|
|
|
|
|
|
|
|
// 18:46:22.373623 [RLC_1] [I] DRB1 Retx PDU segment SN=222 [so=0] (7 B) (attempt 2/16)
|
|
|
|
// 18:46:22.373623 [RLC_1] [I] DRB1 Retx PDU segment SN=222 [so=0] (7 B) (attempt 2/16)
|
|
|
|
// 0000: d0 de 00 00 ee ee ee
|
|
|
|
// 0000: d0 de 00 00 ee ee ee
|
|
|
@ -2788,7 +2788,7 @@ int header_reconstruction_test5(srslte::log_sink_message_spy& spy)
|
|
|
|
rlc1.write_pdu(pdu_tv2.msg, pdu_tv2.N_bytes);
|
|
|
|
rlc1.write_pdu(pdu_tv2.msg, pdu_tv2.N_bytes);
|
|
|
|
|
|
|
|
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=222, LSF=0, SO=0, N_li=2 (3, 10, )]"));
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=222, LSF=0, SO=0, N_li=2 (3, 10)]"));
|
|
|
|
|
|
|
|
|
|
|
|
#if HAVE_PCAP
|
|
|
|
#if HAVE_PCAP
|
|
|
|
pcap.close();
|
|
|
|
pcap.close();
|
|
|
@ -2803,7 +2803,7 @@ int header_reconstruction_test6(srslte::log_sink_message_spy& spy)
|
|
|
|
// 21:50:12.709646 [RLC_1] [I] DRB1 Tx PDU SN=509 (20 B)
|
|
|
|
// 21:50:12.709646 [RLC_1] [I] DRB1 Tx PDU SN=509 (20 B)
|
|
|
|
// 0000: 9d fd 80 40 0a b1 b1 b1 b1 b2 b2 b2 b2 b2 b2 b2
|
|
|
|
// 0000: 9d fd 80 40 0a b1 b1 b1 b1 b2 b2 b2 b2 b2 b2 b2
|
|
|
|
// 0010: b2 b2 b2 b3
|
|
|
|
// 0010: b2 b2 b2 b3
|
|
|
|
// 21:50:12.709653 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=509, LSF=0, SO=0, N_li=2 (4, 10, )]]
|
|
|
|
// 21:50:12.709653 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=509, LSF=0, SO=0, N_li=2 (4, 10)]]
|
|
|
|
|
|
|
|
|
|
|
|
// 21:50:12.711022 [RLC_1] [I] DRB1 Retx PDU segment SN=509 [so=0] (5 B) (attempt 3/16)
|
|
|
|
// 21:50:12.711022 [RLC_1] [I] DRB1 Retx PDU segment SN=509 [so=0] (5 B) (attempt 3/16)
|
|
|
|
// 0000: d9 fd 00 00 b1
|
|
|
|
// 0000: d9 fd 00 00 b1
|
|
|
@ -2824,7 +2824,7 @@ int header_reconstruction_test6(srslte::log_sink_message_spy& spy)
|
|
|
|
// 0010: b3
|
|
|
|
// 0010: b3
|
|
|
|
// 21:50:12.711210 [RLC_2] [I] DRB1 Rx data PDU segment of SN=509 (11 B), SO=4, N_li=1
|
|
|
|
// 21:50:12.711210 [RLC_2] [I] DRB1 Rx data PDU segment of SN=509 (11 B), SO=4, N_li=1
|
|
|
|
// 0000: b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b3
|
|
|
|
// 0000: b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b3
|
|
|
|
// 21:50:12.711216 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=509, LSF=1, SO=4, N_li=1 (10, )]
|
|
|
|
// 21:50:12.711216 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=509, LSF=1, SO=4, N_li=1 (10)]
|
|
|
|
std::array<uint8_t, 17> tv2 = {
|
|
|
|
std::array<uint8_t, 17> tv2 = {
|
|
|
|
0xed, 0xfd, 0x80, 0x04, 0x00, 0xa0, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb3};
|
|
|
|
0xed, 0xfd, 0x80, 0x04, 0x00, 0xa0, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb3};
|
|
|
|
|
|
|
|
|
|
|
@ -2867,7 +2867,7 @@ int header_reconstruction_test6(srslte::log_sink_message_spy& spy)
|
|
|
|
rlc1.write_pdu(pdu_tv2.msg, pdu_tv2.N_bytes);
|
|
|
|
rlc1.write_pdu(pdu_tv2.msg, pdu_tv2.N_bytes);
|
|
|
|
|
|
|
|
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=1, FI=1, SN=509, LSF=0, SO=0, N_li=2 (4, 10, )]"));
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=1, FI=1, SN=509, LSF=0, SO=0, N_li=2 (4, 10)]"));
|
|
|
|
|
|
|
|
|
|
|
|
#if HAVE_PCAP
|
|
|
|
#if HAVE_PCAP
|
|
|
|
pcap.close();
|
|
|
|
pcap.close();
|
|
|
@ -2882,7 +2882,7 @@ int header_reconstruction_test7(srslte::log_sink_message_spy& spy)
|
|
|
|
// 22:14:54.646530 [RLC_1] [I] DRB1 Tx PDU SN=282 (19 B)
|
|
|
|
// 22:14:54.646530 [RLC_1] [I] DRB1 Tx PDU SN=282 (19 B)
|
|
|
|
// 0000: 9d 1a 80 10 0a 28 29 29 29 29 29 29 29 29 29 29
|
|
|
|
// 0000: 9d 1a 80 10 0a 28 29 29 29 29 29 29 29 29 29 29
|
|
|
|
// 0010: 2a 2a 2a
|
|
|
|
// 0010: 2a 2a 2a
|
|
|
|
// 22:14:54.646535 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=282, LSF=0, SO=0, N_li=2 (1, 10, )]
|
|
|
|
// 22:14:54.646535 [RLC_1] [D] [Data PDU, RF=0, P=0, FI=1, SN=282, LSF=0, SO=0, N_li=2 (1, 10)]
|
|
|
|
|
|
|
|
|
|
|
|
// 22:14:54.648484 [RLC_1] [I] DRB1 Retx PDU segment SN=282 [so=2] (6 B) (attempt 2/16)
|
|
|
|
// 22:14:54.648484 [RLC_1] [I] DRB1 Retx PDU segment SN=282 [so=2] (6 B) (attempt 2/16)
|
|
|
|
// 0000: f9 1a 00 02 29 29
|
|
|
|
// 0000: f9 1a 00 02 29 29
|
|
|
@ -2970,7 +2970,7 @@ int header_reconstruction_test7(srslte::log_sink_message_spy& spy)
|
|
|
|
rlc1.write_pdu(pdu_tv4.msg, pdu_tv4.N_bytes);
|
|
|
|
rlc1.write_pdu(pdu_tv4.msg, pdu_tv4.N_bytes);
|
|
|
|
|
|
|
|
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=282, LSF=0, SO=0, N_li=2 (1, 10, )]"));
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=0, FI=1, SN=282, LSF=0, SO=0, N_li=2 (1, 10)]"));
|
|
|
|
|
|
|
|
|
|
|
|
#if HAVE_PCAP
|
|
|
|
#if HAVE_PCAP
|
|
|
|
pcap.close();
|
|
|
|
pcap.close();
|
|
|
@ -2986,14 +2986,14 @@ int header_reconstruction_test8(srslte::log_sink_message_spy& spy)
|
|
|
|
// 0000: b5 a7 80 38 0a 00 a0 77 77 77 78 78 78 78 78 78
|
|
|
|
// 0000: b5 a7 80 38 0a 00 a0 77 77 77 78 78 78 78 78 78
|
|
|
|
// 0010: 78 78 78 78 79 79 79 79 79 79 79 79 79 79 7a 7a
|
|
|
|
// 0010: 78 78 78 78 79 79 79 79 79 79 79 79 79 79 7a 7a
|
|
|
|
// 0020: 7a 7a 7a 7a 7a 7a 7a 7a
|
|
|
|
// 0020: 7a 7a 7a 7a 7a 7a 7a 7a
|
|
|
|
// 21:23:34.407724 [RLC_1] [D] [Data PDU, RF=0, P=1, FI=1, SN=423, LSF=0, SO=0, N_li=3 (3, 10, 10, )]
|
|
|
|
// 21:23:34.407724 [RLC_1] [D] [Data PDU, RF=0, P=1, FI=1, SN=423, LSF=0, SO=0, N_li=3 (3, 10, 10)]
|
|
|
|
|
|
|
|
|
|
|
|
// 21:23:34.408815 [RLC_1] [I] DRB1 Retx PDU segment SN=423 [so=0] (18 B) (attempt 2/8)
|
|
|
|
// 21:23:34.408815 [RLC_1] [I] DRB1 Retx PDU segment SN=423 [so=0] (18 B) (attempt 2/8)
|
|
|
|
// 0000: fd a7 00 00 00 30 77 77 77 78 78 78 78 78 78 78
|
|
|
|
// 0000: fd a7 00 00 00 30 77 77 77 78 78 78 78 78 78 78
|
|
|
|
// 0010: 78 78
|
|
|
|
// 0010: 78 78
|
|
|
|
// 21:23:34.408822 [RLC_2] [I] DRB1 Rx data PDU segment of SN=423 (12 B), SO=0, N_li=1
|
|
|
|
// 21:23:34.408822 [RLC_2] [I] DRB1 Rx data PDU segment of SN=423 (12 B), SO=0, N_li=1
|
|
|
|
// 0000: 77 77 77 78 78 78 78 78 78 78 78 78
|
|
|
|
// 0000: 77 77 77 78 78 78 78 78 78 78 78 78
|
|
|
|
// 21:23:34.408828 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=423, LSF=0, SO=0, N_li=1 (3, )]
|
|
|
|
// 21:23:34.408828 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=423, LSF=0, SO=0, N_li=1 (3)]
|
|
|
|
std::array<uint8_t, 18> tv0 = {
|
|
|
|
std::array<uint8_t, 18> tv0 = {
|
|
|
|
0xfd, 0xa7, 0x00, 0x00, 0x00, 0x30, 0x77, 0x77, 0x77, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78};
|
|
|
|
0xfd, 0xa7, 0x00, 0x00, 0x00, 0x30, 0x77, 0x77, 0x77, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78};
|
|
|
|
|
|
|
|
|
|
|
@ -3002,7 +3002,7 @@ int header_reconstruction_test8(srslte::log_sink_message_spy& spy)
|
|
|
|
// 0010: 79
|
|
|
|
// 0010: 79
|
|
|
|
// 21:23:34.408919 [RLC_2] [I] DRB1 Rx data PDU segment of SN=423 (11 B), SO=12, N_li=1
|
|
|
|
// 21:23:34.408919 [RLC_2] [I] DRB1 Rx data PDU segment of SN=423 (11 B), SO=12, N_li=1
|
|
|
|
// 0000: 78 79 79 79 79 79 79 79 79 79 79
|
|
|
|
// 0000: 78 79 79 79 79 79 79 79 79 79 79
|
|
|
|
// 21:23:34.408925 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=423, LSF=0, SO=12, N_li=1 (1, )]
|
|
|
|
// 21:23:34.408925 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=423, LSF=0, SO=12, N_li=1 (1)]
|
|
|
|
std::array<uint8_t, 17> tv1 = {
|
|
|
|
std::array<uint8_t, 17> tv1 = {
|
|
|
|
0xf5, 0xa7, 0x00, 0x0c, 0x00, 0x10, 0x78, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79};
|
|
|
|
0xf5, 0xa7, 0x00, 0x0c, 0x00, 0x10, 0x78, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79};
|
|
|
|
|
|
|
|
|
|
|
@ -3011,7 +3011,7 @@ int header_reconstruction_test8(srslte::log_sink_message_spy& spy)
|
|
|
|
// 0010: 78 78 78
|
|
|
|
// 0010: 78 78 78
|
|
|
|
// 21:23:34.409433 [RLC_2] [I] DRB1 Rx data PDU segment of SN=423 (13 B), SO=0, N_li=1
|
|
|
|
// 21:23:34.409433 [RLC_2] [I] DRB1 Rx data PDU segment of SN=423 (13 B), SO=0, N_li=1
|
|
|
|
// 0000: 77 77 77 78 78 78 78 78 78 78 78 78 78
|
|
|
|
// 0000: 77 77 77 78 78 78 78 78 78 78 78 78 78
|
|
|
|
// 21:23:34.409440 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=423, LSF=0, SO=0, N_li=1 (3, )]
|
|
|
|
// 21:23:34.409440 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=1, SN=423, LSF=0, SO=0, N_li=1 (3)]
|
|
|
|
std::array<uint8_t, 19> tv2 = {
|
|
|
|
std::array<uint8_t, 19> tv2 = {
|
|
|
|
0xf5, 0xa7, 0x00, 0x00, 0x00, 0x30, 0x77, 0x77, 0x77, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78};
|
|
|
|
0xf5, 0xa7, 0x00, 0x00, 0x00, 0x30, 0x77, 0x77, 0x77, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78};
|
|
|
|
|
|
|
|
|
|
|
@ -3021,7 +3021,7 @@ int header_reconstruction_test8(srslte::log_sink_message_spy& spy)
|
|
|
|
// 21:23:34.409531 [RLC_2] [I] DRB1 Rx data PDU segment of SN=423 (20 B), SO=13, N_li=1
|
|
|
|
// 21:23:34.409531 [RLC_2] [I] DRB1 Rx data PDU segment of SN=423 (20 B), SO=13, N_li=1
|
|
|
|
// 0000: 79 79 79 79 79 79 79 79 79 79 7a 7a 7a 7a 7a 7a
|
|
|
|
// 0000: 79 79 79 79 79 79 79 79 79 79 7a 7a 7a 7a 7a 7a
|
|
|
|
// 0010: 7a 7a 7a 7a
|
|
|
|
// 0010: 7a 7a 7a 7a
|
|
|
|
// 21:23:34.409537 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=0, SN=423, LSF=1, SO=13, N_li=1 (10, )]
|
|
|
|
// 21:23:34.409537 [RLC_2] [D] [Data PDU, RF=1, P=1, FI=0, SN=423, LSF=1, SO=13, N_li=1 (10)]
|
|
|
|
std::array<uint8_t, 26> tv3 = {0xe5, 0xa7, 0x80, 0x0d, 0x00, 0xa0, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79,
|
|
|
|
std::array<uint8_t, 26> tv3 = {0xe5, 0xa7, 0x80, 0x0d, 0x00, 0xa0, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79,
|
|
|
|
0x79, 0x79, 0x79, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a};
|
|
|
|
0x79, 0x79, 0x79, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a};
|
|
|
|
|
|
|
|
|
|
|
@ -3071,7 +3071,7 @@ int header_reconstruction_test8(srslte::log_sink_message_spy& spy)
|
|
|
|
rlc1.write_pdu(pdu_tv3.msg, pdu_tv3.N_bytes);
|
|
|
|
rlc1.write_pdu(pdu_tv3.msg, pdu_tv3.N_bytes);
|
|
|
|
|
|
|
|
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
// Check RLC re-assembled message header
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=1, FI=1, SN=423, LSF=0, SO=0, N_li=3 (3, 10, 10, )]"));
|
|
|
|
TESTASSERT(spy.has_message("[Data PDU, RF=0, P=1, FI=1, SN=423, LSF=0, SO=0, N_li=3 (3, 10, 10)]"));
|
|
|
|
|
|
|
|
|
|
|
|
return SRSLTE_SUCCESS;
|
|
|
|
return SRSLTE_SUCCESS;
|
|
|
|
}
|
|
|
|
}
|
|
|
|