[Discuss-gnuradio] installing a python package without elevated privileges

2017-03-20 Thread Naceur
Hello GR,

I am creating a recipe for pytun as a dependency for an OOT module.
Is there a way I can tell pybombs to install that while passing --user to
pip because testing the install tells: pip is using elevated privileges 
.
.
.
PyBOMBS.PackageManager - DEBUG - Checking if package pytun is installed.
PyBOMBS.install_manager - INFO - Installing package: pytun
PyBOMBS.PackageManager - DEBUG - install(pytun, static=False)
PyBOMBS.PackageManager - DEBUG - Using packager pip
PyBOMBS.Packager.pip - DEBUG - Calling `/home/nae/.local/bin/pip install
pytun'
PyBOMBS.monitor_process() - DEBUG - Running with elevated privileges.
PyBOMBS._process_thread() - DEBUG - Executing command `['sudo', '-H',
'/home/nae/.local/bin/pip', 'install', 'pytun']'
sudo: unable to execute /home/nae/.local/bin/pip: Permission denied
PyBOMBS.monitor_process() - DEBUG - Thread signaled termination or returned
PyBOMBS.monitor_process() - DEBUG - Return value: 1
.
.
.

Thanks,



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/installing-a-python-package-without-elevated-privileges-tp63183.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] installing a python package without elevated privileges

2017-03-21 Thread Naceur
Thank you for your reply. However, I don't want to have anything done
manually. 
Maybe I need rephrasing my initial post: 

It is not that I want PyBOMBS to to do a pip --user but I am more wondering
why it is saying:

> PyBOMBS.PackageManager - DEBUG - Using packager pip 
> PyBOMBS.Packager.pip - DEBUG - Calling `/home/nae/.local/bin/pip install
> pytun' 
> PyBOMBS.monitor_process() - DEBUG - Running with elevated privileges. 
> PyBOMBS._process_thread() - DEBUG - Executing command `['sudo', '-H',
> '/home/nae/.local/bin/pip', 'install', 'pytun']' 
> sudo: unable to execute /home/nae/.local/bin/pip: Permission denied 
> PyBOMBS.monitor_process() - DEBUG - Thread signaled termination or
> returned 
> PyBOMBS.monitor_process() - DEBUG - Return value: 1 

why is it going straight to elevated priviliges.
I looked for a package that needs installation through pip and found mako
and numpy. 
I realized that when uhd was installed it needed mako as a prerequesite and
it did install it without the elevation and error.

Thanks,



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/installing-a-python-package-without-elevated-privileges-tp63183p63226.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] installing a python package without elevated privileges

2017-03-21 Thread Naceur
Thanks. I just circumvented it by getting rid of pip requirement and asking
the recipe to get the deb/rpm requirements instead.
FYI, my /home/nae/.local/bin/pip was already allowed 777.

Regards,
Naceur



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/installing-a-python-package-without-elevated-privileges-tp63183p63229.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] examples of use of command ports for usrp sink and source

2017-03-21 Thread Naceur
Hello GR,

Are there any grc flowgraphs showing use of looped USRP Source/Sink for
examples if in the middle of some flowgraphs I needed to re-tune the Radio.

I just saw in the corresponding grc blocks "command" port but I don't know
what are they expecting.

Regards,
Naceur



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/examples-of-use-of-command-ports-for-usrp-sink-and-source-tp63230.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] installing a python package without elevated privileges

2017-03-22 Thread Naceur
You are right if they had access to it at first place. Anyhow I fixed it.



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/installing-a-python-package-without-elevated-privileges-tp63183p63258.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] port to listen for ctrlport connection per flowgraph on the same machine

2017-03-24 Thread Naceur
Hello GR,

When I tried to run the second python gnuradio flowgraph on the same machine
I got:

Thrift: Fri Mar 24 16:48:22 2017 TServerSocket::listen() BIND 9090
terminate called after throwing an instance of
'apache::thrift::transport::TTransportException'
  what():  Could not bind: Transport endpoint is not connected

Is there a way I can set the thrift port to listen for ctrlport connection
per flowgraph ? 
If not: is it possible to disable ctrlport listenning for a specific
flowgraph ?

Regards,
Naceur



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/port-to-listen-for-ctrlport-connection-per-flowgraph-on-the-same-machine-tp63281.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Problem running GNU Radio 3.6.5 under Centos on X2Go Client

2014-01-14 Thread Naceur
Hello GR,

Lately I have installed GNU radio on my local session running on a remote
Server.
Actually I proceeded as mentioned in the gnu radio git installation guide
The environment variables are set respectively to 

$PATH:.. /users/nae/gnuradio_3.6.5/bin/
$PYTHONPATH: /users/nae/gnuradio_3.6.5/lib64/python2.6/site-packages/

(stored into the ~/.bashrc file)

However I am not sure what to set next re LD_LIBRARY_PATH and make using
CPPFLAGS as in the guide

I am using a limited access session on the server and don't know how to set
the variables nor how to proceed the following make command of make ...

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib
$ make CPPFLAGS="-I$HOME/local/include"

1/ When I type gnuradio-companion from the terminal it give the error:

Traceback (most recent call last):
  File "/users/nae/gnuradio_3.6.5/bin/gnuradio-companion", line 24, in

import gtk
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line
64, in 
_init()
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line
52, in _init
_gtk.init_check()
RuntimeError: could not open display

2/ When I run gnuradio-companion graphically from its icon in
/home/gnuradio_3.6.5/bin it gives the error:

Cannot import gnuradio.

Is the python path environment variable set correctly?
All OS: PYTHONPATH

Is the library path environment variable set correctly?
Linux: LD_LIBRARY_PATH
Windows: PATH
MacOSX: DYLD_LIBRARY_PATH

Any help is appreciated.

Regards,




--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Problem-running-GNU-Radio-3-6-5-under-Centos-on-X2Go-Client-tp45727.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Switching in real-time from USRP Source to USRP Sink

2014-01-17 Thread Naceur


Hello GR,

Did anyone tried once to code a kind of event-driven switch which applies on
the USRP blocks.
Let's say I need to switch the sink and the source in real time (and by the
way the linked blocks two will be switched) giving a certain event trigger. 

Do I need to code two different GR flow graphs and switch between them
whenever I got the trigger event in other words I need to implement a state
machine ?

Any explanations are welcome.
Naceur.



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Switching-in-real-time-from-USRP-Source-to-USRP-Sink-tp45794.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] GNU Radio Multithreading application issue

2013-09-29 Thread Naceur
Hello list,

I have coded a top block flow graph which connect some custom modulator
shared pointer to a USRP sink, 
The question is that apart from the thread that is being run when calling
tb->start, I would like to have running in the background either a
daemon-like process which access a (static variable) queue member of the
modulator class or a thread which can be detached.

I tried a lot of codes but unsuccessfully, when I try to test the whole flow
graph working I realise (by some printf) that the code is executing the core
of the modulator work only once (the top block process) wherever the other
thread (called after tb->start) is being executed continuously (inside while
loop).

Sorry if the question seems so confusing, but to be clear I like to know how
can the 
* modulator connected to usrp sink 
and the  * thread called after tb->start be executed simultaneously
(multithreaded)

I tried to implement a daemon from inside the modulator core but did not
succed to make it execute continuously, 

BTW I referred to:
http://www.netzmafia.de/skripten/unix/linux-daemon-howto.html
and also I tried to call: boost::thread t(boost::bind(foo,param1...))
   t.detach();  
  
==> Unsucess 

Tried many other ways but always the 'foo' is being executed only once.  
How can I have it execute alongsie of the top-block process running and
reading and writing the same variable without conflict or seg fault or any
other issue.

All explanations or hints are well appreciated,
Best regards,



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/GNU-Radio-Multithreading-application-issue-tp43878.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Segmentation fault issue with gr_hier_block2_detail::connect

2013-10-01 Thread Naceur
Hello GNU-Radio list,

I wonder why is my C++ code is thorwing a segmentation fault (core dumped),
gdb outputs:

Program received signal SIGSEGV, Segmentation fault.
0xb7b1b718 in
gr_hier_block2_detail::connect(boost::shared_ptr, int,
boost::shared_ptr, int) ()
   from /usr/local/lib/libgnuradio-core-3.6.5.so.0.0.0

I confirm that the same line of code which is throwing that error is
executed multiple (randomly) times before it came to that error.

I can't figure out what is causing that and how to fix it ?   
All explanation are welcome.

Regards,



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Segmentation-fault-issue-with-gr-hier-block2-detail-connect-tp43894.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Segmentation fault issue with gr_hier_block2_detail::connect

2013-10-01 Thread Naceur
And when I run again sometimes it stops and throw another segfault in the
same location but labeled:

Program received signal SIGSEGV, Segmentation fault.
0xb7af75f3 in gr_flowgraph::check_dst_not_used(gr_endpoint const&) () from
/usr/local/lib/libgnuradio-core-3.6.5.so.0.0.0



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Segmentation-fault-issue-with-gr-hier-block2-detail-connect-tp43894p43895.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Segmentation fault issue with gr_hier_block2_detail::connect

2013-10-01 Thread Naceur
Thank you Marcus for the reply,

I just figured out where was the problem: 
I am TWICE instantiating an object (a shared pointer) outside an if loop
and inside of it, 

And for the backtrace it gives me that
... in main (argc=, 
argv=) ...

Actually I fixed the issue.

Cheers



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Segmentation-fault-issue-with-gr-hier-block2-detail-connect-tp43894p43897.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Getting to know about USRP FPGA programming

2013-10-02 Thread Naceur
Hello list,

=
I am a newbie in USRP FPGA programming,
I used once Xilinx ISE to execute some VHDL code, generated a bit file to
program a Virtex 4,

But now in the context of GNU Radio and USRP. I would like to know what are
the tools recommended and where can i find the documentation of the FPGA (I
am using USRP N210),
and I am using Ubuntu Precise 12.04, so what kind of software or kit do I
have to handle.
=

What I want to try with the USRP's FPGA is to send it a stream of packets
(Header + Payload),
header field's length being known and fixed in advance, I need the FPGA to
override a part of the Payload's field with its time register's  value and
send the stream after. 
Is that possible first then what steps to do ?
=

All explanations and hints are well appreciated.
Regards,



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Getting-to-know-about-USRP-FPGA-programming-tp43909.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Getting to know about USRP FPGA programming

2013-10-03 Thread Naceur
Hi Marcus, 

Thank you for your reply, 
What I am aiming ultimately is to estimate the time delay a packet could
have when running through the following path:

HOST(1) =>[Ethernet]=> USRP(1)[FPGA-DAC-AnalogPath-Antenna] ==> On the air 
==> The same path Reversed (USRP(2)) ==> HOST(1) or another HOST,

The problem here is that the time delay of propagation on the air is so
insignificant compared to the time delay of Hardware propagation then
especially through the Ethernet from the Host(1) or to the Host(2),

NEXT, that let's say software delay (From the moment the packet is passed
from a modulator block in a gnu radio top block to the USRP Sink to the
moment it is transformed and inserted into the stream to the FPGA) is
VARIABLE, That's why I asked if it is better to migrate to use FPGA time
domain, by inserting time register's value into the appropriate field in the
packet stream,

Am I pursuing a good path or non realistic and infeasible.
Best Regards,   



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Getting-to-know-about-USRP-FPGA-programming-tp43909p43936.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] How to make modified uhd/host/examples

2013-10-17 Thread Naceur
Hello GR Forum,

I have to add some instructions for test purpose into some files of
/uhd/host/examples
Could you show me how to make the new files, or send me the link of How to
instructions. 
BTW, I never used CMake before. If there is another tool for the purpose I
am ok too.

Regards,
Naceur



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/How-to-make-modified-uhd-host-examples-tp44214.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] How to make modified uhd/host/examples

2013-10-19 Thread Naceur
Thank you Bennett.



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/How-to-make-modified-uhd-host-examples-tp44214p44248.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Misc questions, regarding Interrupt coalescing

2013-10-21 Thread Naceur
Hello GR Forum,

I got some questions:

1/ Did anyone already tested the effect of Interrupt coalescing on reducing
the latency when host and USRP N2X0 are communicating and how far did he
reduce this latency

2/ I want to check first if my NIC got this feature enabled ?
How do I have to proceed to check then how to test ? 

3/ When running a stream of packets over the USRP I got the following error: 

thread[thread-per-block[24]: ]: msg length is
not a multiple of d_itemsize  
This error is raised after a fixed number N of successfully sent packets
Could you please give me some hints on this issue.

Best regards,



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Misc-questions-regarding-Interrupt-coalescing-tp44285.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Measuring RSSI values using GRC

2013-11-15 Thread Naceur
Hello GR list,

I am intending to read RSSI values on a RX (USRP N210),
I have found in the post of Marcus D. Leech in
https://www.ruby-forum.com/topic/1857766


10*LOG10(DECIMATE(SINGLE_POLE_IIR_FILTER(COMPLEX_TO_MAG**2(SIGNAL

Using GRC, I tried to implement that method of calculation as shown in the
attached figure,

1/ Is the flowgraph correct, or is there any missing block (decimation) ? 
2/ Then how can I read in human readable format (ASCII) the RSSI values from
the test_RSSI.txt file sink ?
3/ Is there a way to command the duration of execution of the flowgraph
within GRC () ?
4/ How can I format the test_RSSI.txt file sink to obtain single RSSI values
per line ?

Any explanations are welcome,  
Regards,
Naceur



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Measuring-RSSI-values-using-GRC-tp44749.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Reading RSSI Values with GRC

2013-11-15 Thread Naceur
Hello GR list, 

I am intending to read RSSI values on a RX (USRP N210), 
I have found in the post of Marcus D. Leech in
https://www.ruby-forum.com/topic/1857766


10*LOG10(DECIMATE(SINGLE_POLE_IIR_FILTER(COMPLEX_TO_MAG**2(SIGNAL 

Using GRC, I tried to implement that method of calculation as shown in the
attached figure, 

1/ Is the flowgraph correct, or is there any missing block (decimation ?) ? 
2/ Then, how can I read in human readable format (ASCII) the RSSI values
(expected to be in dBm) from the test_RSSI.txt file sink ? 
3/ Is there a way to command the duration of execution of a flowgraph within
GRC () ? 
4/ How can I format the test_RSSI.txt file sink to obtain single RSSI values
per line ?

<http://gnuradio.4.n7.nabble.com/file/n44750/25.png> 

Any explanations are welcome,   
Regards, 
Naceur



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Reading-RSSI-Values-with-GRC-tp44750.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Measuring RSSI values using GRC

2013-11-15 Thread Naceur
Thank you Marcus for the reply, 


Marcus Leech-2 wrote
> There are blocks in GRC to do all of that.

Sorry I forget to attach the GRC flowgraph

  
 am I missing any block ?

Actually I tried using the binascii python module, but what I got is as
follows:

with the binascii.b2a_qp(data) function:
...
=AD=BC=C1L=8B=BC=C1w=94=BC=C1=DFP=BC=C1*;=BC=C1,=1A=BC=C1.x=BC=C1=1Ae=BC=C1=
=16`=BC=C1r=81=BC=C1=E6=9D=BC=C1)=9C=BC=C1=B8k=BC=C1@U=BC=C1=AEa=BC=C1=BCj=
=BC=C1=00}=BC=C1=86=15=BD=C1=C6=EC=BC=C1=CA=D1=BC=C1nM=BC=C1=AF=D5=BB=C1nB
... 

and with the binascii.b2a_uu(data) function:

L   TPP  -,,  #3#   TPP  -,,  #3#%YZTPM&8FL*=7H/"K;)ZP@0^3<( 


Am I misusing functions, how can I get number values as output 


Marcus Leech-2 wrote
> The file-sink blocks write out data values in raw-binary format, not 
> ASCII text.
> 
> You could use a "probe" and poll the probe at 1Hz and have it call a 
> Python function of your own to to the ASCII conversions.

How can I configure the frequency of polling to 1Hz (Is "probe" here refer
to "Prob Signal" block in GRC ?)

Regards



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Re-Measuring-RSSI-values-using-GRC-tp44751p44752.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Measuring RSSI values using GRC

2013-11-18 Thread Naceur
Could any one help me please get a hint or explanation to get a chain of RSSI
values in a text file,
I have already tried a bunch of python functions. 



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Re-Measuring-RSSI-values-using-GRC-tp44751p44825.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] WX GUI Constellation sink plot freez ?

2013-11-25 Thread Naceur
Hello list,

I got questions re the WX GUI Constellation Sink block:

1/ Could anyone give descriptions of what is 

* Theta ?
* Loop bandwidth ? 
* Max Freq ?
* Mu ?
* Gain Mu ?
* Symbol Rate ?
* Omega Limit ?

2/ What are the essential params of the block to adjust, for my case I am
receiving a BPSK signal (Params @ Tx are: 10 MHz samp_rate, ow_format sc8,
Samples/Symbol = 4, Spread signal with a 11 chips code),

I set:
sample_rate = 10 MHz,
Frame rate = 512,
Constellation Size = 512, 
M = 2,

3/ Once the constellation plotted it freezes and "O"s appears in the
terminal section of GRC ?
What am I doing wrong ?

Regards,



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/WX-GUI-Constellation-sink-plot-freez-tp44967.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] WX GUI Constellation sink plot freez ?

2013-11-28 Thread Naceur
Thank you for the reply :)



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/WX-GUI-Constellation-sink-plot-freez-tp44967p45017.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio