discuss-gnuradio
[Top][All Lists]
Advanced

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

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


From: Nathan West
Subject: Re: [Discuss-gnuradio] pktno ??!!
Date: Fri, 29 Mar 2013 11:34:00 -0500

On Fri, Mar 29, 2013 at 11:20 AM, manjusha <address@hidden> wrote:
Is pktno defined anywhere in python files(at transmitting end) other than
benchmark_tx.py??Actually i want to print number of packets transmitted.So,i
am looking for pktno.

-----
Manjusha
--

Line 139 of benchmark_tx.py contains the payload. It's the pktno packed as a short (2 bytes) followed by the pktno as a single byte repeated pkt_size - 2.

Are you trying to print the number of packets transmitted using benchmark_tx.py ? If so The packets are transmitted on line 140, so if you want to print pktno just print it there. The "while n < nbytes" loop will iterate once for every packet. You could replace line 142 to print pktno instead of ".".


-Nathan

reply via email to

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