How to configure my two usrp

Hi,
Now ,I am studying usrp! but ,I meet some problems .I have two usrp
board. each usrp board has one daugtherboard named Flex 2400.I want to
send data with one usrp board ,and receive data with the other.
This is my send_uspr board configure:
which = 0;
usrp_subdev_spec spec(1,0);
amp = 30000;
rf_freq = 2.5e9;
interp = 16; gain = -1 ; fusb_block_size = 0; fusb_nblocks = 0;
realtime_p = false; nsamples = 32e6;
::make (which,interp,1,-1,fusb_block_size,fusb_nblocks);
subdev = utx ->selected_subdev(spec);
mux = utx->determine_tx_mux_value(spec);
set_mux(mux);
subdev->set_gain(gain);
utx->tune(subdev->which(),subdev,2.5e9,&r);
subdev->set_enable(true);
utx->start();
the sent data is like 30000,-30000,30000,-30000…

Then ,I run it ,it can work well .I can watch the spectrum.

Then ,I configure my second usrp board for receive. the following is my
configure.

loopback = false; counting_p = false; width_p = false; max_bytes = 128M.
which = 0; usrp_subdev_spec spec(0,0); decim = 8; center_freq = 2.5e9;
gain = -1; mode = 0;
::make(which,decim,1,-1,mode,0,0);
subdev = urx->selected_subdev(spec);
mux= urx->determine_rx_mux_value(spec);
urx->set_mux(mux);subdev->set_gain(gain);
urx->set_rx_freq(0,center_freq);urx->set_ddc_phase(0,0);
urx->tune(subdev->which(),subdev,2.5e9,&r);
subdev->set-enable(true);
urx->start(true);

then ,i run it . I found that the received data is unorderly.
I don’t know whether I really received the data or the data is random
number ??
and ,how can I receive the true data from sender with freq = 2.5e9 ?
Is there any error in my configuration ?

I need your help !

best wishes!
thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs