Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
trx_test
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
FANG WANG
trx_test
Commits
3f4e61d0
Commit
3f4e61d0
authored
Jan 08, 2025
by
Luhan Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up readme
parent
c6a662d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
readme.txt
readme.txt
+1
-1
trx_test.c
trx_test.c
+7
-6
No files found.
readme.txt
View file @
3f4e61d0
BUILD:
x86
sudo gcc -o trx system.c trx_test.c oxgrf_lib.c -march=native -loxgrf_ss -g -lpthread
sudo gcc -o trx system.c trx_test.c oxgrf_lib.c -march=native -loxgrf_ss -g -lpthread
-lm
arm
sudo gcc -o trx trx_test.c yunsdr_lib.c -lyunsdr_ss -g
...
...
trx_test.c
View file @
3f4e61d0
...
...
@@ -25,7 +25,7 @@ int absolute_slot=0;
int
nb_slot_frame
=
2
;
int
samples_per_subframe
=
SAMPLE_RATE
/
1000
;
#define TXSEQLEN
256
#define TXSEQLEN
61440
int32_t
gTxSeq
[
61440
]
=
{
0
};
//samples_per_subframe 30720, samples_per_slot_wCP 14336.
...
...
@@ -71,7 +71,8 @@ static void *tx_thread(void *param)
struct
timespec
time_stop
;
int
slot_adv
=
2
;
int
mimdelay
=
4096
*
1
+
2048
;
//int mimdelay = 4096*1+2048;
int
mimdelay
=
61440
;
while
(
1
)
{
...
...
@@ -182,8 +183,8 @@ int main( int argc, char **argv ) {
openair0_cfg
[
card
].
rx_num_channels
,
openair0_cfg
[
card
].
duplex_mode
);
double
dl_carrier
=
3
628
380000
;
double
ul_carrier
=
3
628
380000
;
double
dl_carrier
=
3
349
380000
;
double
ul_carrier
=
3
349
380000
;
int
freq_off
=
0
;
int
rx_gain_off
=
0
;
int
rf_chain
=
0
;
...
...
@@ -244,7 +245,7 @@ int main( int argc, char **argv ) {
printf
(
"sine wave
\n
"
);
genSineWave
(
3.84e6
,
122.88e6
,
0x
1
ff
,
TXSEQLEN
,
gTxSeq
);
genSineWave
(
3.84e6
,
122.88e6
,
0x
7f
ff
,
TXSEQLEN
,
gTxSeq
);
readBlockSize
=
samples_per_subframe
/
2
;
writeBlockSize
=
readBlockSize
;
...
...
@@ -299,7 +300,7 @@ int main( int argc, char **argv ) {
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_READ
,
VCD_FUNCTION_OUT
);
#endif
#if
1
#if
0
if(rx_cnt == 2000)
{
printf("begin to dump\n");
...
...
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