discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] how to load data in payload of send_pkt in benchm


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] how to load data in payload of send_pkt in benchmark_ofdm_tx.py, and check with benchmark_ofdm_rx.py?
Date: Tue, 19 Aug 2008 11:09:12 -0700
User-agent: Mutt/1.5.17 (2007-11-01)

On Tue, Aug 19, 2008 at 01:04:57PM -0400, James Park wrote:
> Hi,
> 
> I am confusing with send_pkt and payload.
> How can i load the data that I want to transmit in the packet? and compare
> with received data using benchmark_ofdm_rx.py?
> what I tried is adding file_sink to compare the transmit and the receive
> data, but it seems I can do more with send_pkt.
> Also, would it be possible to choose one subcarrier that I want to use among
> others?
> Thank you for your kine help.
> 
> James,


James,

I suspect that you don't have a working knowledge of python.  Python
has excellent documentation.  Please work through the tutorial and
become familar with the python library reference.  You can find them
here: http://www.python.org/doc/2.5.2/download

Please be sure that you fully understand the following line of code.
It is the one that builds the packet payload.  Do not ask for help
about it on this list.  It's standard Python and there is absolutely
nothing GNU Radio specific about it.

    send_pkt(struct.pack('!H', pktno) + (pkt_size - 2) * chr(pktno & 0xff))

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]