Re: [Discuss-gnuradio] Re g : usrp2_card_burner_gui.py

2012-04-22 Thread sumitstop

Well I got the solution 


Its some python version problem. With 2.7.2 its working fine. I have 2.6 in
the problematic systems. 

So told by Josh  I removed the " errors='ignore' " from usrp2_card_burner.py
from line 53

and it worked finally. :-D







sumitstop wrote:
> 
> I am not able to guess what is it? Now it is coming on even 3.2.2 and
> 3.4.0 &-(
> 
> 
> sumitstop wrote:
>> 
>> For got to tell that I have gnuradio version 3.6.0git-41-gd5f9c571
>> 
>> 
>> 
>> sumitstop wrote:
>>> 
>>> I am getting this error while running the usrp2_card_burner_gui.py
>>> 
>>> ***
>>> Traceback (most recent call last):
>>>   File "./usrp2_card_burner_gui.py", line 174, in 
>>> USRP2CardBurnerApp(root, dev=options.dev, fw=options.fw,
>>> fpga=options.fpga).pack()
>>>   File "./usrp2_card_burner_gui.py", line 132, in __init__
>>> self._raw_dev_entry = DeviceEntryWidget(self, text=dev)
>>>   File "./usrp2_card_burner_gui.py", line 74, in __init__
>>> self._reload_cb()
>>>   File "./usrp2_card_burner_gui.py", line 87, in _reload_cb
>>> for hint in usrp2_card_burner.get_raw_device_hints():
>>>   File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 113, in
>>> get_raw_device_hints
>>> for line in command('cat', '/proc/partitions').splitlines():
>>>   File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 53, in
>>> command
>>> verbose = p.stdout.read().decode('utf-8', errors='ignore')
>>> TypeError: decode() takes no keyword arguments
>>> 
>>> **
>>> 
>>> I searched in web but couldn't find something accurate
>>> 
>>> Somebody has mentioned the same thing this year 
>>> http://pastebin.com/XjU73dCU but I couldn't understand what is the
>>> solution %-|
>>> 
>>> 
>>> 
>> 
>> 
> 
> 


-
Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India
-- 
View this message in context: 
http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33730193.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


Re: [Discuss-gnuradio] Re g : usrp2_card_burner_gui.py

2012-04-22 Thread Josh Blum


On 04/22/2012 01:02 PM, sumitstop wrote:
> 
> I am not able to guess what is it? Now it is coming on even 3.2.2 and 3.4.0
> &-(
> 

This is not a gnuradio problem. Its a UHD bug that was introduced from a
language fix for the card burner. So I can fix it, please tell me:

What version of python are you running?

Does the app work if you remove "errors='ignore'"?

-josh

> 
> sumitstop wrote:
>>
>> For got to tell that I have gnuradio version 3.6.0git-41-gd5f9c571
>>
>>
>>
>> sumitstop wrote:
>>>
>>> I am getting this error while running the usrp2_card_burner_gui.py
>>>
>>> ***
>>> Traceback (most recent call last):
>>>   File "./usrp2_card_burner_gui.py", line 174, in 
>>> USRP2CardBurnerApp(root, dev=options.dev, fw=options.fw,
>>> fpga=options.fpga).pack()
>>>   File "./usrp2_card_burner_gui.py", line 132, in __init__
>>> self._raw_dev_entry = DeviceEntryWidget(self, text=dev)
>>>   File "./usrp2_card_burner_gui.py", line 74, in __init__
>>> self._reload_cb()
>>>   File "./usrp2_card_burner_gui.py", line 87, in _reload_cb
>>> for hint in usrp2_card_burner.get_raw_device_hints():
>>>   File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 113, in
>>> get_raw_device_hints
>>> for line in command('cat', '/proc/partitions').splitlines():
>>>   File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 53, in
>>> command
>>> verbose = p.stdout.read().decode('utf-8', errors='ignore')
>>> TypeError: decode() takes no keyword arguments
>>>
>>> **
>>>
>>> I searched in web but couldn't find something accurate
>>>
>>> Somebody has mentioned the same thing this year 
>>> http://pastebin.com/XjU73dCU but I couldn't understand what is the
>>> solution %-|
>>>
>>>
>>>
>>
>>
> 
> 
> -
> Sumit Kr.
> Research Assistant
> Communication Research center
> IIIT Hyderabad
> India

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


Re: [Discuss-gnuradio] Re g : usrp2_card_burner_gui.py

2012-04-22 Thread sumitstop

I am not able to guess what is it? Now it is coming on even 3.2.2 and 3.4.0
&-(


sumitstop wrote:
> 
> For got to tell that I have gnuradio version 3.6.0git-41-gd5f9c571
> 
> 
> 
> sumitstop wrote:
>> 
>> I am getting this error while running the usrp2_card_burner_gui.py
>> 
>> ***
>> Traceback (most recent call last):
>>   File "./usrp2_card_burner_gui.py", line 174, in 
>> USRP2CardBurnerApp(root, dev=options.dev, fw=options.fw,
>> fpga=options.fpga).pack()
>>   File "./usrp2_card_burner_gui.py", line 132, in __init__
>> self._raw_dev_entry = DeviceEntryWidget(self, text=dev)
>>   File "./usrp2_card_burner_gui.py", line 74, in __init__
>> self._reload_cb()
>>   File "./usrp2_card_burner_gui.py", line 87, in _reload_cb
>> for hint in usrp2_card_burner.get_raw_device_hints():
>>   File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 113, in
>> get_raw_device_hints
>> for line in command('cat', '/proc/partitions').splitlines():
>>   File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 53, in
>> command
>> verbose = p.stdout.read().decode('utf-8', errors='ignore')
>> TypeError: decode() takes no keyword arguments
>> 
>> **
>> 
>> I searched in web but couldn't find something accurate
>> 
>> Somebody has mentioned the same thing this year 
>> http://pastebin.com/XjU73dCU but I couldn't understand what is the
>> solution %-|
>> 
>> 
>> 
> 
> 


-
Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India
-- 
View this message in context: 
http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33729997.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


Re: [Discuss-gnuradio] Re g : usrp2_card_burner_gui.py

2012-04-22 Thread sumitstop

For got to tell that I have gnuradio version 3.6.0git-41-gd5f9c571



sumitstop wrote:
> 
> I am getting this error while running the usrp2_card_burner_gui.py
> 
> ***
> Traceback (most recent call last):
>   File "./usrp2_card_burner_gui.py", line 174, in 
> USRP2CardBurnerApp(root, dev=options.dev, fw=options.fw,
> fpga=options.fpga).pack()
>   File "./usrp2_card_burner_gui.py", line 132, in __init__
> self._raw_dev_entry = DeviceEntryWidget(self, text=dev)
>   File "./usrp2_card_burner_gui.py", line 74, in __init__
> self._reload_cb()
>   File "./usrp2_card_burner_gui.py", line 87, in _reload_cb
> for hint in usrp2_card_burner.get_raw_device_hints():
>   File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 113, in
> get_raw_device_hints
> for line in command('cat', '/proc/partitions').splitlines():
>   File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 53, in
> command
> verbose = p.stdout.read().decode('utf-8', errors='ignore')
> TypeError: decode() takes no keyword arguments
> 
> **
> 
> I searched in web but couldn't find something accurate
> 
> Somebody has mentioned the same thing this year 
> http://pastebin.com/XjU73dCU but I couldn't understand what is the
> solution %-|
> 
> 
> 


-
Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India
-- 
View this message in context: 
http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33729642.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] Re g : usrp2_card_burner_gui.py

2012-04-22 Thread sumitstop

I am getting this error while running the usrp2_card_burner_gui.py

***
Traceback (most recent call last):
  File "./usrp2_card_burner_gui.py", line 174, in 
USRP2CardBurnerApp(root, dev=options.dev, fw=options.fw,
fpga=options.fpga).pack()
  File "./usrp2_card_burner_gui.py", line 132, in __init__
self._raw_dev_entry = DeviceEntryWidget(self, text=dev)
  File "./usrp2_card_burner_gui.py", line 74, in __init__
self._reload_cb()
  File "./usrp2_card_burner_gui.py", line 87, in _reload_cb
for hint in usrp2_card_burner.get_raw_device_hints():
  File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 113, in
get_raw_device_hints
for line in command('cat', '/proc/partitions').splitlines():
  File "/usr/local/share/uhd/utils/usrp2_card_burner.py", line 53, in
command
verbose = p.stdout.read().decode('utf-8', errors='ignore')
TypeError: decode() takes no keyword arguments

**

I searched in web but couldn't find something accurate

Somebody has mentioned the same thing this year 
http://pastebin.com/XjU73dCU but I couldn't understand what is the solution
%-|



-
Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India
-- 
View this message in context: 
http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33729482.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] strange behavior when make gnuradio in build directory

2012-04-22 Thread Alick Zhao
Hi all,

I meet a strange behavior when building gnuradio (v3.5.3.X) on my
desktop with Fedora 16 these two days.

When I build in the directory build/:

  rm -rf *
  gr-cmake # my script which call cmake with some options enabled
  make -j 8 && make test

The test 'qa_pmt' always fail. When run
./gruel/src/python/qa_pmt_test.sh, I can see the error message.
It is attached below for your reference.

However, when I build in some different directory, say build-test/,
build-another/, or build2/, and repeat the commands above, all tests
will pass.

I have cleaned the directories and tested many times, and qa_pmt always
fail under build/ but always pass under other build directories.
Occasionally I get compilation errors with make -j 8, I will then try
make with less parallel jobs. But it doesn't affect the phenomenon
above. I am not familiar with cmake now but I don't think the make test
result should vary with particular build directory. Maybe this indicates
some problems with the OS?

(I will also attach the script gr-cmake, although I do not think it is
relevant.)

alick


-- 
alick
Fedora 16 (Verne) user
https://fedoraproject.org/wiki/User:Alick
Traceback (most recent call last):
  File "/home/alick/Documents/gnuradio/gruel/src/python/qa_pmt.py", line 24, in 

import pmt_swig
  File "/home/alick/Documents/gnuradio/build/gruel/src/swig/pmt_swig.py", line 
26, in 
_pmt_swig = swig_import_helper()
  File "/home/alick/Documents/gnuradio/build/gruel/src/swig/pmt_swig.py", line 
22, in swig_import_helper
_mod = imp.load_module('_pmt_swig', fp, pathname, description)
ImportError: dynamic module does not define init function (init_pmt_swig)
#!/bin/bash

# Check if we are at one build directory of gnuradio repo

builddir="$PWD"

dirname="$(basename "$builddir")"
parentdirname="$(basename "${builddir%/$dirname}")"

if [[ $dirname != *build* || $parentdirname != gnuradio ]]; then
echo "Please run from build directory of gnuradio repo!" >&2
exit 2
fi

cmake \
-DENABLE_GR_ATSC=OFF \
-DENABLE_GR_AUDIO=OFF \
-DENABLE_GR_COMEDI=OFF \
-DENABLE_GR_FCD=OFF \
-DENABLE_GR_VIDEO_SDL=OFF \
-DENABLE_GR_VOCODER=OFF \
..
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Tweaking digital_bert_tx and digital_bert_rx

2012-04-22 Thread George Sklivanitis
Hello everyone,

Lately, I have been trying to tweak the way both digital_bert_tx and
digital_bert_rx are working by introducing in the transmitter side my own
generated random .dat file instead of transmitting an infinite vector of
ones (default) while at the receiver side I consider the transmitted data
known and I am making use of the error_rate block for evaluating the Bit
Error Rate.

However, the file source that I am using as a reference input in my error
rate block at the receiver seems to introduce overflows after some time at
the receiver as I am repeatedly giving as an input a predefined randomized
sequence of bytes. Moreover, using a scope sink at the output of the
error_rate block I get probability of error close to 1/2 either
transmitting or not.

Does anybody have an idea of what could be the problem in the above
scenario or even better has tried something similar in the past?

Thanks,
George

The experiment takes place in the latest revision of both gnuradio and UHD,
Ubuntu 11.04-64bit in Intel core-i7 laptops.


-- 
Sklivanitis Georgios
Postgraduate Student
Telecommunications Division
Technical University of Crete
ECE Dept.
Tel. : 28210 59257
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] How to implement a TDMA system

2012-04-22 Thread Pan, Luyuan

Hi everyone,
I want to implement a TDD system with three USRP2 and an IBM server with 
three Ethernet cards. The scenario is one relay and two nodes exchange 
data through the relay, I want them to transmit data in their fixed time 
slot, it does not need to be too precise, about 100 milliseconds per 
slot is OK. The question is:

1. Can I achieve my goal with the current equipment?
2. I want to use the time-stamp in UHD to precise control the time to 
send and recv, but without external clock, does the UHD have to use the 
external clock to get the time?

Thank you in advance!
--
Best regards,
Pan, Luyuan

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