discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] pktno ??!!


From: Manu T S
Subject: Re: [Discuss-gnuradio] pktno ??!!
Date: Tue, 2 Apr 2013 18:42:10 +0530

Hi,

It's not clear where in packet_utils.py you have introduced this bit of code.
packet_utils.py contains definitions of certain functions.
Suppose you introduce this bit of code in the function make_packet defined inside packet_utils.py
make_packet() will be called by an instance of mod_pkts() defined inside pkt.py, into which payload is passed.
So, when the send_pkt(payload) is called for the first time, it enters the while loop and it is executed indefinitely. The len(payload) will be computed from the first payload that is passed into the make_packet().

To know the transmitted packet number you should have put the same code in benchmark_tx.py at a suitable location.


On Tue, Apr 2, 2013 at 3:21 AM, manjusha <address@hidden> wrote:
Hi,

I put the following code in packet_utils.py

n=0
    while len(pkt)!= "":
     print "make_packet: len(pkt) =",len(payload)
    # n=n+1
     print "pktno",n
     n=n+1
what it did is ,it kept incrementing until i stop it.Although i connect the
usrp to the computer or not,it keeps incrementing.
How can we know the correct number of packets tranmitted from this.The
packet numbers i get are in any way right??!!

Thanks..



-----
Manjusha
--
View this message in context: http://gnuradio.4.n7.nabble.com/pktno-tp40416p40483.html
Sent from the GnuRadio mailing list archive at Nabble.com.

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



--
Manu T S

reply via email to

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