[Discuss-gnuradio] SWIG Typemap for Two-way Conversion Between Python Stringand (char*, int) in C++
Hi, I've read that we can specify a typemap to change an input Python string to (char*,int) in C++. How do we specify a typemap for a C++ extension that also converts such strings from C++ to Python? I want to have C++ calls that receive strings from Python code as well as C++ calls that pass strings to Python code. Thanks, Jeremy ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] SWIG Typemap for Two-way Conversion Between Python Stringand (char*, int) in C++
On Fri, 2007-01-05 at 21:48 +0800, Jeremy Chew wrote: How do we specify a typemap for a C++ extension that also converts such strings from C++ to Python? I want to have C++ calls that receive strings from Python code as well as C++ calls that pass strings to Python code. The good news is that the standard SWIG library has already done most of the work for you. If you add: %include std_string.i ...in your .i file, then SWIG automagically (using typemaps) converts between the STL std::string type and Python strings. More documentation is here: http://www.swig.org/Doc1.3/Library.html ...where you'll see similar examples for converting between std::vector and Python lists, std::map and Python dictionaries, and more. -- Johnathan Corgan, AE6HO Corgan Enterprises LLC [EMAIL PROTECTED] ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Ideal AFE
There has been some discussion about fantasy hardware lately - especially with the cell processor. I know the AFE on the USRP is pretty feature rich, but I still pose this question to the group: If you could specify the AFE for a manufacturer to make, what features would it have? Sampling rate? 12, 14 or 16-bit ADC/DAC? AGC? CIC Filters? Etc. Brian ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Two outputs (sinks) from a single radio...Possible?
I have one very simple question. I want to know how I can tee the GNUradio flow graph. I mean, for example, I want to hear radio sound while recording the same data into a file. I want to know where I can find such example. Or, can I just switch them from time to time? Thank you for your help in advance. Regards, Mamoru Yamamoto [EMAIL PROTECTED] ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Heard FM on the basic RX hooray!
After some (perhaps needless) struggle I am happy to report I finally got to listen to some FM stations using the basic Rx. Some tips for the wary newcomer: 1. Dont try to build wxPython. It requires an act of God to get all the pieces together to make that happen. Instead install from the binary that you can get from wxPython.org. 2. You are best off inserting a wire into the connector for the Antenna. Radio shack does not cary a suitable antenna that fits into the connector. 3. You dont need anything more than a long wire as an RF Front End to just fiddle around and get some FM reception. So it actually works! That was the point of the exercise. I have the worlds most expensive FM radio finally (for the quality of sound I get from it anyway -- no this is not a complaint). I will now proceed to figure out the various pieces that make this all work. Rock and roll! ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Heard FM on the basic RX hooray!
On Fri, 2007-01-05 at 13:35 -0500, M. Ranganathan wrote: ...I have the worlds most expensive FM radio finally That's okay, I sometimes listen to the local AM BCB on my Icom PRO II HF transceiver--that's a (US) $2K+ equivalent of a crystal set :-) -- Johnathan Corgan, AE6HO Corgan Enterprises LLC [EMAIL PROTECTED] ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] usrp: rssi/clipping indicator, data glitches
On Thu, Jan 04, 2007 at 04:31:39PM -0500, Don Ward wrote: Questions: Should we expect usrp register read requests to interfere with data transfers? Is there a better way to access the rssi/clipping indicator? Will mblocks allow internal USRP information (such as the rssi registers) to be included in data packets read from the USRP? Until we switch to in-band signaling, register read/writes are handled using USB command packets which have higher priority than bulk transfers. They are are also implemented in the FX2 via relatively slow bit-banging code. While it's bit-banging, it's not forwarding packets between the GPIF and the USB bus. Given the small amount of FIFO implemented in the FPGA, under/overruns are possible. Eric ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Python question
On Thu, Jan 04, 2007 at 08:55:56PM -0800, Dan Halperin wrote: Hi, I know this isn't really a gnuradio question, but a half-hour on Google and browsing the Python site didn't find me the answer. What does ** in Python do? Not in the exponent context (2 ** 4 = 16). In particular, I'm looking at receive_path.py in the digital examples folder, the following code: As Tom said it allows dictionaries to be used for passing argument lists. Details on both * and ** can be found in the Python Language Reference here: http://docs.python.org/ref/function.html Eric ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Two outputs (sinks) from a single radio...Possible?
On Sat, Jan 06, 2007 at 03:00:48AM +0900, Mamoru Yamamoto wrote: I have one very simple question. I want to know how I can tee the GNUradio flow graph. I mean, for example, I want to hear radio sound while recording the same data into a file. I want to know where I can find such example. Or, can I just switch them from time to time? Thank you for your help in advance. Regards, Mamoru Yamamoto [EMAIL PROTECTED] src1 = gr.foo(...) dst1 = gr.bar(...) dst2 = gr.baz(...) fg.connect(src1, dst1) fg.connect(src1, dst2) The output of any block can be connected to any number of inputs of other blocks as long as the data type is correct. Eric ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Heard FM on the basic RX hooray!
On Saturday 06 January 2007 05:05, M. Ranganathan wrote: After some (perhaps needless) struggle I am happy to report I finally got to listen to some FM stations using the basic Rx. Some tips for the wary newcomer: 1. Dont try to build wxPython. It requires an act of God to get all the pieces together to make that happen. Instead install from the binary that you can get from wxPython.org. Unless you use pkgsrc in which case you just type make install in meta-pkgs/gnuradio. pkgsrc will build and install gnuradio including documentation, examples and all missing dependencies... :-) 2. You are best off inserting a wire into the connector for the Antenna. Radio shack does not cary a suitable antenna that fits into the connector. Get a SMA to BNC or SMA to N adapter which are available from Farnell, RS or much cheaper on Ebay! It makes life so much easier! I've installed the USRP and all accessories inside a 19 rackmount enclosure. 3. You dont need anything more than a long wire as an RF Front End to just fiddle around and get some FM reception. Yep, that how I started. However, a low noise broadband amplifier will bring very subtle improvements. I have a RFA-403 low noise broadband amplifier (0.01-2.0GHz) that is used as a LNA and exciter amplifier. Its low cost (29,90 EUR), easy to build kit available from http://www.funkamateur.de So it actually works! That was the point of the exercise. I have the worlds most expensive FM radio finally (for the quality of sound I get from it anyway -- no this is not a complaint). I will now proceed to figure out the various pieces that make this all work. Now that you've got this far, I'm sure there are many other applications for you to explore and enjoy. cheerio Berndt ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Recompiling FPGA with Quartus 6.1 tool
I was trying to recompile the usrp_std.v just to try out the tools, since we plan to make future changes to the FPGA. However only Quartus II v6.1 is available on the Altera website. It compiles and synthesizes fine, but it ends up with 15501 blocks of type logic cell which just won't fit into the 12060 block EP1C12Q240C8N. Is there a compile setting that needs to be set or something edited in the source to get the logic cell size down so it will fit into the USRP FPGA? Thanks Jim Murashige, Rosum ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Recompiling FPGA with Quartus 6.1 tool
On Fri, Jan 05, 2007 at 06:36:42PM -0800, Jim Murashige wrote: I was trying to recompile the usrp_std.v just to try out the tools, since we plan to make future changes to the FPGA. However only Quartus II v6.1 is available on the Altera website. It compiles and synthesizes fine, but it ends up with 15501 blocks of type logic cell which just won't fit into the 12060 block EP1C12Q240C8N. Is there a compile setting that needs to be set or something edited in the source to get the logic cell size down so it will fit into the USRP FPGA? Thanks Jim Murashige, Rosum Hi Jim, This is news to me. Did you use our project file? If so, this sounds like a regression in Quartus. Last time I built everything I used Quartus 6.0sp1. I suggest sending email to somebody at Altera and asking for a link to the earlier version. Eric ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio