Re: [Discuss-gnuradio] VCO

2018-05-17 Thread Jean-Michel FRIEDT
I would like to ask about the VCO in GRC. What's the function of the  
sensitivity? If I connect a signal source (Saw Tooth) into VCO, and  
I want a bandwidth of 2MHz. I only can achieve it by setting the  
Sentivity = 2e6 *(2*3.1416) . Can anyone explain the theory behind  
this?


may the source be with you:
https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/vco_c_impl.cc

The VCO block generates a sincos output at a rate of  
sensitivity/sampling_rate,

so that the phase increments by 2pi (one cycle rotation) every
sampling_rate/sensitivity samples. This is also what is given in
http://www.ece.uvic.ca/~elec350/grc_doc/ar01s02s05.html stating that the
sensitivity is in rad/sec*V.

JM

--
JM Friedt, FEMTO-ST Time & Frequency/SENSeOR, 26 rue de l'Epitaphe,  
25000 Besancon, France



This message was sent using IMP, the Internet Messaging Program.


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


Re: [Discuss-gnuradio] VCO

2018-05-17 Thread Jean-Michel FRIEDT
I would like to ask about the VCO in GRC. What's the function of the  
sensitivity? If I connect a signal source (Saw Tooth) into VCO, and  
I want a bandwidth of 2MHz. I only can achieve it by setting the  
Sentivity = 2e6 *(2*3.1416) . Can anyone explain the theory behind  
this?


may the source be with you:
https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/vco_c_impl.cc

The VCO block generates a sincos output at a rate of  
sensitivity/sampling_rate,

so that the phase increments by 2pi (one cycle rotation) every
sampling_rate/sensitivity samples. This is also what is given in
http://www.ece.uvic.ca/~elec350/grc_doc/ar01s02s05.html stating that the
sensitivity is in rad/sec*V.

JM

--
JM Friedt, FEMTO-ST Time & Frequency/SENSeOR, 26 rue de l'Epitaphe,  
25000 Besancon, France



This message was sent using IMP, the Internet Messaging Program.


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


[Discuss-gnuradio] VCO

2018-05-17 Thread Yeo Jin Kuang Alvin (IA)
Hi all,

I would like to ask about the VCO in GRC. What's the function of the 
sensitivity? If I connect a signal source (Saw Tooth) into VCO, and I want a 
bandwidth of 2MHz. I only can achieve it by setting the Sentivity = 2e6 
*(2*3.1416) . Can anyone explain the theory behind this?

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


Re: [Discuss-gnuradio] gnuradio on High Sierra

2018-05-17 Thread Sebastian Müller
If I understood correctly, Vipin in trying to compile his own OOT.

In that case, you can just switch to C++11 independently of GNU Radio AFAIK.
You can do that by putting `set(CMAKE_CXX_STANDARD 11)` into your root
CMakeLists.txt.

Sebastian Müller
gse...@gmail.com
PGP ID DC2AA3EE


Am 17. Mai 2018 um 21:16:20, Michael Dickens (michael.dick...@ettus.com)
schrieb:

Hi Vipin - Easiest way is to just install gnuradio-devel:
{{{
sudo port -f deactivate gnuradio
sudo port install gnuradio-devel
}}}
Assuming that the 2nd command works, then in your OOT when you "make" for
the first time since this GR change CMake will redo configuration & you
should be good to go. Hope this is useful! - MLD

On Wed, May 16, 2018, at 9:57 PM, Vipin Sharma wrote:

Thank you. I was just trying to build a custom block in GnuRadio. GnuRadio
itself is what I got from MacPorts.

I will wait for your fix. If the work involved more than a few days is
there an alternative I can try out to bypass the issue for now?


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


Re: [Discuss-gnuradio] cmake command

2018-05-17 Thread Michael Dickens
Hi Cindy - Which operating system are you working on? - MLD

On Thu, May 17, 2018, at 11:34 AM, Cindy Zhang wrote:
> gnuradio - $ cmake -DCMAKE_INSTALL_PREFIX= ../ command - Stack
> Overflow body,.top-bar{margin-top:1.9em}> I am following the 
> example square_ff at
> https://wiki.gnuradio.org/index.php/OutOfTreeModules, but was confused
> by the usage of this $cmake command. I didn't specify anything to
> cmake while installing it (if I did install cmake by myself). So I
> just leave everything as default. Besides, in my /usr/local/lib/
> directory, I have python2.7/dist-packages and python3.6/dist-packages.
> So which version of python should I use for this command, and how this
> cmake command should be issued? I am sorry that I am not familiar with
> the format of cmake command at all.> Thanks in advance!


>>  

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


Re: [Discuss-gnuradio] gnuradio on High Sierra

2018-05-17 Thread Michael Dickens
Hi Vipin - Easiest way is to just install gnuradio-devel:
{{{
sudo port -f deactivate gnuradio
sudo port install gnuradio-devel
}}}
Assuming that the 2nd command works, then in your OOT when you "make"
for the first time since this GR change CMake will redo configuration &
you should be good to go. Hope this is useful! - MLD
On Wed, May 16, 2018, at 9:57 PM, Vipin Sharma wrote:
> Thank you. I was just trying to build a custom block in GnuRadio.
> GnuRadio itself is what I got from MacPorts.> 
> I will wait for your fix. If the work involved more than a few days is
> there an alternative I can try out to bypass the issue for now?
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Invalid msg port in connect() or disconnect()

2018-05-17 Thread Sebastian Müller
Hello list,

I’m posting the following issue vicarious for GitHub user „mustaphos“, who
unfortunately does not make use of the mailing list despite I directly
suggested him to do so. Since I don’t think this is a gr-inspector issue,
I’m posting this publicly for discussion.
OP reports to have found no solution on the mailing list so far.

Original issue at https://github.com/gnuradio/gr-inspector/issues/23


Hi.
When i run the program i get this error:
Traceback (most recent call last):File "live_signal_detection.py", line
136, in main()File "live_signal_detection.py", line 124, in maintb
= top_block_cls()File "live_signal_detection.py", line 90, in
__init__self.msg_connect((self.inspector_signal_detector_cvf_0, 'map_out'),
(self.inspector_qtgui_sink_vf_0, 'map_in'))File
"/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line
59, in wrappedfunc(self, src.to_basic_block(), srcport,
dst.to_basic_block(), dstport)File
"/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line
131, in msg_connectself.primitive_msg_connect(*args)File
"/usr/local/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line
5343, in primitive_msg_connectreturn
_runtime_swig.top_block_sptr_primitive_msg_connect(self,
*args)RuntimeError: invalid msg port in connect() or disconnect()
I searched in gnuradio mail list but i could not find any solution.
I am in a hurry to publish my project report so i am posting in here.
Sorry about that.
Regards…


Cheers,

Sebastian Müller
gse...@gmail.com
PGP ID DC2AA3EE

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


Re: [Discuss-gnuradio] USRP DDC and GNURadio Bandwidth Problem

2018-05-17 Thread Kyeong Su Shin
Hello Ali,

That "bandwidth" parameter of the UHD Source/Sink block is used to adjust the 
'analog bandwidth' of the 'daughterboard'. Most of the daughterboards have a 
fixed analog bandwidth, so that parameter will be simply ignored in most cases 
('uhd_usrp_probe' will give the detailed info about the daughterboard). They 
are not used to configure digital filter taps.

If you want to add digital filters, you can simply add them on GNU Radio as 
seperate blocks. Software FIR/IIR filters are pretty slow, but they can keep up 
when the sampling rate is that low. If you want to push down some codes to the 
FPGA, consider RFNoC.


Regards,

Kyeong Su Shin



보낸 사람: Ali <03do...@gmail.com> 대신 Discuss-gnuradio 

보낸 날짜: 2018년 5월 17일 목요일 오후 10:10:27
받는 사람: discuss-gnuradio@gnu.org; usrp-us...@lists.ettus.com
제목: Re: [Discuss-gnuradio] USRP DDC and GNURadio Bandwidth Problem

Hi,

I don't want my sampling rate to be 25 kHz. My sampling rate is already 195312 
Hz which is I think the minimum sampling rate for X310.

What I want is to filter out the frequencies which are at least 25 kHz away 
from my center frequency. For example I don't want to see a transmission which 
is 50 kHz away from my center frequency. Is it possible? How does the 
"bandwidth" parameter in UHD Source Block in GNURadio affect the captured IQ 
data?

Regards,
Ali

2018-05-14 12:19 GMT+03:00 Derek Kozel 
>:
Hello Ali,

To extend what Marcus has said, here is a link to the UHD manual page about 
sample rates.
http://files.ettus.com/manual/page_general.html#general_sampleratenotes

Regards,
Derek

On Mon, May 14, 2018 at 8:54 AM, Müller, Marcus (CEL) 
> wrote:
Hi Ali,

just like the console will tell you, 25 kS/s is simply impossible with
an X310; instead, the minimum possible rate was used.

You should probably just configure your X310 to get you e.g. 500 kS/s,
and then resample in digital domain. If you're hesitant to design your
own decimating filter, use the "rational resampler" block and configure
it to decimate by (500/25)=20.

Best regards,
Marcus

On Mon, 2018-05-14 at 10:18 +0300, Ali wrote:
> Hi to all,
>
> I am using GNURadio to control an X310. I want to get IQ samples for only 25 
> kHz bandwidth.
>
> When I wrote 25 kHz to the bandwidth line in UHD-Source block in GNURadio, I 
> still see the signals at 50 kHz or 75 kHz away from the center. My sampling 
> rate is 195312 Hz. When checked in MATLAB, the signals are there. It looks 
> like I cannot control the bandwidth with GNURadio.
>
> I suspected that there is not any DDC filter for this bandwidth. If it is so, 
> what is the minimum bandwidth for USRPs? Are the bandwidths that I can use 
> discrete? I am confused.
>
> Thanks in advance,
> Ali
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



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


[Discuss-gnuradio] sample_rate and bandwidth parameter

2018-05-17 Thread Maria

Dear all,

I have a question related to the parameters Samp Rate (Sps) and 
Bandwidth which can be found on the UHD USRP source and sink GNU radio 
blocks.


If I want to calculate the bandwidth of a modulated signal (QPSK for 
example), the standard equation to use is usually:


B = (1+roll-off)*sample_rate

However, I have checked that the bandwidth in GNU radio is calculated by:

B = (1+roll-off) * Bandwidth /number_symbols

Where Bandwidth is the USRP block parameter and number_symbols is 4 in 
this case (QPSK). Therefore, the Samp Rate parameter from the
UHD USRP source and sink GNU radio blocks does not have to do with the 
calculation of the signal bandwidth in frequency domain. I would be 
really glad if someone can explain to me the difference between these 
two parameters ("Samp rate" and "Bandwidth"). I have already read the 
documentation but I still do not really understand it.


Thank you very much and sorry for the I guess basic question.

Best regards,

Maria Jesus

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


[Discuss-gnuradio] cmake command

2018-05-17 Thread Cindy Zhang
gnuradio - $ cmake -DCMAKE_INSTALL_PREFIX= ../ command - Stack Overflow
body,.top-bar{margin-top:1.9em}

I am following the example square_ff at
https://wiki.gnuradio.org/index.php/OutOfTreeModules, but was confused by
the usage of this $cmake command. I didn't specify anything to cmake while
installing it (if I did install cmake by myself). So I just leave
everything as default. Besides, in my /usr/local/lib/ directory, I have
python2.7/dist-packages and python3.6/dist-packages. So which version of
python should I use for this command, and how this cmake command should be
issued? I am sorry that I am not familiar with the format of cmake command
at all.

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


Re: [Discuss-gnuradio] [USRP-users] USRP DDC and GNURadio Bandwidth Problem

2018-05-17 Thread Derek Kozel
Hello Ali,

The bandwidth parameter will select the Analog RF filters where possible.
For the X310 the daughterboards do not have configurable filters so you
will have to add a lowpass filter to your flowgraph.

Regards,
Derek

On Thu, May 17, 2018 at 2:10 PM, Ali via USRP-users <
usrp-us...@lists.ettus.com> wrote:

> Hi,
>
> I don't want my sampling rate to be 25 kHz. My sampling rate is already
> 195312 Hz which is I think the minimum sampling rate for X310.
>
> What I want is to filter out the frequencies which are at least 25 kHz
> away from my center frequency. For example I don't want to see a
> transmission which is 50 kHz away from my center frequency. Is it possible?
> How does the "bandwidth" parameter in UHD Source Block in GNURadio affect
> the captured IQ data?
>
> Regards,
> Ali
>
> 2018-05-14 12:19 GMT+03:00 Derek Kozel :
>
>> Hello Ali,
>>
>> To extend what Marcus has said, here is a link to the UHD manual page
>> about sample rates.
>> http://files.ettus.com/manual/page_general.html#general_sampleratenotes
>>
>> Regards,
>> Derek
>>
>> On Mon, May 14, 2018 at 8:54 AM, Müller, Marcus (CEL) 
>> wrote:
>>
>>> Hi Ali,
>>>
>>> just like the console will tell you, 25 kS/s is simply impossible with
>>> an X310; instead, the minimum possible rate was used.
>>>
>>> You should probably just configure your X310 to get you e.g. 500 kS/s,
>>> and then resample in digital domain. If you're hesitant to design your
>>> own decimating filter, use the "rational resampler" block and configure
>>> it to decimate by (500/25)=20.
>>>
>>> Best regards,
>>> Marcus
>>>
>>> On Mon, 2018-05-14 at 10:18 +0300, Ali wrote:
>>> > Hi to all,
>>> >
>>> > I am using GNURadio to control an X310. I want to get IQ samples for
>>> only 25 kHz bandwidth.
>>> >
>>> > When I wrote 25 kHz to the bandwidth line in UHD-Source block in
>>> GNURadio, I still see the signals at 50 kHz or 75 kHz away from the center.
>>> My sampling rate is 195312 Hz. When checked in MATLAB, the signals are
>>> there. It looks like I cannot control the bandwidth with GNURadio.
>>> >
>>> > I suspected that there is not any DDC filter for this bandwidth. If it
>>> is so, what is the minimum bandwidth for USRPs? Are the bandwidths that I
>>> can use discrete? I am confused.
>>> >
>>> > Thanks in advance,
>>> > Ali
>>> >
>>> > ___
>>> > Discuss-gnuradio mailing list
>>> > Discuss-gnuradio@gnu.org
>>> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>> ___
>>> Discuss-gnuradio mailing list
>>> Discuss-gnuradio@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>>
>>
>
> ___
> USRP-users mailing list
> usrp-us...@lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] USRP DDC and GNURadio Bandwidth Problem

2018-05-17 Thread Ali
Hi,

I don't want my sampling rate to be 25 kHz. My sampling rate is already
195312 Hz which is I think the minimum sampling rate for X310.

What I want is to filter out the frequencies which are at least 25 kHz away
from my center frequency. For example I don't want to see a transmission
which is 50 kHz away from my center frequency. Is it possible? How does the
"bandwidth" parameter in UHD Source Block in GNURadio affect the captured
IQ data?

Regards,
Ali

2018-05-14 12:19 GMT+03:00 Derek Kozel :

> Hello Ali,
>
> To extend what Marcus has said, here is a link to the UHD manual page
> about sample rates.
> http://files.ettus.com/manual/page_general.html#general_sampleratenotes
>
> Regards,
> Derek
>
> On Mon, May 14, 2018 at 8:54 AM, Müller, Marcus (CEL) 
> wrote:
>
>> Hi Ali,
>>
>> just like the console will tell you, 25 kS/s is simply impossible with
>> an X310; instead, the minimum possible rate was used.
>>
>> You should probably just configure your X310 to get you e.g. 500 kS/s,
>> and then resample in digital domain. If you're hesitant to design your
>> own decimating filter, use the "rational resampler" block and configure
>> it to decimate by (500/25)=20.
>>
>> Best regards,
>> Marcus
>>
>> On Mon, 2018-05-14 at 10:18 +0300, Ali wrote:
>> > Hi to all,
>> >
>> > I am using GNURadio to control an X310. I want to get IQ samples for
>> only 25 kHz bandwidth.
>> >
>> > When I wrote 25 kHz to the bandwidth line in UHD-Source block in
>> GNURadio, I still see the signals at 50 kHz or 75 kHz away from the center.
>> My sampling rate is 195312 Hz. When checked in MATLAB, the signals are
>> there. It looks like I cannot control the bandwidth with GNURadio.
>> >
>> > I suspected that there is not any DDC filter for this bandwidth. If it
>> is so, what is the minimum bandwidth for USRPs? Are the bandwidths that I
>> can use discrete? I am confused.
>> >
>> > Thanks in advance,
>> > Ali
>> >
>> > ___
>> > Discuss-gnuradio mailing list
>> > Discuss-gnuradio@gnu.org
>> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Template Error

2018-05-17 Thread Sumit Kumar

Hi,

I was converting the single channel FFT block to dual channel FFT block. 
I took the fft_vcc_fftw.cc code and tailored it for dual channel. Also I 
edited the corresponding xml file.


But when I try to run it in any application from GRC, it says

self.fft_vxx_0_0 = Template error: #if $type() == "complex"
    ^
SyntaxError: invalid syntax

Name of the GRC block is FFT DC and the corresponding c++ file is inside 
gr-fft, named : fft_vcc_fftw.cc & fft_vcc_fftw.h


The xml file name is fft_fft_vxx_dc.xml

I have pushed the code here https://github.com/sumitstop/MTSDR-gnuradio

Only last three commits are relevant.

Regards

Sumit



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


[Discuss-gnuradio] reminder: French GNURadio days -- deadline approaching

2018-05-17 Thread Jean-Michel FRIEDT

A quick reminder, for those interested to meet to discuss the latest
developments related to GNURadio in France and Europe, that the deadline
for submission and registration for the French GNURadio days is approaching
(May 20).
The web site with the program, template and registration is at
https://gnuradio-fr-18.sciencesconf.org/

Jean-Michel

--
JM Friedt, FEMTO-ST Time & Frequency/SENSeOR, 26 rue de l'Epitaphe,  
25000 Besancon, France



This message was sent using IMP, the Internet Messaging Program.


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