Eric and Doug, I like Doug am basing things off the rx_streaming_samples.cc. It seemed easier to work with to get access to timestamps.
Charles -----Original Message----- From: discuss-gnuradio-bounces+csuprin=mitre....@gnu.org [mailto:discuss-gnuradio-bounces+csuprin=mitre....@gnu.org] On Behalf Of Douglas Geiger Sent: Tuesday, February 10, 2009 11:48 AM To: discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] USRP2 PPS and REF Eric Blossom wrote: > > Hi Charles, > > You have to tell it to use them. > > Take a look in <usrp2/usrp2.h>: > > config_mimo(MC_WE_LOCK_TO_SMA) > sync_to_pps() > > There are python bindings for these. > (Oops, looks like we're missing the python binding for config_mimo...) > Are you using this from Python? If so, I'll fix this later on today. > > Eric On a related note. If I have two (or more) USRP2's locked onto my 10MHz and 1PPS signal (calls to ->config_mimo(MC_WE_LOCK_TO_SMA) and ->sync_to_pps() return true, so I believe they are), do I need to do anything else special? I'm working C++, based on the rx_streaming_samples.cc code - I have two usrp2 sptr's, u2a, and u2b (each created with a separate make() using the specified mac address from the command line). Once I start streaming samples (making two calls: u2a->start_rx_streaming(0), and u2b->start_rx_streaming(0)), and then with two different handlers for receiving the samples: bool oka = u2a->rx_samples(0, handlera.get()) bool okb = u2b->rx_samples(0, handlerb.get()) Where the handler is just writing to the specified files. I'm getting some odd results: both files typically end up with exactly the sample results (i.e. in octave, subtracting the results of one from the other results in all zeros). Since I've now tried this a few times doing things like: removing the antenna from one (and not the other), moving them far apart, etc. - I'm fairly certain this is a software problem, and not the correct results. I can post my code if that would be helpful - I'm hoping I'm just making some silly mistake with my calls to rx_samples, and the copy handler or something similar. E.g., should I be using different channel numbers? I just updated the firmware on my USRP2's to r10377, and the fpga bitstream to r10183. -- Doug Geiger Research Assistant Communications and Signal Processing Lab Oklahoma State University http://cspl.okstate.edu douglas.gei...@okstate.edu doug.gei...@ieee.org _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio