Re: [Discuss-gnuradio] How to stor hexadecimal transmitted data in ./benchmark_tx

2008-11-27 Thread Jérémy Skelton
Hi Vaibhav, You may have a look at this : f = open('file', 'a') f.write('%X\t' % (data)) I didn't try but it should be the way to print in hexadecimal and appending to the file. Le 26-nov.-08 à 15:06, Vaibhav Bhatnagar a écrit : I would like to capture all packets, when it generates in

[Discuss-gnuradio] How to stor hexadecimal transmitted data in ./benchmark_tx

2008-11-26 Thread Vaibhav Bhatnagar
I would like to capture all packets, when it generates in the file benchmark_tx.py at 2.4Ghz like this: # generate and send packets nbytes = int(1e6 * options.megabytes) n = 0 pktno = 0 pkt_size = int(options.size) while n < nbytes: if options.from_file is None: