usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

reception synchronization

CA
Carlos Alcaide Guillen
Thu, May 28, 2015 12:39 PM

Hi all

Is there a way to start executing  rx_samples_to_file , when detecting a pps signal at the PPS TRIG IN input?

Regards

Hi all Is there a way to start executing rx_samples_to_file , when detecting a pps signal at the PPS TRIG IN input? Regards
MW
Michael West
Thu, May 28, 2015 6:40 PM

Hi Carlos,

Yes and no.  The PPS is not a GPIO.  The PPS is used to synchronize the
internal time of the USRP.  Once synchronized, you can set a start time for
the streaming that coincides with a PPS edge.

Regards,
Michael

On Thu, May 28, 2015 at 5:39 AM, Carlos Alcaide Guillen via USRP-users <
usrp-users@lists.ettus.com> wrote:

Hi all

Is there a way to start executing  rx_samples_to_file , when detecting a
pps signal at the PPS TRIG IN input?

Regards


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Hi Carlos, Yes and no. The PPS is not a GPIO. The PPS is used to synchronize the internal time of the USRP. Once synchronized, you can set a start time for the streaming that coincides with a PPS edge. Regards, Michael On Thu, May 28, 2015 at 5:39 AM, Carlos Alcaide Guillen via USRP-users < usrp-users@lists.ettus.com> wrote: > Hi all > > > > Is there a way to start executing rx_samples_to_file , when detecting a > pps signal at the PPS TRIG IN input? > > > > Regards > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com > >
MM
Marcus Müller
Thu, May 28, 2015 7:26 PM

Hi Carlos,

there is a dirty hack:
You can do the following:

  1. issue a stream command with a timestamp far far in the future (e.g.
    usrp->get_time_now() + uhd::time_spec_t(100000) )
  2. use usrp->set_time_next_pps(..) with exactly that timestamp

I've tested this on the X3x0, but really: it's a dirty hack.

Best regards,
Marcus

On 05/28/2015 08:40 PM, Michael West via USRP-users wrote:

Hi Carlos,

Yes and no.  The PPS is not a GPIO.  The PPS is used to synchronize
the internal time of the USRP.  Once synchronized, you can set a start
time for the streaming that coincides with a PPS edge.

Regards,
Michael

On Thu, May 28, 2015 at 5:39 AM, Carlos Alcaide Guillen via USRP-users
<usrp-users@lists.ettus.com mailto:usrp-users@lists.ettus.com> wrote:

 Hi all    

  

 Is there a way to start executing  rx_samples_to_file , when
 detecting a pps signal at the PPS TRIG IN input?

  

 Regards


 _______________________________________________
 USRP-users mailing list
 USRP-users@lists.ettus.com <mailto:USRP-users@lists.ettus.com>
 http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Hi Carlos, there *is* a dirty hack: You can do the following: 1. issue a stream command with a timestamp far far in the future (e.g. usrp->get_time_now() + uhd::time_spec_t(100000) ) 2. use usrp->set_time_next_pps(..) with exactly that timestamp I've tested this on the X3x0, but really: it's a dirty hack. Best regards, Marcus On 05/28/2015 08:40 PM, Michael West via USRP-users wrote: > Hi Carlos, > > Yes and no. The PPS is not a GPIO. The PPS is used to synchronize > the internal time of the USRP. Once synchronized, you can set a start > time for the streaming that coincides with a PPS edge. > > Regards, > Michael > > On Thu, May 28, 2015 at 5:39 AM, Carlos Alcaide Guillen via USRP-users > <usrp-users@lists.ettus.com <mailto:usrp-users@lists.ettus.com>> wrote: > > Hi all > > > > Is there a way to start executing rx_samples_to_file , when > detecting a pps signal at the PPS TRIG IN input? > > > > Regards > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com <mailto:USRP-users@lists.ettus.com> > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com > > > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com