Re: GPIO lines on RPi4

2020-07-17 Thread jean-michel.fri...@femto-st.fr
To complete this demonstration of running a TCP server from within the GNU Radio Companion flowchart without modifying the generated Python code, and correcting a mistake in the post below so that I can also update the Signal Source frequency, I have uploaded http://jmfriedt.org/2020-07-17-14063

Re: GPIO lines on RPi4

2020-06-30 Thread jean-michel.fri...@femto-st.fr
Thanks to this comment, I ended up finding a solution to call a thread running a TCP/IP server able to control the variables from the main processing flowchart, without modifying manually the generated Python for a Qt application. A screenshot, which I hope is self-explanatory, illustrating this pr

Re: GPIO lines on RPi4

2020-06-26 Thread jean-michel.fri...@femto-st.fr
I am definitely not knowledgeable about Python so I might be missing the basics: as I want to include a TCP server for tuning the acquisition parameters, it seems to me (but I might be wrong) that the Python Module is more appropriate than the Python Snippet which seems to add a piece of code to th

Re: GPIO lines on RPi4

2020-06-22 Thread Albin Stigö
Seems like you already understand the limitations! Good luck with you project! --Albin On Mon, Jun 22, 2020, 14:30 jean-michel.fri...@femto-st.fr < jean-michel.fri...@femto-st.fr> wrote: > The envisioned application is event driven: send a control word from a > client, > wait for the even to com

Re: GPIO lines on RPi4

2020-06-22 Thread jean-michel.fri...@femto-st.fr
The envisioned application is event driven: send a control word from a client, wait for the even to complete (e.g. move antenna to target position), start streaming data for a given amount of time, and when enough data is collected move to new position. Of course timing cannot be relied on with a

Re: GPIO lines on RPi4

2020-06-22 Thread Albin Stigö
It might be difficult to control GPIO with precise timing on raspberry pi depending on what you want to do... A few hundred khz might be ok though. libgpiod is the new better Linux GPIO API. --Albin On Mon, Jun 22, 2020, 13:25 Marcus Müller wrote: > It gets even better: > > We've launched a fea

Re: GPIO lines on RPi4

2020-06-22 Thread Marcus Müller
It gets even better: We've launched a feature in 3.8.1.0 (and on master before that, as we do with any feature that ends up in a maintenance release) that we hope doesn't come back to bite us due to enabling unclean design. But, we must build best practices so that it doesn't go unused, either

Re: GPIO lines on RPi4

2020-06-18 Thread Marcus D. Leech
On 06/18/2020 03:54 PM, jean-michel.fri...@femto-st.fr wrote: My approach: * build your grc chart from GNU Radio Companion and generate the .py file * edit the py file and import pygpio * play with the RPi4 GPIO in your python script. See attached script, with a python server included in the Pyt

Re: GPIO lines on RPi4

2020-06-18 Thread jean-michel.fri...@femto-st.fr
My approach: * build your grc chart from GNU Radio Companion and generate the .py file * edit the py file and import pygpio * play with the RPi4 GPIO in your python script. See attached script, with a python server included in the Python script to control an RF switch from a GNU Octave TCP/IP clie

GPIO lines on RPi4

2020-06-18 Thread Da Fy
Hi All, does anyone have an example of how to control GOIO lines on the RPi4 from within a GRC flowgraph. I’m guessing it’s an OOT module. I need to generate a signal of a few 100Hz & control GPIO lines at various points though the cycle. Alternatively, I could generate the signal & lines wit