Re: [Discuss-gnuradio] Trying to get ber graph right ?

2016-12-21 Thread Marcus Müller
Should you not be comparing the bits that go into the encoder to the received 
bits, and not the ones coming out of the encoder?

Best regards,
Marcus

Am 22. Dezember 2016 05:31:52 MEZ, schrieb AzieRis :
>Hello everyone,
>I would like to ask if there is something i am doing wrong with my flow
>graph or is it wrong usage of blocks in my project. 
>So here it is: http://screenshot.sh/ovZAMj1uo6w1k (uploading .grc and
>.fsm
>files also)
>Turbocoding.grc
>   , 
>fsm1.fsm
>  
>There is just a window poping out for a second and disappearing - no
>idea
>why ?
>I am trying to get graph of BER performance of this coding after
>modulation
>and changing noise value.
>Maybe there is a simpler way to do it right. 
>
>Thanks in advance for every response to this post.
>Regards
>Adrian
>
>
>
>--
>View this message in context:
>http://gnuradio.4.n7.nabble.com/Trying-to-get-ber-graph-right-tp62365.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

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Trying to get ber graph right ?

2016-12-21 Thread AzieRis
Hello everyone,
I would like to ask if there is something i am doing wrong with my flow
graph or is it wrong usage of blocks in my project. 
So here it is: http://screenshot.sh/ovZAMj1uo6w1k (uploading .grc and .fsm
files also)
Turbocoding.grc
   ,  fsm1.fsm
  
There is just a window poping out for a second and disappearing - no idea
why ?
I am trying to get graph of BER performance of this coding after modulation
and changing noise value.
Maybe there is a simpler way to do it right. 

Thanks in advance for every response to this post.
Regards
Adrian



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Trying-to-get-ber-graph-right-tp62365.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] Writing Different Number of Bytes To Different Outputs

2016-12-21 Thread Sean Horton
I'm having trouble outputting data from a block through multiple outputs of
unequal length. The first four output one int, the second four output
num_channels int (which is determined by the value passed in from the
constructor).

If I try to output my data like so, it doesn't work, everything is 0:

int32_t * out0 = reinterpret_cast(output_items[0]);
...
int32_t * out7 = reinterpret_cast(output_items[7]);

out0[0] = val0;
...
out3[0] = val3;

for (std::size_t i = 0; i < num_channels; ++i) {
  out4[i] = val4[i];
  ...
  out7[i] = val7[i];
}

The next block connected to the last port was getting all zero values, so I
just did

int32_t * out = reinterpret_cast(output_items[0]);
memset(out, 0x08, noutput_items);

That finally resulted in non-zero values popping being outputted. I can't
set any value with what I want it to be, though, so the sole value coming
out of the first  output is always zero when I'm not memsetting every byte
to the same value.

Regards,
Sean

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


Re: [Discuss-gnuradio] Using Function Probe To Get Value From Probe Signal Vector

2016-12-21 Thread Marcus Müller
Hm, yes, for things that move really slowly this of course works – I
can't argue with that (nor can I argue with Marcus the First); I'd just
argue that the algorithm Sean describes sounds so complicated that
intuitively, it sounds like what he'd *like* to have is some DSP on a
downsampled version of his signal.

But maybe I should have *asked* about that, before jumping to
conclusions; so:

Sean, what is the purposeof this operation? As in: what's the physical
meaning of the in- and output of all this?

Best regards,

Marcus


On 21.12.2016 18:55, mle...@ripnet.com wrote:
>
> Meh, I use function probes to capture 'stuff' that changes
> slowly--timescales of seconds or tens-of-seconds.
>
> I wouldn't do this for faster stuff, but doing that allows you to use
> "ordinary" python in a python module, with the probe value as calling
> parameter.
>
>  
>
>  
>
>  
>
>  
>
>  
>
> On 2016-12-21 11:47, Marcus Müller wrote:
>
>> Hi Sean,
>>
>> you really shouldn't be doing that at all.
>>
>> If you want to do signal processing, write a simple python block that
>> operates on a sample stream.
>>
>> The signal probe is really just that, for sporadic "debug" and
>> "display" operation, not for any "useful" application.ö
>>
>>  
>>
>> Best regards,
>>
>> Marcus
>>
>>  
>>
>> On 21.12.2016 17:30, Sean Horton wrote:
>>> I have a function probe to get an int from one block's output, and
>>> been using a function probe to get the value of the probe signal. I
>>> now want to have the block output a vector of ints, and use a probe
>>> signal vector to capture them, and nave a few function probes to get
>>> index 0, 1, and so forth. How do you do that? It does not seem to be
>>> as simple as replacing level with leve[index] (where index is 0, 1,
>>> etc) in the function probe's function name field. In my test setup,
>>> the function probe never changes from the default value, which is
>>> not one of the values in my vector source I'm using for testing. 
>>>  
>>> -- 
>>> Sean Horton
>>>
>>>
>>>
>>> ___
>>> 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


Re: [Discuss-gnuradio] Using Function Probe To Get Value From Probe Signal Vector

2016-12-21 Thread mleech
Meh, I use function probes to capture 'stuff' that changes
slowly--timescales of seconds or tens-of-seconds. 

I wouldn't do this for faster stuff, but doing that allows you to use
"ordinary" python in a python module, with the probe value as calling
parameter. 

On 2016-12-21 11:47, Marcus Müller wrote:

> Hi Sean, 
> 
> you really shouldn't be doing that at all. 
> 
> If you want to do signal processing, write a simple python block that 
> operates on a sample stream. 
> 
> The signal probe is really just that, for sporadic "debug" and "display" 
> operation, not for any "useful" application.ö 
> 
> Best regards, 
> 
> Marcus 
> 
> On 21.12.2016 17:30, Sean Horton wrote: 
> 
>> I have a function probe to get an int from one block's output, and been 
>> using a function probe to get the value of the probe signal. I now want to 
>> have the block output a vector of ints, and use a probe signal vector to 
>> capture them, and nave a few function probes to get index 0, 1, and so 
>> forth. How do you do that? It does not seem to be as simple as replacing 
>> level with leve[index] (where index is 0, 1, etc) in the function probe's 
>> function name field. In my test setup, the function probe never changes from 
>> the default value, which is not one of the values in my vector source I'm 
>> using for testing. 
>> -- 
>> 
>> Sean Horton
>> 
>> ___
>> 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


Re: [Discuss-gnuradio] Using Function Probe To Get Value From Probe Signal Vector

2016-12-21 Thread Marcus Müller
Hi Sean,

you really shouldn't be doing that at all.

If you want to do signal processing, write a simple python block that
operates on a sample stream.

The signal probe is really just that, for sporadic "debug" and "display"
operation, not for any "useful" application.ö


Best regards,

Marcus


On 21.12.2016 17:30, Sean Horton wrote:
> I have a function probe to get an int from one block's output, and
> been using a function probe to get the value of the probe signal. I
> now want to have the block output a vector of ints, and use a probe
> signal vector to capture them, and nave a few function probes to get
> index 0, 1, and so forth. How do you do that? It does not seem to be
> as simple as replacing level with leve[index] (where index is 0, 1,
> etc) in the function probe's function name field. In my test setup,
> the function probe never changes from the default value, which is not
> one of the values in my vector source I'm using for testing. 
>
> -- 
> Sean Horton
>
>
>
> ___
> 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] How to link an external libraries to solve ImportError: undefined symbol problem?

2016-12-21 Thread Jeon
Dear Marcus Muller,

Your suggestion sovled my problem.
Thanks for your quick response.

Regards,
Jeon.

On Thu, Dec 22, 2016 at 1:00 AM, Marcus Müller 
wrote:

> Hi Jeon,
>
> There's a "B" at the end of your "include_directories", but I guess that's
> just a copy&paste problem here – otherwise, compilation would've failed.
>
> I think you need to use "${LIBBLUETOOTH_LIBRARIES}" in the
> target_link_libraries directive in your lib/CMakeLists.txt, not in
> link_directories in your main CMakeLists.txt.
>
> Best regards,
>
> Marcus
>
> On 21.12.2016 16:48, Jeon wrote:
>
> In my OOT module, I am using `libbluetooth-dev` library by BlueZ. I am
> using a couple of APIs of it such as `hci_read_clock`. I am using
> FindBluetooth cmake module (https://github.com/greatscott
> gadgets/ubertooth/blob/master/host/cmake/modules/FindBLUETOOTH.cmake) and
> I thought that I correctly linked the library.
>
> find_package(Bluetooth REQUIRED)
> if(NOT LIBBLUETOOTH_FOUND)
> message(FATAL_ERROR "bluez (libbluetooth-dev) required")
> endif()
>
> include_directories(
> ${CMAKE_SOURCE_DIR}/lib
> ${CMAKE_SOURCE_DIR}/include
> ${CMAKE_BINARY_DIR}/lib
> ${CMAKE_BINARY_DIR}/include
> ${Boost_INCLUDE_DIRS}
> ${CPPUNIT_INCLUDE_DIRS}
> ${GNURADIO_ALL_INCLUDE_DIRS}
> ${LIBBLUETOOTH_INCLUDE_DIR}B
> )
>
> link_directories(
> ${Boost_LIBRARY_DIRS}
> ${CPPUNIT_LIBRARY_DIRS}
> ${GNURADIO_RUNTIME_LIBRARY_DIRS}
> ${LIBBLUETOOTH_LIBRARIES}
> )
>
> And I successfully built and installed my OOT module. To test it, I made a
> simple flow graph but it fails to run. After some debugging, It seems that
> I reached at the dead end.
>
> Debug log:
>
> $ /usr/local/lib/python2.7/dist-packages/my_oot_module
> $ python my_oot_module_swig.py
> Traceback (most recent call last):
>   File "my_oot_module_swig.py", line 28, in 
> _my_oot_module_swig = swig_import_helper()
>   File "my_oot_module_swig.py", line 24, in swig_import_helper
> _mod = imp.load_module('_my_oot_module_swig', fp, pathname,
> description)
> ImportError: /usr/local/lib/libgnuradio-my_oot_module.so: undefined
> symbol: hci_read_clock
>
> I wonder that the above error is C++ level error or Python level error.
> And how can I fix it?
>
> If infromation given in this post is not sufficient, please let me know it.
>
> Regards,
> Jeon.
>
>
> ___
> Discuss-gnuradio mailing 
> listDiscuss-gnuradio@gnu.orghttps://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] Using Function Probe To Get Value From Probe Signal Vector

2016-12-21 Thread Sean Horton
I have a function probe to get an int from one block's output, and been
using a function probe to get the value of the probe signal. I now want to
have the block output a vector of ints, and use a probe signal vector to
capture them, and nave a few function probes to get index 0, 1, and so
forth. How do you do that? It does not seem to be as simple as replacing
level with leve[index] (where index is 0, 1, etc) in the function probe's
function name field. In my test setup, the function probe never changes
from the default value, which is not one of the values in my vector source
I'm using for testing.

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


Re: [Discuss-gnuradio] How to link an external libraries to solve ImportError: undefined symbol problem?

2016-12-21 Thread Marcus Müller
Hi Jeon,

There's a "B" at the end of your "include_directories", but I guess
that's just a copy&paste problem here – otherwise, compilation would've
failed.

I think you need to use "${LIBBLUETOOTH_LIBRARIES}" in the
target_link_libraries directive in your lib/CMakeLists.txt, not in
link_directories in your main CMakeLists.txt.

Best regards,

Marcus


On 21.12.2016 16:48, Jeon wrote:
> In my OOT module, I am using `libbluetooth-dev` library by BlueZ. I am
> using a couple of APIs of it such as `hci_read_clock`. I am using
> FindBluetooth cmake module
> (https://github.com/greatscottgadgets/ubertooth/blob/master/host/cmake/modules/FindBLUETOOTH.cmake
> )
> and I thought that I correctly linked the library.
>
> find_package(Bluetooth REQUIRED)
> if(NOT LIBBLUETOOTH_FOUND)
> message(FATAL_ERROR "bluez (libbluetooth-dev) required")
> endif()
>
> include_directories(
> ${CMAKE_SOURCE_DIR}/lib
> ${CMAKE_SOURCE_DIR}/include
> ${CMAKE_BINARY_DIR}/lib
> ${CMAKE_BINARY_DIR}/include
> ${Boost_INCLUDE_DIRS}
> ${CPPUNIT_INCLUDE_DIRS}
> ${GNURADIO_ALL_INCLUDE_DIRS}
> ${LIBBLUETOOTH_INCLUDE_DIR}B
> )
>
> link_directories(
> ${Boost_LIBRARY_DIRS}
> ${CPPUNIT_LIBRARY_DIRS}
> ${GNURADIO_RUNTIME_LIBRARY_DIRS}
> ${LIBBLUETOOTH_LIBRARIES}
> )
>
> And I successfully built and installed my OOT module. To test it, I
> made a simple flow graph but it fails to run. After some debugging, It
> seems that I reached at the dead end.
>
> Debug log:
>
> $ /usr/local/lib/python2.7/dist-packages/my_oot_module
> $ python my_oot_module_swig.py
> Traceback (most recent call last):
>   File "my_oot_module_swig.py", line 28, in 
> _my_oot_module_swig = swig_import_helper()
>   File "my_oot_module_swig.py", line 24, in swig_import_helper
> _mod = imp.load_module('_my_oot_module_swig', fp, pathname,
> description)
> ImportError: /usr/local/lib/libgnuradio-my_oot_module.so: undefined
> symbol: hci_read_clock
>
> I wonder that the above error is C++ level error or Python level
> error. And how can I fix it?
>
> If infromation given in this post is not sufficient, please let me
> know it.
>
> Regards,
> Jeon.
>
>
> ___
> 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] How to link an external libraries to solve ImportError: undefined symbol problem?

2016-12-21 Thread Jeon
In my OOT module, I am using `libbluetooth-dev` library by BlueZ. I am
using a couple of APIs of it such as `hci_read_clock`. I am using
FindBluetooth cmake module (https://github.com/greatscottgadgets/ubertooth/
blob/master/host/cmake/modules/FindBLUETOOTH.cmake) and I thought that I
correctly linked the library.

find_package(Bluetooth REQUIRED)
if(NOT LIBBLUETOOTH_FOUND)
message(FATAL_ERROR "bluez (libbluetooth-dev) required")
endif()

include_directories(
${CMAKE_SOURCE_DIR}/lib
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/lib
${CMAKE_BINARY_DIR}/include
${Boost_INCLUDE_DIRS}
${CPPUNIT_INCLUDE_DIRS}
${GNURADIO_ALL_INCLUDE_DIRS}
${LIBBLUETOOTH_INCLUDE_DIR}B
)

link_directories(
${Boost_LIBRARY_DIRS}
${CPPUNIT_LIBRARY_DIRS}
${GNURADIO_RUNTIME_LIBRARY_DIRS}
${LIBBLUETOOTH_LIBRARIES}
)

And I successfully built and installed my OOT module. To test it, I made a
simple flow graph but it fails to run. After some debugging, It seems that
I reached at the dead end.

Debug log:

$ /usr/local/lib/python2.7/dist-packages/my_oot_module
$ python my_oot_module_swig.py
Traceback (most recent call last):
  File "my_oot_module_swig.py", line 28, in 
_my_oot_module_swig = swig_import_helper()
  File "my_oot_module_swig.py", line 24, in swig_import_helper
_mod = imp.load_module('_my_oot_module_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-my_oot_module.so: undefined symbol:
hci_read_clock

I wonder that the above error is C++ level error or Python level error. And
how can I fix it?

If infromation given in this post is not sufficient, please let me know it.

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


[Discuss-gnuradio] FSK4 Demodulator - some guidance?

2016-12-21 Thread Mark Phillips

Hello Team,

Apologies for reposting this. My first attempt received a lot of e-mail 
bounces due to my strict e-mail security settings. I have now switched 
these off :-)


 Message 

Hello Team,

I am attempting to set up an FSK4 Demodulator.

I have downloaded OP25 from git://op25.osmocom.org/op25.git, however 
cmake is returning the following error messages:


*--*
Checking for module 'gnuradio-runtime'
Package 'gnuradio-runtime' not found
Could NOT find GNURADIO_RUNTIME (missing:  GNURADIO_RUNTIME_LIBRARIES)
GnuRadio Runtime required to compile op25
*--*

I can see "libgnuradio-runtime" in /usr/local/lib64/ and the cmake file 
includes this path.


1) Before I spend too much time trying to get this working, can anyone 
give me guidance on if I am heading down the right path? OR


2) Does anyone know of an FSK4 Demodulator that might work out of the 
box with GNURadio 3.7.10.1 ?


Thank you in advance for your help - and best wishes for the festive 
season !!


Regards,

Mark Phillips - VK4AW

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