discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Re: remark on custom block + python behavior on Beagl


From: Philip Balister
Subject: [Discuss-gnuradio] Re: remark on custom block + python behavior on Beagleboard
Date: Tue, 26 Oct 2010 18:43:15 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Thunderbird/3.1.4

On 10/25/2010 04:38 PM, Almohanad Fayez wrote:
Hi,  sent an email a while back about what I thought was a scheduler issue with 
gnuradio on the beagleboard.  Basically I've been writing custom GNU Radio 
block for the OMAP's DSP and running them on the beagleboard.  On occassions 
when I'm running multiple blocks, GNU Radio would parse my flowgraph but then 
get lost and never starts the flowgraph.  I've always thought it was an issue 
with my code but it turned out to be a python issue and I'm not sure if it's 
specific to my platform or python in general.

python  basically generates optimizied pre-interpred python files  *.pyo and *.pyc. and as it happens, some 
of these files are not refreshed when I make changes to my python source file I managed to debug the issue 
where at the point where gnuradio calls the c++ file that handles the swig call handling 
"gnuradio_swig_py_runtime.cc".  This file is able to detect the python block so the 
"custom_blocks.cc" file generated by the howto-write-a-custom-block auto tools.  then there is a 
call placed to the constructor "gr_basic_block.cc" and that's where gnuradio gets lost into 
oblivion.

I was able to finally fix this problem by writing a script that deletes all of 
the pyc and pyo files associated with my library and flowgraph.  my question 
is, is this a know python issue, an issue with the custom gnuradio block, or an 
issue with the platform?  I managed to recreate this problem using the custom 
block 3.2.1 and 3.2.2 templates and I was also able to recreate it by using the 
original how to square a number example.

Are you having real time clock issues? If you do not have the battery on your beagle, it will reset time each time you cycle power. That could explain what you are seeing. I installed the battery backup on mine to avoid this problem. You can also try to set the time over the network.

Philip


thanks.

al




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio





reply via email to

[Prev in Thread] Current Thread [Next in Thread]