[Discuss-gnuradio]Reprogramming the fpga

2007-10-17 Thread 서병진
Hi
 
I add some logic at usrp_std.v and make .sof file with Quartus II 
 
but I don't know that how program to fpga.
 
so I just wanted to know how do you go about Programming/reprogramming the FPGA 
in the USRP board 
 
(with byteblaster or anyting) at windows 
 
 
 
Thanks in Advance 
LEMONed
 

 서병진(LEMONed)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED](서브메일)
 82-31-217-9920
 82-31-217-9921(fax)
 82-19-253-4410(cel)

桐千年老恒藏曲
梅一生寒不賣香
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Maximal signal bandwith for the usrp

2007-10-17 Thread JALLON Pierre 201932
Dear all,

 

According the USRP v4 description:

http://www.ettus.com/downloads/usrp_v4.pdf
 

the usrp is able to process signals up to 16MHz. 

 

As the USB port is limited to 60MB/s, and if the samples are coded on 32
bits (16 for Q and 16 for I), the maximal bandwidth equals 15MHz.

 

Which version is correct?

 

Furthermore, considering that the first ADC works at 64Ms/s, the
available rate for the USB equals:

32/2 (is it available ?)

32/3

32/4

32/5

...

32/256

 

Am I right ?

 

Thank you for your answers,

 

Pierre Jallon

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


[Discuss-gnuradio] Processing of OFDM signals

2007-10-17 Thread JALLON Pierre 201932
Dear all,

 

As anyone been able to process OFDM signals with the USRP?

In particular, I have seen that many works have been started to develop
a HDTV decoder with the USRP. Have you been able to decode the OFDM
symbols (and decode the HDTV signals) ?

 

Thanks,

 

Best regards,

Pierre

 

 

 

 

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


Re: [Discuss-gnuradio] Maximal signal bandwith for the usrp

2007-10-17 Thread Martin Dvh
JALLON Pierre 201932 wrote:
> Dear all,
> 
>  
> 
> According the USRP v4 description:
> 
> http://www.ettus.com/downloads/usrp_v4.pdf
>  
> 
> the usrp is able to process signals up to 16MHz. 
> 
>  
> 
> As the USB port is limited to 60MB/s, and if the samples are coded on 32
> bits (16 for Q and 16 for I), the maximal bandwidth equals 15MHz.
The USRP can code signals as 32 bits (16 for Q and 16 for I)
In this case the usrp is able to process signals up to 8 MHz.
The USRP can also code signals as 16 bits (8 for Q and 8 for I)
In that case the usrp is able to process signals up to 16 MHz.
> 
>  
> 
> Which version is correct?
> 
>  
> 
> Furthermore, considering that the first ADC works at 64Ms/s, the
> available rate for the USB equals:
> 
> 32/2 (is it available ?)
> 
> 32/3
> 
> 32/4
> 
> 32/5
> 
> ...
> 
> 32/256
> 
>  
> 
> Am I right ?
the first ADC works at 64Ms/s, the
available rate for the USB equals:
64/4(64/4 is only available with halfband filter disabled)
64/8
64/12
64/16
64/20
...
64/256

The halfband filter in the usrp firmware has a minimal decimation rate of 8. 
That is why 64/4 is only available with halfband disabled.


Martin
> 
>  
> 
> Thank you for your answers,
> 
>  
> 
> Pierre Jallon
> 
> 
> 
> 
> 
> 
> ___
> 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] Re: Maximal signal bandwith for the usrp

2007-10-17 Thread Patrick Strasser

JALLON Pierre 201932 schrieb:


As the USB port is limited to 60MB/s


That is net bandwith. You have to subtract the overhead. Moreover you 
have to find chipsets that really support this rate.


Currently 32MB/s is a achievable value for the USRP.

Patrick
--
Engineers motto: cheap, good, fast: choose any two
Patrick Strasser 
Student of Telematik, Techn. University Graz, Austria



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


[Discuss-gnuradio] How can I set the frequency of VCO?

2007-10-17 Thread tarara
Hi,
I have written a code to set the frequency of VCO (ADF4360-0):

bool flag = true;

bool usrp_standard_rx::set_freq(double frequenza)
{
  vector a;
  frequenza += -4e6;

  a = compute_regs(frequenza);

  if(a.at(0)==0)
 return false;

  write_all(a.at(0),a.at(1),a.at(2));
  return true;

}

vector usrp_standard_rx::compute_regs(double frequenza)
{
  vector a;
  double phdet_freq = 64e6 / 16; //uso i parametri di flex2400
  int desider_n = round(frequenza*1/phdet_freq);
  float actual_freq = phdet_freq*desider_n;
  double B = floor(desider_n/16);
  double A = desider_n - 16*B;
  int B_DIV = (int)B;
  int A_DIV = (int)A;

  if(B_DIV < A_DIV)
  {
 a.at(0)=0;
 a.at(1)=0;
 a.at(2)=0;
 a.at(3)=0;
 return a;
  }

  int R = (0<<22) | (3<<20) | (0<<19) | (1<<18) | (0<<16) | (16<<2);

  int control = (1<<22) | (0<<20) | (7<<17) | (7<<14) | (0<<12) | (1<<11) |
(0<<10) | (0<<9) | (1<<8) | (1<<5) | (0<<4) | (1<<2);

  int N = (0<<23) | (0<<22) | (0<<21) | (B_DIV<<8) | (0<<7) | (A_DIV<<2);

  a.push_back(R);
  a.push_back(control);
  a.push_back(N);
  //a.push_back(actual_freq/2);

  return a;
}

void usrp_standard_rx::write_all(int R,int control,int N)
{

   write_R(R);
   write_control(control);
   if(flag)
   {
 sleep(1);
 flag = false;
   }
   write_N(N);
}

void usrp_standard_rx::write_R(int R)
{
  write_it((R & ~0x3) | 1);
}

void usrp_standard_rx::write_N(int N)
{
  write_it((N & ~0x3) | 2);
}

void usrp_standard_rx::write_control(int control)
{
  write_it((control & ~0x3) | 0);
}


void usrp_standard_rx::write_it(int v)
{
  char buffer [33];
  int uno = ((v>>16) & 0xff);
  int due = ((v>>8) & 0xff);
  int tre = (v & 0xff);

  if(uno == 0)
 snprintf(buffer,33,"%c%c",due,tre);
  else{

  if(due == 0)
 snprintf(buffer,33,"%c%c",uno,tre);
  else{

  if(tre == 0)
 snprintf(buffer,33,"%c%c",uno,due);
  else
 snprintf(buffer,33,"%c%c%c",uno,due,tre);
  }
  }

  int spi_enable = SPI_ENABLE_RX_A;
  int spi_format = SPI_FMT_MSB | SPI_FMT_HDR_0;
  _write_spi(0,spi_enable,spi_format,buffer);

}

Is this code correct?
If this code isn't correct, how can I set and calculate the value of frequency
of VCO or already is there a method in C++ to set it?

Thank you very much.

Calogero







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


[Discuss-gnuradio] Help:How to print the payload in benchmark_ofdm_tx.py

2007-10-17 Thread Archana Ragothaman
Hello,

I am trying to print the payload in the send_pkt function defined in
ofdm.py(/gnuradio-core/src/python/gnuradio/blks2impl).
I have used the following lines of code in send_pkt function.

f = open("txdata.txt","a")
s=string(payload)
f.write(s)
f.close()

However no file is created. I want to know the payload that is transmitted
in the ofdm_benchmark_tx.py script. Kindly let me know if there is any other
means of doing it.

Regards,
-- 
Archana Ragothaman
Master's in Telecommunications
Graduate Research Assistant
MIND Lab,UMIACS
University of Maryland, College Park
Email: [EMAIL PROTECTED]
Phone: 240-422-7887
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Help:How to print the payload in benchmark_ofdm_tx.py

2007-10-17 Thread Eric Blossom
On Wed, Oct 17, 2007 at 05:07:37PM -0400, Archana Ragothaman wrote:
> Hello,
> 
> I am trying to print the payload in the send_pkt function defined in
> ofdm.py(/gnuradio-core/src/python/gnuradio/blks2impl).
> I have used the following lines of code in send_pkt function.
> 
> f = open("txdata.txt","a")
> s=string(payload)
> f.write(s)
> f.close()
> 
> However no file is created. I want to know the payload that is transmitted
> in the ofdm_benchmark_tx.py script. Kindly let me know if there is any other
> means of doing it.
> 
> Regards,
> -- 
> Archana Ragothaman

The ofdm code in blksimpl2 has not yet been converted to use the new
hier_block2.  I suspect that it's currently broken.  Try using the
version in blksimpl.

Johnathan,  I think the non-working code in blksimpl2 should be
removed or fixed ASAP.

Eric


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


Re: [Discuss-gnuradio] GUI-Buildner

2007-10-17 Thread Eng. Firas

Hi,

I think the easiest way is to use wxglade version 0.6

Firas,


Adrian Kueng wrote:
> 
> Hello,
> 
> I work with an USRP and I like to ajust the given  examplesfiles such as
> oscope.py and fft.py? Is a GUI-Buildner available to implement
> Python-files like those? Or what is the easiest way to implement GUI's in
> Python?
> 
> Thanks for help
> Adrian
> 

-- 
View this message in context: 
http://www.nabble.com/GUI-Buildner-tf4634805.html#a13268955
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] Maximal signal bandwith for the usrp

2007-10-17 Thread Eng. Firas

Hi,

USRP can transfer data at maximum of 32MB/s using its USB2. When the data
are 16 bit wide (16bit I and 16 bit Q) then maximum complex transfered data
will be 8 Msps which gives idealy maximum 8 MHz bandwidth. However, if we
use 8 bit data wide ( 8bit I, and 8bit Q), then maximum transfer will be 16
Msps complex data. This means, the USRP can process signals up to 16 MHz.

Firas


JALLON Pierre 201932 wrote:
> 
> Dear all,
> 
>  
> 
> According the USRP v4 description:
> 
> http://www.ettus.com/downloads/usrp_v4.pdf
>  
> 
> the usrp is able to process signals up to 16MHz. 
> 
>  
> 
> As the USB port is limited to 60MB/s, and if the samples are coded on 32
> bits (16 for Q and 16 for I), the maximal bandwidth equals 15MHz.
> 
>  
> 
> Which version is correct?
> 
>  
> 
> Furthermore, considering that the first ADC works at 64Ms/s, the
> available rate for the USB equals:
> 
> 32/2 (is it available ?)
> 
> 32/3
> 
> 32/4
> 
> 32/5
> 
> ...
> 
> 32/256
> 
>  
> 
> Am I right ?
> 
>  
> 
> Thank you for your answers,
> 
>  
> 
> Pierre Jallon
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maximal-signal-bandwith-for-the-usrp-tf4639031.html#a13269030
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] looking at a wider spectrum

2007-10-17 Thread Eng. Firas

Hi,

Use usrp_fft.py with decimation rate of 8. In this case, you can see 8MHz of
spectrum. Also, you can use 8 bit data transfer with decimation rate of 4 to
look at 16 MHz wide spectrum.

Firas


meggahertz wrote:
> 
> I am new to the GNU Radio and am running the usrp_wfm_rcv.py but it only
> shows the spectrum of width ~ 0.4Mhz. How can I look at a wider spectrum
> instead of just 0.4MHz around the carrier frequency? 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/looking-at-a-wider-spectrum-tf4643642.html#a13269045
Sent from the GnuRadio mailing list archive at Nabble.com.



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