Re: [Discuss-gnuradio] Synchronized packet transmission

2011-01-04 Thread Josh Blum
On 01/03/2011 12:15 PM, Sangho Oh wrote: > If I synchronize two USRPs using pps clock > > uhd::time_spec_t time_spec = uhd::time_spec_t(0.0); > sdev->set_time_next_pps(time_spec); > boost::this_thread::sleep(boost::posix_time::seconds(1)); > You may want to print out sdev->get_time_now

Re: [Discuss-gnuradio] Synchronized packet transmission

2011-01-03 Thread Sangho Oh
If I synchronize two USRPs using pps clock uhd::time_spec_t time_spec = uhd::time_spec_t(0.0); sdev->set_time_next_pps(time_spec); boost::this_thread::sleep(boost::posix_time::seconds(1)); and give the metadata for the frame as following md.time_spec = uhd::time_spec_t(seconds_in

Re: [Discuss-gnuradio] Synchronized packet transmission

2011-01-02 Thread Josh Blum
On 01/02/2011 12:59 PM, Sangho Oh wrote: > Hello Josh, > > I have used this command > > dev->send(&buff.front(), samps_to_send, > md, uhd::io_type_t::COMPLEX_FLOAT32, > uhd::device::SEND_MODE_FULL_BUFF, seconds_in_future + 0.1); > > The reference time for seconds_in_future is not clear to me.

Re: [Discuss-gnuradio] Synchronized packet transmission

2011-01-02 Thread Sangho Oh
Hello Josh, I have used this command dev->send(&buff.front(), samps_to_send, md, uhd::io_type_t::COMPLEX_FLOAT32, uhd::device::SEND_MODE_FULL_BUFF, seconds_in_future + 0.1); The reference time for seconds_in_future is not clear to me. When does the timer starts? I guess there are large imprecis

Re: [Discuss-gnuradio] Synchronized packet transmission

2011-01-02 Thread Josh Blum
On 01/02/2011 10:53 AM, Sangho Oh wrote: > Hello, > > What I am trying to implement is a synchronized packet transmission from > more than one USPRs. > I wonder if there is a way to control the transmission timing under a > microsecond level. > > If there is a way to control the transmission ti