Hi all, I am trying to make 2 TX 1Rx tagged stream block(OOT). For 1Tx 1Rx, it was working fine. I am trying to extend it. Now the problem is, I am not being able to configure the send() function.
If I try make test, it does not show any problem. However, when I check after reception I find that 1 transmitter is transmitting, and another is not. I checked the every port of my USRP X310, it is working fine. Here's the code. I putting a short part where I have problem. Please let me if you need the header and grc file as well, to correct the code. - - - void usrp_echotimer_cc_impl::send() { // Data to USRP num_tx_samps = d_tx_stream->send(d_in_send1, total_num_samps, d_metadata_tx, total_num_samps/(float)d_samp_rate+d_timeout_tx); num_tx_samps = d_tx_stream->send(d_in_send0, total_num_samps, d_metadata_tx, total_num_samps/(float)d_samp_rate+d_timeout_tx); } int usrp_echotimer_cc_impl::work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) { gr_complex *in0 = (gr_complex *) input_items[0]; gr_complex *in1 = (gr_complex *) input_items[1]; gr_complex *out = (gr_complex *) output_items[0]; // Set output items on packet length noutput_items = ninput_items[0]=ninput_items[1]; // Resize output buffer if(d_out_buffer.size()!=noutput_items) d_out_buffer.resize(noutput_items); // Send thread d_in_send0 = in0; d_in_send1 = in1; d_noutput_items_send = noutput_items; d_thread_send = gr::thread::thread(boost::bind(&usrp_echotimer_cc_impl::send, this)); // Receive thread d_out_recv = &d_out_buffer[0]; d_noutput_items_recv = noutput_items; d_thread_recv = gr::thread::thread(boost::bind(&usrp_echotimer_cc_impl::receive, this)); ----- My system config is X310, daughterboard SBX-120 and I am using UHD-3.9 I checked the subdev specification, gain and frequency assignment. Those are fine. Please let me know how to correct and thanks in advance. best regards Sanjoy
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio