Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-23 Thread Marcus D. Leech via USRP-users
On 03/24/2020 12:24 AM, Lukas Haase wrote: Hi Marcus, I would have two possible solutions but both of them are non-trivial: 1. As you say, parallelism. For each of N supported timed commands, the decoding of the timed commands is cloned 2. If the timed commands are enough clock cycles in the f

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-23 Thread Lukas Haase via USRP-users
Hi Marcus, > Von: "Marcus D. Leech" > On 03/23/2020 11:53 PM, Lukas Haase wrote: > >> Von: "Marcus D. Leech" > >> On 03/23/2020 11:08 PM, Lukas Haase wrote: > >>> Hi Marcus, > Von: "Marcus D. Leech" > On 03/13/2020 10:52 AM, Lukas Haase wrote: > > Hi again Rob, > > > > Yes

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-23 Thread Marcus D. Leech via USRP-users
On 03/23/2020 11:53 PM, Lukas Haase wrote: Hi Marcus, Gesendet: Montag, 23. März 2020 um 23:35 Uhr Von: "Marcus D. Leech" An: "Lukas Haase" Cc: "Rob Kossler" , "USRP-users@lists.ettus.com" Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-23 Thread Lukas Haase via USRP-users
Hi Marcus, > Gesendet: Montag, 23. März 2020 um 23:35 Uhr > Von: "Marcus D. Leech" > An: "Lukas Haase" > Cc: "Rob Kossler" , "USRP-users@lists.ettus.com" > > Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-23 Thread Marcus D. Leech via USRP-users
On 03/23/2020 11:08 PM, Lukas Haase wrote: Hi Marcus, Gesendet: Freitag, 13. März 2020 um 13:29 Uhr Von: "Marcus D. Leech" An: "Lukas Haase" , "Rob Kossler" Cc: "USRP-users@lists.ettus.com" Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-23 Thread Lukas Haase via USRP-users
Hi Marcus, > Gesendet: Freitag, 13. März 2020 um 13:29 Uhr > Von: "Marcus D. Leech" > An: "Lukas Haase" , "Rob Kossler" > Cc: "USRP-users@lists.ettus.com" > Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-20 Thread Rob Kossler via USRP-users
one (tested): http://paste.ubuntu.com/p/VsGRmsbZQ5/ >>>> >>>> >>>> Thanks for reporting your results very interesting! >>>> >>>> Why do you think second mode makes sense to you? (assuming you are >>>> using timed commands to to

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-20 Thread Lukas Haase via USRP-users
_USRP_Events_Using_Timed_Commands_in_UHD) I have not read about it. Can you elaborate on this?   Thanks again, Lukas       Gesendet: Freitag, 20. März 2020 um 13:44 Uhr Von: "Rob Kossler" An: "Lukas Haase" , usrp-users Betreff: Re: [USRP-users] USRP X310 ignored DSP retunin

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-20 Thread Lukas Haase via USRP-users
e at that point.   Great idea with the multiply_conjugate_cc block, I haven't thought of this yet. Thank for for sending your updated code ... I will continue with that now ...     Best, Lukas     Gesendet: Freitag, 20. März 2020 um 12:04 Uhr Von: "Rob Kossler" An: "L

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-20 Thread Rob Kossler via USRP-users
e things are reset when streaming starts/ends but not when >>> re-tuning? >>> >>> Maybe this is what Marcus was mentioning: resetting phase accumulator >>> vs. "increment register is updated with the new phase increment"? >>> >>> MAYBE

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-20 Thread Rob Kossler via USRP-users
;t reset anything. But still, my question is left why >> this would result in a random phase offset between DUC and DDC. >> >> Thanks again!! >> Lukas >> >> >> *Gesendet:* Donnerstag, 19. März 2020 um 19:16 Uhr >> *Von:* "Rob Kossler" >

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-19 Thread Rob Kossler via USRP-users
code is here: http://paste.ubuntu.com/p/MbCJfPGzYW/ . I'm not sure >>>>>if you have gnuradio(and QT) installed but if yes, simply "python2 >>>>>switch_on_click.py" should do. Let me quickly elaborate how it works: >>>>>

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-19 Thread Marcus D. Leech via USRP-users
On 03/19/2020 08:16 PM, Lukas Haase via USRP-users wrote: Hi Rob, Sorry I really should have ran the python file before uploading. The issue was that I combined to files into one and forgot to remove the imported file. Here is a new one (tested): http://paste.ubuntu.com/p/VsGRmsbZQ5/ Thanks fo

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-19 Thread Lukas Haase via USRP-users
ult in a random phase offset between DUC and DDC.   Thanks again!! Lukas     Gesendet: Donnerstag, 19. März 2020 um 19:16 Uhr Von: "Rob Kossler" An: "Lukas Haase" Cc: "USRP-users@lists.ettus.com" Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-19 Thread Rob Kossler via USRP-users
t;>>> - It also uses a custom module together with buttons and a probe >>>> block to call functions upon clicking on a button >>>> - The callback functions are defined in class "blk" >>>> - The most important is

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-19 Thread Rob Kossler via USRP-users
now = usrp_sink.get_time_now() >>>> when = now + uhd.time_spec(1.0) >>>> >>>> usrp_sink.set_command_time(when) >>>> usrp_source.set_command_time(when) >>>> res1 = usrp_sink.set_center_freq(tune_req_tx, 0)

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-19 Thread Rob Kossler via USRP-users
nd "rf_freq"). When >>clicking, I jump between dsp_freq=0 and dsp_freq=500e3. As to my waveform, >> you can infer from my screenshots and code above: I am transmitting and >>receiving a 1MHz waveform (which acts as an additional "IF stage"). The >&

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-19 Thread Rob Kossler via USRP-users
m 1MHz to DC. I use 5 MSsps >sampling rate. > > > Again, thank you SO much. > > Best, > Lukas > > > *Gesendet:* Donnerstag, 19. März 2020 um 10:43 Uhr > *Von:* "Rob Kossler" > *An:* "Lukas Haase" > *Cc:* "USRP-users@lists.ettus.com

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-19 Thread Lukas Haase via USRP-users
Uhr Von: "Rob Kossler" An: "Lukas Haase" Cc: "USRP-users@lists.ettus.com" Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command Hi Lukas, So, the conclusion is that your Rx0-to-Rx1 relative phase is nearly constant such that it seems

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-19 Thread Rob Kossler via USRP-users
> Sorry I can't think of better ideas. > Rob > > On Fri, Mar 13, 2020 at 12:12 PM Lukas Haase wrote: > >> Hi Rob, >> >> 1.) yes, works(*) >> 2.) yes, works(*) >> >> (*): qualitatively. I set the timed command to "get_current_time() + >

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-18 Thread Lukas Haase via USRP-users
Hi Marcus, > Gesendet: Freitag, 13. März 2020 um 13:29 Uhr > On 03/13/2020 10:52 AM, Lukas Haase wrote: > > Hi again Rob, > > > > Yes, I confirm: > > > > 1.) Finally I get the commands to execute at the same time (TX and RX > > individually and both at the same time) > > 2.) Yes, the phase is ran

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-18 Thread Lukas Haase via USRP-users
alues (and in TX as well), they may be set to a different, random value.   However, I don't really know how to test these.   Thanks, Lukas     Gesendet: Freitag, 13. März 2020 um 12:27 Uhr Von: "Rob Kossler" An: "Lukas Haase" Cc: "Marcus D Leech" , "USRP-us

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-13 Thread Marcus D. Leech via USRP-users
t;Marcus D Leech" , "USRP-users@lists.ettus.com" Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command Also, is it true that now you can successfully tune both RF and DSP at the desired command time (but the remaining problem is that the Rx phas

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-13 Thread Rob Kossler via USRP-users
t; Luke > > > Gesendet: Freitag, 13. März 2020 um 11:08 Uhr > Von: "Rob Kossler" > An: "Lukas Haase" > Cc: "Marcus D Leech" , " > USRP-users@lists.ettus.com" > Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-13 Thread Lukas Haase via USRP-users
to:rkoss...@nd.edu]> An: "Lukas Haase" mailto:lukasha...@gmx.at]> Cc: "Marcus D Leech" mailto:patchvonbr...@gmail.com]>, "USRP-users@lists.ettus.com[mailto:USRP-users@lists.ettus.com]"; mailto:usrp-users@lists.ettus.com]> Betreff: Re: [USRP-users] USRP X310 ignor

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-13 Thread Rob Kossler via USRP-users
I see no signal until 10s, as expected > - I experimented with "tx_time" and stream tags but for some reason many > timed I get flooded with L's > > > Can it be that there is another bug lurking somewhere deep in the USRP > firmware? > > Thanks, > Lukas > &

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-13 Thread Lukas Haase via USRP-users
" An: "Lukas Haase" Cc: "Marcus D Leech" , "USRP-users@lists.ettus.com" Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command Also, is it true that now you can successfully tune both RF and DSP at the desired command time (

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-13 Thread Lukas Haase via USRP-users
ukas Haase" Cc: "Marcus D Leech" , "USRP-users@lists.ettus.com" Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command Lukas, Can you confirm the exact git hash for both UHD and the FPGA image you are using? Perhaps the easiest way is to

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-13 Thread Rob Kossler via USRP-users
e/Sink). This should ensure that stream start time is >> set! (tested) >> - Even if not, I also used explicitely >>tb.uhd_usrp_source_0.set_start_time(uhd.time_spec(10)) >>tb.uhd_usrp_sink_0.set_start_time(uhd.time_spec(10)) >> at the beginning of my flow graph.

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-13 Thread Rob Kossler via USRP-users
10s, as expected > - I experimented with "tx_time" and stream tags but for some reason many > timed I get flooded with L's > > > Can it be that there is another bug lurking somewhere deep in the USRP > firmware? > > Thanks, > Lukas > > > > Gesend

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-12 Thread Lukas Haase via USRP-users
omewhere deep in the USRP firmware? Thanks, Lukas Gesendet: Mittwoch, 04. März 2020 um 19:27 Uhr Von: "Marcus D Leech" An: "Rob Kossler" Cc: "Lukas Haase" , "USRP-users@lists.ettus.com" Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-04 Thread Marcus D Leech via USRP-users
ock. So, when you provide a timed command to the Radio >>> block (such as for tuning the RF) it can implement the command at the >>> specified time by comparing to the device clock. The DUC block does not >>> have access to the MB clock and so when you give it a timed c

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-04 Thread Rob Kossler via USRP-users
ever, how do I address "RX2"? Intuitively "A:0 >>> A:1 B:0 B:1" but as said, both "TX/RX" and "RX2" are named "0". >>> What would I do if I wanted to transmit from "TX/RX" of the second UBX >>> and receive on a

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-04 Thread Rob Kossler via USRP-users
n the USRP Sink: "B:0" >> On the USP Source intuitively: "A:0 A:1 B:1" but that's wrong. >> >> 3.b.) In gr, there will be two multi_usrp objects: One for the receiver >> (member variable of USRP Source) and one for the transmitter (member >> var

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-04 Thread Rob Kossler via USRP-users
c by the number of samples sent > _metadata.time_spec += ::uhd::time_spec_t(0, num_sent, _sample_rate); > GR_LOG_DEBUG(d_debug_logger, boost::format("Setting metadata > time_spec: %d:%f") % _metadata.time_spec.get_full_secs() % > _metadata.time_spec.get_frac_secs()); >

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-04 Thread Lukas Haase via USRP-users
ttempt to use the tagged stream ... but then I will have the issue that I need to tune TX *plus* RX at the same time! Furthermore, the streaming tags API is super rudimentary. Also, skimming the source code for the tag processing, I am not sure if this would change anything.       Gesendet: D

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Rob Kossler via USRP-users
ecs() % > _metadata.time_spec.get_frac_secs()); > _metadata.has_time_spec = true; > > > To my understanding, gr-uhd now passes the correct timestamps on to UHD. > However, the timed command is still ignored. > > > Thanks, > Lukas > > > PS: I will attempt to use the tagged stream ..

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Lukas Haase via USRP-users
lso, skimming the source code for the tag processing, I am not sure if this would change anything.       Gesendet: Dienstag, 03. März 2020 um 13:25 Uhr Von: "Sam Reiter" An: "Rob Kossler" Cc: "Lukas Haase" , "USRP-users@lists.ettus.com" Betreff: Re

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Sam Reiter via USRP-users
t;>> in parallel do the retuning. >>> I am not too familiar with UHD on its own but I assume this would be >>> very complicated, require multithreading etc. >>> Do you have any demo code that could be easily modified for this >>> scenario? >>> >&

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Rob Kossler via USRP-users
cated, require multithreading etc. >> Do you have any demo code that could be easily modified for this scenario? >> >> Best, >> Lukas >> >> >> Gesendet: Dienstag, 03. März 2020 um 12:08 Uhr >> Von: "Sam Reiter" >> An: "Rob Kossler&

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Rob Kossler via USRP-users
Hi Marcus, I'm pretty sure that the DDC and DUC don't have access to the MB clock and thus have no option but to executed timed commands using the time stamp in the sample stream. Rob On Tue, Mar 3, 2020 at 12:41 PM Marcus D. Leech via USRP-users < usrp-users@lists.ettus.com> wrote: > On 03/03/20

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Rob Kossler via USRP-users
> > Gesendet: Dienstag, 03. März 2020 um 12:08 Uhr > Von: "Sam Reiter" > An: "Rob Kossler" > Cc: "Lukas Haase" , "USRP-users@lists.ettus.com" < > usrp-users@lists.ettus.com> > Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX w

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Marcus D. Leech via USRP-users
On 03/03/2020 12:08 PM, Sam Reiter via USRP-users wrote: For what it's worth, I was able to reproduce the behavior described here, but didn't get to dig into it much. My leading suspicion would be what Rob mentioned about timestamping. Lukas' code sets a command time, but I'm not clear on how t

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Lukas Haase via USRP-users
m 12:08 Uhr Von: "Sam Reiter" An: "Rob Kossler" Cc: "Lukas Haase" , "USRP-users@lists.ettus.com" Betreff: Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command For what it's worth, I was able to reproduce the behavior des

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Sam Reiter via USRP-users
For what it's worth, I was able to reproduce the behavior described here, but didn't get to dig into it much. My leading suspicion would be what Rob mentioned about timestamping. Lukas' code sets a command time, but I'm not clear on how timestamp metadata for packets being sent to the radio are han

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-03 Thread Rob Kossler via USRP-users
I wonder if the issue is related to a missing time stamp on the baseband samples going from GR to UHD. If the stream does not have a time stamp, the DUC is unable to apply the timed command because the DUC does not really know the time - it must pull the time from the streaming samples. This is in

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-03-02 Thread Lukas Haase via USRP-users
Hi Marcus, Thank you that would be amazing! I followed the tutorial and built everything from source: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 18.04.4 LTS Release:18.04 Codename: bionic $ uname -a Linux sdr 5.3.0-40-generic #32~18

Re: [USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command

2020-02-28 Thread Marcus D. Leech via USRP-users
On 02/28/2020 01:01 PM, Lukas Haase via USRP-users wrote: Hi again, I created a minimum example (gnuradio) that shows the issue described below. To summarize: Retuning to a different dsp frequency on an USRP X310 (+UBX160) does not work (command ignored) ONLY if a timed command (in future is us

[USRP-users] USRP X310 ignored DSP retuning on TX when using a timed command (was: Re: How do timed commands work for two blocks (USRP Sink+USRP Source)?)

2020-02-28 Thread Lukas Haase via USRP-users
Hi again, I created a minimum example (gnuradio) that shows the issue described below. To summarize: Retuning to a different dsp frequency on an USRP X310 (+UBX160) does not work (command ignored) ONLY if a timed command (in future is used). The code shows it in a simple manner. Commenting out th