Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常顺宇
OpenXG-RAN
Commits
c2e65b06
Commit
c2e65b06
authored
May 19, 2020
by
matzakos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct pseudo-subheader byte of random ULSCH PDU (phytest) to an appropriate value
parent
9e8e9c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+3
-3
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
+5
-6
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
c2e65b06
...
...
@@ -714,11 +714,11 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
}
#ifdef DEBUG_ULSCH_DECODING
LOG_I
(
PHY
,
"Decoder output (payload
):
\n
"
);
for
(
i
=
0
;
i
<
harq_process
->
TBS
/
8
;
i
++
)
{
LOG_I
(
PHY
,
"Decoder output (payload
, TBS: %d):
\n
"
,
harq_process
->
TBS
);
for
(
i
=
0
;
i
<
harq_process
->
TBS
;
i
++
)
{
//harq_process_ul_ue->a[i] = (unsigned char) rand();
//printf("a[%d]=0x%02x\n",i,harq_process_ul_ue->a[i]);
printf
(
"
0x
%02x"
,
harq_process
->
b
[
i
]);
printf
(
"%02x"
,
harq_process
->
b
[
i
]);
}
#endif
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
View file @
c2e65b06
...
...
@@ -193,15 +193,14 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
if
(
!
IS_SOFTMODEM_NOS1
||
!
data_existing
)
{
//Use zeros for the header bytes in noS1 mode, in order to make sure that the LCID is not valid
//and block this traffic from being forwarded to the upper layers at the gNB
uint16_t
payload_offset
=
5
;
LOG_D
(
PHY
,
"Random data to be tranmsitted:
\n
"
);
//Give the
header bytes
a dummy value (a value not corresponding to any valid LCID based on 38.321, Table 6.2.1-2)
//in order to
block the random packet at the MAC layer of the receiver
for
(
i
=
0
;
i
<
payload_offset
;
i
++
)
harq_process_ul_ue
->
a
[
i
]
=
64
;
//Give the
first byte
a dummy value (a value not corresponding to any valid LCID based on 38.321, Table 6.2.1-2)
//in order to
distinguish the PHY random packets at the MAC layer of the gNB receiver from the normal packets that should
//have a valid LCID (nr_process_mac_pdu function
)
harq_process_ul_ue
->
a
[
0
]
=
0x31
;
for
(
i
=
payload_offset
;
i
<
harq_process_ul_ue
->
TBS
/
8
;
i
++
)
{
for
(
i
=
1
;
i
<
harq_process_ul_ue
->
TBS
/
8
;
i
++
)
{
harq_process_ul_ue
->
a
[
i
]
=
(
unsigned
char
)
rand
();
//printf(" input encoder a[%d]=0x%02x\n",i,harq_process_ul_ue->a[i]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment