Re: [Discuss-gnuradio] How to split an image or video into a number of packets?

2014-07-28 Thread Martin Braun
This is a really open question. How do you want to transmit? If you use
OFDM, you can simply prepend a stream to tagged stream block.

M

On 07/28/2014 08:09 AM, Nguyễn Văn Lý wrote:
> Hi all,
> 
> I want to transmit an image/video from one node to another node using
> GNUradio, but I don't know how to divide an image or video into multiple
> packets. I want to make it real time in the sense that an image/video is
> loaded, divided in to multiple packets and then transmitted
> continuously. Can any one tell me how to do this in GNUradio?
> Thank you very much
> Van-Ly
> 
> Van-Ly Nguyen,
> Signals and Systems of Laboratory - SSL  
> Faculty of Electronics and Telecommunications - FET 
> University of Engineering and Technology - UET  
> Vietnam National University, Hanoi - VNU  
> 
> Tel: (+84) 978 819 406
> 
> 
> 
> ___
> 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] spectrum record

2014-07-28 Thread Martin Braun
BTW, 12.04 is perfectly fine for GNU Radio dev.

M

On 07/28/2014 05:24 AM, gsmandvoip wrote:
> Hi Marcus, list,
> Thanks for swift response.
> You are right about openBTS, but at the same time I am using really old
> system (12.04) havent formatted for years due to its required
> installation, which can turn into real time consuming tasks thats why
> dragging it as long as I can avoid above situation.
> Now Decimation, yes its seems right to me as well, but when I am trying
> to decode I am getting SCH errors (I am using channelizer.py given in GR
> example directory for this purpose) with following configuration
> channels= 10
> sample rate= clock rate/decimation
> pfb decimation= 4
> OSR= channels/pfb decimation= 2.5
> 
> but when I am recording single frequency with 156 decimation, it works
> just fine.
> partially I believe this question belongs to airprobe mailing list, but
> think there is very little or null development on it, thus thought to
> coin it here, a much active list.
> I want to make sure I am not doing anything wrong in spectrum recording
> and channelizing afterwards once it comes to airprobe, will give a head on
> Also if libusrp is the only bottelneck for me, I will change my system
> configuration and install GR-3.6 (which I think supports openBTS and UHD
> as well)
> at moment I am moving like headless chicken between GR and airprobe, not
> sure who is and what is going wrong, please spread some light here.
> Thankyou
> 
> 
> ___
> 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] [USRP-users] USRP-users Digest, Vol 47, Issue 27

2014-07-28 Thread Martin Braun
On 07/27/2014 06:59 PM, Marcus Müller wrote:
> Hi Mike, is it possible that you are responding to my response on
> gnuradio by replying to the usrp-users digest?
> I'm a little confused...

Yeah, please don't do that.

M


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


Re: [Discuss-gnuradio] AttributeError: 'module' object has no attribute

2014-07-28 Thread Martin Braun
On 07/27/2014 06:17 PM, Mike wrote:
> I followed the tutorial to generate a module and all was well. My square
> module worked. I then created a new module invert_bb. This also worked.
> So far so good. Now a few days later on I get AttributeError: 'module'
> object has no attribute 'invert_bb' and I have no clue as to why. The
> previous QA tests that passed before now fail. I have not been able to
> find much documentation and Google does not seem to help, lots of people
> with this error, no solutions. Any idea why something would work one day
> and not the next?

Mike,

the QA infrastructure works in a isolated environment, and doesn't need
installing. So get that working first. I'm assuming you have a qa test
named qa_invert_bb.py. So, make sure your GNU Radio install is OK, then
go to your OOT's build dir, and run

$ ctest -V -R invert_bb

(see the tutorial page
http://gnuradio.org/redmine/projects/gnuradio/wiki/TutorialsDebugging
for an explanation).

The error message output will help you debug your problem.

M


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


Re: [Discuss-gnuradio] Persistence Checkbox of WX GUI Scope Plot

2014-07-28 Thread Martin Braun
As Tom said,

we haven't changed the WX widgets recently.

Out of curiosity, what do you want that feature on a scope sink for?
Are you plotting eye diagrams?

M

On 07/27/2014 04:10 PM, Activecat wrote:
> Dear Sir,
> 
> It is found that in newer version of gnuradio, the WX GUI Scope Sink
> doesn't have a "Persistence" checkbox.
> In this case how to get back the feature ..?
> 
> 
> ___
> 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] Persistence Checkbox of WX GUI Scope Plot

2014-07-28 Thread Activecat
Previously I installed gnuradio using build-gnuradio, but recently I
install gnuradio using pybombs.
This Thursday I will go to office to check whether python-opengl has been
installed by pybombs.

Sometime I use WX GUI Scope Sink to get constellation plot, and turn on
"Persistence" to observe the "rotation" due to frequency offset.


On Mon, Jul 28, 2014 at 4:42 PM, Martin Braun 
wrote:

> As Tom said,
>
> we haven't changed the WX widgets recently.
>
> Out of curiosity, what do you want that feature on a scope sink for?
> Are you plotting eye diagrams?
>
> M
>
> On 07/27/2014 04:10 PM, Activecat wrote:
> > Dear Sir,
> >
> > It is found that in newer version of gnuradio, the WX GUI Scope Sink
> > doesn't have a "Persistence" checkbox.
> > In this case how to get back the feature ..?
> >
> >
> > ___
> > 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] Fwd: Problem with large number of inputs.

2014-07-28 Thread Mostafa Alizadeh
-- Forwarded message --
From: Mostafa Alizadeh 
Date: Mon, Jul 28, 2014 at 7:21 PM
Subject: Re: [Discuss-gnuradio] Problem with large number of inputs.
To: Activecat 


Dear Activecat,

I run the whole GNURadio C++ codes in Qtcreator without any problem by
adding these lines to its .pro file:

LIBS += /usr/lib/libboost_signals.so\

/usr/lib/libboost_signals.so.1.48.0\

/usr/lib/libboost_system-mt.so\

/usr/lib/libboost_system.so\

/usr/lib/libboost_system.so.1.48.0\

/usr/lib/libboost_thread-mt.so\

/usr/lib/libboost_thread.so\

/usr/lib/libboost_thread.so.1.48.0\

/usr/lib/libboost_timer-mt.so\

/usr/lib/libboost_timer.so\

-L/usr/local/lib -lgnuradio-audio -lgnuradio-runtime -lgnuradio-pmt
-lgnuradio-blocks -lgnuradio-filter

LIBS+= -L/usr/local/lib -lgnuradio-analog -lgnuradio-runtime
-lgnuradio-pmt -lgnuradio-audio -lgnuradio-blocks -lgnuradio-filter

LIBS+=-lboost_system -lboost_thread-mt -lboost_thread
-lboost_filesystem-mt -lboost_filesystem -lgnuradio-qtgui
-lgnuradio-fft


LIBS += -lfftw3f -lfftw3   \




I didn't reveal the big picture because I thought I doesn't help to
figure out the problem :)


I finally found the problem! That was so hard to me to do so! I
suddenly recognized that the proceeding block which is connected to
input ports of this block , have a problem and that is, I set the item
sizes of the previous blocks output as gr_complex  but in its work
function I set the pointer to the ouput_items  as  "byte" instead of
gr_complex!!!


Anyway, I have to thank all of you following my questions sincerely.


Best,

Mostafa




On Mon, Jul 28, 2014 at 8:46 AM, Activecat  wrote:

> Mostafa,
>
> I do not think you have truly run the complete codes using Qtcreator,
> because that doesn't have a gnuradio runtime (the scheduler).
> At the other hand, your problem sounds more like a c++ coding error rather
> than gnuradio-specific.
> The helpful approach is
>
> 1).  Put up the OOT into github.
>   This should be the simplest but complete OOT.
>
> 2).  Provide a big picture of what you try to accomplish.
>   From experience many amateur programmers write codes wrong from the
> ground up, and yet expect others to troubleshoot.
>   When this happens, the only way to help is to start with the big
> picture of what you wish to accomplish.
>
> From previous experience you refused to reveal the big picture but
> emphasize others to look at your existing buggy codes.
> Please be reminded that this is an open forum and nobody get paid for
> helping you.
>
>
> On Mon, Jul 28, 2014 at 7:39 AM, Mostafa Alizadeh 
> wrote:
>
>> I forgot to say, I'm using Qtcreator to debug my GNURadio codes I do not
>> need any others!
>>
>>  The prgram is terminated at line in which I read from the input for the
>> first time i.e. :
>>
>> y_p[i][k] = 0;
>> for (int j=0; j> {
>> y_p[i][k] = y_p[i][k] + in[i*8+j][k];
>> }
>>
>> Best,
>>
>>
>> On Mon, Jul 28, 2014 at 4:05 AM, Mostafa Alizadeh > > wrote:
>>
>>> Yes you're right about casting between "in" and "input_items", however,
>>> I think this problem is somehow related to the large number input ports! I
>>> don't why!
>>>
>>> Here is the whole block:
>>>
>>> #ifdef HAVE_CONFIG_H
>>> #include "config.h"
>>> #endif
>>>
>>> #include 
>>> #include "phich_grouping_impl.h"
>>>
>>> int N_FS_phich(bool normal_cp){
>>> if(normal_cp)
>>> return 8;
>>> else
>>> return 4;
>>> }
>>>
>>> namespace gr {
>>>   namespace my {
>>>
>>> phich_grouping::sptr
>>> phich_grouping::make(bool normal_cp, int N_phich_group)
>>> {
>>>   return gnuradio::get_initial_sptr
>>> (new phich_grouping_impl(normal_cp, N_phich_group));
>>> }
>>>
>>> /*
>>>  * The private constructor
>>>  */
>>> phich_grouping_impl::phich_grouping_impl(bool normal_cp, int
>>> N_phich_group)
>>>   : gr::block("phich_grouping",
>>>   gr::io_signature::make(N_phich_group *
>>> N_FS_phich(normal_cp), N_phich_group * N_FS_phich(normal_cp) ,
>>> sizeof(gr_complex)),
>>>   gr::io_signature::make(1, 1, sizeof(gr_complex))),
>>>   d_normal_cp(normal_cp),
>>>   d_N_phich_group(N_phich_group)
>>> {
>>> set_tag_propagation_policy(TPP_DONT);
>>>
>>> }
>>>
>>> /*
>>>  * Our virtual destructor.
>>>  */
>>> phich_grouping_impl::~phich_grouping_impl()
>>> {
>>> }
>>>
>>> void
>>> phich_grouping_impl::forecast (int noutput_items, gr_vector_int
>>> &ninput_items_required)
>>> {
>>> for (int i=0; i>> {
>>> ninput_items_required[i] = 12;
>>> }
>>> }
>>>
>>> int
>>> phich_grouping_impl::general_work (int noutput_items,
>>>gr_vector_int &ninput_items,
>>>gr_vector_const_void_star &input_items,
>>>gr_vector_void_star &output_items)
>>> {
>>> const gr_compl

[Discuss-gnuradio] FW: GNU Radio Calling Registers

2014-07-28 Thread Aaron Henderson
 

Hello All,

 

I am going through the process of decimating a signal in my FPGA code.

 

In the Verilog code I will make use of the add_routing_header module in
vita_rx_chain.v.

 

I found this link regarding the FPGA registers:
http://gnuradio.org/redmine/projects/gnuradio/wiki/UsrpFAQFpgaRegs.

 

My questions are: 

 

1.   Is this link useful and/or does it pertain to the N210?

2.   Are the io_rx_a  io_rx_b the methods on this page that would be
most useful?

3.   Can someone explain the connection between the registers in the
FPGA and GNU Radio code?

 

Thanks for any Help

Aaron

 

 

 

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


[Discuss-gnuradio] Image Reading and Writing in GNU Radio

2014-07-28 Thread Hoang Ngo-Khac



Dear all,
I want to transmit an image over wireless link, so I need two blocks: + one for 
reading grayscale image and giving out a bit stream+ the other one take a bit 
stream as input and rebuild the image
Is there any completed toolbox containing blocks employing these functions? If 
none, could you give me some clue for writing my necessary blocks?
Thanks in advance,Hoang

Hoang Ngo-KhacVietnam National University, Hanoi (VNU-H) - Univ. of Engineering 
and Technology (UET)Faculty of Electronics and Telecommunications 
(FET)Alternative email:  khachoang1...@gmail.com, 
hoangnk...@vnu.edu.vnMobilephone:  +84.163.682.7874
  ___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] New WX GUI Scope Sink

2014-07-28 Thread Activecat
On Sun, Jul 27, 2014 at 10:58 PM, Tom Rondeau  wrote:

> On Sun, Jul 27, 2014 at 10:36 AM, Activecat  wrote:
>
>> Dear Sir,
>>
>> The new WX GUI Scope Sink behaves slightly differently from the previous
>> one.
>> How come it only plots the center part (as circled), how to make it plot
>> the full graph without changing the time/div of x-axis?
>>
>
>
> Activecat,
>
> We haven't changed anything in the wxgui for quite some time. My guess
> from this and your last post is that it's either a version issue of
> wxWidgets/wxPython on your machine or that you are not using the OpenGL
> versions of the pltoters. Check to make sure that python-opengl is
> installed.
>
> Tom
>


Yes, as you expected, the python-opengl had not been installed.
After installing it, many weird appearance of wxgui are back to normal.

Thank you very much.

Note:
Above problems happen when I install gnuradio using pybombs, regardless of
whether "maint" or "master" branch is installed.
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Persistence Checkbox of WX GUI Scope Plot

2014-07-28 Thread Activecat
Thanks, the problem is solved after manually installing python-opengl.
The "Persistence" checkbox is back to normal, and works correctly.


On Mon, Jul 28, 2014 at 6:27 PM, Activecat  wrote:

> Previously I installed gnuradio using build-gnuradio, but recently I
> install gnuradio using pybombs.
> This Thursday I will go to office to check whether python-opengl has been
> installed by pybombs.
>
> Sometime I use WX GUI Scope Sink to get constellation plot, and turn on
> "Persistence" to observe the "rotation" due to frequency offset.
>
>
> On Mon, Jul 28, 2014 at 4:42 PM, Martin Braun 
> wrote:
>
>> As Tom said,
>>
>> we haven't changed the WX widgets recently.
>>
>> Out of curiosity, what do you want that feature on a scope sink for?
>> Are you plotting eye diagrams?
>>
>> M
>>
>> On 07/27/2014 04:10 PM, Activecat wrote:
>> > Dear Sir,
>> >
>> > It is found that in newer version of gnuradio, the WX GUI Scope Sink
>> > doesn't have a "Persistence" checkbox.
>> > In this case how to get back the feature ..?
>> >
>> >
>> > ___
>> > 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