[Discuss-gnuradio] GNU Radio at Chaos Communication Camp 2011
Hello! I'll be attending the Chaos Communication Camp 2011 near Berlin in August[1]. I hope to see some GNU Radio people there. Someone else who intends to be there too? Is there a village where the probability for meeting GNU Radio people is extraordinary high? Regards Patrick [1] http://events.ccc.de/camp/2011/ -- Engineers motto: cheap, good, fast: choose any two Patrick Strasser patrick dot strasser at student dot tugraz dot at Student of Telemati_cs_, Techn. University Graz, Austria ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] GNU Radio at Chaos Communication Camp 2011
Hi Patrick, I bet Thomas (DL9SAU) will be there: http://www.chaoswelle.de/Benutzer:DL9SAU and I bet, the Deutscher Amateur Radio Club will be present there. Thomas is head of the DARC district of Berlin. He's also a CCC representative, afaik. br Markus dl8rds Am Donnerstag, den 07.07.2011, 10:01 +0200 schrieb Patrick Strasser: Hello! I'll be attending the Chaos Communication Camp 2011 near Berlin in August[1]. I hope to see some GNU Radio people there. Someone else who intends to be there too? Is there a village where the probability for meeting GNU Radio people is extraordinary high? Regards Patrick [1] http://events.ccc.de/camp/2011/ ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Underflow errors
Hi all I would like to know if anyone knows what the possible causes are for an underflow message to be printed out by the UHD device when using GNUradio companion and how to solve it. Any valuable information will be greatly appreciated. Thanks in advance Dan ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Receive GPS L1 Signal
Hello Eduardo, i have to mention i'm a newbie in this domain. but if i can help, no problem. use e-mail contact me. Eddie 2011/7/5 Eduardo Lloret Fuentes mall...@gmail.com Hello Eddie, I will try the same thing in a few weeks but using the USRP2 board. I hope your work is going great. Do you mind if I contact you for advice? Greetings. Eduardo. 2011/6/24 Marcus D. Leech mle...@ripnet.com ** On 06/24/2011 03:03 AM, Eddie Sun wrote: Thanks for the reply, but i still have some questions. 2011/6/21 John Andrews gnu.f...@gmail.com A USRP is a baseband IF receiver. Tune it to the GPS L1 frequency with the right decimation rate so that you have your band of interest selected. This should give you the IF signal. The source block that i used is the UHD:usrp_source block for USRP N210 in gniradio companion, after setting the frequency to L1 frequency 1575.42MHz, there is no decimation term can be set in the block(only usrp1_source and usrp2_source block have that term, not uhd), so should i use the Rational resampler block to instead of it? or other method to complete the decimation. The flow graph will only be UHD:usrp_source block→Rational resampler→File sink is that right? And I'm still a little confused, why i don't need to down convert the frequency but just do the decimation, i thought decimation is to slowdown the sample rate. Is that mean the flow graph output from UHD:usrp_source block is already a IF signal? If this is true, what is that signal frequency? It can't still have the 1575.42MHz if it's a IF signal, isn't it? Thanks, Eddie In UHD, you set the sample-rate of the source block, not the decimation. The UHD code determines the appropriate decimation to use based on what it knows about the device. The USRP hardware stack arranges for the signal of interest to appear as *complex baseband* signal, in which the signal goes from -bandwidth/2 to +bandwidth/2, which uses the I and Q signal representation. The IF is 0Hz in this case. You shouldn't need to re-sample to process the resulting baseband signal. This baseband I and Q signal format is *extremely* common in modern DSP systems for RF. For more background, you should look up the terms direct conversion receiver, and quadrature mixer on Google. -- Principal Investigator Shirleys Bay Radio Astronomy Consortiumhttp://www.sbrac.org ___ 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] GNU Radio at Chaos Communication Camp 2011
Hi, I will be going and probably take a few others from The Netherlands with me. I organized a gnuradio workshop on HAR2009 together with Pascal Schiks. Maybe we will do that again on CCC. I will be taking about a dozen USRPs, daughterboards, clocktamers, antennas and OpenBTS desktop kits with me. They can be used for workshops and I also sell them. Maybe we should start a gnuradio village. Regards, Martin Dudok van Heel Olifantasia On Thu, 2011-07-07 at 10:01 +0200, Patrick Strasser wrote: Hello! I'll be attending the Chaos Communication Camp 2011 near Berlin in August[1]. I hope to see some GNU Radio people there. Someone else who intends to be there too? Is there a village where the probability for meeting GNU Radio people is extraordinary high? Regards Patrick [1] http://events.ccc.de/camp/2011/ ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] help: UHD, gnuradio and USRP
Dear all i have a usrp and i have installed the uhd and gnuradio 3.2 when i use sudo uhd_usrp_probe in the terminal i have this output: ziedan@ubuntu:~/Desktop$ sudo uhd_usrp_probe linux; GNU C++ version 4.4.3; Boost_104000; UHD_003.001.002-a3e1cb7 -- Loading firmware image: /usr/local/share/uhd/images/usrp1_fw.ihx... done -- Opening a USRP1 device... -- Loading FPGA image: /usr/local/share/uhd/images/usrp1_fpga.rbf... done _ / | Device: usrp1 device | _ |/ | | Mboard: usrp1 mboard - 4d9dfb1f | | serial: 4d9dfb1f | | _ | |/ | | | RX DSP: usrp1 ddc0 + hb | | | Codec Rate: 64.00 Msps | | _ | |/ | | | RX DSP: usrp1 ddc1 + hb | | | Codec Rate: 64.00 Msps | | _ | |/ | | | RX Dboard: usrp1 dboard (rx unit) - A | | | ID: WBX, WBX + Simple GDB (0x0053) | | | _ | | |/ | | | | RX Subdev: WBX RX + Simple GDB | | | | Antennas: TX/RX, RX2 | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB | | | | Connection Type: C | | | | Uses LO offset: No | | | _ | | |/ | | | | RX Codec: usrp1 adc - ad9862 - slot A | | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB | | _ | |/ | | | RX Dboard: usrp1 dboard (rx unit) - B | | | ID: RFX2400 (0x0027) | | | Serial: E5R10Z8R2 | | | _ | | |/ | | | | RX Subdev: RFX2400 (0x0027) | | | | Antennas: TX/RX, RX2 | | | | Freq range: 2300.000 to 2900.000 Mhz | | | | Gain range PGA0: 0.0 to 70.0 step 0.0 dB | | | | Connection Type: c | | | | Uses LO offset: No | | | _ | | |/ | | | | RX Codec: usrp1 adc - ad9862 - slot B | | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB | | _ | |/ | | | TX DSP: usrp1 duc0 | | | Codec Rate: 64.00 Msps | | _ | |/ | | | TX DSP: usrp1 duc1 | | | Codec Rate: 64.00 Msps | | _ | |/ | | | TX Dboard: usrp1 dboard (tx unit) - A | | | ID: WBX (0x0052) | | | _ | | |/ | | | | TX Subdev: WBX TX + Simple GDB | | | | Antennas: TX/RX | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 25.0 step 0.1 dB | | | | Connection Type: C | | | | Uses LO offset: No | | | _ | | |/ | | | | TX Codec: usrp1 dac - ad9862 - slot A | | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB | | _ | |/ | | | TX Dboard: usrp1 dboard (tx unit) - B | | | ID: RFX2400 (0x002b) | | | Serial: E5R10Z8R2 | | | _ | | |/ | | | | TX Subdev: RFX2400 (0x002b) | | | | Antennas: TX/RX | | | | Freq range: 2300.000 to 2900.000 Mhz | | | | Gain Elements: None | | | | Connection Type: C | | | | Uses LO offset: Yes | | | _ | | |/ | | | | TX Codec: usrp1 dac - ad9862 - slot B | | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB and when i am running any python script i have this error: Warning: Treating daughterboard with invalid EEPROM contents as if it were a Basic Rx. Warning: This is almost certainly wrong... Use appropriate burn-*-eeprom utility. Using RX d'board A: Unknown (0x0053) so what is the solution ?? thanks a lot ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] help: UHD, gnuradio and USRP
On Thu, Jul 7, 2011 at 6:23 AM, Eng.Ziedan eng.zie...@gmail.com wrote: Dear all i have a usrp and i have installed the uhd and gnuradio 3.2 gnuradio 3.2 does not have the UHD blockset, you need to install gnuradio from source to use UHD: http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Gnuradio-UHD It looks like you have UHD installed successfully already and when i am running any python script i have this error: Warning: Treating daughterboard with invalid EEPROM contents as if it were a Basic Rx. Warning: This is almost certainly wrong... Use appropriate burn-*-eeprom utility. Using RX d'board A: Unknown (0x0053) so what is the solution ?? This error is because the python script you ran is trying to access the usrp + WBX with libusrp1 from gnuradio 3.2, which does not support WBX. Jason ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] help: UHD, gnuradio and USRP
On 07/07/2011 9:23 AM, Eng.Ziedan wrote: Dear all i have a usrp and i have installed the uhd and gnuradio 3.2 when i use sudo uhd_usrp_probe in the terminal i have this output: ziedan@ubuntu:~/Desktop$ sudo uhd_usrp_probe linux; GNU C++ version 4.4.3; Boost_104000; UHD_003.001.002-a3e1cb7 -- Loading firmware image: /usr/local/share/uhd/images/usrp1_fw.ihx... done -- Opening a USRP1 device... -- Loading FPGA image: /usr/local/share/uhd/images/usrp1_fpga.rbf... done _ / | Device: usrp1 device | _ |/ | | Mboard: usrp1 mboard - 4d9dfb1f | | serial: 4d9dfb1f | | _ | |/ | | | RX DSP: usrp1 ddc0 + hb | | | Codec Rate: 64.00 Msps | | _ | |/ | | | RX DSP: usrp1 ddc1 + hb | | | Codec Rate: 64.00 Msps | | _ | |/ | | | RX Dboard: usrp1 dboard (rx unit) - A | | | ID: WBX, WBX + Simple GDB (0x0053) | | | _ | | |/ | | | | RX Subdev: WBX RX + Simple GDB | | | | Antennas: TX/RX, RX2 | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB | | | | Connection Type: C | | | | Uses LO offset: No | | | _ | | |/ | | | | RX Codec: usrp1 adc - ad9862 - slot A | | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB | | _ | |/ | | | RX Dboard: usrp1 dboard (rx unit) - B | | | ID: RFX2400 (0x0027) | | | Serial: E5R10Z8R2 | | | _ | | |/ | | | | RX Subdev: RFX2400 (0x0027) | | | | Antennas: TX/RX, RX2 | | | | Freq range: 2300.000 to 2900.000 Mhz | | | | Gain range PGA0: 0.0 to 70.0 step 0.0 dB | | | | Connection Type: c | | | | Uses LO offset: No | | | _ | | |/ | | | | RX Codec: usrp1 adc - ad9862 - slot B | | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB | | _ | |/ | | | TX DSP: usrp1 duc0 | | | Codec Rate: 64.00 Msps | | _ | |/ | | | TX DSP: usrp1 duc1 | | | Codec Rate: 64.00 Msps | | _ | |/ | | | TX Dboard: usrp1 dboard (tx unit) - A | | | ID: WBX (0x0052) | | | _ | | |/ | | | | TX Subdev: WBX TX + Simple GDB | | | | Antennas: TX/RX | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 25.0 step 0.1 dB | | | | Connection Type: C | | | | Uses LO offset: No | | | _ | | |/ | | | | TX Codec: usrp1 dac - ad9862 - slot A | | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB | | _ | |/ | | | TX Dboard: usrp1 dboard (tx unit) - B | | | ID: RFX2400 (0x002b) | | | Serial: E5R10Z8R2 | | | _ | | |/ | | | | TX Subdev: RFX2400 (0x002b) | | | | Antennas: TX/RX | | | | Freq range: 2300.000 to 2900.000 Mhz | | | | Gain Elements: None | | | | Connection Type: C | | | | Uses LO offset: Yes | | | _ | | |/ | | | | TX Codec: usrp1 dac - ad9862 - slot B | | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB and when i am running any python script i have this error: Warning: Treating daughterboard with invalid EEPROM contents as if it were a Basic Rx. Warning: This is almost certainly wrong... Use appropriate burn-*-eeprom utility. Using RX d'board A: Unknown (0x0053) so what is the solution ?? thanks a lot The solution is to use programs that understand the UHD API, or to convert the programs that you're interested in to use UHD. What happens if you use a simple uhd_fft.py on your system? ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] help: UHD, gnuradio and USRP
On 07/07/2011 9:49 AM, Marcus D. Leech wrote: On 07/07/2011 9:23 AM, Eng.Ziedan wrote: Dear all i have a usrp and i have installed the uhd and gnuradio 3.2 when i use sudo uhd_usrp_probe in the terminal i have this output: ziedan@ubuntu:~/Desktop$ sudo uhd_usrp_probe linux; GNU C++ version 4.4.3; Boost_104000; UHD_003.001.002-a3e1cb7 -- Loading firmware image: /usr/local/share/uhd/images/usrp1_fw.ihx... done -- Opening a USRP1 device... -- Loading FPGA image: /usr/local/share/uhd/images/usrp1_fpga.rbf... done _ / | Device: usrp1 device | _ |/ | | Mboard: usrp1 mboard - 4d9dfb1f | | serial: 4d9dfb1f | | _ | |/ | | | RX DSP: usrp1 ddc0 + hb | | | Codec Rate: 64.00 Msps | | _ | |/ | | | RX DSP: usrp1 ddc1 + hb | | | Codec Rate: 64.00 Msps | | _ | |/ | | | RX Dboard: usrp1 dboard (rx unit) - A | | | ID: WBX, WBX + Simple GDB (0x0053) | | | _ | | |/ | | | | RX Subdev: WBX RX + Simple GDB | | | | Antennas: TX/RX, RX2 | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB | | | | Connection Type: C | | | | Uses LO offset: No | | | _ | | |/ | | | | RX Codec: usrp1 adc - ad9862 - slot A | | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB | | _ | |/ | | | RX Dboard: usrp1 dboard (rx unit) - B | | | ID: RFX2400 (0x0027) | | | Serial: E5R10Z8R2 | | | _ | | |/ | | | | RX Subdev: RFX2400 (0x0027) | | | | Antennas: TX/RX, RX2 | | | | Freq range: 2300.000 to 2900.000 Mhz | | | | Gain range PGA0: 0.0 to 70.0 step 0.0 dB | | | | Connection Type: c | | | | Uses LO offset: No | | | _ | | |/ | | | | RX Codec: usrp1 adc - ad9862 - slot B | | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB | | _ | |/ | | | TX DSP: usrp1 duc0 | | | Codec Rate: 64.00 Msps | | _ | |/ | | | TX DSP: usrp1 duc1 | | | Codec Rate: 64.00 Msps | | _ | |/ | | | TX Dboard: usrp1 dboard (tx unit) - A | | | ID: WBX (0x0052) | | | _ | | |/ | | | | TX Subdev: WBX TX + Simple GDB | | | | Antennas: TX/RX | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 25.0 step 0.1 dB | | | | Connection Type: C | | | | Uses LO offset: No | | | _ | | |/ | | | | TX Codec: usrp1 dac - ad9862 - slot A | | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB | | _ | |/ | | | TX Dboard: usrp1 dboard (tx unit) - B | | | ID: RFX2400 (0x002b) | | | Serial: E5R10Z8R2 | | | _ | | |/ | | | | TX Subdev: RFX2400 (0x002b) | | | | Antennas: TX/RX | | | | Freq range: 2300.000 to 2900.000 Mhz | | | | Gain Elements: None | | | | Connection Type: C | | | | Uses LO offset: Yes | | | _ | | |/ | | | | TX Codec: usrp1 dac - ad9862 - slot B | | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB and when i am running any python script i have this error: Warning: Treating daughterboard with invalid EEPROM contents as if it were a Basic Rx. Warning: This is almost certainly wrong... Use appropriate burn-*-eeprom utility. Using RX d'board A: Unknown (0x0053) so what is the solution ?? thanks a lot The solution is to use programs that understand the UHD API, or to convert the programs that you're interested in to use UHD. What happens if you use a simple uhd_fft.py on your system? And I just noticed that you mentioned Gnu Radio 3.2. I was assuming that you'd installed from recent source. You'll need the very latest Gnu Radio. If you don't mind starting over from the beginning, you can download the following script:
Re: [Discuss-gnuradio] help: UHD, gnuradio and USRP
And I just noticed that you mentioned Gnu Radio 3.2. I was assuming that you'd installed from recent source. You'll need the very latest Gnu Radio. If you don't mind starting over from the beginning, you can download the following script: http://www.sbrac.org/files/build-gnuradio Which will take care of building everything, installing, and making certain that you have the pre-requisites. It will also uninstall anything you've installed as a packaged binary, so that there won't be any conflicts. Hi Marcus, I have got some problem with my GNURadio+UHD installation. I have seen you mentioned this script for installation several times, I am curious about how to use this script to easily install GNU Radio+UHD? Really appreciate your help! Thanks, Yan ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Underflow errors
On 07/07/2011 03:09 AM, Danie Jonker wrote: Hi all I would like to know if anyone knows what the possible causes are for an underflow message to be printed out by the UHD device when using GNUradio companion and how to solve it. Any valuable information will be greatly appreciated. Hope this helps: http://www.ettus.com/uhd_docs/manual/html/general.html#overflow-underflow-notes Also, you may consider enabling real-time prio in your flow graph options. -Josh ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Daughter Board ID List
Thanks for your quick response Marcus! I neglected to mention that I am trying to support research that inherits code requiring the classic GNU Radio system. I fully intend on using UHD expressly for the reasons you specified once the PhD I'm working with has finished and moved on. Since I'm only writing toy programs at the moment it's not imperative that my daughter board probe be 100% functional: I'm only writing these to gain experience. But I was curious to know if there was a more specific list of daughter boards I may use. It sounds like I'm not getting the proper ID due to waning support of the classic system. Correct? Thanks again, Ryan On Wed, Jul 6, 2011 at 10:11 PM, Marcus D. Leech mle...@ripnet.com wrote: Hello everyone, I'm just diving into the GNU Radio/Python world and have been doing some Hello World sort of exercises to become more familiar. Currently I'm working on a python program to pole my USRP2 and return pertinent daughter board information. I am running GNU Radio 3.4.1 on Ubuntu 10.04.2 LTS. My question is: is there a well defined list of daughter board IDs that I can reference? Currently I am using the information contained in /usrp/host/lib/usrp_dbid.cc as my reference for the board IDs, but it doesn't match what the daughter board returns when I call my_usrp2.daughterboard_id(). From what I have read on the mailing list, there are some inconsistencies with daughter board names (e.g. 0x being switched to no daughter board instead of experimental). Can anyone shed some light on this? Thank you in advance, Ryan Could I suggest that, given that you're just starting out, that you start out with UHD, rather than classic, for one, there are now daughtercards that aren't supported at all by classic, and that will get worse over time, as more daughtercards are added, etc. All new USRP driver-side development and bug-fixing will happen on UHD. Since you don't have any legacy that you need to be backwards compatible with, it's a good point to simply commit to UHD. -- Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org ___ 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] Daughter Board ID List
On 07/07/2011 12:29 PM, Wolfarth, Ryan wrote: Thanks for your quick response Marcus! I neglected to mention that I am trying to support research that inherits code requiring the classic GNU Radio system. I fully intend on using UHD expressly for the reasons you specified once the PhD I'm working with has finished and moved on. Since I'm only writing toy programs at the moment it's not imperative that my daughter board probe be 100% functional: I'm only writing these to gain experience. But I was curious to know if there was a more specific list of daughter boards I may use. It sounds like I'm not getting the proper ID due to waning support of the classic system. Correct? Thanks again, Ryan Newer daughtercards aren't supported in classic, and the WBX support isn't in Gnu Radio 3.2, for example. So if you must stick with classic, get the latest version of it. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Python code error on Windows
Hi list and Josh, I need your help. As Josh told me I CMake'ified this UCLA ZigBee project based on a similar structured project and made a gr-ucla folder with all needed files, I compiled it and got the gnuradio-UCLA.dll, gnuradio-UCLA.lib files; the swig interface file (UCLA.py, _UCLA.lib and _UCLA.pyd), I put everything into it's place, but I have some problems with the python code: when I ran test files I had some errors because it wasn't using the UHD driver, I changed code (usrp... to uhd...), now if I run test files the USRP is recognized, *rbf file is written to FPGA, it starts to execute python code and I get a big error: cordic_freq = 434.845M data_rate = 38.4k samples_per_symbol = 8 fs = 307.2k Sampling rate: 25 Center frequency: 434845200 Traceback (most recent call last): File C:\program files (x86)\gnuradio\ieee802_examples\uhd_cc1k_txtest.py, line 165, in module main () File C:\program files (x86)\gnuradio\ieee802_examples\uhd_cc1k_txtest.py, line 146, in main tb.start() File c:\program files (x86)\gnuradio\lib\site-packages\gnuradio\gr\top_block.py, line 97, in start self._tb.start() File c:\program files (x86)\gnuradio\lib\site-packages\gnuradio\gr\gnuradio_core_runtime.py, line 1476, in start return _gnuradio_core_runtime.gr_top_block_sptr_start(self) RuntimeError: In hierarchical block cc1k_mod_pkts, input 0 is not connected internally I want to use python to understand how all this USRP and GnuRadio thing works until I will make everything in C (interface and function calls). Here is the source code: from gnuradio import gr, eng_notation from gnuradio import uhd from gnuradio import audio from gnuradio import ucla from gnuradio.ucla_blks import cc1k_sos_pkt from gnuradio.eng_option import eng_option from optparse import OptionParser import math import struct, time ##from gnuradio.wxgui import stdgui, fftsink, scopesink ##import wx ##def pick_subdevice(u): ## ##The user didn't specify a subdevice on the command line. ##If there's a daughterboard on A, select A. ##If there's a daughterboard on B, select B. ##Otherwise, select A. ## ##if u.db[0][0].dbid() = 0: # dbid is 0 if there's no d'board or a problem ##return (0, 0) ##if u.db[1][0].dbid() = 0: ##return (1, 0) ##return (0, 0) class transmit_path(gr.top_block): def __init__(self, options): gr.top_block.__init__(self) self.normal_gain = 8000 self.data_rate = options.data_rate self.samples_per_symbol = 8 self.fs = self.data_rate * self.samples_per_symbol payload_size = 128 # bytes print data_rate = , eng_notation.num_to_str(self.data_rate) print samples_per_symbol = , self.samples_per_symbol print fs = , eng_notation.num_to_str(self.fs) self.u = uhd.usrp_sink('type=usrp1', io_type=uhd.io_type.COMPLEX_FLOAT32, num_channels=1) ##self.u.set_clock_config(uhd.clock_config.internal(), uhd.ALL_MBOARDS) u = self.u # Set and print sampling rate self._samp_rate = 20 self.u.set_samp_rate(self._samp_rate) input_rate = self.u.get_samp_rate() print Sampling rate: %d %(input_rate) # Set and print center frequency self.u.set_center_freq(options.cordic_freq) frekva = self.u.get_center_freq() print Center frequency: %d %(frekva) # transmitter self.packet_transmitter = cc1k_sos_pkt.cc1k_mod_pkts(self, spb=self.samples_per_symbol, msgq_limit=2) self.amp = gr.multiply_const_cc (self.normal_gain) self.filesink = gr.file_sink(gr.sizeof_gr_complex, 'tx_test.dat') self.connect(self.amp, self.filesink) self.connect(self.packet_transmitter, self.amp, self.u) ##self.set_gain(self.subdev.gain_range()[1]) # set max Tx gain ##self.set_auto_tr(True) # enable Auto Transmit/Receive switching def set_gain(self, gain): self.gain = gain self.subdev.set_gain(gain) def set_auto_tr(self, enable): return self.subdev.set_auto_tr(enable) def send_pkt(self, payload='', eof=False): return self.packet_transmitter.send_pkt(am_group=1, module_src=128, module_dst=128, dst_addr=65535, src_addr=2, msg_type=32, payload=payload, eof=eof) def bitrate(self): return self._bitrate def spb(self): return self.spb def main (): parser = OptionParser (option_class=eng_option) parser.add_option(-T, --tx-subdev-spec, type=subdev, default=None, help=select USRP Tx side A or B (default=first one with a daughterboard)) parser.add_option (-c, --cordic-freq, type=eng_float, default=434845200, help=set Tx cordic frequency to FREQ, metavar=FREQ) parser.add_option (-r, --data-rate, type=eng_float, default=38400)
Re: [Discuss-gnuradio] Python code error on Windows
return _gnuradio_core_runtime.gr_top_block_sptr_start(self) RuntimeError: In hierarchical block cc1k_mod_pkts, input 0 is not connected internally Well that right there looks like your problem. cc1k_mod_pkts must be a block with an input, but you didnt connect its input to a data source. -josh ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio