Per-revision configuration directories (was: Re: ~/.gnuradio and ~/.grc_gnuradio as environment variables)

2021-01-20 Thread Lukas Haase
le GR_PREFS_PATH optionally points to the > location of the user's .gnuradio directory, which is then used for the rest > of configuration. > > On all versions, GR_CONF_GRC_GLOBAL_BLOCKS_PATH will override the location > of the system block descriptions, assuming they've been

~/.gnuradio and ~/.grc_gnuradio as environment variables

2021-01-18 Thread Lukas Haase
Hi, Is it possible to set the paths to ~/.gnuradio and ~/.grc_gnuradio via environment variables? I can't imagine that I am the only one suffering from this but these directories are a royal pain when switching between gnuradio functions. I am using environment modules and ideally I'd just set

Re: SWIG doesn't recognize argument in make()

2020-11-16 Thread Lukas Haase
Hi Nick, Indeed, I just removed the "2" and suddenly it works. Insane. Totally crazy... Lukas Gesendet: Montag, 16. November 2020 um 20:09 Uhr Von: "Nick Foster" An: "Lukas Haase" Cc: "discuss-gnuradiognu.org" , cinaed.sim...@gmail.com Betreff: Re:

Re: SWIG doesn't recognize argument in make()

2020-11-16 Thread Lukas Haase
Additional detail: I tried it again: $ gr_modtool rm tx_msg2tag $ $ gr_modtool add test $ rm -rf build; mkdir build; cd build; cmake ..; make --> WORKS!! $ gr_modtool add tx_msg2tag $ rm -rf build; mkdir build; cd build; cmake ..; make --> FAILS with the error below. (of course, I edited the

Re: SWIG doesn't recognize argument in make()

2020-11-16 Thread Lukas Haase
Hi Cinaed, *I* am the author of gr-petro ;-) This is indeed a SWIG question. Or a question about OOT modules. I created the module with gr_modtool. I inserted bunch of blocks with "add" command. Just this one below does not work. I have no idea why (and it drives me crazy). Hence my questions: -

SWIG doesn't recognize argument in make()

2020-11-16 Thread Lukas Haase
Hi everyone, It's driving me NUTS! SWIG just won't recognize an argument to my make() function and hence build fails. I have other nearly identical blocks in the same module that work without issues. What exactly generates the *swigPYTHON_wrap.cxx files and how are the argument lists for the f

Re: Messages into two blocks: Message order & timing guaranteed?

2020-08-27 Thread Lukas Haase
t; Your 2 Msg2Tag blocks will probably deviate sometimes since they run in > separate threads. > > Cheers > Johannes > > On 25.08.20 18:35, Lukas Haase wrote: > > Hi, > > > > I have a block that generates messages (may be very fast, in the ms range > > or bel

Messages into two blocks: Message order & timing guaranteed?

2020-08-25 Thread Lukas Haase
Hi, I have a block that generates messages (may be very fast, in the ms range or below). At some point I need to convert these into precise, repeatable timing, so I have a "Msg2Tag" block. It takes messages at the input and outputs a sample stream of zeros with the messages as tags. However, s

More flexible visualizations/plotting (2D, 3D) in gnuradio (companion)?

2020-06-20 Thread Lukas Haase
Hi, Has anyone performed more sophisticated plotting than the simple Time/Freq sinks in gnuradio? What would be really important would be simple function plotting in 2D/3D that could be updated via messages. For example like pyplot/matplotlib? Anyone knows a solution that works without too muc

Re: Which guarantees, if any, do messages provide?

2020-05-27 Thread Lukas Haase
> Von: "Sylvain Munaut" <246...@gmail.com> > An: "Lukas Haase" > Cc: "discuss-gnuradio@gnu.org" > Betreff: Re: Which guarantees, if any, do messages provide? > > Hi, > > > For example, I use "Message Strobe" to create a message ever

Which guarantees, if any, do messages provide?

2020-05-21 Thread Lukas Haase
Hello, I am currently trying to use messages as part of my signal chain and facing some obstacles. For example, I use "Message Strobe" to create a message every 10ms. A custom blocks creates a pulse when the message is received (it does so by putting the message into a std::queue in the messag

Conceptually: Loops

2020-05-20 Thread Lukas Haase
Hello, I have an application where I communicate with a device in a tightly time-controlled (and synchronized) manner: In gnuradio I send some data, wait for some data (at precise moment in time) and process the results. For this I created an OOT module which outputs databits and receives datab

Re: pybombs confusions

2020-05-20 Thread Lukas Haase
Hi Ron, That's actually a good (and obvious idea). Yes, this sounds more straight forward and simpler. May I ask then: Why exactly pybombs? (So far I actually had only issues with it) Best, Lukas Ron wrote: > Since you know how to build from source, you're better off sticking with > that. The

pybombs confusions

2020-05-19 Thread Lukas Haase
Hi, On an Ubuntu 18 system I would like to use multiple gnuradio+uhd instances in parallel (3.7 with python 2.7, 3.8 with python 3, and a variety of versions with patches applied, different UHD versions, RFnoc etc). So far, I have multiple source trees and when I switch I completely delete /us

Behavior of sample scheduler with hardware RX/TX (USRP)

2020-05-06 Thread Lukas Haase
Hi, I am discussing this question on usrp-users right now but I think this may actually be a question regarding the scheduler in gnuradio. I have the following simple flow graph (USRP in loopback configuration): +-+ +-

Re: Reliable "virtual RF channel" between two grc applications (UDP Source/Sink?)

2020-05-04 Thread Lukas Haase
Hi, A quick followup on the ZMQ PULL/PUSH: > Derek Kozel wrote: > > For an example of that check out the Simulation tutorial. > > https://wiki.gnuradio.org/index.php/Simulation_example:_AM_transmitter_and_receiver > > On 22/04/2020 19:08, Marcus Müller wrote: > > Use zeromq; that should do just

How to use Correlation Estimator?

2020-04-27 Thread Lukas Haase
Hello, I was playing for some time with the Polyphase Clock Sync to get the correct sampling times of my received OOK signal. It never perfectly worked and usually broke when I put it into more complicated flowgraphs (in my latest attempts, despite working initially, it made the entire flowgrap

Re: Reliable "virtual RF channel" between two grc applications (UDP Source/Sink?)

2020-04-22 Thread Lukas Haase
Hi, Derek Kozel wrote: > For an example of that check out the Simulation tutorial. > https://wiki.gnuradio.org/index.php/Simulation_example:_AM_transmitter_and_receiver On 22/04/2020 19:08, Marcus Müller wrote: > Use zeromq; that should do just fine, and if the default TCP transport feels > like

Time synchronization for small burst of PAM-2/NRZ bits

2020-04-22 Thread Lukas Haase
Hi, I am receiving just a few bits at a time over a radio link and I need to time align them due to phase mismatch. Let me briefly discuss what I mean: https://snipboard.io/8vUgdM.jpg This plot shows the bits I am receiving (blue) triggered on the incoming bits (10100110011101). The red line s

Reliable "virtual RF channel" between two grc applications (UDP Source/Sink?)

2020-04-22 Thread Lukas Haase
Hi, Before going to hardware (and since my HW access is limited in Corona times) I want to build my "TRX1" with a behavioral model of "TRX2" (TRX2 will eventually be a simple hardware TRX on PCB, TRX1 a more signal processing heavy gnuradio application). I thought UDP Source/Sink over localhos

gr-uhd: Switching DSP frequency of *RX* over stream tags in TX (USRP Sink)

2020-03-03 Thread Lukas Haase
Hi, I need to (synchronously) switch the DUC/DDC frequency at certain sample intervals. I previously used the message ports for that and created timed commands. This worked nicely for the RX (USRP Source) and with analog retuning. However, it turned out that this does not work for the transmitt

Re: Weird behaviour of the analog signal source (was: Re: How ensure consistency with timing signals)

2020-03-03 Thread Lukas Haase
Hi Sylvain, Thank you very much for your answer. Much appreciated! > Von: "Sylvain Munaut" <246...@gmail.com> > > Hi, > > > How can (or better: *should*) a fully digital signal source have phase > > noise? > > Limited precision arithmetic > > > > Also, for 1Hz at 5MSps I always get either 500578

Weird behaviour of the analog signal source (was: Re: How ensure consistency with timing signals)

2020-03-02 Thread Lukas Haase
appreciated. Thanks, Lukas > Gesendet: Mittwoch, 26. Februar 2020 um 16:39 Uhr > Von: "Marcus D. Leech" > An: "Lukas Haase" > Cc: "discuss-gnuradio@gnu.org" > Betreff: Re: How ensure consistency with timing signals > > On 02/26/2020 04:11 PM, Lukas Haa

Re: How ensure consistency with timing signals

2020-02-26 Thread Lukas Haase
Hi Marcus, Good point; but this is just for demonstration purposes here. I can tie it to USRP Source/Sink. The delta (measured in samples) should still be consistent, no matter what. Best, Lukas > Gesendet: Mittwoch, 26. Februar 2020 um 15:25 Uhr > Von: "Marcus D Leech" &g

How ensure consistency with timing signals

2020-02-26 Thread Lukas Haase
Hello, I use a square wave to generate control/clocking signal for some control logic: https://snipboard.io/WQ8p6d.jpg The work function of the "Controller" block looks like: def work(self, input_items, output_items): d = np.diff(input_items[0]) inds = np.where(d == 1)

Re: Python module: object as a reference (just as "Block ID" in "Function Probe" block)

2020-02-22 Thread Lukas Haase
Function Probe" block) > > Hi Lukas, > On Fri, 2020-02-21 at 16:17 +0100, Lukas Haase wrote: > > > > Example 2: How do select integer-n mode? > > > > tune_req_rx.args=uhd.device_addr(','.join(["mode_n=integer", > > "int_n_ste

Re: Python module: object as a reference (just as "Block ID" in "Function Probe" block)

2020-02-21 Thread Lukas Haase
ction Probe" block) > > Hi Lukas, > > On Fri, 2020-02-21 at 00:24 +0100, Lukas Haase wrote: > > These blocks support a message interface but unfortunately this is pretty > > useless except for the simplest applications (I need to control advanced > > tuning

Python module: object as a reference (just as "Block ID" in "Function Probe" block)

2020-02-20 Thread Lukas Haase
Hi, I am using the "Embedded Python Block" to create a simple controller that controls my USRP Source/Sink blocks. These blocks support a message interface but unfortunately this is pretty useless except for the simplest applications (I need to control advanced tuning with timed commands, GPIO

Re: Best way (architecture) to perform frequency hopping in GRC

2019-12-18 Thread Lukas Haase
Hi, I wanted to followup on my question from last week. Probably it is not easy to do this just with GRC blocks. Meanwhile created various custom blocks that use data streams, tags and messages. Yet, I am still not clear how one would implement reliable frequency hopping. In my case, TX+RX need

Re: QT block to plot datapoints as they come in and keep history

2019-12-18 Thread Lukas Haase
le:140: recipe for target 'all' failed make: *** [all] Error 2 Thanks, Luke       Gesendet: Mittwoch, 18. Dezember 2019 um 16:42 Uhr Von: "Julian Arnold" An: "Lukas Haase" Cc: "discuss-gnuradiognu.org" Betreff: Re: QT block to plot datapoints as they c

QT block to plot datapoints as they come in and keep history

2019-12-18 Thread Lukas Haase
Hello, I have a block which computes a distance and outputs this distance regularly (10x per second) via a message. I am looking for a way to plot this distance over time: Basically, whenever a new update comes in, it should show this value while keeping a certain amount of past samples so tha

Execute python code when tag detected

2019-12-13 Thread Lukas Haase
Hi, Is there a standard way/block in GRC to execute python code when a block receives a certain tag, if possible (without writing a complete block from scratch)? Two days ago I have asked about the best way to implement frequency hopping. In absence of advice I am unfortunately still heavily s

Best way (architecture) to perform frequency hopping in GRC

2019-12-11 Thread Lukas Haase
Hi, I am wondering what is the best way to perform frequency hopping in gnuradio on an *architectural* level. I have a frequency vector [ f1 , f2 , f3 ]. GRC should tune the TX to f1, f2, f3, f1, f2, ... and the RX to 2*f1, 2*f2, 2*f3, 2*f1, 2*f2, ... Denote the time interval for each frequency

Re: Discuss-gnuradio Digest, Vol 206, Issue 5

2019-12-06 Thread Lukas Haase
Hi Andy, On 2019-12-06 14:28, Andy Walls wrote: > [...] > > The M&M clock recovery block is obsolete. Use the Symbol Synchronizer > block instead, if you must use the M&M TED. Thank you. You do not mean "Polyphase Clock Sync" but "Symbol Synchronizer"? Is this part of the standard blocks in GR

Re: Is there anything about USRP blocks that breaks them within hier blocks?

2019-12-06 Thread Lukas Haase
> Marcus Mueller wrote: > > NB: the null source-to-sink trick might consume up to two CPU cores > completely and thus contribute to global warming as much as about 1.5 > ppb of the total bitcoin infrastructure ;) Thank you, also good point. Adding a Throttle block with sample_rate=10m should all

GRC crashes with assertion zero in M&M Clock Recovery block

2019-12-06 Thread Lukas Haase
Hi, I am using GRC 3.7.11 on Ubuntu (WSL). When I use the M&M Clock Recovery block GRC crashes randomly with this message: clock_recovery_mm_cc: ii > ninput_items[0] (3168 > 3167 python: /build/gnuradio-BBYmSv/gnuradio-3.7.11/gr-digital/lib/clock_recovery_mm_cc_impl.cc:214: virtual int gr::di

Re: Is there anything about USRP blocks that breaks them within hier blocks?

2019-12-05 Thread Lukas Haase
Dear Marcus, Dear Kevin, On 2019-12-05 22:21, Kevin Reid wrote: > On Thu, Dec 5, 2019 at 1:04 AM Müller, Marcus (CEL) > wrote: > >> However, with your zero in- and output hier block, >> top_block.connect(something) was *never* called with the hier block, >> an

Re: Is there anything about USRP blocks that breaks them within hier blocks?

2019-12-04 Thread Lukas Haase
Hi Marcus, Marcus D. Leech:>> On 12/03/2019 09:40 PM, Lukas Haase wrote: Hi, >> >> Am I not supposed to put USRP blocks within a hierarchichal block >> and if so, why? >> >> Very strange minimal example (Ettus USRP X310, Windows 10, >> gn

Is there anything about USRP blocks that breaks them within hier blocks?

2019-12-03 Thread Lukas Haase
Hi, Am I not supposed to put USRP blocks within a hierarchichal block and if so, why? Very strange minimal example (Ettus USRP X310, Windows 10, gnuradio 3.7.13.5): https://paste.pics/8a1cf2b2661fab2bc71b760e369997b9 Works and with a spectrum analyzer I see the tone at 916 MHz. Then I do noth

Aw: Re: Gnuradio 3.8 on Windows generates negative return codes

2019-11-29 Thread Lukas Haase
Hi Geof, Thank you very much for your help. On 2019-11-29 17:37, Geof Nieboer wrote: > Lukas, > > [...] > > So obviously something is failing early in the python script before it > really gets the flowgraph going. That error code is fairly vague, > google tells me it's a generic system error. >

Gnuradio 3.8 on Windows generates negative return codes

2019-11-29 Thread Lukas Haase
Hi, I just installed Gnuradio 3.8.0.0 (Python 2.7.10) from the website. The most simple application with gnuradio fails with >>> Done (return code -1073741795) and no windows appears. This is how it looks: https://snipboard.io/o4ZjvA.jpg When I add a USRP block I run into the same trouble but

Aw: Re: Proper way to implement flowgraph programming

2019-11-28 Thread Lukas Haase
Dear Grant, On 2019-11-27 23:32, Grant Cox wrote: > This guide on GRC block implementation and flowgraph modification in > python may be of interest to you if you have not seen it. Your > description of the logic, calibration, etc. will likely require you to > dive into the Python/C++ below the su

Proper way to implement flowgraph programming

2019-11-27 Thread Lukas Haase
Hello, I have a conceptual question which has not reasonably well answered by studying the tutorials. I work with GRC for some time now but I find it impossible to implement simple things that require basic control logic. Clearly these things are trivial to implement with a prcedual language (M