Re: [Discuss-gnuradio] Spectrum Analysis with FFT plotting

2009-06-01 Thread Ujala Qasim
Hi, I am now getting the following plot, when I set my target_freq to 89MHz (another radio station), with center_freq in set_rx_freq() function to -5.75: http://i695.photobucket.com/albums/vv318/ujalaqasim/bell.jpg The decimation rate is 250 and the sampling frequency is at 256ksps. I am getting a

[Discuss-gnuradio] How to use tune function?

2009-06-01 Thread Ujala Qasim
The code I am basically using for capturing samples is this: http://gnuradio.org/trac/wiki/UsrpFAQ/CppInterface As my code is completely based on C++, I can't use usrp.tune(self.u, 0, self.subdev,106.2e6), instead can I use the following method from usrp_standard: bool usrp_standard_rx::tune(int

Re: [Discuss-gnuradio] Spectrum Analysis with FFT plotting

2009-05-31 Thread Ujala Qasim
Hi, Thanks for your reply Sebastiaan, I am taking some data samples with a piece of code in Windows that takes the raw data samples. Now, I want to analyze the samples, whether my data is correct or not. For this, I tune to the FM frequency of 106.2 MHz (a radio station) and pick some data samples

[Discuss-gnuradio] Spectrum Analysis with FFT plotting

2009-05-30 Thread Ujala Qasim
hi,I have some raw data samples of FM from USRP. I now want to take their FFT and analyze the spectrum to see whether the data that I have captured is valid or not. My question is that when plotting FFT in MATLAB should I take the range of frequencies from 0 - 10 MHz (as the signal has been shifted

Re: [Discuss-gnuradio] Format of captured data

2009-05-27 Thread Ujala Qasim
Hi,I am not using GNU Radio, I am simply taking 16-bit data samples from the USRP in a small C++ interfacing program for Windows using "usrp_standard.h". Now, I want to write my own FM demodulation code for these samples as I am not using GNU Radio, I won't be using any signal processing blocks, th

[Discuss-gnuradio] Format of captured data

2009-05-27 Thread Ujala Qasim
I am receiving 16-bit data from USRP (data is in the range of -32768 to 32767) in Windows. Now I want to apply some demodulation algorithms to these samples but I am a bit confused. According to the following thread, each data sample that is coming from USRP is a complex baseband value. However, a

Re: [Discuss-gnuradio] Range of samples values

2009-05-26 Thread Ujala Qasim
: > On Tue, May 26, 2009 at 1:24 AM, Ujala Qasim > wrote: > > I set my decimation rate to 200 and center_freq to 100.1, but the values > of > > my samples is exceeding this range. > > > Please specify the mistake that I'd be making... > > This is very

Re: [Discuss-gnuradio] Range of samples values

2009-05-26 Thread Ujala Qasim
And I am basically trying to perform this task through Windows, but even when i run the same code on Linux, it is giving me the same values. On Tue, May 26, 2009 at 8:04 PM, Jason Uher wrote: > On Tue, May 26, 2009 at 1:24 AM, Ujala Qasim > wrote: > > I set my decimation rat

Re: [Discuss-gnuradio] Range of samples values

2009-05-26 Thread Ujala Qasim
On Tue, May 26, 2009 at 8:08 PM, Ujala Qasim wrote: > I captured the samples using the following C++ interface which is already > available for USRP: > // Simple C++ USRP interfacing demonstration program > // > // > // This program was derived and modified from test_u

Re: [Discuss-gnuradio] Range of samples values

2009-05-25 Thread Ujala Qasim
2264 70 2336 746 4 -664097490 3084 70 3156 772 5 100 1 266 356 2 44 622 -1414417620 29987719 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 6881357 7471203 7536751 6684783 3014772 6881367 6553710 On Tue, May 26, 2009 at 1:00 AM, Eric Blossom wrote: > On Tue, May 26, 2009 at 12:17:39AM +0600, Ujala Qasim wrot

[Discuss-gnuradio] Range of samples values

2009-05-25 Thread Ujala Qasim
I am trying to capture data samples from USRP for an FM receiver. In what range should the values of the samples must be lying? ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] USRP data sample values incorrect

2009-05-25 Thread Ujala Qasim
The following article states that ideally the sample values should be symmetric about 0, when tuned to 100.1 MHz. And the values shown are between -70 and 170:http://www.linuxjournal.com/article/7505 However my values are very big. What could be the problem? Also when I set my center_freq to 10010

Re: [Discuss-gnuradio] USRP data sample values incorrect

2009-05-24 Thread Ujala Qasim
I made the change and I am still getting the same values. On Mon, May 25, 2009 at 12:41 PM, Eric Blossom wrote: > On Mon, May 25, 2009 at 12:10:59PM +0600, Ujala Qasim wrote: > > Hi,I am trying to capture the data samples from the USB port of USRP > using > >

[Discuss-gnuradio] USRP data sample values incorrect

2009-05-24 Thread Ujala Qasim
Hi,I am trying to capture the data samples from the USB port of USRP using the following code: #include "usrp_standard.h" // Dumy Function to process USRP data void process_data(int *buffer) { } #define SAMPELS_PER_READ (512) // Must be a multiple of 128 int main (int argc, char **argv) { bool lo

[Discuss-gnuradio] ursp_dbid.dat question

2009-05-09 Thread Ujala Qasim
Hi, While trying to implement USB interface for windows I am facing a problem. When I try to compile my code it asks for usrp_dbid.h, and usrp_dbid.cc, however these are generated from usrp_dbid.dat. According to my understanding usrp_dbid.dat is loaded from daughterboards. Am I right? How is this

[Discuss-gnuradio] How to load FX2 firmware (std.ihx) in Windows?

2009-04-29 Thread Ujala Qasim
Hi,As suggested by you, I am now using the usrp_standard.h to implement USB 2.0 interface for Windows. However, I am facing a problem. The function usrp_loads_standard_bits() in usrp_prims library loads the FX2 firmware by calling the following two functions: get_proto_filename find_file In short

Re: [Discuss-gnuradio] Re: Definition of USB Interfaces is different in Windows

2009-04-29 Thread Ujala Qasim
Hi,As suggested by you, I am now using the usrp_standard.h to implement USB 2.0 interface for Windows. However, I am facing a problem. The function usrp_loads_standard_bits() in usrp_prims library loads the FX2 firmware by calling the following two functions: get_proto_filename find_file In short

Re: [Discuss-gnuradio] Re: Definition of USB Interfaces is different in Windows

2009-04-26 Thread Ujala Qasim
Eric, I tried implementing the given task of developing a USB interface for Windows by using the following main program that is written for Linux and successfully executes on it. However, when I tried to use the same code with Windows I faced a problem. The code includes usrp_standard.h, which incl

Re: [Discuss-gnuradio] Definition of USB Interfaces is different in Windows

2009-04-24 Thread Ujala Qasim
t 05:27:06PM +0600, Ujala Qasim wrote: > > I connected the USRP to the USB 2.0 port and obtained the information of > the > > device using the lsusb -v command in Ubuntu. The output is attached > below. > > Even in Ubuntu, the interfaces and endpoints come out t

Re: [Discuss-gnuradio] Definition of USB Interfaces is different in Windows

2009-04-24 Thread Ujala Qasim
bDeviceClass 255 Vendor Specific Class bDeviceSubClass 255 Vendor Specific Subclass bDeviceProtocol 255 Vendor Specific Protocol bMaxPacketSize064 bNumConfigurations 1 Device Status: 0x (Bus Powered) Thanks. On Fri, Apr 24, 2009 at 11:22 AM, Ujala

Re: [Discuss-gnuradio] Definition of USB Interfaces is different in Windows

2009-04-23 Thread Ujala Qasim
Yes, I am sure. Because I am running USRP on Ubuntu with GNU Radio on the same computer and usb port and it is running absolutely fine. I read another thread on a forum, which gives same interfaces and endpoint numbers on Windows: http://www.nabble.com/usrp-and-u...@-fedora-9-td22833152.html I get

[Discuss-gnuradio] Definition of USB Interfaces is different in Windows

2009-04-23 Thread Ujala Qasim
Hi, I am writing a Windows interface for USRP using libusb-win32. However, I am facing a problem. When I run the testlibusb wizard (a utility tool for displaying information about USB devices) in Windows, it tells me that the USRP has only one interface: Interface 0. This interface has three altern

[Discuss-gnuradio] Does the USRP need manual board configuration?

2009-03-29 Thread Ujala Qasim
Hi, I am writing an interface between Windows and USRP. I have a simple question to ask, does the USRP need any manual board configurations before I start communicating with the FPGA through USB? Thanks. ___ Discuss-gnuradio mailing list Discuss-gnuradio

[Discuss-gnuradio] claiming rx interface error

2009-03-15 Thread Ujala Qasim
Hi! I am writing an interface between C and Windows for USRP. For this i need two separate usb_dev_handle objects one for command interface (udh) and one for rx interface (bulk_udh) however, whenever I try to claim the rx interface by calling the usb_claim_interface function it results in an error,

Re: [Discuss-gnuradio] Claiming interface 2 (RX) fails!

2009-03-12 Thread Ujala Qasim
function Can you please tell me if these sequence of steps is correct? And if I am going in the right direction? Thanks. On Thu, Mar 12, 2009 at 9:54 PM, Eric Blossom wrote: > On Thu, Mar 12, 2009 at 09:03:23PM +0500, Ujala Qasim wrote: > > Hi! > > I am trying to write a progra

[Discuss-gnuradio] Claiming interface 2 (RX) fails!

2009-03-12 Thread Ujala Qasim
Hi! I am trying to write a program in C that interfaces between USRP and Windows, this is my initial code: #include "usb.h" #include "usrp_spi_defs.h" #include "usrp_commands.h" #include "fpga_regs_standard.h" #include "ad9862.h" #include "usrp_interfaces.h" #include #include #define SAMPELS_PE

[Discuss-gnuradio] fusb_generic_read (void *buffer, int nbytes) is a part of which class?

2009-03-09 Thread Ujala Qasim
Hi, Can someone tell me that the function bool fusb_generic_read (void *buffer, int nbytes) belongs to which class? As it is not a part of the fusb_generic or fusb ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/lis

Re: [Discuss-gnuradio] How to write USB 2.0 interface for Windows in C++?

2009-02-02 Thread Ujala Qasim
I actually want to interface the USRP and a DSP board together. For this I need to write the USB 2.0 interface between them. I am initially trying to write a C++ code that will capture the data samples from USRP's USB 2.0 in Windows. Later, I will try to use the same code on DSP board. What informa

Re: [Discuss-gnuradio] How to write USB 2.0 interface for Windows in C++?

2009-02-02 Thread Ujala Qasim
Other then that, there are a lot of other header files and cc files that are included and I have downloaded them manually and compiling them with usrp_standard.h too, however, I can't find the header files of type sys/cdefs.h or sys/time.h On Mon, Feb 2, 2009 at 7:09 PM, Ujala Qasim wrote:

Re: [Discuss-gnuradio] How to write USB 2.0 interface for Windows in C++?

2009-02-02 Thread Ujala Qasim
I have downloaded usrp_standard.cc and usrp_standard.h manually. I am now trying to compile them in Microsoft Visual C++, but it is giving me a couple of errors? ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listi

Re: [Discuss-gnuradio] How to write USB 2.0 interface for Windows in C++?

2009-02-02 Thread Ujala Qasim
"Just use the interface exported by user_standard.h" Do you mean I should use the usrp_standard.cc? On Mon, Feb 2, 2009 at 6:21 PM, Eric Blossom wrote: > On Mon, Feb 02, 2009 at 05:22:23PM +0500, Ujala Qasim wrote: > > Hi, > > > > I am trying to capture USB 2.0 p

[Discuss-gnuradio] How to write USB 2.0 interface for Windows in C++?

2009-02-02 Thread Ujala Qasim
Hi, I am trying to capture USB 2.0 packets sent over by the USRP in a C++ program. I was able to found a code that does the similar job in Linux: #include "usrp_standard.h" // Dumy Function to process USRP data void process_data(int *buffer) { } #define SAMPELS_PER_READ (512) // Must be a multipl

Re: [Discuss-gnuradio] Capturing Data Samples in Windows through C Code

2009-01-14 Thread Ujala Qasim
Thanks! :) On Thu, Jan 15, 2009 at 12:49 AM, Eric Blossom wrote: > On Thu, Jan 15, 2009 at 12:38:54AM +0500, Ujala Qasim wrote: > > Hi, > > Is it possible to capture the data samples of USRP sent over the USB 2.0 > > port in Windows? I am trying to write a small demo progr

[Discuss-gnuradio] Capturing Data Samples in Windows through C Code

2009-01-14 Thread Ujala Qasim
Hi, Is it possible to capture the data samples of USRP sent over the USB 2.0 port in Windows? I am trying to write a small demo program for Windows in C that will be capturing these data samples, and later I will perform some operations on these. I need some help with the code? If this is possible,