[Discuss-gnuradio] Swig Error

2009-04-02 Thread gohar anwar
Hi,
I am getting the following error while running a programme. Programme is fine. 
I have checked it on other PC.
I think there is some thing wrong with the installation of SWIG or else.

Traceback (most recent call last):
  File "./gsm_scan.py", line 21, in 
from gnuradio import usrp
  File "/usr/local/lib/python2.5/site-packages/gnuradio/usrp/__init__.py", line 
25, in 
from usrp_swig import *
  File "/usr/local/lib/python2.5/site-packages/gnuradio/usrp/usrp_swig.py", 
line 6, in 
import _usrp_swig
ImportError: /usr/local/lib/libgnuradio-usrp.so.0: undefined symbol: 
_ZN7db_base4dbidEv
#

Line 6 is: import _usrp_swig
line 25 is: from usrp_swig import *

I am on Ubuntu 8.10
GNU Radio 3.1.3

Best Regards,
Gohar



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


Re: [Discuss-gnuradio] Error in compilation of runTransceiver.cpp in OpenBTS

2009-03-18 Thread gohar anwar
Dear David
./bootstrap did not fail when i use it in top level directory.
But the point is that all the process did not produce any binary/executable 
like runTransceiver,LoopbackTest and TRXSimulator ...etc
I m interesting in these executables for testing purpose, as mentioned in 
openbts/tests/README.test.

Regards,
Gohar





From: David Burgess 
To: gohar anwar 
Cc: Johnathan Corgan ; discuss-gnuradio@gnu.org
Sent: Wednesday, March 18, 2009 9:25:10 PM
Subject: Re: RE : [Discuss-gnuradio] Error in compilation of runTransceiver.cpp 
in OpenBTS

Gohar -

"bootstrap" is a system utility you should already have, not part of the 
OpenBTS distribution.  When bootstrap failed with "No such file...", you should 
have stopped and figured this obvious mistake instead of doing something 
completely pointless with raw g++ and then posting it to the list.

In the output below, everything past the failed bootstrap is useless and 
irrelevant.

-- David




On Mar 18, 2009, at 9:07 AM, gohar anwar wrote:

Thanks for your reply. Actually i tried to build this using the ./bootstrap, 
./configure and make commands. It did not work.That's why I adopted the other 
way. 

Following appears as i try to build it with standard commands. Do i have to 
make changes in the "makefile"? Or how should i build this?

RESULTS OF STANDARD METHOD:

go...@gohar:~/openbts/Transceiver$ ./bootstrap
bash: ./bootstrap: No such file or directory
go...@gohar:~/openbts/Transceiver$ ./configure
bash: ./configure: No such file or directory
go...@gohar:~/openbts/Transceiver$ make
cd .. && make  am--refresh
make[1]: Entering directory `/home/gohar/openbts'
/bin/bash ./config.status --recheck
running CONFIG_SHELL=/bin/bash /bin/bash ./configure   --no-create 
--no-recursion
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for rm... /bin/rm
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 805306365
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic

RE : [Discuss-gnuradio] Error in compilation of runTransceiver.cpp in OpenBTS

2009-03-18 Thread gohar anwar
r inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.18... yes
checking for USRP... yes
checking for OSIP... yes
checking for ORTP... yes
configure: creating ./config.status
 /bin/bash ./config.status
config.status: creating Makefile
config.status: creating apps/Makefile
config.status: creating config/Makefile
config.status: creating doc/Makefile
config.status: creating AsteriskConfig/Makefile
config.status: creating CommonLibs/Makefile
config.status: creating Control/Makefile
config.status: creating GSM/Makefile
config.status: creating RFHardware/Makefile
config.status: creating SIP/Makefile
config.status: creating SMS/Makefile
config.status: creating Transceiver/Makefile
config.status: creating TRXManager/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: Leaving directory `/home/gohar/openbtscopy'
make[1]: Entering directory `/home/gohar/openbtscopy'
make[1]: Leaving directory `/home/gohar/openbtscopy'
make[1]: Entering directory `/home/gohar/openbtscopy'
make[1]: Leaving directory `/home/gohar/openbtscopy'
make: Nothing to be done for `all'.
go...@gohar:~/openbtscopy/Transceiver$ sudo make install
[sudo] password for gohar: 
make[1]: Entering directory `/home/gohar/openbtscopy/Transceiver'
make[1]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/usrp/rev2" || mkdir -p -- "/usr/local/share/usrp/rev2"
 /usr/bin/install -c -m 644 'std_inband.rbf' 
'/usr/local/share/usrp/rev2/std_inband.rbf'
test -z "/usr/local/share/usrp/rev4" || mkdir -p -- "/usr/local/share/usrp/rev4"
 /usr/bin/install -c -m 644 'std_inband.rbf' 
'/usr/local/share/usrp/rev4/std_inband.rbf'
make[1]: Leaving directory `/home/gohar/openbtscopy/Transceiver'
go...@gohar:~/openbtscopy/Transceiver$ 

Gohar 





From: Johnathan Corgan 
To: gohar anwar 
Cc: discuss-gnuradio@gnu.org
Sent: Wednesday, March 18, 2009 7:24:38 PM
Subject: Re: [Discuss-gnuradio] Error in compilation of runTransceiver.cpp in  
OpenBTS

2009/3/17 gohar anwar :

> I  am facing the following warnings and error when i compile
> "runTransceiver.cpp".

> go...@gohar:~/openbts/Transceiver$ g++
> '/home/gohar/openbts/Transceiver/runTransceiver.cpp'

You should be using the standard ./bootstrap, ./configure, and make
commands to build this, not trying to compile it directly as above.

Johnathan


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


[Discuss-gnuradio] Error in compilation of runTransceiver.cpp in OpenBTS

2009-03-17 Thread gohar anwar
Hi,
I  am facing the following warnings and error when i compile 
"runTransceiver.cpp". This seems to be a problem with the Functions using 
reference to device USRP.
libusrp is already installed.  What does this error indicates? How should i 
remove it?

go...@gohar:~/openbts/Transceiver$ g++ 
'/home/gohar/openbts/Transceiver/runTransceiver.cpp' 
In file included from /home/gohar/openbts/Transceiver/USRPDevice.h:25,
 from /home/gohar/openbts/Transceiver/radioInterface.h:25,
 from /home/gohar/openbts/Transceiver/Transceiver.h:29,
 from /home/gohar/openbts/Transceiver/runTransceiver.cpp:24:
/usr/local/include/usrp_bytesex.h:37:2: warning: #warning Using non-portable 
code (likely wrong other than ILP32).
In file included from /home/gohar/openbts/Transceiver/radioInterface.h:24,
 from /home/gohar/openbts/Transceiver/Transceiver.h:29,
 from /home/gohar/openbts/Transceiver/runTransceiver.cpp:24:
/home/gohar/openbts/Transceiver/sigProcLib.h:35: warning: ‘typedef’ was ignored 
in this declaration
/home/gohar/openbts/Transceiver/sigProcLib.h:45: warning: ‘typedef’ was ignored 
in this declaration
/tmp/cc1M0b51.o: In function `main':
runTransceiver.cpp:(.text+0xa3): undefined reference to 
`USRPDevice::USRPDevice(double)'
runTransceiver.cpp:(.text+0xc5): undefined reference to `USRPDevice::make(bool)'
runTransceiver.cpp:(.text+0x131): undefined reference to 
`RadioInterface::RadioInterface(USRPDevice*, int, int, GSM::Time)'
runTransceiver.cpp:(.text+0x1e1): undefined reference to 
`Transceiver::Transceiver(int, char const*, int, GSM::Time, RadioInterface*)'
runTransceiver.cpp:(.text+0x22f): undefined reference to `Transceiver::start()'
runTransceiver.cpp:(.text+0x2a5): undefined reference to 
`Transceiver::~Transceiver()'
collect2: ld returned 1 exit status


Regards
Gohar



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


Re: [Discuss-gnuradio] OpenBTS issue/help needed

2009-03-12 Thread gohar anwar
Thanks for your reply Davek,
In openbts/tests its written in README.test that 

"Tests that can be built and run.

L1 Software Loopback (no USRP)

This test exercises L1 components for bidirectional channels.  It uses two 
executables: TRXManager/LoopbackTest and TRXManager/TRXSimulator.


also

Beacon test
.
This test uses the tests/BeaconTest and the Transceiver/runTransceiver 
binaries"
There are only .cpp files with these names.
How to build these binaries/executables? 
Make command does not perform this task.

Thanks
Gohar Anwar



From: davek 
To: Gohar 
Cc: "discuss-gnuradio@gnu.org" 
Sent: Friday, March 13, 2009 12:57:04 AM
Subject: Re: [Discuss-gnuradio] OpenBTS issue/help needed

the following excutables are in the openbts folder you svn'ed after
you do a make. they are not copied to the dist with make install, not
sure why, but they work...
openbts/apps/OpenBTS800
openbts/apps/OpenBTS900
openbts/Transciever/transciever

On Thu, Mar 12, 2009 at 3:41 PM, Gohar  wrote:
>
>
> Hi,
> I have installed  the OpenBTS by following the instructions on the page below:
>
> http://www.gnuradio.org/trac/wiki/OpenBTS/BuildingAndRunning
>
> Apparently there were no errors in all the process (ie: ./bootstrap, 
> ./configure, make, make install)
> But i can only see Asterisk folder in /usr/local/share/OpenBTS.
> I want to run the tests like "loopbackTest.cpp" and "BeaconTest.cpp" etc.
>
> How to compile and run these tests? Which commands should i execute in 
> terminal to run these .cpp files?
> I am on Ubuntu 8.10 with the latest trunk of GnuRadio.
>
>
> Best regards
> Gohar Anwar
>
>
>
>
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>



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


[Discuss-gnuradio] Open BTS Installation and testing

2009-03-10 Thread gohar anwar
Hi,
I have successfully installed  the OpenBTS by following the instructions on the 
page below:

http://www.gnuradio.org/trac/wiki/OpenBTS/BuildingAndRunning

Apparently there were no errors in all the process (ie: ./bootstrap, 
./configure, make, make install)
But i can only see Asterisk folder in /usr/local/share/OpenBTS.
I want to run the tests like "loopbackTest.cpp" and "BeaconTest.cpp" etc.

How to compile and run these tests? Which commands should i execute in terminal 
to run these .cpp files?
I am on Ubuntu 8.10 with the latest trunk of GnuRadio.

Gohar Anwar



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


[Discuss-gnuradio] Re: Using RFX900 with usrp rev 3 (2005)

2009-01-20 Thread gohar anwar

well i have sorted out  the issue. I was doing a mistake by putting 'cd' before 
the directory and then was trying to run the file after entering the directory 
(gnuradio/usrp/host/apps). I should have written the following in terminal 
instead:

go...@ubuntu:~gnuradio/usrp/host/apps/burn-db-eeprom -t rfx900_mimo_a -f -A -B

This works fine.

Gohar

gohar  wrote: 
I did all the modifications on rfx900.
when trying to burn eeprom i receive the following error.

bash: burn-db-eeprom: command not found

I am trying to run the command in the following manner (after mounting the 
rfx900 on side A of USRP rev 3):

go...@ubuntu:~/gnuradio/usrp/host/apps$burn-db-eeprom -t rfx900_mimo_a -f -A -B

What am i missing?
Is there any problem with the permissions? If yes, then how to set permissions 
correctly?

Gohar
  



The newer way will have better phase noise.

Matt


Newell Jensen wrote:
> When  doing this modification, is there any performance differences 
> between using a setup with this modification versus a newer USRP1 that 
> doesn't need this modification?  I think I had heard that the newer 
> USRP1 has better clock performance or something for the RFX900 boards 
> and didn't know how much a setup with this modification would perform 
> in comparison to a setup with a newer USRP1 (using the RFX900 boards).
>
> On Thu, Jan 15, 2009 at 11:23 PM, Matt Ettus 
> > wrote:
>
> Gohar wrote:
>
> Hi,
> Is it possible to use rfx900 with usrp rev 3 hardware that was
> released in 2005? If yes, what changigs should be made on
> either board (usrp board or rfx900 board) ?
>
>  
>
>
> On the RFX board
>   Move R36 to R34
>   Move R115 to  R116
>
> Put the rfx board on the USRP and run
>
>   burn-db-eeprom -t rfx900_mimo_a -f -A -B
>
> Matt
>


   


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


[Discuss-gnuradio] Re: Using RFX900 with usrp rev 3 (2005)

2009-01-20 Thread gohar anwar

I did all the modifications on rfx900.
when trying to burn eeprom i receive the following error.

bash: burn-db-eeprom: command not found

I am trying to run the command in the following manner (after mounting the 
rfx900 on side A of USRP rev 3):

go...@ubuntu:~/gnuradio/usrp/host/apps$burn-db-eeprom -t rfx900_mimo_a -f -A -B

What am i missing?
Is there any problem with the permissions? If yes, then how to set permissions 
correctly?

Gohar
  



The newer way will have better phase noise.

Matt


Newell Jensen wrote:
> When doing this modification, is there any performance differences 
> between using a setup with this modification versus a newer USRP1 that 
> doesn't need this modification?  I think I had heard that the newer 
> USRP1 has better clock performance or something for the RFX900 boards 
> and didn't know how much a setup with this modification would perform 
> in comparison to a setup with a newer USRP1 (using the RFX900 boards).
>
> On Thu, Jan 15, 2009 at 11:23 PM, Matt Ettus 
> > wrote:
>
> Gohar wrote:
>
> Hi,
> Is it possible to use rfx900 with usrp rev 3 hardware that was
> released in 2005? If yes, what changigs should be made on
> either board (usrp board or rfx900 board) ?
>
>  
>
>
> On the RFX board
>   Move R36 to R34
>   Move R115 to R116
>
> Put the rfx board on the USRP and run
>
>   burn-db-eeprom -t rfx900_mimo_a -f -A -B
>
> Matt
>



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


[Discuss-gnuradio] Problem with GNU radio installation in UBUNTU 8.10

2008-11-12 Thread gohar anwar
Hi,
 I am trying to install GNU radio on Ubuntu 8.10.
I followed the script method (apt-get) step by step as described in wiki.
All the packages are completey installed without any error.(during 
installation). But still GNU radio cant access the USRP. I am using USRP1 with 
my sony vaio fw160j.
Following error occured when i tried to run th example usrp_benchmark_usb.py

[EMAIL PROTECTED]:~$ python 
'/usr/local/share/gnuradio/examples/usrp/usrp_benchmark_usb.py' 
Testing 2MB/sec... usrp_open_interface:usb_claim_interface: failed interface 0
could not claim interface 0: Operation not permitted
open_nth_cmd_interface: open_cmd_interface failed
usrp: failed to load firmware /usr/local/share/usrp/rev2/std.ihx.
Traceback (most recent call last):
  File "/usr/local/share/gnuradio/examples/usrp/usrp_benchmark_usb.py", line 
106, in 
main ()
  File "/usr/local/share/gnuradio/examples/usrp/usrp_benchmark_usb.py", line 
96, in main
ok = run_test (rate, verbose)
  File "/usr/local/share/gnuradio/examples/usrp/usrp_benchmark_usb.py", line 
63, in run_test
usrp_tx = usrp.sink_s (0, tx_interp)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/usrp.py", line 233, in 
__init__
fpga_filename, firmware_filename)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/usrp1.py", line 946, in 
sink_s
return _usrp1.sink_s(*args)
RuntimeError: can't open usrp1


Can any body help me out. 
Further i have to test the files of GSM scanner project. Can i do so using the 
latest stable release of gnu radio or i have to use some previous releases? Any 
suggestion?

Thanks



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


[Discuss-gnuradio] Implementation of a gsm BTS Using USRP

2008-07-13 Thread gohar anwar
Hi,
I wanna know whether it is possible to implement the GSM BTS on USRP. Supposing 
that i am an official  of  service providers (any cellular company) and  have 
access to all the information of that particular Service provider. Can i 
implement the VIRTUAL BTS using USRP.
If yes, then How?
>From where should i start doing that?

Thanks 
Gohar



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


[Discuss-gnuradio] Implement GSM transceiver using Nokia 3310

2008-07-02 Thread gohar anwar
Hi,
I am working in the project in which i want to implement the GSM receiver and 
transmitter.
I want to take input for gnu radio from First IF stage(71Mhz) or 2nd IF stage 
(13 MHZ) of a mobile PCB.
For this purpose i am using the PCB of Nokia 3310. Can u tell me that what 
exactly is the point on the PCB of nokia 3310 from where i should extract one 
of these frequencies? Is the encryption at this stage is the same as of the 
900Mhz or 1800Mhz signal?



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