Commit 3f4e61d0 authored by Luhan Wang's avatar Luhan Wang

up readme

parent c6a662d4
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
......
......@@ -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 = 3628380000;
double ul_carrier = 3628380000;
double dl_carrier = 3349380000;
double ul_carrier = 3349380000;
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, 0x1ff, TXSEQLEN, gTxSeq);
genSineWave(3.84e6, 122.88e6, 0x7fff, 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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment